Overview of CLI Proxy API
mainCLI Proxy API is a proxy server that provides OpenAI, Gemini, Claude, Codex, and Grok compatible API interfaces specifically designed for CLI tools.
Key capabilities include:
- Compatibility: Provides endpoints compatible with OpenAI, Gemini, Claude, and Grok, allowing you to use local or multi-account CLI access with standard OpenAI/Gemini/Claude compatible clients and SDKs.
- OAuth Support: Supports OpenAI Codex (GPT models), Claude Code, and Grok Build via OAuth login.
- Advanced Features: Supports streaming, non-streaming, and WebSocket responses (where supported), function calling/tools, and multimodal inputs (text and images).
- Load Balancing: Implements round-robin load balancing for multiple accounts across Gemini, OpenAI, Claude, and Grok.
- Extensibility: Supports Generative Language API keys, AI Studio build multi-account load balancing, and allows configuring OpenAI-compatible upstream providers (e.g., OpenRouter).
- SDK: Provides a reusable Go SDK for embedding the proxy.