badrisnarayanan/antigravity-claude-proxy

Proxy that exposes Antigravity provided claude / gemini models, so we can use them in Claude Code and OpenClaw (Clawdbot)

What it solves

This project provides a proxy server that allows users to use Claude and Gemini models via an Anthropic-compatible API. This specifically enables the use of the Claude Code CLI, OpenClaw, and ClawdBot with backends that would otherwise be incompatible, by routing requests through Antigravity's Cloud Code.

How it works

The proxy acts as a translation layer between the Claude Code CLI (which expects the Anthropic Messages API format) and Google's Generative AI API. It performs the following steps:

  1. Request Translation: It receives requests in Anthropic format and transforms them into Google Generative AI format.
  2. Authentication: It uses OAuth tokens from linked Google accounts or Antigravity's local database to authorize requests.
  3. Routing: It sends the requests to Antigravity's Cloud Code API.
  4. Response Translation: It converts the responses back into the Anthropic format, supporting streaming and thinking processes.

Who it’s for

Developers who want to use the Claude Code CLI or similar tools with different model backends (like Gemini) or those looking to route their AI requests through Antigravity's infrastructure for free or alternative access.

Highlights

  • Anthropic API Compatibility: Mimics the Anthropic API to trick tools like Claude Code into working with other models.
  • Web Management Console: Includes a dashboard for managing accounts, configuring Claude CLI settings, and monitoring health.
  • Multi-Account Support: Supports linking multiple Google accounts for load balancing.
  • Seamless Integration: Provides a way to toggle between "Proxy Mode" (using the local server) and "Paid Mode" (using official Anthropic credits) directly within the WebUI.

Related

  • Project
  • Project
  • Project
  • Project