Back to catalog

ccproxy-api

by CaddyGlow

Pending

is a local reverse proxy providing unified access to multiple AI providers (Claude, Codex) through a single interface, using your existing subscriptions without API key billing.

164stars
27forks
Python
Added 12/27/2025
API Integrationanthropicanthropic-apiclaudeclaude-codecodexfastapiopenaipython
Installation
# Add to your Claude Code skills
git clone https://github.com/CaddyGlow/ccproxy-api
README.md

CCProxy API Server

CCProxy is a local, plugin-based reverse proxy that unifies access to multiple AI providers (e.g., Claude SDK/API and OpenAI Codex) behind a consistent API. It ships with bundled plugins for providers, logging, tracing, metrics, analytics, and more.

Supported Providers

  • Anthropic Claude API/SDK (OAuth2 flow or Claude CLI/SDK token files)
  • OpenAI Codex (ChatGPT backend Responses API using OAuth for paid/pro accounts)
  • GitHub Copilot (chat and completions for free, paid, or business accounts)

Each provider adapter exposes the same surface area: OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages. The proxy maintains a shared model-mapping layer so you can reuse the same model identifier across providers without rewriting client code.

Authentication can reuse existing provider files (e.g., Claude CLI SDK tokens and the Codex CLI credential store), or you can run ccproxy auth login <provider> to complete the OAuth flow from the CLI; stored secrets are picked up automatically by the proxy.

Extensibility

CCProxy's plugin system lets you add instrumentation and storage layers without patching the core server. Bundled plugins currently include:

  • access_log: structured access logging for client and provider traffic
  • analytics: DuckDB-backed analytics APIs for captured request logs
  • claude_api: Anthropic Claude HTTP API adapter with health and metrics
  • claude_sdk: local Claude CLI/SDK adapter with session pooling
  • codex: OpenAI Codex provider adapter with OAuth support
  • command_replay: generates curl/xh commands for captured requests
  • copilot: GitHub Copilot provider adapter with OAuth token management
  • credential_balancer: rotates upstream credentials based on health
  • dashboard: serves the CCProxy dashboard SPA and APIs
  • docker: runs providers inside Docker via CLI extensions
  • duckdb_storage: exposes DuckDB-backed storage for logs and analytics
  • max_tokens: normalizes max_tokens fields to provider limits
  • metrics: Prometheus-compatible metrics with optional Pushgateway
  • oauth_claude: standalone OAuth provider for Claude integrations
  • oauth_codex: standalone OAuth provider for Codex integrations
  • permissions: interactive approval flow for privileged tool actions
  • [pricing](ccproxy/p...