Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Claude Router

A routing proxy for Claude API that enables multi-agent workflows by intelligently routing requests to specialized AI agents.

⚠️ Disclaimer

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.

Features

  • Multi-Agent Routing: Routes requests to specialized agents:
    • use-tool: For tasks requiring external tools
    • coder: For code writing without tools
    • thinker: 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

Setup

Environment Variables

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=debug

Running the Router

Start the router server:

uv run clauderouter.py

The server will start on http://127.0.0.1:3456 and provide Claude-compatible endpoints.

How It Works

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.

License

MIT License

Attribution

This project is derived from claude-code-router.

About

Routing proxy for claude code

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages