CLIProxyAPI
CLIProxyAPI is the engine behind everything else on this deck. It wraps several
vendor coding CLIs — Gemini CLI, ChatGPT Codex, Claude Code, and
Qwen — and exposes them through one OpenAI/Gemini/Claude-compatible HTTP API
on http://127.0.0.1:8317/v1.
Why it exists
Each vendor ships its own CLI, its own auth, and its own quotas. CLIProxyAPI unifies them so any OpenAI-compatible client can route to whichever backend is healthy and has budget left.
What it does
- Unified API surface — OpenAI/Gemini/Claude-shaped endpoints over local CLIs.
- Account pooling — manage many OAuth accounts per provider.
- Automatic token rotation & re-login — detects dead/suspect sessions and re-authenticates without manual babysitting.
- Health probing — every backend is checked before requests are routed.
Stack
Python, OAuth flows per provider, local HTTP server, a large account-lifecycle toolkit (inventory, relogin, drain, audit).