About this project

CCProxy is a local reverse proxy designed to unify access to various AI providers behind a consistent API. It allows users to leverage existing subscriptions (via OAuth2 or local token files) without relying on separate API key billing. The proxy maps different providers to a shared model-mapping layer, enabling the use of consistent model identifiers across OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages interfaces. Key supported providers include: - Anthropic Claude (API/SDK) - OpenAI Codex - GitHub Copilot The system is highly extensible through a plugin architecture. Bundled plugins provide a wide range of capabilities, including: - Instrumentation: Prometheus-compatible metrics, structured access logging, and detailed request/response tracing. - Analytics: DuckDB-backed storage and analytics APIs for request logs. - Management: A dashboard SPA, credential rotation via a balancer, and interactive permission flows for privileged actions. - Utility: Max token normalization, pricing data caching, and command replay for generating curl/xh requests. Configuration can be managed via TOML files or environment variables, allowing users to enable or disable specific plugins and customize their behavior.