anti-api  by ink1ing

Local API proxy for Antigravity AI models

Created 2 months ago
302 stars

Top 88.6% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

This project provides a local API proxy service that transforms Antigravity's AI models into servers compatible with OpenAI and Anthropic APIs. It enables seamless integration with various AI development tools and applications, offering a unified interface for multiple AI backends.

How It Works

Anti-API employs a sophisticated "Smart Routing System" that supports both "Flow Routing" for custom model IDs and "Account Routing" for official model IDs. This system allows for fine-grained control over request distribution, load balancing across multiple accounts, and provider mixing (Antigravity, Codex, Copilot). It features automatic account rotation on rate limit errors (429) and supports dual API formats, enhancing flexibility and resilience.

Quick Start & Requirements

Installation is straightforward via bun install on Linux, or by running provided one-click scripts (start.bat for Windows, start.command for macOS). Docker support is comprehensive, offering build and run commands, including Docker Compose for easier orchestration. Key dependencies include the bun runtime. For remote access features like ngrok, an authtoken is required. Official documentation is available in the docs/ folder.

Highlighted Details

  • Dual API Compatibility: Supports both OpenAI and Anthropic API formats.
  • Comprehensive Dashboard: Provides real-time monitoring of quotas, routing configurations, and application settings.
  • Remote Access: Integrates with ngrok, cloudflared, and localtunnel for exposing the local API to the internet.
  • Advanced Routing: Offers Flow and Account routing with auto-rotation for resilient model access.
  • Tool Calling: Implements function calling capabilities for compatible AI models.
  • Gemini Pro Access: Provides methods for obtaining free Gemini Pro access.

Maintenance & Community

The project is based on reverse engineering Antigravity, with a disclaimer advising users to avoid updating Antigravity for long-term compatibility. No specific community channels or active contributor information are detailed in the provided README.

Licensing & Compatibility

The project is released under the MIT License, permitting broad usage and modification. However, its reliance on reverse-engineered components means compatibility is not guaranteed, particularly if the underlying Antigravity service undergoes significant changes.

Limitations & Caveats

This project relies on reverse-engineered Antigravity components, making future compatibility uncertain and recommending against updating the Antigravity service. The routing system is currently in Beta, indicating potential for future changes.

Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
2
Issues (30d)
4
Star History
57 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.