Antigravity CLI — Configuration Reference
Complete configuration reference for Antigravity CLI. Settings.json, environment variables, MCP servers, plugins, trusted folders, and project context files.
Antigravity CLI — Configuration Reference
Antigravity CLI stores settings in JSON format and uses environment variables for auth. Here's the complete reference.
Settings File
Location: ~/.gemini/antigravity-cli/settings.json
{
"model": "Gemini 3.5 Flash (High)",
"enableTerminalSandbox": true,
"toolPermission": "request-review",
"trustedWorkspaces": ["/home/user/projects"],
"enableTelemetry": true,
"colorScheme": "dark"
}
Available Settings
| Key | Type | Default | Description |
|---|---|---|---|
model | string | "Gemini 3.5 Flash (High)" | Default model |
enableTerminalSandbox | boolean | true | Enable sandbox for terminal commands |
toolPermission | string | "request-review" | Permission mode: "request-review", "always-proceed", "strict", "proceed-in-sandbox" |
trustedWorkspaces | array | [] | Directories allowed to bypass sandbox |
enableTelemetry | boolean | true | Usage statistics |
colorScheme | string | "dark" | UI theme: "terminal", "dark", or "light" |
Sandbox & Permissions
Sandboxing is controlled by two settings:
enableTerminalSandbox— Toggles sandbox isolation on/off for shell commandstoolPermission— How the CLI handles permission requests:"request-review"— Ask for each operation (default)"always-proceed"— Auto-approve (not recommended for untrusted code)"strict"— Deny all non-read operations"proceed-in-sandbox"— Auto-approve within sandbox, ask outside
Environment Variables
| Variable | Purpose | Required |
|---|---|---|
ANTIGRAVITY_API_KEY | API key authentication | For API key auth |
GOOGLE_CLOUD_PROJECT | GCP project for Code Assist | For enterprise auth |
ANTIGRAVITY_SANDBOX | Override sandbox mode (boolean) | Optional |
ANTIGRAVITY_LOG_FILE | Log output path | Optional |
AGY_LOCK_WAIT_SECONDS | Settings lock timeout | Optional (default 600) |
MCP Servers
Antigravity CLI supports the Model Context Protocol for connecting external tools.
Add an MCP server
agy mcp add <name> <command>
agy mcp add postgres npx @modelcontextprotocol/server-postgres
Manage MCP servers
agy mcp list # List all servers
agy mcp remove <name> # Remove a server
agy mcp enable <name> # Enable a server
agy mcp disable <name> # Disable a server
MCP in settings.json
Servers can also be configured directly in settings.json:
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["@modelcontextprotocol/server-postgres"]
},
"github": {
"command": "npx",
"args": ["@modelcontextprotocol/server-github"]
}
}
}
Plugins
Plugins extend Antigravity CLI with new tools and capabilities.
Install a plugin
agy plugin install <source>
agy plugin install https://github.com/user/antigravity-skill-library
Manage plugins
agy plugin list # Show installed plugins
agy plugin update --all # Update all plugins
agy plugin uninstall <name> # Remove a plugin
Project Context Files
GEMINI.md
Place at project root for persistent project context:
# Project Context
## Commands
- `npm run dev` — Start development server
- `npm run build` — Production build
- `npm test` — Run tests
## Architecture
- Next.js 15 App Router
- Tailwind CSS v4
- Supabase for database + auth
- Vitest + Playwright for testing
AGENTS.md
Used by Antigravity CLI agents for agent-specific instructions. Same format as GEMINI.md. Both files are read and merged.
.antigravityignore
Exclude files from context:
node_modules/
dist/
.env
*.log
.geminiignore is also supported as a fallback.
Trusted Workspaces
Trusted workspaces bypass sandbox restrictions for the specified directories:
{
"trustedWorkspaces": [
"/home/user/projects/my-app/src",
"/home/user/projects/my-app/lib"
]
}
Configured in settings.json or via the CLI:
> /permissions add /home/user/projects/my-app/src
> /permissions list
> /permissions remove /home/user/projects/my-app/src
Related
- Getting Started — Install and authenticate
- Prompt Engineering — Prompt strategies
- Migration Guide — Gemini CLI → agy
- Agent Skills — Open standard for agent capabilities
- MCP Servers — Full MCP server directory
Related Articles
Antigravity CLI — Migration Guide from Gemini CLI
Comprehensive migration guide from Gemini CLI to Antigravity CLI (agy). Covers install, auth, config migration, command mapping, Ralph loop replacement, and CI/CD updates.
Gemini CLI — AI Coding Agent (Enterprise Only)
Enterprise guide to Gemini CLI for Vertex AI customers. Product is deprecated for public use — replaced by Google Antigravity. Covers enterprise installation, configuration, sandbox modes, and Google ecosystem integration.
AI Coding Tool Comparison — Which One Should You Use?
Detailed comparison of Claude Code, OpenCode, Gemini CLI, Cursor, and GitHub Copilot. Pricing, context windows, MCP support, prompt patterns, and decision guide for every stack.