About this project

CLIProxyAPI is a local proxy server designed for AI coding CLI tools. It exposes OpenAI-compatible, Gemini-compatible, Claude-compatible, and Grok-compatible API endpoints so existing CLI clients and SDKs can access a variety of backend providers without needing native integrations for each one. Supported providers mentioned in the README include Kimi series models from Moonshot AI, OpenAI GPT series models, Anthropic Claude series models, Google Gemini/Antigravity models, and xAI Grok series models. Access is typically done through OAuth login for services such as Claude Code, OpenAI Codex, Gemini/AI Studio, and Grok Build, rather than requiring separate API keys. Key features listed in the README: - OpenAI/Gemini/Claude/Grok-compatible API endpoints for CLI models - OpenAI Codex support via OAuth login - Claude Code support via OAuth login - Grok Build support via OAuth login - Streaming, non-streaming, and WebSocket responses where supported - Function calling / tools support - Multimodal input support for text and images - Multiple accounts with round-robin load balancing for Gemini, OpenAI, Claude, and Grok - CLI authentication flows for Gemini, OpenAI, Claude, and Grok - Generative Language API Key support - AI Studio Build multi-account load balancing - Claude Code multi-account load balancing - OpenAI Codex multi-account load balancing - Grok Build multi-account load balancing - OpenAI-compatible upstream providers via configuration, such as OpenRouter - Reusable Go SDK for embedding the proxy The project also provides a management API, with documentation referenced in the repository. Since v6.10.0, built-in usage statistics are no longer shipped; separate community tools such as CPA Usage Keeper and CPA-Manager-Plus provide persistence, dashboards, request monitoring, cost estimation, and quota inspection. The repository includes SDK documentation covering usage, advanced executors and translators, access control, watchers, and a custom provider example. The README also lists a substantial ecosystem of community projects built on CLIProxyAPI, including desktop GUI wrappers, macOS menu bar quota monitors, Windows tray utilities, VS Code extensions, web administration dashboards, MCP servers, and multi-agent orchestration tools.