CLIProxyAPI is an open-source proxy server that provides OpenAI/Gemini/Claude/Codex compatible API interfaces for CLI, enabling seamless integration of various AI models into command-line applications.
Source: README View on GitHub →CLIProxyAPI is gaining attention due to its ability to integrate multiple AI models like OpenAI Codex, Claude Code, and Gemini into a single API, simplifying the process of using these models in command-line applications. Its support for OAuth and multi-account load balancing, along with its extensive documentation and SDK, make it a compelling choice for developers looking to leverage AI in their CLI tools.
Source: README, OverviewCLIProxyAPI acts as a proxy server, providing a unified API interface for various AI models, allowing developers to interact with multiple AI services using a single endpoint.
Source: README, OverviewThe project supports OAuth for OpenAI Codex and Claude Code, enabling secure and scalable access to these services.
Source: README, OverviewCLIProxyAPI supports round-robin load balancing across multiple accounts for Gemini, OpenAI, Claude, and Codex, ensuring efficient utilization of resources and high availability.
Source: README, OverviewThe project includes integrated support for Amp CLI and IDE extensions, allowing users to leverage their Google/ChatGPT/Claude OAuth subscriptions with Amp's coding tools.
Source: README, OverviewThe architecture of CLIProxyAPI is modular, with clear separation of concerns. It uses a proxy server design pattern to route requests to the appropriate AI service based on the requested model. Key technical decisions include the use of OAuth for authentication, WebSocket for real-time communication, and a Go SDK for embedding the proxy into other applications.
Source: Code tree + dependency filesCenter: project; inner ring: core feature modules; outer ring: key dependencies. Auto-generated from core_features and tech_stack.key_deps.
gin-gonic/gingorilla/websocketminio/minio-go/v7sirupsen/logrusCLIProxyAPI is suitable for developers who need to integrate AI capabilities into their command-line tools. It is useful in scenarios such as building AI-powered command-line applications, creating automation scripts that interact with AI services, and developing tools for managing and monitoring AI resources.
Source: READMEv7.0.4 (2026-05-12): Improved unauthorized error handling for refresh and auto-refresh.
Source: GitHub ReleasesCLIProxyAPI is a valuable tool for developers looking to integrate AI models into their command-line applications. Its comprehensive support for various AI services, robust OAuth and multi-account features, and extensive documentation make it a compelling choice for those seeking to leverage AI in their CLI tools. It is particularly well-suited for teams or individuals developing automation scripts or AI-powered command-line applications.
Source: Synthesis