docs
Terminal agents

Antigravity CLI

Markdown

Terminal agent · Gemini

Full guide
FormatWhere to set it up
Gemini~/.gemini/antigravity-cli/settings.json → "modelProvider": "gemini"; GEMINI_API_KEY and GOOGLE_GEMINI_BASE_URL environment variables

Setup

Copy the configuration and replace sk-... with your key from the Ailoot Dashboard. Prefer storing the key in the environment variable AILOOT_API_KEY, if the application supports it.

Before starting, request GET /v1/models with your Ailoot key. Choose an exact model ID whose methods include POST /v1beta/models/{model}:generateContent, then use that ID in the configuration. For agents, also check tool support and the features required by your client version.

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

{
  "modelProvider": "gemini"
}
export AILOOT_API_KEY="sk-..."
# in the terminal:
export GEMINI_API_KEY="$AILOOT_API_KEY"
export GOOGLE_GEMINI_BASE_URL=https://api.ailoot.ai
agy --model gemini-3.8-flash

Example model: gemini-3.8-flash. Choose any other model from the catalog — check that it supports the format you need.

Good to know

Test

  • For the Gemini format, the URL is https://api.ailoot.ai without /v1beta.
  • Ask a short question. If you get an error, check the code and Request ID, then consult Errors and limits.
  • 404: https://api.ailoot.ai → /v1beta/models/{model}:generateContent. Before starting, request GET /v1/models with your Ailoot key. Choose an exact model ID whose methods include POST /v1beta/models/{model}:generateContent, then use that ID in the configuration. For agents, also check tool support and the features required by your client version.
  • 402 — insufficient balance for the reserve. Agents reserve more than chat: why.

Application documentation: https://antigravity.google/docs/cli/install/

Still have questions? Send your Request ID and a description — we'll help you troubleshoot.Contact support