Metadata-Version: 2.5
Name: baiduan-router
Version: 1.0.1
Summary: Route prompts across 9 LLM backends through a single MCP server — compare, optimize, and save. No lock-in, no vendor bias.
Author: Baichuan
License: Apache-2.0
Keywords: ai-router,cross-model,llm,mcp,model-routing
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27.0
Requires-Dist: mcp>=1.0.0
Description-Content-Type: text/markdown

# 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

```bash
npx baiduan-router
```

Or install:

```bash
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