feat: add OpenRouter provider support for claude-code-router

This commit is contained in:
ajmallesh
2026-01-15 15:21:34 -08:00
parent 7303326188
commit 429b74cff9
4 changed files with 25 additions and 4 deletions

View File

@@ -35,6 +35,10 @@ ANTHROPIC_API_KEY=your-api-key-here
# DEEPSEEK_API_BASE=https://api.deepseek.com/chat/completions
# ROUTER_DEFAULT=deepseek,deepseek-chat
# --- OpenRouter (access 100+ models via single API) ---
# OPENROUTER_API_KEY=sk-or-your-openrouter-key
# ROUTER_DEFAULT=openrouter,anthropic/claude-sonnet-4
# =============================================================================
# Available Models
# =============================================================================
@@ -42,3 +46,5 @@ ANTHROPIC_API_KEY=your-api-key-here
# Gemini: gemini-2.5-pro, gemini-2.5-flash
# DeepSeek: (Together.ai) deepseek-ai/DeepSeek-V3, deepseek-ai/DeepSeek-R1
# (Official) deepseek-chat, deepseek-reasoner
# OpenRouter: anthropic/claude-sonnet-4, google/gemini-2.5-pro-preview,
# openai/gpt-4o, meta-llama/llama-3.3-70b-instruct (100+ more)