A CLI wrapper that serves Google Gemini models through an OpenAI-compatible API for easy integration with existing tools.
Gemini CLI wrapper to serve Gemini models through an OpenAI-compatible API
Expose Gemini CLI endpoints as OpenAI API with Cloudflare Workers
Gemini CLI to API Proxy is a FastAPI-based server that converts the Gemini CLI tool into standard API endpoints. It enables developers to use Google's free Gemini API quota through familiar OpenAI API interfaces or direct Gemini API calls, making it simple to integrate Gemini capabilities into existing applications. ## Key Features - **OpenAI-Compatible API** — Drop-in replacement for OpenAI's chat completions API, allowing seamless integration with tools expecting OpenAI's format. - **Native Gemini API** — Direct proxy to Google's Gemini API, supporting all its endpoints and features. - **Streaming Support** — Real-time streaming responses for both API formats, enabling interactive applications. - **Multimodal Support** — Handles text and image inputs, leveraging Gemini's multimodal capabilities. - **Authentication Flexibility** — Supports multiple auth methods including Bearer tokens, Basic auth, query parameters, and Google API headers. - **Model Variants** — Automatically creates model variants with Google Search grounding and thinking/reasoning controls. - **Docker Ready** — Containerized for easy deployment and includes Hugging Face Spaces compatibility. ## Philosophy The project aims to bridge the gap between Google's Gemini CLI and the broader ecosystem of AI tools by providing a standardized, easy-to-deploy API layer that maintains compatibility with popular interfaces.
Gemini-CLI-Termux is an automated deployment tool designed specifically for the Android Termux environment. It enables users to easily run a reverse proxy service for Google's Gemini AI models on their mobile devices, providing OpenAI-compatible API endpoints. This makes advanced AI capabilities accessible directly from a smartphone, turning it into a local API server. ## Key Features - **One-Click Deployment** — Single command installs and configures the entire service with an interactive menu. - **OpenAI-Compatible API** — Provides `/v1/chat/completions` and `/v1/models` endpoints for seamless integration with existing tools. - **Full Gemini Model Support** — Supports Gemini 3.1 Pro, 3 Pro, 3 Flash, 2.5 Pro, and 2.5 Flash series, including search-enhanced and thinking variants. - **Multiple Authentication Methods** — Includes HTTP Basic Auth, Bearer Token, API Key query parameter, and Google API Key header support. - **LAN Accessibility** — Configurable to allow network listening, enabling other devices on the same network to use the API. - **Interactive Management Menu** — Visual interface for service control, configuration changes, and system maintenance without command-line expertise. ## Philosophy The project prioritizes mobile-first, zero-friction deployment, bringing powerful AI API hosting to Android devices through a simplified, menu-driven experience.
Wrap Gemini CLI as an OpenAI-compatible API service, allowing you to enjoy the free Gemini Pro model through API!
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.