github项目
https://github.com/badri-s2001/antigravity-claude-proxy
使用方法
安装
npx antigravity-claude-proxy start
启动代理服务器
npx antigravity-claude-proxy start
验证
Health check
curl http://localhost:8080/health
Check account status and quota limits
curl "http://localhost:8080/account-limits?format=table"
配置 Claude code
Windows: %USERPROFILE%\.claude\settings.json
添加此配置:
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "test",
"ANTHROPIC_BASE_URL": "http://localhost:8080",
"ANTHROPIC_MODEL": "claude-opus-4-5-thinking",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4-5-thinking",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-5-thinking",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-sonnet-4-5",
"CLAUDE_CODE_SUBAGENT_MODEL": "claude-sonnet-4-5-thinking"
}
}
添加环境变量
setx ANTHROPIC_BASE_URL "http://localhost:8080"
setx ANTHROPIC_API_KEY "test"
运行 Claude code
claude