CLIProxyAPI
Wrap Gemini CLI, Antigravity, ChatGPT Codex, Claude Code, Qwen Code, iFlow as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini 2.5 Pro, GPT 5, Claude, Qwen model through API
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Note: Fetching the official GitHub repository failed this time. The content below is based on existing knowledge of the project, and only includes information that is reasonably certain. For specific features, supported providers, and configuration methods, please refer to the repository README.
Introduction
CLIProxyAPI is maintained by the GitHub organization router-for-me. It is an open-source API proxy service. Its purpose is to take the account capabilities that various AI command-line tools (such as Google Gemini CLI, OpenAI Codex, and Anthropic Claude Code) obtain through OAuth login and convert them into a general-purpose HTTP API. This way, clients, editor plugins, and development tools that support the OpenAI, Gemini, or Claude API formats can connect to it directly.
Key Features
- Compatibility with multiple API formats: Exposes interfaces in common formats such as OpenAI, Gemini, and Claude, so existing tools can connect with little or no code change.
- OAuth account access: Authorizes accounts through the OAuth login flow of the CLI tools, so you don't need to apply for a separate paid API key.
- Multi-account load balancing: You can add multiple accounts, and requests are distributed among them in rotation to increase available quota and improve stability.
- Streaming and non-streaming responses: Supports streaming output, suitable for chat-style clients.
- Function calling and multimodal input: When the upstream model supports it, tool calls, images, and other inputs can be forwarded.
- Configuration file management: Ports, access keys, accounts, and other parameters are set through a YAML configuration file.
Target Users and Use Cases
- Developers who already subscribe to or use tools such as Gemini CLI, Codex, and Claude Code and want to reuse that quota in other clients
- Individuals or small teams who need a unified OpenAI-compatible interface to access multiple models
- Users who want to provide a local AI backend for IDE plugins, chat front ends, and automation scripts
Core Advantages
- One service provides unified access to multiple models, saving the work of adapting to each one separately
- Written in Go and compiled into a single binary, with low resource usage and simple deployment
- Open source and self-hostable, so data requests go through your own server
Installation and Deployment
- Prebuilt binaries: Download the program for your platform from GitHub Releases, set up
config.yaml, and run it. - Docker: The project provides a Docker deployment option, suitable for running long-term on a server.
- Build from source: After installing a Go environment, clone the repository and compile it yourself.
Once deployed, first run the relevant login command according to the documentation to complete OAuth authorization, then point your client's API address to this service.
Notes
- Forwarding calls through CLI account quota may be subject to each provider's terms of use. Please confirm compliance yourself before using it.
- The capabilities and quota of the upstream models are determined by each provider. The proxy itself does not provide models.
Discover more
Atheos
Web-based IDE framework with a small footprint and minimal requirements, continued from Codiad.
Bencher
Suite of continuous benchmarking tools designed to catch performance regressions in CI.
Bruno
Opensource IDE For Exploring and Testing API's (lightweight alternative to Postman/Insomnia)
Featbit
Enterprise-grade feature flag platform that you can self-host.
Forgejo
A lightweight software forge focused on scaling, federation, and privacy (fork of Gitea).
GO Feature Flag
Simple, complete, and lightweight feature flag solution (alternative to LaunchDarkly).