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.
Overview
Antigravity Claude Proxy supports optional API key authentication for the/v1/* endpoints. By default, authentication is disabled and the proxy uses its own configured Google accounts.
Default Behavior (No Auth)
When API key authentication is not configured:- All
/v1/*endpoints are publicly accessible - The proxy uses its own pool of Google accounts
- No
Authorizationheader is required
Enabling API Key Authentication
To secure your proxy, set theAPI_KEY environment variable or configure it in config.json:
Environment Variable
Config File
Edit~/.config/antigravity-proxy/config.json:
Using the API Key
Once authentication is enabled, include the API key in every request using theAuthorization header:
Bearer Token (Recommended)
X-API-Key Header
Alternatively, use theX-API-Key header:
Claude Code Integration
When using Claude Code CLI, set theANTHROPIC_AUTH_TOKEN environment variable:
~/.claude/settings.json:
Error Responses
401 Unauthorized - Missing API Key
Returned when API key is required but not provided:401 Unauthorized - Invalid API Key
Returned when the provided API key does not match:Security Best Practices
1. Use Strong API Keys
Generate a random API key using:2. Rotate Keys Regularly
Update your API key periodically:3. Use HTTPS in Production
For production deployments, run the proxy behind a reverse proxy with HTTPS:4. Web UI Password Protection
The Web UI supports optional password protection via theWEBUI_PASSWORD environment variable:
- Header:
X-WebUI-Password: admin-password - Query param:
?password=admin-password
WebUI password protection is separate from API key authentication. You can enable one or both.
Account Authentication
The proxy uses Google OAuth to authenticate with Google accounts:- Accounts are added via the Web UI or CLI (
npm run accounts:add) - OAuth tokens are stored in
~/.config/antigravity-proxy/accounts.json - Tokens are automatically refreshed when expired