antigravity-claude-proxy
by badri-s2001
Proxy that exposes Antigravity provided claude / gemini models, so we can use them in Claude Code
# Add to your Claude Code skills
git clone https://github.com/badri-s2001/antigravity-claude-proxyAntigravity Claude Proxy
<a href="https://buymeacoffee.com/badrinarayanans" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="50"></a>
A proxy server that exposes an Anthropic-compatible API backed by Antigravity's Cloud Code, letting you use Claude and Gemini models with Claude Code CLI.

How It Works
┌──────────────────┐ ┌─────────────────────┐ ┌────────────────────────────┐
│ Claude Code │────▶│ This Proxy Server │────▶│ Antigravity Cloud Code │
│ (Anthropic │ │ (Anthropic → Google│ │ (daily-cloudcode-pa. │
│ API format) │ │ Generative AI) │ │ sandbox.googleapis.com) │
└──────────────────┘ └─────────────────────┘ └────────────────────────────┘
- Receives requests in Anthropic Messages API format
- Uses OAuth tokens from added Google accounts (or Antigravity's local database)
- Transforms to Google Generative AI format with Cloud Code wrapping
- Sends to Antigravity's Cloud Code API
- Converts responses back to Anthropic format with full thinking/streaming support
Prerequisites
- Node.js 18 or later
- Antigravity installed (for single-account mode) OR Google account(s) for multi-account mode
Installation
Option 1: npm (Recommended)
# Run directly with npx (no install needed)
npx antigravity-claude-proxy start
# Or install globally
npm install -g antigravity-claude-proxy
antigravity-claude-proxy start
Option 2: Clone Repository
git clone https://github.com/badri-s2001/antigravity-claude-proxy.git
cd antigravity-claude-proxy
npm install
npm start
Quick Start
1. Add Account(s)
You have two options:
Option A: Use Antigravity (Single Account)
If you have Antigravity installed and logged in, the proxy will automatically extract your token. No additional setup needed.
Option B: Add Google Accounts via OAuth (Recommended for Multi-Account)
Add one or more Google accounts for load balancing:
# If installed via npm
antigravity-claude-proxy accounts add
# If using npx
npx antigravity-claude-proxy accounts add
# If cloned locally
npm run accounts:add
This opens your browser for Google OAuth. Sign in and authorize access. Repeat for multiple accounts.
Manage accounts:
# List all accounts
antigravity-claude-proxy accounts list
# Verify accounts are working
antigravity-claude-proxy accounts verify
# Interactive account management
antigravity-claud...