CLIProxyAPI
Route CLI model accounts through one compatible API gateway for existing developer tools.
- Source repo
- router-for-me/CLIProxyAPI
- Stars
- ★ 60k
- Last updated
- today v8.1.15
- FARS reviewed
- Nov 08, 2026 +35 new
- License
- MIT
- Primary language
- Go
- FA score
- 43/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code · OpenAI API · Claude API
- Cost
- Free software; you pay for model usage
- Models
- Kimi (Moonshot) per README Compare model cost & benchmarks →
- OS / editors
- VS Code per README
- Setup effort
- High · needs real infrastructure
- You'll need
- Typical use
- Developers who want an existing OpenAI-compatible client to use a Codex OAuth account can point it at the local proxy.
- Not a fit if
- Teams that only accept a hosted cloud service
- Users who need an API client with no configuration
- Maintenance
- Commits in the last 30 dayslast commit 2026-12-04latest release v8.1.15 (2026-12-04)+59.0 ★/day over 7 days
- Source review
- 43/100 · Major gaps
What does this agent do, and when should you use it?
CLIProxyAPI is a proxy server that exposes OpenAI-, Gemini-, Claude-, Codex-, and Grok-compatible interfaces for CLI models. OAuth login is documented for OpenAI Codex, Claude Code, and Grok Build, alongside Gemini-related APIs and Generative Language API keys. Users can configure multiple accounts and round-robin load balancing for Gemini, OpenAI, Claude, and Grok. The service supports streaming, non-streaming, and WebSocket responses where a channel allows them, plus function calling and text and image input. A reusable Go SDK is available for embedding the proxy; the README does not specify deployment commands or runtime requirements.
After starting the proxy, users authenticate through the CLI with Gemini, OpenAI, Claude, or Grok accounts, or configure Generative Language API keys and OpenAI-compatible upstreams. Clients send requests through OpenAI (including Responses), Gemini (including Interactions), or Claude-compatible interfaces, and the proxy routes them to the configured channel and available account. With multiple accounts configured, Gemini, OpenAI, Claude, and Grok support round-robin load balancing. The proxy returns streaming or non-streaming results and supports WebSocket responses where the channel permits; function calls and text and image inputs are also supported. Go developers can use the SDK documentation and custom provider example to embed the proxy in an application.
- Developers who want an existing OpenAI-compatible client to use a Codex OAuth account can point it at the local proxy.
- Teams using Claude Code can connect multiple Claude accounts through OAuth and enable load balancing.
- Developers who need one service endpoint for Gemini, OpenAI, Claude, and Grok CLI accounts can configure multi-account routing.
- Users handling AI Studio Build requests across multiple accounts can use the documented AI Studio Build load-balancing support.
- Go developers building an application can embed the proxy with the Go SDK and explore the custom provider example.
How do you install or deploy this agent?
The README does not provide an installation command, release download steps, required runtime version, or complete configuration example, so a copyable installation flow cannot be established from the supplied material. It identifies CLIProxyAPI as a proxy server and provides a Go SDK for embedding; the initial run command and credential setup steps are not specified.
How do you use this agent?
The README lists CLI authentication flows for Gemini, OpenAI, Claude, and Grok, and says Codex, Claude Code, and Grok Build can be accessed through OAuth login. It does not provide the actual login or server-start commands, listening address, client configuration sample, or a copyable API request. Once configured, supported clients can use the proxy through OpenAI (including Responses), Gemini (including Interactions), or Claude-compatible interfaces.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- Exposes OpenAI-, Gemini-, Claude-, Codex-, and Grok-compatible interfaces through one proxy service.
- Documents OAuth login for Codex, Claude Code, and Grok Build, as well as multi-account load balancing.
- Provides a Go SDK, a custom provider example, and streaming, non-streaming, and channel-dependent WebSocket responses.
- The supplied README omits installation commands, runtime versions, startup steps, and a complete configuration example, leaving deployment details unclear.
- Operation depends on reachable provider channels and their accounts, OAuth, or API keys; model availability varies by channel.
- The proxy must run as a service and handle client requests and upstream connections; offline operation and credential security details are not specified.
How does this agent compare with similar options?
The README recommends EasyCLIProxyAPI as a desktop client with a graphical configuration UI, automatic updates, system tray integration, and one-click start and stop; CLIProxyAPI itself is the proxy service. It also lists projects such as 9Router that are inspired by or ported from CLIProxyAPI, but provides no direct performance or feature evaluations.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| CLIProxyAPI This agent | 43 · Major gaps | Self-hosted serviceFree + model costs | ★ 60k | today | Go | Codex · Claude Code · OpenAI API · Claude API |
| SandBase CLI | 58 · Major gaps | — | ★ 184 | 12d ago | TypeScript | Codex · Claude Code |
| multi | 56 · Major gaps | — | ★ 26 | 2d ago | Shell | Codex · Claude Code · Claude API |
| Cyrus | 52 · Major gaps | CLIFreemium | ★ 925 | 1d ago | TypeScript | Codex · Claude Code · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
This is a locally run proxy for multiple upstreams. The packet lists configuration, OAuth/API credential directories, storage options, and upstream calls, but does not show server-side access controls, a complete credential-protection policy, or end-to-end data flows; least privilege, transparency, and sensitive-data handling therefore have only partial support. The SDK guide says management APIs require a configured secret and remote access must also be explicitly enabled, providing limited evidence of a confirmation gate. The packet does not adequately describe request side effects or revocation and recovery. The license and README name upstreams, but contributor guidance and licensing scope do not establish source attribution or maintainer identity clearly.
The README, SDK guide, and AGENTS.md partially corroborate the proxy and SDK architecture. However, the README describes Go-compatible APIs, AGENTS.md states Go 1.26+, and the SDK example imports an internal package, leaving the ordinary external-use path unclear. go.mod lists many dependencies but the packet contains no security review or availability evidence. The shown model-fetch commands provide concrete errors, statuses, and warnings, so failure messages are relatively well handled; no execution evidence is available, and no runtime result is inferred.
The README addresses CLI, SDK, and multiple compatible clients, and lists OAuth, multiple accounts, streaming, tool calling, and multimodal scenarios. The SDK guide shows extension points for middleware, routes, logging, and credential loaders. Capability boundaries are only mentioned piecemeal, such as channel-dependent availability and response modes supported where available, rather than documented systematically. Config files, environment variables, command-line flags, and an embedding API offer some environment fit, but installation and deployment steps in this packet mostly point to an external guide.
The README is divided into overview, getting started, usage statistics, and SDK documentation; English and Chinese SDK guides and code examples are present, but no FAQ is shown. LICENSE provides MIT terms, though its copyright-year formatting is anomalous, so it earns partial credit. The README, Go module v8, and SDK guide's v6 import path have inconsistent version naming. AGENTS.md documents architecture, configuration, and contribution conventions, but is contributor guidance and cannot substitute for user documentation. The packet does not identify a clear maintainer or update path; the repository address and contribution instructions provide only limited accountability evidence.
The product unifies multiple model providers behind compatible APIs and offers multi-account routing and an embeddable Go SDK. These capabilities have concrete use cases and code examples, supporting useful outputs and meaningful marginal value. Cost-benefit guidance is weak: the README devotes substantial space to sponsors, referral links, and pricing claims, while the packet gives no deployment costs, resource requirements, or cost accounting.
The README makes broad feature claims, and the SDK guide and source excerpts provide partial support for some capabilities and model-fetch paths. The packet lacks enough tests or configuration material for robust cross-source corroboration; sponsor and model-description claims are not independently supported by the provided evidence. Documentation does not consistently distinguish supported facts, channel-dependent behavior, and promotional claims, so claim traceability and fact-inference separation receive partial scores.
- The service handles upstream OAuth/API credentials and forwards requests. Before deployment, check bind addresses, management API secrets, remote-access settings, and how credentials and request data are stored and logged.
- The packet has inconsistent version paths (module v8 versus SDK documentation v6) and anomalous copyright-year formatting in LICENSE; verify the applicable SDK version and license text before adoption or redistribution.
- The README contains extensive sponsor and referral promotions. Treat its pricing, model-capability, and service-quality statements as unverified by this evidence packet.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
<!-- cliproxyapi-linux-release-assets:start --> Linux release assets - CLIProxyAPI_<version>_linux_<arch>.tar.gz is the default Linux build. It supports dynamic library plugins and is built against a GLIBC 2.17 baseline. - CLIProxyAPI_<version>_linux_<arch>_no-plugin.tar.gz is the portable Linux build for musl-based or older systems such as OpenWrt. It does not support dynamic library plugins. FreeBSD release assets - CLIProxyAPI_<version>_freebsd_aarch64_no-plugin.tar.gz is the FreeBSD arm64 build. It is built without CGO and does not support dynamic library plugins. …View on GitHub ↗ -
Release notes excerpt
<!-- cliproxyapi-linux-release-assets:start --> Linux release assets - CLIProxyAPI_<version>_linux_<arch>.tar.gz is the default Linux build. It supports dynamic library plugins and is built against a GLIBC 2.17 baseline. - CLIProxyAPI_<version>_linux_<arch>_no-plugin.tar.gz is the portable Linux build for musl-based or older systems such as OpenWrt. It does not support dynamic library plugins. FreeBSD release assets - CLIProxyAPI_<version>_freebsd_aarch64_no-plugin.tar.gz is the FreeBSD arm64 build. It is built without CGO and does not support dynamic library plugins. …View on GitHub ↗ -
Release notes excerpt
<!-- cliproxyapi-linux-release-assets:start --> Linux release assets - CLIProxyAPI_<version>_linux_<arch>.tar.gz is the default Linux build. It supports dynamic library plugins and is built against a GLIBC 2.17 baseline. - CLIProxyAPI_<version>_linux_<arch>_no-plugin.tar.gz is the portable Linux build for musl-based or older systems such as OpenWrt. It does not support dynamic library plugins. FreeBSD release assets - CLIProxyAPI_<version>_freebsd_aarch64_no-plugin.tar.gz is the FreeBSD arm64 build. It is built without CGO and does not support dynamic library plugins. …View on GitHub ↗
FAQ
Does the software itself cost money?
Can I use ChatGPT, Claude Code, or another client with it?
Can it spread requests across multiple accounts?
What commands or runtime do I need for a first deployment?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.