Files
oam/knowledge base/ai/claude/claude code router.md
2026-02-13 01:16:21 +01:00

1.9 KiB

Claude Code router

TODO

Allows using Claude Code without an Anthropic account.
Connects it to most other LLMs, including local ones.

  1. TL;DR
  2. Further readings
    1. Sources

TL;DR

Setup

Both the ccr CLI and the server use the ~/.claude-code-router/config.json configuration file.

# Install.
brew install 'claude-code-router'
npm install -g '@musistudio/claude-code-router'

# Open the Web UI for visual configuration.
ccr ui
Usage
# Start the service.
ccr start

# View the service's status.
ccr status

# Restart the service.
ccr restart

# Stop the service.
ccr stop

# Select models.
# ccr model set <provider>,<model>
ccr model
ccr model set 'deepseek,deepseek-chat'

# List configured models.
ccr model list

# Add models.
# ccr model add <provider>,<model>
ccr model add 'groq,llama-3.3-70b-versatile'

# Remove models.
# ccr model remove <provider>,<model>
ccr model remove 'groq,llama-3.3-70b-versatile'

# Start Cloud Code.
# Do this AFTER configuring CCR.
ccr code

Further readings

Sources