mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-26 13:14:24 +00:00
1.9 KiB
1.9 KiB
Claude Code router
TODO
Allows using Claude Code without an Anthropic account.
Connects it to most other LLMs, including local ones.
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