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
Metadata
Release files for baiduan-router 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| baiduan_router-1.0.1.tar.gz | 5.8 kB | Without provenance | Details for baiduan_router-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| baiduan_router-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for baiduan_router-1.0.1-py3-none-any.whl |
Total release size: 13.1 kB
Release files / baiduan_router-1.0.1.tar.gz
| Download URL | baiduan_router-1.0.1.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59fcd534ffae24fdaea0a4c38d0651ba3def569ffa021b78c7171d8839634083
|
|
BLAKE2b-256 checksum How to use checksums |
0fc3ccd8985738a1f8deb4f21afcbe42219ccd3e2ab979d894bce84734e731aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.13
|
Release files / baiduan_router-1.0.1-py3-none-any.whl
| Download URL | baiduan_router-1.0.1-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2b519f72db984aceca4ef48c9472625c2304a11dbf846affb1ae8b0cd11ba5e
|
|
BLAKE2b-256 checksum How to use checksums |
13f98c2b2fedcd549ea2466be027f6e798ac05042ffb13110411a22d0d688a77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.13
|
Security for baiduan-router 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.