A routing proxy for Claude API that enables multi-agent workflows by intelligently routing requests to specialized AI agents.
This project has been "vibe coded" and tested with only a few models. While functional, it does not produce satisfying results in practice. Consider this an experimental proof-of-concept rather than a production-ready solution.
- Multi-Agent Routing: Routes requests to specialized agents:
use-tool: For tasks requiring external toolscoder: For code writing without toolsthinker: For complex reasoning and analysis
- OpenAI API Compatibility: Drop-in replacement for OpenAI API endpoints
- Streaming Support: Real-time streaming responses with Server-Sent Events
- Tool Integration: Seamless tool calling support
Set up the following environment variables for Claude Code:
export DISABLE_PROMPT_CACHING=1
export ANTHROPIC_AUTH_TOKEN="test"
export ANTHROPIC_BASE_URL="http://127.0.0.1:3456"
export API_TIMEOUT_MS=600000
export ANTHROPIC_LOG=debugStart the router server:
uv run clauderouter.pyThe server will start on http://127.0.0.1:3456 and provide Claude-compatible endpoints.
The router analyzes incoming requests and uses a decision agent to determine the most appropriate specialized agent. For complex workflows, it can chain multiple agents together, using the output of reasoning/coding agents as input for tool-enabled agents.
MIT License
This project is derived from claude-code-router.