Overview
Antigravity Manager provides seamless integration with the Claude Code CLI, allowing you to use multiple Claude accounts with automatic rotation and quota management.The Claude Code CLI is the official command-line interface for Claude AI, supporting features like extended thinking, web search, and MCP (Model Context Protocol) tools.
Prerequisites
Antigravity Manager
Installed and running with at least one active account
Claude Code CLI
Install via:
npm install -g @anthropic-ai/claude-codeQuick start
Start Antigravity proxy
- Open Antigravity Manager
- Navigate to API Proxy tab
- Enable the proxy server
- Verify the port (default: 8045)
Configuration options
API Key
TheANTHROPIC_API_KEY can be any value when using Antigravity Manager. Common conventions:
sk-antigravity(recommended)sk-any-value- Your actual Antigravity API key (if authentication is enabled)
Base URL
The base URL for the Antigravity proxy server.Default:
http://127.0.0.1:8045Remote server: If running Antigravity on a remote machine, use:Features supported
Extended thinking
Antigravity automatically converts Claude’s thinking mode to Gemini’s thinking budget:- Detect thinking mode requests
- Map thinking levels to budget tokens
- Handle protocol conversion automatically
Web search
Claude Code CLI’s web search works seamlessly through Antigravity:- Inject Google Search tool when needed
- Return grounding metadata with citations
- Preserve search result formatting
MCP tools
Model Context Protocol tools are fully supported:Antigravity includes fuzzy matching for MCP tool names to handle model hallucinations.
Usage examples
Basic conversation
File operations
Model selection
Troubleshooting
Connection refused
Connection refused
Problem:
Error: connect ECONNREFUSED 127.0.0.1:8045Solutions:- Verify Antigravity proxy is running
- Check the port in API Proxy settings
- Ensure no firewall is blocking port 8045
- Try
curl http://127.0.0.1:8045/healthto test connectivity
Invalid API key error
Invalid API key error
Problem:
401 Unauthorized or Invalid API keySolutions:- Check if authentication is enabled in Antigravity
- If enabled, use the actual API key from API Proxy settings
- Verify
ANTHROPIC_API_KEYenvironment variable is set - Try:
echo $ANTHROPIC_API_KEYto confirm
Thinking mode errors
Thinking mode errors
Problem:
400 Bad Request with thinking modelsSolutions:- Ensure you’re using Antigravity v4.1.23 or later
- Check that accounts have thinking-capable models
- Review logs in Antigravity for detailed error messages
- Try a non-thinking model to isolate the issue
Quota exhausted
Quota exhausted
Problem: Requests failing with quota errorsSolutions:
- Check account quotas in Antigravity Dashboard
- Manually refresh account quotas
- Enable Quota Protection in settings
- Add more accounts for rotation
Best practices
Enable quota protection
Prevent quota exhaustion by enabling automatic protection in Antigravity settings.
Use multiple accounts
Add multiple Claude accounts for better availability and load distribution.
Monitor usage
Check the Dashboard regularly to track quota consumption across accounts.
Configure model routing
Set up custom model mappings to optimize cost vs. performance.
Performance tips
- Local deployment: Keep Antigravity on the same machine as Claude CLI for minimal latency
- Batch operations: Use Claude CLI’s batch mode for multiple files
- Model selection: Use Flash models for quick tasks, Pro/Sonnet for complex reasoning
- Caching: Antigravity caches quota information to reduce API calls