CLIProxyAPI Lets Developers Route Gemini, Claude and GPT-5 Without Burning API Credits
CLIProxyAPI turns your Gemini, Claude, and Codex CLI subscriptions into a unified OpenAI-compatible API server with multi-account load balancing
Takeaways
- What it is: Open-source Go proxy that wraps Gemini CLI, Claude Code, Codex, and Antigravity into a unified OpenAI-compatible API server.
- Core value: Use your existing paid CLI subscriptions programmatically without paying separate API metered costs.
- Multi-account load balancing: Round-robin routing across multiple OAuth accounts to maximize throughput and avoid rate limits.
- Broad model support: Covers
gemini-3-pro-preview,gpt-5,claude-opus-4-1,deepseek-v3.2,kimi-k2, and more. - Ecosystem: 23k+ stars, 4k forks, and a growing set of community GUI apps (macOS, Windows, web dashboards) built on top of it.
- Key gotcha: OAuth tokens expire (Claude ~7 days), and multi-account rotation does not bypass upstream rate limits. GitHub repo
CLIProxyAPI is an open-source Go proxy server that does something deceptively simple: it takes the CLI tools you already have logins for -- Gemini CLI, Claude Code, ChatGPT Codex, Antigravity, Qwen Code -- and exposes them as standard OpenAI/Gemini/Claude-compatible HTTP endpoints. The result is that any tool that speaks the OpenAI protocol (Cursor, Cline, Continue, custom scripts) can now route through your existing subscriptions instead of burning separate API credits. The repo has crossed 23,000 stars and 4,000 forks, with 548 releases, signaling it has moved well past proof-of-concept into active production use.
The gap it fills
Most AI subscriptions give you generous usage through their native apps and CLIs, but the API is metered separately and often expensive. CLIProxyAPI bridges that gap by sitting between your application and the CLI tool, translating API requests into CLI invocations and streaming the responses back in OpenAI-compatible format.
The concrete friction it removes:
- Gemini CLI can log in with an account, but your program may prefer calling an HTTP API.
- Claude Code is excellent for interactive coding, but integrating it into other clients can run into protocol mismatches.
- Codex CLI supports OAuth login and Responses-style capabilities, but not every upper-layer tool knows how to talk to it.
The most valuable part of this kind of project is not that it supports a few more model names. It is that it packages account login, protocol translation, and request routing into one operational layer.
What it actually supports
CLIProxyAPI is a proxy server that provides OpenAI/Gemini/Claude/Codex/Grok compatible API interfaces for CLI. You can use local or multi-account CLI access with OpenAI (including Responses)/Gemini/Claude-compatible clients and SDKs. The full feature list includes: