A seamless proxy enabling Claude Code to work with OpenRouter's diverse model selection
Built entirely with Claude Code - Showcasing AI-powered development workflow
This Cloudflare Worker acts as a translation layer between Anthropic's Claude API format and OpenAI-compatible APIs, specifically OpenRouter. It allows Claude Code to access a wide range of models through OpenRouter while maintaining the familiar Claude API interface.
βββββββββββββββββββββ βββββββββββββββββββββ βββββββββββββββββββββ β Claude Code ββββββΆβ CCR ββββββΆβ OpenRouter β β β β β β β β ANTHROPIC_BASE_ β β API Format β β Multiple Models: β β URL="ccr.duyet. β β Translation β β β β net" β β β β β’ Anthropic β β β β Model Pass- β β β’ OpenAI β β ANTHROPIC_API_ β β through or β β β’ Moonshot β β KEY="your-open β β Mapping β β β’ Google β β router-api-key" β β β β β’ Meta β β β β β β β’ DeepSeek β β ANTHROPIC_MODEL= β β β β β’ & More... β β "kimi-k2" β β β β β β βββββββ βββββββ β β Anthropic Format β β β β β βββββββββββββββββββββ βββββββββββββββββββββ βββββββββββββββββββββ
Seamlessly converts between Anthropic and OpenAI API formats
Access to multiple AI models through OpenRouter's unified API
Fast, globally distributed proxy with minimal latency
Sign up at openrouter.ai and get your API key
Use either ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN (both work the same way)
ANTHROPIC_BASE_URL="https://ccr.duyet.net" \ ANTHROPIC_API_KEY="your-openrouter-api-key" \ claude ANTHROPIC_BASE_URL="https://ccr.duyet.net" \ ANTHROPIC_AUTH_TOKEN="your-openrouter-api-key" \ claude
Use either ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN with custom models
ANTHROPIC_BASE_URL="https://ccr.duyet.net" \ ANTHROPIC_API_KEY="your-openrouter-api-key" \ ANTHROPIC_MODEL="moonshotai/kimi-k2:free" \ claude ANTHROPIC_BASE_URL="https://ccr.duyet.net" \ ANTHROPIC_AUTH_TOKEN="your-openrouter-api-key" \ ANTHROPIC_MODEL="moonshotai/kimi-k2:free" \ claude
β οΈ Note: This is a proxy service. Your API key will be used to make requests to OpenRouter. Make sure to use a secure connection and keep your API key private.
Official setup documentation and getting started guide
Sign up for OpenRouter and get your API key
Built entirely with Claude Code - Showcasing AI-powered development workflow