CLIProxyAPI

Route CLI model accounts through one compatible API gateway for existing developer tools.

Stars
★ 60k
Last updated
today v8.1.15
FARS reviewed
Nov 08, 2026 +35 new
License
MIT
Primary language
Go

At a glance

How it runs
Self-hosted serviceLibrary / SDK
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
Shell / CLINetwork accessLocal filesystem
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

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.

  1. Developers who want an existing OpenAI-compatible client to use a Codex OAuth account can point it at the local proxy.
  2. Teams using Claude Code can connect multiple Claude accounts through OAuth and enable load balancing.
  3. Developers who need one service endpoint for Gemini, OpenAI, Claude, and Grok CLI accounts can configure multi-account routing.
  4. Users handling AI Studio Build requests across multiple accounts can use the documented AI Studio Build load-balancing support.
  5. 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • 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.
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Major gaps
43/ 100 5-point scale 2.2 / 5
This review covers the source as of Nov 08, 2026. The project has shipped 35 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 10/29
Reliability 6/14
Adaptability 9/18
Convention 8/18
Effectiveness 7/13
Verifiability 3/8
Why each dimension lost points
Trust10 / 29 · 1.7/5

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.

Reliability6 / 14 · 2.1/5

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.

Adaptability9 / 18 · 2.5/5

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.

Convention8 / 18 · 2.2/5

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.

Effectiveness7 / 13 · 2.7/5

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.

Verifiability3 / 8 · 1.9/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 681ce41b6e44 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/cliproxyapi.svg)](https://followagents.com/en/agents/cliproxyapi)
<a href="https://followagents.com/en/agents/cliproxyapi"><img src="https://followagents.com/badge/cliproxyapi.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v8.1.15
    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 ↗
  2. v8.1.14
    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 ↗
  3. v8.1.13
    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?
The project is licensed under MIT. Model access still requires the relevant account or API credentials; the supplied material does not state provider-specific charges.
Can I use ChatGPT, Claude Code, or another client with it?
The README explicitly lists OpenAI (including Responses), Gemini (including Interactions), and Claude-compatible clients or SDKs, and documents OAuth support for Codex and Claude Code. Clients still need to be configured to reach the proxy.
Can it spread requests across multiple accounts?
Round-robin load balancing is listed for Gemini, OpenAI, Claude, and Grok multi-account setups. Available models depend on the account and channel.
What commands or runtime do I need for a first deployment?
The supplied material gives no install or startup commands, runtime version, or complete configuration example, so those deployment details are needed before following a runnable setup.
Was this page helpful?
View on GitHub ↗ Install ↓

Host ecosystems

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts