[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-72680":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":16,"starSnapshotCount":16,"syncStatus":39,"lastSyncTime":40,"discoverSource":41},72680,"antigravity-claude-proxy","badrisnarayanan\u002Fantigravity-claude-proxy","badrisnarayanan","Proxy that exposes Antigravity provided claude \u002F gemini models, so we can use them in Claude Code and OpenClaw (Clawdbot)","",null,"JavaScript",3742,507,23,10,0,19,29,105,57,104.62,"MIT License",false,"main",true,[27,28,29,30,31,32,33,34,35],"antigravity","claude","claude-ai","claude-code","clawdbot","gemini","gemini-cli","openclaw","proxy","2026-06-12 04:01:06","# Antigravity Claude Proxy\n\n[![npm version](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Fantigravity-claude-proxy.svg)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fantigravity-claude-proxy)\n[![npm downloads](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fdm\u002Fantigravity-claude-proxy.svg)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fantigravity-claude-proxy)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-yellow.svg)](https:\u002F\u002Fopensource.org\u002Flicenses\u002FMIT)\n\nA proxy server that exposes an **Anthropic-compatible API** backed by **Antigravity's Cloud Code**, letting you use Claude and Gemini models with **Claude Code CLI** and **OpenClaw \u002F ClawdBot**.\n\n![Antigravity Claude Proxy Banner](images\u002Fbanner.png)\n\n> **⚠️ WARNING:** Google has been issuing ToS violation bans on accounts connected to this proxy. Use at your own risk.\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>⚠️ Terms of Service Warning — Read Before Installing\u003C\u002Fstrong>\u003C\u002Fsummary>\n\n> [!CAUTION]\n> Using this proxy may violate Google's Terms of Service. A small number of users have reported their Google accounts being **banned** or **shadow-banned** (restricted access without explicit notification).\n>\n> **By using this proxy, you acknowledge:**\n> - This is an unofficial tool not endorsed by Google\n> - Your account may be suspended or permanently banned\n> - You assume all risks associated with using this proxy\n>\n> **Recommendation:** Do not use your main account. Use a burner account instead, and optionally add it to your main account's family plan if needed.\n\n\u003C\u002Fdetails>\n\n---\n\n## How It Works\n\n```\n┌──────────────────┐     ┌─────────────────────┐     ┌────────────────────────────┐\n│   Claude Code    │────▶│  This Proxy Server  │────▶│  Antigravity Cloud Code    │\n│   (Anthropic     │     │  (Anthropic → Google│     │  (daily-cloudcode-pa.      │\n│    API format)   │     │   Generative AI)    │     │   sandbox.googleapis.com)  │\n└──────────────────┘     └─────────────────────┘     └────────────────────────────┘\n```\n\n1. Receives requests in **Anthropic Messages API format**\n2. Uses OAuth tokens from added Google accounts (or Antigravity's local database)\n3. Transforms to **Google Generative AI format** with Cloud Code wrapping\n4. Sends to Antigravity's Cloud Code API\n5. Converts responses back to **Anthropic format** with full thinking\u002Fstreaming support\n\n## Prerequisites\n\n- **Node.js** 18 or later\n- **Antigravity** installed (for single-account mode) OR Google account(s) for multi-account mode\n\n---\n\n## Installation\n\n### Option 1: npm (Recommended)\n\n```bash\n# Run directly with npx (no install needed)\nnpx antigravity-claude-proxy@latest start\n\n# Or install globally\nnpm install -g antigravity-claude-proxy@latest\nantigravity-claude-proxy start\n```\n\n### Option 2: Clone Repository\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fbadri-s2001\u002Fantigravity-claude-proxy.git\ncd antigravity-claude-proxy\nnpm install\nnpm start\n```\n\n---\n\n## Quick Start\n\n### 1. Start the Proxy Server\n\n```bash\n# If installed globally\nacc start\n# or: antigravity-claude-proxy start\n\n# If using npx\nnpx antigravity-claude-proxy@latest start\n\n# If cloned locally\nnpm start\n```\n\nThe server launches as a **background process** on `http:\u002F\u002Flocalhost:8080` by default and survives terminal closure.\n\n| Command | Description |\n| :--- | :--- |\n| `acc start` | Launch proxy in the background |\n| `acc stop` | Shut down the proxy |\n| `acc restart` | Restart the proxy |\n| `acc status` | Check proxy health and PID |\n| `acc ui` | Open the web dashboard |\n| `acc start --log` | Run in foreground with visible logs |\n\n### 2. Link Account(s)\n\nChoose one of the following methods to authorize the proxy:\n\n#### **Method A: Web Dashboard (Recommended)**\n\n1. With the proxy running, open `http:\u002F\u002Flocalhost:8080` in your browser.\n2. Navigate to the **Accounts** tab and click **Add Account**.\n3. Complete the Google OAuth authorization in the popup window.\n\n> **Headless\u002FRemote Servers**: If running on a server without a browser, the WebUI supports a \"Manual Authorization\" mode. After clicking \"Add Account\", you can copy the OAuth URL, complete authorization on your local machine, and paste the authorization code back.\n\n#### **Method B: CLI (Desktop or Headless)**\n\nIf you prefer the terminal or are on a remote server:\n\n```bash\n# Desktop (opens browser)\nantigravity-claude-proxy accounts add\n\n# Headless (Docker\u002FSSH)\nantigravity-claude-proxy accounts add --no-browser\n```\n\n> For full CLI account management options, run `antigravity-claude-proxy accounts --help`.\n\n#### **Method C: Automatic (Antigravity Users)**\n\nIf you have the **Antigravity** app installed and logged in, the proxy will automatically detect your local session. No additional setup is required.\n\nTo use a custom port:\n\n```bash\nPORT=3001 antigravity-claude-proxy start\n```\n\n### 3. Verify It's Working\n\n```bash\n# Health check\ncurl http:\u002F\u002Flocalhost:8080\u002Fhealth\n\n# Check account status and quota limits\ncurl \"http:\u002F\u002Flocalhost:8080\u002Faccount-limits?format=table\"\n```\n\n---\n\n## Using with Claude Code CLI\n\n### Configure Claude Code\n\nYou can configure these settings in two ways:\n\n#### **Via Web Console (Recommended)**\n\n1. Open the WebUI at `http:\u002F\u002Flocalhost:8080`.\n2. Go to **Settings** → **Claude CLI**.\n3. Use the **Connection Mode** toggle to switch between:\n   - **Proxy Mode**: Uses the local proxy server (Antigravity Cloud Code). Configure models, base URL, and presets here.\n   - **Paid Mode**: Uses the official Anthropic Credits directly (requires your own subscription). This hides proxy settings to prevent accidental misconfiguration.\n4. Click **Apply to Claude CLI** to save your changes.\n\n> [!TIP] > **Configuration Precedence**: System environment variables (set in shell profile like `.zshrc`) take precedence over the `settings.json` file. If you use the Web Console to manage settings, ensure you haven't manually exported conflicting variables in your terminal.\n\n#### **Manual Configuration**\n\nCreate or edit the Claude Code settings file:\n\n**macOS:** `~\u002F.claude\u002Fsettings.json`\n**Linux:** `~\u002F.claude\u002Fsettings.json`\n**Windows:** `%USERPROFILE%\\.claude\\settings.json`\n\nAdd this configuration:\n\n```json\n{\n  \"env\": {\n    \"ANTHROPIC_AUTH_TOKEN\": \"test\",\n    \"ANTHROPIC_BASE_URL\": \"http:\u002F\u002Flocalhost:8080\",\n    \"ANTHROPIC_MODEL\": \"claude-opus-4-6-thinking\",\n    \"ANTHROPIC_DEFAULT_OPUS_MODEL\": \"claude-opus-4-6-thinking\",\n    \"ANTHROPIC_DEFAULT_SONNET_MODEL\": \"claude-sonnet-4-6-thinking\",\n    \"ANTHROPIC_DEFAULT_HAIKU_MODEL\": \"claude-sonnet-4-6\",\n    \"CLAUDE_CODE_SUBAGENT_MODEL\": \"claude-sonnet-4-6-thinking\",\n    \"ENABLE_EXPERIMENTAL_MCP_CLI\": \"true\"\n  }\n}\n```\n\nOr to use Gemini models:\n\n```json\n{\n  \"env\": {\n    \"ANTHROPIC_AUTH_TOKEN\": \"test\",\n    \"ANTHROPIC_BASE_URL\": \"http:\u002F\u002Flocalhost:8080\",\n    \"ANTHROPIC_MODEL\": \"gemini-3.1-pro-high[1m]\",\n    \"ANTHROPIC_DEFAULT_OPUS_MODEL\": \"gemini-3.1-pro-high[1m]\",\n    \"ANTHROPIC_DEFAULT_SONNET_MODEL\": \"gemini-3-flash[1m]\",\n    \"ANTHROPIC_DEFAULT_HAIKU_MODEL\": \"gemini-3-flash[1m]\",\n    \"CLAUDE_CODE_SUBAGENT_MODEL\": \"gemini-3-flash[1m]\",\n    \"ENABLE_EXPERIMENTAL_MCP_CLI\": \"true\"\n  }\n}\n```\n\n### Load Environment Variables\n\nAdd the proxy settings to your shell profile:\n\n**macOS \u002F Linux:**\n\n```bash\necho 'export ANTHROPIC_BASE_URL=\"http:\u002F\u002Flocalhost:8080\"' >> ~\u002F.zshrc\necho 'export ANTHROPIC_AUTH_TOKEN=\"test\"' >> ~\u002F.zshrc\nsource ~\u002F.zshrc\n```\n\n> For Bash users, replace `~\u002F.zshrc` with `~\u002F.bashrc`\n\n**Windows (PowerShell):**\n\n```powershell\nAdd-Content $PROFILE \"`n`$env:ANTHROPIC_BASE_URL = 'http:\u002F\u002Flocalhost:8080'\"\nAdd-Content $PROFILE \"`$env:ANTHROPIC_AUTH_TOKEN = 'test'\"\n. $PROFILE\n```\n\n**Windows (Command Prompt):**\n\n```cmd\nsetx ANTHROPIC_BASE_URL \"http:\u002F\u002Flocalhost:8080\"\nsetx ANTHROPIC_AUTH_TOKEN \"test\"\n```\n\nRestart your terminal for changes to take effect.\n\n### Run Claude Code\n\n```bash\n# Make sure the proxy is running first\nantigravity-claude-proxy start\n\n# In another terminal, run Claude Code\nclaude\n```\n\n> **Note:** If Claude Code asks you to select a login method, add `\"hasCompletedOnboarding\": true` to `~\u002F.claude.json` (macOS\u002FLinux) or `%USERPROFILE%\\.claude.json` (Windows), then restart your terminal and try again.\n\n### Proxy Mode vs. Paid Mode\n\nToggle in **Settings** → **Claude CLI**:\n\n| Feature | 🔌 Proxy Mode | 💳 Paid Mode |\n| :--- | :--- | :--- |\n| **Backend** | Local Server (Antigravity) | Official Anthropic Credits |\n| **Cost** | Free (Google Cloud) | Paid (Anthropic Credits) |\n| **Models** | Claude + Gemini | Claude Only |\n\n**Paid Mode** automatically clears proxy settings so you can use your official Anthropic account directly.\n\n### Multiple Claude Code Instances (Optional)\n\nTo run both the official Claude Code and Antigravity version simultaneously, add this alias:\n\n**macOS \u002F Linux:**\n\n```bash\n# Add to ~\u002F.zshrc or ~\u002F.bashrc\nalias claude-antigravity='CLAUDE_CONFIG_DIR=~\u002F.claude-account-antigravity ANTHROPIC_BASE_URL=\"http:\u002F\u002Flocalhost:8080\" ANTHROPIC_AUTH_TOKEN=\"test\" command claude'\n```\n\n**Windows (PowerShell):**\n\n```powershell\n# Add to $PROFILE\nfunction claude-antigravity {\n    $env:CLAUDE_CONFIG_DIR = \"$env:USERPROFILE\\.claude-account-antigravity\"\n    $env:ANTHROPIC_BASE_URL = \"http:\u002F\u002Flocalhost:8080\"\n    $env:ANTHROPIC_AUTH_TOKEN = \"test\"\n    claude\n}\n```\n\nThen run `claude` for official API or `claude-antigravity` for this proxy.\n\n### Running as a System Service (systemd)\n\nWhen running as a systemd service, the proxy runs under a different user (e.g. `root`), so it can't find your Claude CLI settings at `~\u002F.claude\u002Fsettings.json`. Set `CLAUDE_CONFIG_PATH` to point to the real user's `.claude` directory:\n\n```ini\n# \u002Fetc\u002Fsystemd\u002Fsystem\u002Fantigravity-proxy.service\n[Service]\nEnvironment=CLAUDE_CONFIG_PATH=\u002Fhome\u002Fyouruser\u002F.claude\nExecStart=\u002Fusr\u002Fbin\u002Fnode \u002Fpath\u002Fto\u002Fantigravity-claude-proxy\u002Fsrc\u002Findex.js\n```\n\nWithout this, the WebUI's Claude CLI tab won't be able to read or write your Claude Code configuration.\n\n---\n\n## Documentation\n\n- [Available Models](docs\u002Fmodels.md)\n- [Multi-Account Load Balancing](docs\u002Fload-balancing.md)\n- [Web Management Console](docs\u002Fweb-console.md)\n- [Advanced Configuration](docs\u002Fconfiguration.md)\n- [macOS Menu Bar App](docs\u002Fmenubar-app.md)\n- [OpenClaw \u002F ClawdBot Integration](docs\u002Fopenclaw.md)\n- [API Endpoints](docs\u002Fapi-endpoints.md)\n- [Testing](docs\u002Ftesting.md)\n- [Troubleshooting](docs\u002Ftroubleshooting.md)\n- [Safety, Usage, and Risk Notices](docs\u002Fsafety-notices.md)\n- [Legal](docs\u002Flegal.md)\n- [Development](docs\u002Fdevelopment.md)\n\n---\n\n## Credits\n\nThis project is based on insights and code from:\n\n- [opencode-antigravity-auth](https:\u002F\u002Fgithub.com\u002FNoeFabris\u002Fopencode-antigravity-auth) - Antigravity OAuth plugin for OpenCode\n- [claude-code-proxy](https:\u002F\u002Fgithub.com\u002F1rgs\u002Fclaude-code-proxy) - Anthropic API proxy using LiteLLM\n\n---\n\n## License\n\nMIT\n\n---\n\n\u003Ca href=\"https:\u002F\u002Fbuymeacoffee.com\u002Fbadrinarayanans\" target=\"_blank\">\u003Cimg src=\"https:\u002F\u002Fcdn.buymeacoffee.com\u002Fbuttons\u002Fv2\u002Fdefault-yellow.png\" alt=\"Buy Me A Coffee\" height=\"50\">\u003C\u002Fa>\n\n## Star History\n\n[![Star History Chart](https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=badrisnarayanan\u002Fantigravity-claude-proxy&type=date&legend=top-left&cache-control=no-cache)](https:\u002F\u002Fwww.star-history.com\u002F#badrisnarayanan\u002Fantigravity-claude-proxy&type=date&legend=top-left)\n","Antigravity Claude Proxy 是一个代理服务器，它通过Antigravity的Cloud Code暴露了Claude和Gemini模型，使得这些模型可以在Claude Code CLI和OpenClaw\u002FClawdBot中使用。其核心功能是将Anthropic的消息API格式转换为Google的生成式AI格式，并通过Antigravity的Cloud Code API进行处理后，再将响应转换回Anthropic格式支持流式传输。该项目采用JavaScript编写，适合需要在不直接访问官方API的情况下利用Claude或Gemini模型完成开发任务的场景。需要注意的是，由于可能违反服务条款，使用时存在账号被封禁的风险，建议仅用于测试环境且不要使用主账号。",2,"2026-06-11 03:43:08","high_star"]