Skip to main content
Open Source

Route Claude Code
to Any LLM

Use Claude Code without an Anthropic account. Connect to DeepSeek, Gemini, Groq, and more.

terminal
$cdpackages/server
$dockercomposeup--build-d

Why Claude Code Router?

Lightning Fast

Get started in minutes with just one command. No complicated configuration required.

🎯

Smart Routing

Automatically route requests to the best model based on context length, task type, and custom rules.

🔌

Multi-Provider

Support for DeepSeek, Gemini, Groq, OpenRouter, and more. Easy to extend with custom transformers.

💰

Cost Effective

Use more affordable models for routine tasks while reserving Claude for complex scenarios.

🛠️

Agent System

Extendable agent architecture for custom tools and workflows. Built-in support for image tasks.

🔧

Highly Customizable

Configure routing per project, set up transformers, and fine-tune every aspect of your workflow.

Simple Configuration

Configure your providers and routing logic with a single JSON file.

config.json
{
  "Providers": [
    {
      "NAME": "deepseek",
      "HOST": "https://api.deepseek.com",
      "APIKEY": "your-api-key",
      "MODELS": ["deepseek-chat", "deepseek-coder"]
    },
    {
      "NAME": "groq",
      "HOST": "https://api.groq.com/openai/v1",
      "APIKEY": "your-groq-key",
      "MODELS": ["llama-3.3-70b-versatile"]
    }
  ],
  "Router": {
    "default": "deepseek,deepseek-chat",
    "background": "groq,llama-3.3-70b-versatile"
  }
}

Perfect For

See how Claude Code Router fits your workflow

1
💰

Cost-Conscious Developers

Reduce API costs by 10x while maintaining quality for most tasks

2
🔒

Privacy-Focused Teams

Keep code local with self-hosted models while using Claude when needed

3
🔄

Multi-Model Workflows

Use different models for different tasks without switching tools

4

Claude Code Power Users

Extend Claude Code with custom providers and routing strategies

Ready to Get Started?

Join thousands of developers using Claude Code Router to build better software.

This is an active fork of musistudio/claude-code-router

Contains additional provider integrations, bug fixes, and improvements not yet merged upstream.