One API (36,211 Stars) LLM Gateway Setup 2026: One Key for OpenAI, Claude, Gemini and DeepSeek

๐Ÿ“˜ Tutorials 2026-08-06 2 min read

one-api (36,211 stars) is the most-starred LLM API gateway: it unifies OpenAI, Azure, Claude, Gemini, DeepSeek and Doubao behind one key. Here is the full self-host setup.

💡 What You Will Learn

one-api (36,211 stars) is the most-starred LLM API gateway: it unifies OpenAI, Azure, Claude, Gemini, DeepSeek and Doubao behind one key. Here is the full self-host setup.

📜 Table of Contents

The short answer

songquanpeng/one-api (36,211 stars, JavaScript) is an LLM API management and distribution system. It aggregates dozens of providers - OpenAI, Azure, Anthropic Claude, Google Gemini, DeepSeek, ByteDance Doubao, Zhipu, and more - behind a single OpenAI-compatible endpoint. You hand your team one key, and one-api routes, meters, and rate-limits every request.

Why teams run it

Deploy in 10 minutes

  1. Run the container (SQLite mode is fine for small teams):
docker run --name one-api -d --restart always \n  -p 3000:3000 -v /data/one-api:/data \n  ghcr.io/songquanpeng/one-api:latest
  1. Open http://localhost:3000, default admin is root / 123456 (change it immediately).
  2. Go to Channels - Add Channel: pick provider (e.g. OpenAI), paste the API key.
  3. Go to Tokens - create a token; that is the single key your apps will use.
  4. Point any OpenAI SDK at http://localhost:3000/v1 with the new token.

Practical notes

FAQ

Is it compatible with the OpenAI SDK? Yes - it exposes /v1/chat/completions exactly like OpenAI, so LangChain, Open WebUI and most tools work unchanged.

Can it route to local models? Yes, add a channel pointing at Ollama or vLLM and serve local and cloud models through the same key.

Does it support Chinese providers? Yes - DeepSeek, Doubao, Qwen, Zhipu and others are built-in presets.

❓ FAQ

Is it compatible with the OpenAI SDK?

Yes - it exposes `/v1/chat/completions` exactly like OpenAI, so LangChain, Open WebUI and most tools work unchanged.

Can it route to local models?

Yes, add a channel pointing at Ollama or vLLM and serve local and cloud models through the same key.

Does it support Chinese providers?

Yes - DeepSeek, Doubao, Qwen, Zhipu and others are built-in presets.

Related Articles
2026-08-01
GPU Cloud Computing in 2026: What It Is, Pricing, and How to Choose
2026-08-10
LLM Benchmarks Explained 2026: MMLU, GPQA, SWE-bench and How to Read Scores
2026-07-16
AI Agent Caching Strategy 2026

Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only โ€” no paid placements.

๐Ÿ’ฌ Comments (0)

No comments yet. Be the first!

Login to comment