Connect Antigravity to TeamoRouter: Desktop One-Click Setup & agy CLI
Antigravity is Google's AI coding tool. You can connect the Antigravity desktop app in one click via the Teamo client (no Google sign-in required), or point the Antigravity CLI (agy) to TeamoRouter using your API key to call every Gemini 4 model.
Option 1: Antigravity Desktop (One-Click via Teamo Client, Recommended)
- Install the Teamo client: Download and install it from the Download page, sign in to your TeamoRouter account, and make sure your wallet is funded in the dashboard.
- Connect in one click: Find Antigravity in the Teamo client (if Antigravity is not installed yet, you can install it from the card) and click “Connect TeamoRouter” — the client automatically configures the connection and adds the Gemini 4 models.
- Start coding: Open Antigravity Desktop and pick
gemini-4-neon,gemini-4-hydrogen,gemini-4-carbon, or another Gemini model from the model selector. No Google account sign-in is required.
Option 2: Antigravity CLI (agy)
1. Install the Antigravity CLI (agy)
On macOS and Linux, run the official installer:
curl -fsSL https://antigravity.google/cli/install.sh | bash
It installs agy into ~/.local/bin. Run agy --version to check it worked. For Windows, see the official Antigravity install guide.
2. Get a TeamoRouter API key
Sign up in the TeamoRouter dashboard and create an API key (it looks like sk-teamo-...).
3. Connect to TeamoRouter
First, switch agy to API-key mode for Gemini by writing ~/.gemini/antigravity-cli/settings.json:
mkdir -p ~/.gemini/antigravity-cli && cat > ~/.gemini/antigravity-cli/settings.json <<'EOF'
{
"modelProvider": "gemini"
}
EOF
Then set the TeamoRouter endpoint and your key (replace <your-TeamoRouter-key>):
export GOOGLE_GEMINI_BASE_URL=https://api.teamorouter.com
export GEMINI_API_KEY=sk-teamo-<your-TeamoRouter-key>
Use the bare domain, without /v1beta. Add both lines to ~/.zshrc or ~/.bashrc to keep them in every new terminal.
4. Check the connection
List the available models. Seeing the Gemini 4 family means you are on TeamoRouter:
agy models
Then send a prompt:
agy --model gemini-4-neon -p "Hello"
From then on, run agy in any project folder. Swap --model for gemini-4-hydrogen, gemini-4-carbon, gemini-4-argon, gemini-3.8-flash and others.
FAQ
Can I only use Gemini models?
Yes. With a custom endpoint agy speaks the Gemini protocol, so only Gemini models work. For Claude or GPT, use Claude Code or Codex.
Getting 401 invalid_api_key?
Check that GEMINI_API_KEY is complete and was set in the same terminal. New terminals need the export again unless you added it to ~/.zshrc.
agy still asks for a Google sign-in?
Make sure "modelProvider": "gemini" is saved in ~/.gemini/antigravity-cli/settings.json. The environment variables alone do not switch agy to API-key mode.