Documentation Index
Fetch the complete documentation index at: https://mintlify.com/badrisnarayanan/antigravity-claude-proxy/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
PORT environment variable or in config.json.
API Compatibility
Antigravity Claude Proxy provides an Anthropic Messages API-compatible interface. This means you can use the proxy as a drop-in replacement for the official Anthropic API by:- Setting
ANTHROPIC_BASE_URL=http://localhost:8080 - Setting
ANTHROPIC_AUTH_TOKEN=test(or any value if API key auth is disabled)
Request/Response Format
All API requests use JSON payloads withContent-Type: application/json.
Responses follow the Anthropic Messages API format:
Available Endpoints
Messages
Send messages to Claude or Gemini models
Models
List available models
Health
Check server and account health
Authentication
Configure API authentication
Streaming Support
The proxy supports Server-Sent Events (SSE) for streaming responses. Setstream: true in your request to receive incremental updates as the model generates its response.
See the Messages endpoint for details.
Model Support
Claude Models
claude-opus-4-6-thinking- Extended reasoning, highest capabilityclaude-sonnet-4-5-thinking- Balanced reasoning and speedclaude-sonnet-4-5- Fast, production-ready
Gemini Models
gemini-3.1-pro-high- Highest quality Geminigemini-3.1-pro-low- Cost-optimized Geminigemini-3-flash- Fastest Gemini model
GET /v1/models to see all available models in your accounts.
Error Handling
Errors follow the Anthropic API format:Error Types
authentication_error- Invalid or missing API key (if auth is enabled)invalid_request_error- Malformed request or invalid parametersapi_error- Upstream API error or network issuenot_found_error- Endpoint not found
Rate Limiting
The proxy automatically handles rate limits across multiple accounts:- When an account is rate-limited, the proxy switches to another available account
- Rate limit state is tracked per model
- Accounts are automatically re-enabled when their quota resets