AI coding tools do not all speak the same API shape. Claude Code commonly uses an Anthropic-compatible endpoint, while Codex CLI commonly uses an OpenAI-compatible endpoint. ccg-router accepts both shapes on one local daemon.
/v1/messages/v1/chat/completionsexport ANTHROPIC_BASE_URL=http://127.0.0.1:17180
export OPENAI_BASE_URL=http://127.0.0.1:17180
Both environment variables point to the same local router. The router uses request path and configured upstream protocol to keep the wire format consistent.
The config supports prefer-cheaper, prefer-capable, and round-robin. For early local testing, prefer-cheaper is a simple default. For comparing multiple compatible providers, round-robin is useful.
ccg-router does not provide a hosted control plane. Provider keys stay in your local config or environment variables. The usage ledger stores request metadata, not API keys and not prompts.
Use ccg-router when you want one local LLM router for AI coding CLI workflows and you need both OpenAI-compatible and Anthropic-compatible endpoints.