Runs a local server that translates OpenAI-, Gemini-, Claude-, and Codex-compatible clients to OAuth-backed CLI provider accounts.
Overview
CLIProxyAPI is a proxy server that presents OpenAI, Gemini, Claude, Codex, and Grok style HTTP APIs while routing requests to accounts logged in through various coding CLIs and related OAuth flows. Clients and SDKs can call familiar endpoints locally instead of wiring each vendor SDK separately.
Supported upstream channels include OpenAI Codex, Anthropic Claude Code, Google Gemini and Antigravity paths, xAI Grok Build, Meta Muse Code, Devin accounts, and configurable OpenRouter-style providers. Features cover streaming and non-streaming responses, tool or function calling, multimodal text and image input, WebSocket where supported, and round-robin load balancing across multiple logged-in accounts.
Authentication is handled through CLI login helpers for Gemini, OpenAI, Claude, Grok, and similar flows, plus API key style configuration where applicable. A reusable Go SDK can embed the proxy in other tools. An optional EasyCLIProxyAPI desktop client offers graphical configuration, tray control, and one-click service start for users who prefer not to manage the server from a terminal alone.
The project documents provider-specific model families and positions itself as a way to consume CLI entitlements through any compatible API client on your machine.
Key features
- OpenAI-compatible HTTP endpoints
- Gemini and Claude API compatibility
- OAuth CLI account logins
- Multi-account round-robin balancing
- Streaming and tool calling support
- Multimodal text and image input
- Upstream OpenRouter configuration
- Embeddable Go SDK
Use cases
- Pointing IDE plugins at local model APIs
- Sharing multiple CLI logins across clients
- Unified API for mixed model providers
- Local development without cloud keys only
- Embedding proxy logic in custom tools