justlovemaki/AIClient2API
Self-hosted multi-protocol AI API proxy for Antigravity, Codex, Grok, Kiro, OpenAI, Claude, and custom providers. Supports OpenAI-compatible API, Claude API, Gemini protocol conversion, GPT, Grok Build, Claude Opus, Gemini Pro, Kimi, MiniMax, provider pools, smart routing, and automatic failover.
What it solves
Many powerful AI models (like Gemini, Antigravity, Codex, Grok, and Kiro) are only available inside their official client apps, not through normal programming interfaces. That locks developers out of premium models such as Claude Opus or Gemini Pro unless they pay for separate API access. AIClient2API fixes this by acting as a proxy: it simulates the client's own request behavior and re-exposes these models as a standard OpenAI-compatible interface. Any application that can talk to the OpenAI API can then call these client-only models as if they were ordinary endpoints.
How it works
Built on Node.js (version 20 or newer), the proxy sits between your application and the client-only model services. It receives requests formatted as OpenAI API calls, converts them into the native protocol used by the target client (such as Antigravity, Codex, Grok, or Kiro), sends the request, and returns the response in a standard format. It automatically converts between three major protocols: OpenAI, Claude, and Gemini. The internals use a modular architecture based on strategy and adapter patterns, and include an account-pool manager that rotates multiple accounts, does intelligent polling, performs automatic failover when an account or provider fails, and runs health checks to keep availability high (the README claims 99.9% service availability). Configuration is centralized in a configs/ directory, deployment is available through Docker, and a web-based admin console handles real-time configuration and health monitoring. Recent versions also expose 50+ API endpoints with structured JSON, plus self-discovery endpoints (/api/help and /api/example) that let AI agents learn how to use the service automatically.
Who it's for
Developers, hobbyists, and AI-tool users who want to reach premium or client-restricted models (Claude Opus, Gemini Pro, Grok, and others) from their own applications or AI agents. It is aimed at users of tools like Cherry-Studio, NextChat, and Cline who want these models at scale, and at AI agents such as OpenClaw, Hermes, and Claude Code that need programmatic access. Some comfort with Node.js or Docker is helpful.
Highlights
- Turns client-only model request patterns into standard OpenAI-compatible endpoints usable by any application
- Automatic protocol conversion among OpenAI, Claude, and Gemini formats
- Supports multiple upstream sources: Gemini, Antigravity, Codex (OAuth), Grok (including Grok Build / xAI OAuth), and Kiro
- Account-pool management with multi-account polling, automatic failover, and health checks targeting 99.9% availability
- OpenAI-compatible image generation (/v1/images/generations) and image editing (/v1/images/edits) endpoints
- Web UI admin console for live configuration management and health-status monitoring
- AI-first design: ships usage Skill guides and self-discovery API endpoints so AI agents (OpenClaw, Hermes, Claude Code) can learn to operate the service on their own
- Runs on Node.js 20+ with Docker images available (over 100k Docker pulls, ranked #2 on Trendshift)
Who it's for
Developers, hobbyists, and AI-tool users who want to use premium or client-restricted models (Claude Opus, Gemini Pro, Grok, etc.) from their own applications or AI agents. It is aimed at users of tools like Cherry-Studio, NextChat, and Cline who want these models at scale, and at AI agents such as OpenClaw, Hermes, and Claude Code that need programmatic access. Some comfort with Node.js or Docker is helpful.
Related
- Project
- Project
- Project
- Project
- Project