npx claudepluginhub cookjohn/teammcpskills/deploy-router/# Deploy claude-code-router Deploys claude-code-router as a proxy service that translates Anthropic API format to third-party providers. Required for non-Anthropic models (OpenRouter, Gemini, DeepSeek, Ollama, etc). ## Step 1: Install This installs and starts the router. Default port: 3456. ## Step 2: Configure Create/edit `~/.claude-code-router/config.json`: **Provider examples:** | Provider | api_base_url | transformer | |----------|-------------|-------------| | OpenRouter | `https://openrouter.ai/api/v1/chat/completions` | `["openrouter"]` | | DeepSeek | `https://api.deepseek...
/setupConfigures Codex (GPT) or Gemini as MCP servers for claude-delegator, installs orchestration rules to ~/.claude/rules/, and verifies setup.
/model-configDetects installed AI providers like Codex, Gemini, Ollama; displays current model configs, phase routing, and costs; launches interactive wizard to configure Octopus workflows.
/setup-mcpGuides interactive MCP server setup wizard: checks prerequisites like uvx, backs up configs, verifies plugin installation, configures optional API keys.
/SKILLConfigures Git user identity and project commit scopes: verifies name/email, initializes git-agent, validates scopes from .git-agent/config.yml, generates .claude/git.local.md.
/SKILLLaunches isolated code-context researcher agent to fetch repo/library context via DeepWiki, Context7, Exa, git clone, or all methods. Accepts repo URL/name and optional --method flag.
/SKILLCreates a GitHub pull request with automated quality validation, security scanning, issue linking, and compliance checks. Accepts optional description or issue reference.
Share bugs, ideas, or general feedback.
Deploys claude-code-router as a proxy service that translates Anthropic API format to third-party providers. Required for non-Anthropic models (OpenRouter, Gemini, DeepSeek, Ollama, etc).
npx @musistudio/claude-code-router start
This installs and starts the router. Default port: 3456.
Create/edit ~/.claude-code-router/config.json:
{
"LOG": true,
"LOG_LEVEL": "info",
"HOST": "127.0.0.1",
"PORT": 3456,
"Providers": [
{
"name": "openrouter",
"api_base_url": "https://openrouter.ai/api/v1/chat/completions",
"api_key": "{YOUR_OPENROUTER_API_KEY}",
"models": ["{MODEL_NAME}"],
"transformer": {
"use": ["openrouter"]
}
}
],
"Router": {
"default": "openrouter,{MODEL_NAME}"
}
}
Provider examples:
| Provider | api_base_url | transformer |
|---|---|---|
| OpenRouter | https://openrouter.ai/api/v1/chat/completions | ["openrouter"] |
| DeepSeek | https://api.deepseek.com/chat/completions | ["deepseek"] |
| Gemini | https://generativelanguage.googleapis.com/v1beta/models/ | ["gemini"] |
| Ollama | http://localhost:11434/v1/chat/completions | (none needed) |
npx @musistudio/claude-code-router stop
npx @musistudio/claude-code-router start
curl -s -X POST http://localhost:3456/v1/messages \
-H "Content-Type: application/json" \
-H "x-api-key: test" \
-H "anthropic-version: 2023-06-01" \
-d '{"model":"{MODEL_NAME}","max_tokens":50,"messages":[{"role":"user","content":"Hello"}]}'
Should return a valid response with the model's reply.
In TeamMCP Dashboard Agent Management, set for the target agent:
auth_mode: api_keyapi_provider: provider name (e.g., openrouter)api_base_url: http://localhost:3456 (router address)api_auth_token: any value (router handles real auth)api_model: model name (e.g., qwen/qwen3-235b-a22b)Or via API:
curl -X PATCH http://localhost:3100/api/agents/{AGENT_NAME} \
-H "Authorization: Bearer {TOKEN}" \
-H "Content-Type: application/json" \
-d '{"auth_mode":"api_key","api_provider":"openrouter","api_base_url":"http://localhost:3456","api_auth_token":"test","api_model":"{MODEL_NAME}"}'
Then stop+start the agent to apply.
startAgent automatically generates these for api_key mode:
set "ANTHROPIC_API_KEY="
set "CLAUDE_CODE_OAUTH_TOKEN=channel-gate-bypass"
set "ANTHROPIC_BASE_URL=http://localhost:3456"
set "ANTHROPIC_AUTH_TOKEN=test"
set "ANTHROPIC_MODEL={MODEL_NAME}"
"transformer": {"use": ["openrouter"]} for OpenRouter compatibility