CLI Proxy API is a proxy server designed to provide OpenAI/Gemini/Claude compatible API interfaces for command-line tools (CLI). It supports access to OpenAI Codex (GPT models), Claude Code, and Qwen Code via OAuth authentication. This software enables seamless local or multi-account CLI access using OpenAI-compatible clients and SDKs.
Key Features:
OpenAI/Gemini/Claude compatible API endpoints for CLI tools.
Support for OpenAI Codex (GPT models) and Claude Code via OAuth login.
Integration with Qwen Code, the first Chinese provider supported by the software.
Streaming and non-streaming response options.
Function calling and multimodal input support (text and images).
Multi-account load balancing across Gemini, OpenAI, Claude, and Qwen providers.
Audience & Benefit:
Ideal for developers, researchers, and enterprises seeking to integrate AI models into CLI tools or applications. Users benefit from unified access to multiple AI platforms through a single API interface, enabling efficient model switching, cost optimization via free tiers, and enhanced productivity through load balancing.
A proxy server that provides OpenAI/Gemini/Claude/Codex compatible API interfaces for CLI.
It now also supports OpenAI Codex (GPT models) and Claude Code via OAuth.
So you can use local or multi-account CLI access with OpenAI(include Responses)/Gemini/Claude-compatible clients and SDKs.
Sponsor
This project is sponsored by Z.ai, supporting us with their GLM CODING PLAN.
GLM CODING PLAN is a subscription service designed for AI coding, starting at just $3/month. It provides access to their flagship GLM-4.6 model across 10+ popular AI coding tools (Claude Code, Cline, Roo Code, etc.), offering developers top-tier, fast, and stable coding experiences.
CLIProxyAPI includes integrated support for and Amp IDE extensions, enabling you to use your Google/ChatGPT/Claude OAuth subscriptions with Amp's coding tools:
Browser-based tool to translate SRT subtitles using your Gemini subscription via CLIProxyAPI with automatic validation/error correction - no API keys needed
> [!NOTE]
> If you developed a project based on CLIProxyAPI, please open a PR to add it to this list.
License
This project is licensed under the MIT License - see the LICENSE file for details.