ink1ing/anti-api

Turn Antigravity / codex / github copilot into Anthropic & Openai API compatible server. Usable with Claude Code / Xcode etc.

What it solves

Anti-API is a local proxy that allows users to use various AI provider accounts (such as GitHub Copilot, Codex, Zed, Grok, and others) through a unified, standardized API. It solves the problem of fragmented AI services by translating requests from OpenAI- and Anthropic-style clients into the specific protocols required by different providers, enabling a single client to access multiple models across different platforms.

How it works

The project acts as an intermediary routing layer. It intercepts API requests from a client and routes them based on a configurable "Smart Routing System." This system supports two modes: "Flow Routing" for custom model IDs and "Account Routing" for provider-native IDs. The proxy handles authentication, manages account chains for failover (rotating accounts when one hits a rate limit), and translates the API format to the upstream provider's requirements. It also provides a web-based dashboard for monitoring quotas and managing routing configurations.

Who it’s for

It is designed for developers and power users who have multiple AI subscriptions or accounts across different providers and want to use them within a single tool or IDE (like Claude Code) without switching between different API keys or platforms.

Highlights

  • Multi-Provider Support: Integrates Antigravity, Codex, GitHub Copilot, Zed hosted models, Kiro, and Grok.
  • Dual API Compatibility: Supports both OpenAI and Anthropic API formats.
  • Smart Routing & Failover: Automatically rotates through authorized accounts after quota or auth failures (429 errors).
  • Integrated Tunneling: Built-in one-click setup for ngrok, cloudflared, and localtunnel for remote access.
  • Management Dashboard: A local web UI for quota monitoring and routing configuration.
  • Tool Calling: Supports function calling for CLI tools and Claude Code.

Related

  • Project
  • Project
  • Project
  • Project
  • Project