su-kaka/gcli2api
将 GeminiCLI 和 Antigravity 转换为 OpenAI 、GEMINI 和 Claude API 接口
What it solves
This project provides a bridge between GeminiCLI/Antigravity and various AI API standards. It allows users to access Gemini and Antigravity models through interfaces compatible with OpenAI, Gemini native, and Claude API formats, effectively turning these tools into a versatile API gateway.
How it works
The software acts as a proxy server that converts incoming API requests into a format the backend (GeminiCLI or Antigravity) can process. It supports multiple authentication methods (Bearer Token, x-goog-api-key, etc.) and provides a comprehensive management system for Google OAuth credentials, including automatic rotation, load balancing, and health monitoring to ensure stability and bypass quota limits.
Who it’s for
Developers and AI enthusiasts who want to use Gemini or Antigravity models within existing applications or clients that only support OpenAI, Claude, or Gemini native API formats, as well as those managing multiple Google accounts for higher throughput.
Highlights
- Multi-Format Compatibility: Supports OpenAI, Gemini native, and Claude API endpoints and formats.
- Intelligent Credential Management: Features automatic rotation of multiple Google OAuth credentials with fault detection and quota management.
- Intelligence-Specific Features: Supports "Thinking" models with separated reasoning content and an "anti-truncation" mode to ensure complete responses.
- Full-Featured Web Console: Includes a web interface for managing OAuth flows, uploading credentials in bulk, and monitoring system logs in real-time.
- Flexible Storage: Supports both local SQLite for simple setups and MongoDB for distributed, multi-instance deployments.
Related
- Project
- Project
- Project
- Project
- Project