CLI Proxy API
A self-hosted proxy server that exposes OpenAI/Gemini/Claude/Codex/Grok compatible API endpoints for CLI-based AI models, enabling multi-account load balancing without API keys.
At a Glance
Fully free and open-source under the MIT License. Self-host and use without cost.
Engagement
Available On
Listed Jul 2026
About CLI Proxy API
CLIProxyAPI is an open-source Go proxy server that wraps CLI-based AI tools — including ChatGPT Codex, Claude Code, Grok Build, and Google Antigravity — and exposes them as standard OpenAI, Gemini, or Claude-compatible API endpoints. It is maintained by the Router-For.ME organization on GitHub and licensed under the MIT License. The project has accumulated over 43,000 stars and 6,800 forks since its creation in mid-2025, signaling strong community adoption.
What It Is
CLIProxyAPI sits between any OpenAI-compatible client or SDK and the underlying CLI-based AI providers. Instead of requiring paid API keys, it authenticates via OAuth login flows for providers like Claude Code, OpenAI Codex, Grok Build, and Google Gemini, then translates requests into the appropriate format. The result is a locally running proxy that any tool expecting an OpenAI, Gemini, or Claude API can point to — including coding assistants, agent frameworks, and custom applications.
Supported Providers
The proxy supports a growing list of frontier model providers:
- Kimi — Kimi K2.7 Code and K2.6 series, via OAuth or compatible API; also supports the Kimi Open Platform API key
- OpenAI — GPT 5.6, GPT 5.5, and other GPT series models via Codex OAuth login
- Anthropic Claude — Claude Fable, Opus, Sonnet, and other Claude series via Claude Code OAuth
- Google Gemini — Gemini 3.5 Flash, Gemini 3.1 Pro, and others via Antigravity/AI Studio OAuth; also supports Generative Language API keys
- xAI Grok — Grok 4.5, Grok Composer 2.5 Fast, and others via Grok Build OAuth
Core Capabilities
- Streaming, non-streaming, and WebSocket response modes where supported by the provider
- Function calling / tools support and multimodal input (text and images)
- Multiple accounts per provider with round-robin load balancing
- OpenAI-compatible upstream provider passthrough via config (e.g., OpenRouter)
- Management API for programmatic control
- Reusable Go SDK for embedding the proxy in other applications
- Usage statistics via companion tools (CPA Usage Keeper, CPA-Manager-Plus) since built-in stats were removed in v6.10.0
Ecosystem and Downstream Projects
CLIProxyAPI has spawned a notable ecosystem of downstream tools that use it as a backend:
- vibeproxy — native macOS menu bar app for Claude Code and ChatGPT subscriptions
- ProxyPilot — Windows-native fork with TUI and system tray
- Quotio / Quotio Desktop — cross-platform quota tracking and auto-failover for AI coding tools
- Universal Chat Provider — VS Code extension bringing subscriptions into GitHub Copilot Chat
- ZeroLimit — Windows desktop app for monitoring AI coding assistant quotas
- Panopticon — multi-agent orchestration using CLIProxyAPI as a local sidecar
- Grok Search MCP — MCP server using CLIProxyAPI for Grok-powered real-time web search
Update: v7.2.88
The latest release is v7.2.88, published on July 18, 2026, reflecting active and rapid development. The project has been continuously updated since its July 2025 creation, with the repository showing daily pushes. The removal of built-in usage statistics in v6.10.0 shifted that responsibility to standalone companion tools, and the SDK layer (introduced with dedicated docs for usage, advanced executors, access, and watcher patterns) signals a move toward CLIProxyAPI being embedded as a library in other projects rather than used only as a standalone binary.
Architecture and Deployment
CLIProxyAPI is written in Go and distributed as a self-hosted binary. Users run it locally or on a server, authenticate with their existing AI provider subscriptions via OAuth, and then point any compatible client at the local endpoint. Configuration supports multiple accounts per provider, custom upstream providers, and a Management API for automation. Documentation is hosted at help.router-for.me, and the project accepts contributions via standard GitHub pull requests.
Community Discussions
Be the first to start a conversation about CLI Proxy API
Share your experience with CLI Proxy API, ask questions, or help others learn from your insights.
Pricing
Open Source
Fully free and open-source under the MIT License. Self-host and use without cost.
- OpenAI/Gemini/Claude/Grok compatible API endpoints
- Multi-account load balancing
- OAuth login flows
- Streaming and non-streaming responses
- Function calling support
Capabilities
Key Features
- OpenAI/Gemini/Claude/Grok compatible API endpoints
- OAuth login for Claude Code, Codex, Grok Build, Gemini
- Multi-account round-robin load balancing
- Streaming, non-streaming, and WebSocket responses
- Function calling and tools support
- Multimodal input (text and images)
- OpenAI-compatible upstream provider passthrough
- Management API
- Reusable Go SDK for embedding
- Generative Language API Key support
- AI Studio Build multi-account load balancing
