CLIProxyAPI is an open-source Go proxy server that turns local AI CLI account flows into OpenAI-, Gemini-, Claude-, Codex-, and Grok-compatible API endpoints. The project is aimed at developers who want a self-hosted routing layer around tools such as Gemini CLI, Claude Code, OpenAI Codex, Grok Build, Amp CLI, and IDE extensions, with support for streaming responses, tool/function calling, multimodal input where supported, and round-robin account selection.
The practical fit is internal experimentation, local agent infrastructure, and cost-control workflows where a team already understands the account and provider policies behind the CLIs being proxied. Its repository and docs describe Docker deployment, a management API, OAuth login flows, configurable upstream providers, and a Go SDK for embedding the routing/authentication layer in another service.
The risk profile is higher than a normal vendor SDK. CLIProxyAPI can handle OAuth sessions, local auth files, multi-account routing, and third-party relay/sponsor paths, so teams should verify provider terms of service, credential storage, logs, network exposure, and compliance requirements before using it in production. Treat it as a self-hosted proxy/routing utility rather than a guaranteed free or officially endorsed model-access plan.