Baichuan Router
One prompt, every model — route, compare, and save.
Baichuan Router is an open-source MCP server that routes your prompts across multiple leading AI models. Instead of being locked into a single provider, get side-by-side comparison, cost optimization, and smart model selection — all through one neutral interface.
Quick Start
npx baiduan-router
Or install:
pip install baiduan-router
Features
- Multi-model routing — send one prompt to multiple models, compare results
- Smart selection — auto-route simple tasks to cost-effective models, complex tasks to premium ones
- MCP-native — works with Claude Desktop, VS Code, Cursor, and any MCP-compatible client
- BYOK — bring your own API keys, never stored or logged
- Open source — Apache-2.0, fully self-hostable
Supported Models
Set environment variables for the models you want to use:
| Model | Env Variable | Free Tier Available |
|---|---|---|
| Gemini | GEMINI_API_KEY |
✅ Unlimited |
| Grok | GROK_API_KEY |
✅ $25 credits |
| DeepSeek | DEEPSEEK_API_KEY |
✅ Unlimited |
| Qwen | DASHSCOPE_API_KEY |
✅ 1M tokens/month |
| Claude | ANTHROPIC_API_KEY |
— |
| ChatGPT | OPENAI_API_KEY |
— |
License
Apache-2.0 © Baichuan
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file baiduan_router-1.0.1.tar.gz.
File metadata
- Download URL: baiduan_router-1.0.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59fcd534ffae24fdaea0a4c38d0651ba3def569ffa021b78c7171d8839634083
|
|
| MD5 |
b28c7154617d7d3fc2bff081d93ebab5
|
|
| BLAKE2b-256 |
0fc3ccd8985738a1f8deb4f21afcbe42219ccd3e2ab979d894bce84734e731aa
|
File details
Details for the file baiduan_router-1.0.1-py3-none-any.whl.
File metadata
- Download URL: baiduan_router-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2b519f72db984aceca4ef48c9472625c2304a11dbf846affb1ae8b0cd11ba5e
|
|
| MD5 |
3cecf0c31810844e836375a5b6691675
|
|
| BLAKE2b-256 |
13f98c2b2fedcd549ea2466be027f6e798ac05042ffb13110411a22d0d688a77
|