One API (36,211 Stars) LLM Gateway Setup 2026

๐Ÿ“˜ 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-12
Langflow Tutorial 2026: Build a Visual AI Agent Pipeline in 30 Minutes With Real Data
2026-07-26
Best Free AI Tools for Students 2026
2026-07-17
Qwen Open Source AI Model Guide 2026: Qwen 2.5 vs 3 vs 3.1
2026-08-05
AI Dubbing and Video Translation in 2026: faster-whisper (24k Stars) + Coqui TTS Pipeline - Dub Any Video in Your Voice
2026-07-16
AI Agent Beginner Roadmap 2026
2026-08-11
MLOps for Computer Vision 2026: Pipelines, Data Labeling and Edge Deployment Explained

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