# su-kaka/gcli2api

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/su-kaka-gcli2api).**

3,856 stars · 1,153 forks · Python · other

## Links

- GitHub: https://github.com/su-kaka/gcli2api
- awesome-repositories: https://awesome-repositories.com/repository/su-kaka-gcli2api.md

## Topics

`antigravity-ide` `antigravity2api` `claude` `claude-api` `claude-code` `gemini` `gemini-ai` `gemini-api` `gemini-pro`

## Description

This project is an AI API gateway and proxy that translates and normalizes requests between different AI model formats to ensure compatibility across client applications. It functions as a middleware service that can transform local command-line binaries into web services, allowing them to be triggered via HTTP requests.

The system is distinguished by its ability to route multimodal text and image inputs and extract internal reasoning chains from model outputs to separate the chain of thought from the final answer. It includes an authentication manager that automatically cycles through multiple OAuth tokens to distribute request load and bypass rate limits.

The capability surface covers credential health tracking, real-time log streaming via WebSockets, and a web administration console for bulk credential management. Data persistence is handled through a pluggable backend supporting either local SQLite or distributed MongoDB instances.

The application can be deployed using Docker container images or through automation for mobile terminal environments via Termux.

## Tags

### Artificial Intelligence & ML

- [AI API Gateways](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-api-gateways.md) — Functions as an AI API gateway that translates and normalizes requests between different model formats.
- [AI Gateways](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-gateways.md) — Provides a multimodal gateway for routing text and image data and extracting reasoning chains.
- [API Format Standardizers](https://awesome-repositories.com/f/artificial-intelligence-ml/llm-api-connectors/api-format-standardizers.md) — Translates diverse LLM API specifications into a standardized format to ensure compatibility across clients. ([source](https://github.com/su-kaka/gcli2api/blob/master/README.md))
- [Multimodal Processing](https://awesome-repositories.com/f/artificial-intelligence-ml/multimodal-processing.md) — Integrates text and image modalities within a unified interface for AI model processing. ([source](https://github.com/su-kaka/gcli2api/blob/master/README.md))
- [Unified Multimodal APIs](https://awesome-repositories.com/f/artificial-intelligence-ml/unified-multimodal-apis.md) — Provides a unified API interface for processing combined text and image inputs for visual analysis.
- [Streaming Chat Responses](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-chat-clients/streaming-chat-responses.md) — Delivers AI-generated text to clients incrementally with anti-truncation logic for real-time interaction. ([source](https://github.com/su-kaka/gcli2api/blob/master/README.md))
- [Vision Model Inputs](https://awesome-repositories.com/f/artificial-intelligence-ml/computer-vision-systems/computer-vision/image-classification-models/vision-model-inputs.md) — Intercepts and routes text and image data to enable visual analysis via vision-capable language models. ([source](https://github.com/su-kaka/gcli2api/blob/master/docs/README_EN.md))
- [Reasoning Chain Parsers](https://awesome-repositories.com/f/artificial-intelligence-ml/reasoning-models/reasoning-pipelines/reasoning-chain-parsers.md) — Parses and separates a model's internal chain of thought from the final answer in API responses. ([source](https://github.com/su-kaka/gcli2api/blob/master/README.md))

### Networking & Communication

- [Dual-Format Request Proxies](https://awesome-repositories.com/f/networking-communication/model-request-proxies/dual-format-request-proxies.md) — Provides a proxy that accepts multiple AI API formats and translates them for various backend model providers. ([source](https://github.com/su-kaka/gcli2api/blob/master/web.py))
- [AI Provider Proxies](https://awesome-repositories.com/f/networking-communication/api-proxies/ai-provider-proxies.md) — Proxies traffic to AI providers while normalizing request structures for cross-model compatibility.

### Data & Databases

- [Provider-Agnostic Request Normalization](https://awesome-repositories.com/f/data-databases/data-format-converters/trace-format-normalization/provider-agnostic-request-normalization.md) — Normalizes internal request formats into provider-specific structures to maintain compatibility across different AI models. ([source](https://github.com/su-kaka/gcli2api/blob/master/docs/README_EN.md))

### Development Tools & Productivity

- [HTTP](https://awesome-repositories.com/f/development-tools-productivity/cli-wrappers/cli-wrappers/http.md) — Transforms local command-line binaries into web services triggered via HTTP requests.
- [HTTP Service Wrappers](https://awesome-repositories.com/f/development-tools-productivity/cli-wrappers/http-service-wrappers.md) — Transforms local command-line binaries into web services with standardized request and response formats.

### DevOps & Infrastructure

- [API Key Rotation](https://awesome-repositories.com/f/devops-infrastructure/load-balancing/api-key-rotation.md) — Distributes request load across a pool of authentication keys to automatically bypass provider rate limits.

### Security & Cryptography

- [API Credential Managers](https://awesome-repositories.com/f/security-cryptography/api-credential-managers.md) — Centralizes the storage and lifecycle management of authentication tokens required for external AI services. ([source](https://github.com/su-kaka/gcli2api/blob/master/web.py))
- [Token Load Balancers](https://awesome-repositories.com/f/security-cryptography/oauth-authentication/token-load-balancers.md) — Rotates multiple OAuth tokens automatically to distribute request load and ensure stability through redundancy. ([source](https://github.com/su-kaka/gcli2api/blob/master/README.md))
- [Credential Rotators](https://awesome-repositories.com/f/security-cryptography/automated-secret-rotation/credential-rotators.md) — Automatically cycles through OAuth tokens to distribute request load and bypass rate limits.

### Web Development

- [Command-to-API Mapping](https://awesome-repositories.com/f/web-development/request-routing/command-to-api-mapping.md) — Implements logic that maps incoming HTTP requests to local command-line binaries for AI service execution. ([source](https://github.com/su-kaka/gcli2api/blob/master/pyproject.toml))
- [Binary-to-HTTP Wrappers](https://awesome-repositories.com/f/web-development/request-routing/command-to-api-mapping/binary-to-http-wrappers.md) — Transforms local command-line binaries into web services that can be triggered via HTTP requests.
- [Incremental Content Streaming](https://awesome-repositories.com/f/web-development/streaming-rendering/incremental-content-streaming.md) — Sends model responses incrementally using a chunked transfer mechanism for real-time UI updates.

### System Administration & Monitoring

- [Log Streaming](https://awesome-repositories.com/f/system-administration-monitoring/log-streaming.md) — Streams system logs in real-time via WebSockets to a web administration console. ([source](https://github.com/su-kaka/gcli2api/blob/master/README.md))
