aicoolies logo
CLIProxyAPI logo
CLIProxyAPI logo

CLIProxyAPI

Self-hosted proxy API for routing AI CLI accounts into OpenAI-compatible endpoints

open sourcetelemetry concernsverified Aug 26, 2026

CLIProxyAPI is an open-source Go proxy server that wraps Gemini CLI, Claude Code, OpenAI Codex, Grok Build, and related CLI account flows behind OpenAI/Gemini/Claude-compatible API endpoints. Use it carefully: it can touch OAuth sessions, auth files, logs, and provider account policies, so production use needs credential and ToS review.

Read our CLIProxyAPI review

A detailed review by the aicoolies team — click to read

CLIProxyAPI is an open-source Go proxy server that turns local AI CLI account flows into OpenAI-, Gemini-, Claude-, Codex-, and Grok-compatible API endpoints. The project is aimed at developers who want a self-hosted routing layer around tools such as Gemini CLI, Claude Code, OpenAI Codex, Grok Build, Amp CLI, and IDE extensions, with support for streaming responses, tool/function calling, multimodal input where supported, and round-robin account selection.

The practical fit is internal experimentation, local agent infrastructure, and cost-control workflows where a team already understands the account and provider policies behind the CLIs being proxied. Its repository and docs describe Docker deployment, a management API, OAuth login flows, configurable upstream providers, and a Go SDK for embedding the routing/authentication layer in another service.

The risk profile is higher than a normal vendor SDK. CLIProxyAPI can handle OAuth sessions, local auth files, multi-account routing, and third-party relay/sponsor paths, so teams should verify provider terms of service, credential storage, logs, network exposure, and compliance requirements before using it in production. Treat it as a self-hosted proxy/routing utility rather than a guaranteed free or officially endorsed model-access plan.

Pricing

CLIProxyAPI is 100% free and open-source software under the MIT license. It functions as a local translation proxy for developer CLI credentials with zero licensing cost; upstream AI provider subscription or API fees apply.

full pricing breakdown →

Platforms

Self-hosted Go/Docker server with configurable API endpoints, local auth storage, management API options, and a reusable Go SDK; intended for developers running AI CLI and agent workflows on their own infrastructure.

Categories

Tags

Use Cases

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

FAQ

What is CLIProxyAPI?

CLIProxyAPI is an open-source Go proxy server that wraps Gemini CLI, Claude Code, OpenAI Codex, Grok Build, and related CLI account flows behind OpenAI/Gemini/Claude-compatible API endpoints. Use it carefully: it can touch OAuth sessions, auth files, logs, and provider account policies, so production use needs credential and ToS review.

Is CLIProxyAPI free?

Yes — CLIProxyAPI is open source and free to use. CLIProxyAPI is 100% free and open-source software under the MIT license. It functions as a local translation proxy for developer CLI credentials with zero licensing cost; upstream AI provider subscription or API fees apply.

Is CLIProxyAPI open source?

Yes — CLIProxyAPI is open source.

Is CLIProxyAPI still maintained?

Yes — CLIProxyAPI is active. Its listing was last verified on August 26, 2026.

How does CLIProxyAPI score in our review?

The published editorial review lists CLIProxyAPI at 77/100 overall across speed, privacy, and developer experience. Check the review's evidence status and test metadata for its verification level.