cc-relay

module
v0.0.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2026 License: AGPL-3.0

README

banner

Website Documentation Go Reference Go Version Go Report Card Download
Tests Version DeepWiki codecov Maintained Made with Love

Why?

Claude Code connects to one provider at a time. But what if you want to:

🔑 Pool rate limits across multiple Anthropic API keys
💰 Save money by routing simple tasks to lighter models
🛡️ Never get stuck with automatic failover between providers
🏢 Use your company's Bedrock/Azure/Vertex alongside personal API keys
🆕 Add Anthropic-compatible providers like Moonshot (Kimi), MiniMax, Z.AI, Ollama

cc-relay makes all of this possible.

License

AGPL-3.0 - © 2026 Omar Alani

Contributing

Contributions welcome! Please open an issue before submitting PRs.

SonarCloud Quality Gate

Directories

Path Synopsis
cmd
cc-relay command
Package main is the entry point for cc-relay.
Package main is the entry point for cc-relay.
internal
auth
Package auth provides authentication mechanisms for cc-relay.
Package auth provides authentication mechanisms for cc-relay.
cache
Package cache provides a unified caching interface for cc-relay.
Package cache provides a unified caching interface for cc-relay.
config
Package config provides configuration loading and parsing for cc-relay.
Package config provides configuration loading and parsing for cc-relay.
di
Package di provides dependency injection using samber/do v2.
Package di provides dependency injection using samber/do v2.
health
Package health provides circuit breaker and health tracking for cc-relay providers.
Package health provides circuit breaker and health tracking for cc-relay providers.
keypool
Package keypool provides key pooling and rate limit tracking for multi-key API management.
Package keypool provides key pooling and rate limit tracking for multi-key API management.
outbound
Package outbound builds the HTTP transports cc-relay uses for upstream (provider-bound) traffic, including optional outbound proxy support.
Package outbound builds the HTTP transports cc-relay uses for upstream (provider-bound) traffic, including optional outbound proxy support.
providers
Package providers defines the interface for LLM backend providers.
Package providers defines the interface for LLM backend providers.
proxy
Package proxy implements the HTTP proxy server for cc-relay.
Package proxy implements the HTTP proxy server for cc-relay.
ratelimit
Package ratelimit provides rate limiting interfaces and implementations for cc-relay.
Package ratelimit provides rate limiting interfaces and implementations for cc-relay.
router
Package router provides provider-level routing strategies for cc-relay.
Package router provides provider-level routing strategies for cc-relay.
vinfo
Package vinfo provides version information for cc-relay.
Package vinfo provides version information for cc-relay.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL