ccg-router

Route Claude Code to OpenAI-compatible APIs locally

ccg-router is a local-first router for developers who use Claude Code alongside OpenAI-compatible APIs and Codex CLI. It exposes Anthropic-compatible and OpenAI-compatible endpoints on one local daemon.

Local endpoint setup

ccg-router init
export ANTHROPIC_BASE_URL=http://127.0.0.1:17180
export OPENAI_BASE_URL=http://127.0.0.1:17180
ccg-router start

Why this page exists

Many users search for ways to connect Claude Code, OpenAI-compatible APIs, Anthropic-compatible APIs, and local usage tracking. ccg-router does not host keys or a control plane; it gives those tools one local routing layer.

Star ccg-router on GitHub