New Project: Project Echo A privacy-first macOS utility that automatically captures meeting audio and g...
New Project: Perplexity MCP Server Use your existing Perplexity Pro subscription with AI coding tools - no API c...
New Project: Antigravity Claude Proxy A proxy server exposing Anthropic and OpenAI compatible APIs backed by Antigr...
Featured Project

Antigravity Claude Proxy

A proxy server exposing Anthropic and OpenAI compatible APIs backed by Antigravity Cloud Code. Use Claude and Gemini with any compatible client.

Developer Tool //

AntiGravity Reverse Proxy API

A Proxy Server for Antigravity's Cloud Code

A proxy server that exposes both Anthropic-compatible and OpenAI-compatible APIs backed by Antigravity's Cloud Code. Use Claude and Gemini models with Claude Code CLI, OpenAI SDK, and other compatible clients.


Features

  • Dual API Compatibility - Both Anthropic and OpenAI formats supported
  • Multiple Models - Access Claude and Gemini through one endpoint
  • Claude Code CLI Support - Works seamlessly with Claude Code
  • OpenAI SDK Compatible - Drop-in replacement for OpenAI calls
  • Streaming Support - Real-time response streaming
  • Easy Configuration - Simple environment-based setup

Supported Models

Model API Format Provider
Claude Sonnet 4.5 Anthropic Antigravity
Claude Opus 4.5 Anthropic Antigravity
Claude Haiku 4.5 Anthropic Antigravity
Claude 3.5 Sonnet Anthropic Antigravity
Gemini Pro OpenAI Antigravity
Gemini Flash OpenAI Antigravity

Note: Model availability depends on Antigravity Cloud Code's current offerings. Check their documentation for the latest supported models.


Installation

# Clone repository
git clone https://github.com/balakumardev/antigravity-reverseproxy-api.git
cd antigravity-reverseproxy-api

# Install dependencies
npm install

# Start server
npm start

Configuration

Environment Variables

# Antigravity credentials
ANTIGRAVITY_API_KEY=your_api_key
ANTIGRAVITY_ENDPOINT=https://api.antigravity.ai

# Server configuration
PORT=3000

Usage

With Claude Code CLI

# Set endpoint
export ANTHROPIC_BASE_URL=http://localhost:3000

# Use normally
claude code "Write a function to sort an array"

With OpenAI SDK (Python)

from openai import OpenAI

client = OpenAI(
    base_url="http://localhost:3000/v1",
    api_key="your-antigravity-key"
)

response = client.chat.completions.create(
    model="gpt-4",  # Maps to Claude
    messages=[{"role": "user", "content": "Hello!"}]
)

With OpenAI SDK (Node.js)

import OpenAI from 'openai';

const client = new OpenAI({
    baseURL: 'http://localhost:3000/v1',
    apiKey: 'your-antigravity-key'
});

const response = await client.chat.completions.create({
    model: 'gpt-4',
    messages: [{ role: 'user', content: 'Hello!' }]
});

Direct Anthropic API

curl http://localhost:3000/v1/messages \
  -H "x-api-key: your-antigravity-key" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-sonnet-4-5-20241022",
    "messages": [{"role": "user", "content": "Hello!"}],
    "max_tokens": 1024
  }'

API Endpoints

Anthropic Format

Endpoint Method Description
/v1/messages POST Create message (streaming supported)
/v1/models GET List available models

OpenAI Format

Endpoint Method Description
/v1/chat/completions POST Chat completion (streaming supported)
/v1/models GET List available models

Model Mapping

When using OpenAI format, models are automatically mapped:

OpenAI Model Antigravity Model
gpt-4 claude-sonnet-4-5
gpt-4-turbo claude-opus-4-5
gpt-3.5-turbo claude-haiku-4-5

Tech Stack

  • Language: JavaScript (Node.js)
  • Framework: Express.js
  • HTTP Client: Axios
  • Streaming: Server-Sent Events (SSE)

Architecture

+------------------+     +------------------+     +------------------+
|   Claude Code    |     |   Reverse Proxy  |     |   Antigravity    |
|   OpenAI SDK     | --> |   (This Server)  | --> |   Cloud Code     |
|   Other Clients  |     |                  |     |                  |
+------------------+     +------------------+     +------------------+

Contributing

Contributions welcome! Please open issues or submit pull requests.


Disclaimer

This is an unofficial proxy for Antigravity's Cloud Code. Use responsibly and in accordance with Antigravity's terms of service.


License

This project is open source. See the repository for license details.