How to Use OpenRouter in Google Antigravity
To use OpenRouter in Google Antigravity, connect Spiral to Google Antigravity once, then ask for what you want in plain words. Google Antigravity can then reach all 270 OpenRouter tools on Spiral, priced per run from one balance.
Prompts to try with OpenRouter in Google Antigravity
Copy an example into Google Antigravity, or ask in your own words.
Ask OpenRouter through Spiral to review the diff on this branch and list the three riskiest changes. Save the result in ./assets.
Get a second opinion from OpenRouter on this function, then tell me what the call cost.
Summarize these release notes with OpenRouter in five bullet points.
Ask OpenRouter to write unit tests for the file I have open and explain each case.
Compare OpenRouter with my current model on this prompt and tell me which answer is better and what each cost.
How to set up OpenRouter in Google Antigravity
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Open the MCP config
* Antigravity App: click Customizations, then Installed. In the MCP Servers section, click Copy Config File Path and open that file. * Antigravity IDE: click … at the top of the agent side panel, select MCP Servers, then Manage MCP Servers › View raw config. * Antigravity CLI: edit ~/.gemini/config/mcp_config.json.
- Add the server
Add Spiral under mcpServers:
{ "mcpServers": { "spiral": { "serverUrl": "https://api.spiral.ai/mcp" } } } - Sign in
In the Antigravity App, open Customizations › Installed. Under MCP Servers, click Authenticate next to Spiral. Sign in to Spiral, pick the organization and click Authorize. Copy the authorization code the browser shows, paste it into Enter authorization code and click Submit. No API key.
Use the Spiral skill
- Send Google Antigravity this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run OpenRouter
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "openrouter", "model": "meta-llama/llama-4-maverick", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: Google Antigravity finds OpenRouter on Spiral, shows the price and runs it.
OpenRouter tools you can run in Google Antigravity
3Ready to run from Google Antigravity: today's price, with every fee included.
Up to $0.005342 per run at the default inputs. $0.455 per 1M input tokens, $1.30 per 1M output tokens.
Up to $0.018189 per run at the default inputs. $0.845 per 1M input tokens, $4.433 per 1M output tokens.
Up to $0.368053 per run at the default inputs. $0.05759 per 1M input tokens, $0.39 per 1M output tokens.
What can you do with OpenRouter in Google Antigravity?
Google Antigravity can answer, write and review code with OpenRouter right in your repository and save the results where you need them: as files in your project, in a script or in your build. One sign-in covers every tool, so your code stays free of provider SDKs and keys.
Second opinions
Have another model review a diff or a plan before you commit to it.
Cheaper bulk work
Send summaries, tagging and rewrites to a smaller model and keep your agent's own model for hard steps.
Models your agent lacks
Reach open and frontier models your agent's vendor does not offer.
Code review at scale
Review every file in a pull request with one model and summarize the risks.
Long documents
Send a long spec or contract to a model with a large context window.
Structured output
Turn messy notes into JSON your code can read.
More on OpenRouter and Google Antigravity
OpenRouter in other agents
Questions about OpenRouter in Google Antigravity
Can Google Antigravity use OpenRouter?
Yes. Add Spiral to Google Antigravity as an MCP server, and Google Antigravity can find and run OpenRouter like any built-in tool.
How much does OpenRouter cost in Google Antigravity?
Each tool has its own price, for example Meta: Llama 4 Maverick: Up to $0.005342 per run at the default inputs. $0.455 per 1M input tokens, $1.30 per 1M output tokens; MoonshotAI: Kimi K2.6: Up to $0.018189 per run at the default inputs. $0.845 per 1M input tokens, $4.433 per 1M output tokens; DeepSeek: DeepSeek V4 Flash 0731: Up to $0.001601 per run at the default inputs. $0.05642 per 1M input tokens, $0.39 per 1M output tokens. You pay per run from one Spiral balance, and failed runs are free.
Do I need an OpenRouter account to use OpenRouter in Google Antigravity?
No. Spiral runs OpenRouter on its own OpenRouter account. You sign in to Spiral once and never paste a key.
How long does it take to set up OpenRouter in Google Antigravity?
About two minutes: open the MCP config, then add the server, then sign in.
Does Google Antigravity wait while OpenRouter runs?
OpenRouter runs in the background. Google Antigravity starts the run, checks on it and gives you the text, json when it's ready.
Why call OpenRouter from Google Antigravity?
For a second opinion, a cheaper model for bulk work, or a model your agent doesn't offer. Your agent calls OpenRouter through Spiral and pays only for the tokens used.
Which OpenRouter tools can Google Antigravity use?
Google Antigravity can reach all 270 OpenRouter tools on Spiral, covering LLM. Popular ones include Meta: Llama 4 Maverick, MoonshotAI: Kimi K2.6, and DeepSeek: DeepSeek V4 Flash 0731. Ask for one by name, or describe the task and Google Antigravity picks a fitting tool.
Can Google Antigravity compare OpenRouter tools?
Yes. Ask Google Antigravity to run the same request on two OpenRouter tools and show both results with what each cost. Each run is priced and billed on its own.
What happens if a OpenRouter run fails in Google Antigravity?
It is not charged. Spiral holds the estimated price when the run starts and returns it to your balance if the run fails on Spiral's side or the provider's. Google Antigravity gets the error and can retry or try another tool.
Is there a OpenRouter subscription or plan?
No. Spiral is pay as you go from one prepaid balance, with no plans or minimums, and credits never expire. Auto top-up keeps Google Antigravity from stopping when the balance runs low.
Start using OpenRouter in Google Antigravity
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Google Antigravity:
set up https://spiral.ai/SKILL.md


