CC-Relay

Blazing fast LLMs API Gateway written in Go

Boost Claude Code by routing to multiple Anthropic-compatible providers

Claude CodeCCRelayAnthropicClaude ModelsOpenAIGPT ModelsGeminiGoogle AIZ.AIGLM ModelsKimi AIMoonshotOllamaLocal ModelsBedrockAWSAzureOpenAI ServiceVertex AIGoogle Cloud
0 requests

Quick Start

Terminal
$ go install github.com/omarluq/cc-relay/cmd/cc-relay@latest
$ cc-relay config init && cc-relay config cc init
$ cc-relay serve
Server started on http://localhost:8787
Current Features
🔑
Multiple API Keys

Pool multiple keys per provider for higher throughput

🔐
Multi-Auth Support

API key and Bearer token authentication for flexible access

📡
SSE Streaming

Perfect compatibility with Claude Code's real-time streaming

🎛️
Debug Logging

Detailed request/response logging for troubleshooting

⚙️
Environment Variables

Secure configuration with ${VAR} expansion in YAML

🚀
Easy Setup

One-command Claude Code integration with cc-relay config cc init

🔄
Provider Flexibility

Switch between providers without changing your client code

👥
Development Teams

Share API quota across multiple developers with pooled keys

💰
Cost Optimization

Test alternative models as lower-cost options

🔗
100% API Compatible

Drop-in Anthropic API replacement requiring no client changes

🛡️
Key Management

Centralize and rotate API keys without client updates

📊
9+ Providers

Anthropic, OpenAI, Gemini, Z.AI, Kimi, Ollama, and more