Agent Setup

Connect Antigravity CLI to WaveSpeed LLM API

Copy the recommended ~/.gemini/antigravity-cli/settings.json setup for Antigravity CLI, route requests to /v1beta/models/{model}:generateContent, and verify local agent calls in WaveSpeed Logs.

Google's agentic coding CLI (agy). Switch it to the Gemini API and it runs on WaveSpeed with its own Gemini model list.

Config file

~/.gemini/antigravity-cli/settings.json

Protocol

Gemini generateContent API

Endpoint

/v1beta/models/{model}:generateContent

Manual setup

1

Create a WaveSpeed access key

2

Export the required key locally

3

Paste config into~/.gemini/antigravity-cli/settings.json

4

Run agy and check Logs

One-command setup

Configures Antigravity CLI, checks that it works, and backs up your previous settings. Add --undo to restore them.

  1. 1

    Install the WaveSpeed CLI

    npm install -g @wavespeed/cli
  2. 2

    Sign in

    wavespeed login
  3. 3

    Configure Antigravity CLI

    wavespeed setup antigravity

No Node.js? See other install options

Manual setup

Edit ~/.gemini/antigravity-cli/settings.json
# Shell (add to ~/.zshrc or ~/.bashrc)
export GOOGLE_GEMINI_BASE_URL="https://llm.wavespeed.ai"
export GEMINI_API_KEY="wsk_live_..."

// File: ~/.gemini/antigravity-cli/settings.json
{
  "modelProvider": "gemini"
}
Replace wsk_live_... with your real WaveSpeed API key before saving this config file.

Agent integration guide

Use Antigravity CLI with WaveSpeed LLM API

This guide shows how to connect Antigravity CLI to WaveSpeed AI with ~/.gemini/antigravity-cli/settings.json, Gemini generateContent API, /v1beta/models/{model}:generateContent, base URL https://llm.wavespeed.ai/v1, and default model deepseek/deepseek-v4.1-flash-1017. Copy the configuration above, export your API key, run the agent, then verify requests in Logs.

1

Create a WaveSpeed access key

2

Export the required key locally

3

Paste config into

~/.gemini/antigravity-cli/settings.json
4

Run agy and check Logs

What this Antigravity CLI setup configures

Protocol

Gemini generateContent API

Endpoint

/v1beta/models/{model}:generateContent

Model

deepseek/deepseek-v4.1-flash-1017

The copy-ready configuration above is the only Antigravity CLI file you need to edit for the recommended setup: ~/.gemini/antigravity-cli/settings.json. Keep the API key in your shell environment so it is not committed to a repository.

Troubleshooting

The API key is not being picked up

Export WAVESPEED_API_KEY in the same shell where you run Antigravity CLI. If you use a shell profile, reload the terminal before starting the agent.

Requests fail with a protocol or endpoint error

Check that Antigravity CLI is using Gemini generateContent API and endpoint /v1beta/models/{model}:generateContent. Protocol mismatches are the most common cause of 404 or payload errors.

The selected model does not work

Confirm the model id exists in WaveSpeed Models, then paste the exact id into ~/.gemini/antigravity-cli/settings.json. You can start with the default model shown on this page.

No requests appear in Logs

Make sure Antigravity CLI is using the WaveSpeed base URL and your current API key. Then send a new prompt from the local agent and refresh Logs.

Can this Antigravity CLI guide show up in search?

Yes. This page is built as an indexable setup guide for users searching for Antigravity CLI custom provider, OpenAI-compatible endpoint, base URL, and local agent configuration workflows.