Antigravity CLI — Tutorials
Step-by-step tutorials for Antigravity CLI. Setting up MCP servers, installing plugins, automating PR reviews, and building agent skills.
Antigravity CLI — Tutorials
Step-by-step guides for common Antigravity CLI workflows. For skills-based workflows, see the Agent Skills guide.
Related Tutorials
- Antigravity Image Pipeline — Full pipeline: CLI coding → Antigravity Nano Banana → cwebp → production
- Gemini + Antigravity Pattern — Cross-tool development with image generation
Setting Up MCP Servers
Connect Antigravity CLI to files and external tools through the MCP Manager and mcp_config.json:
- Type
/mcpto open the MCP Manager. - Add the server definitions to
~/.gemini/config/mcp_config.json(global) or.agents/mcp_config.json(workspace). - Reload from the MCP Manager and verify the server connects.
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/absolute/path/to/project"
]
}
}
}
The Filesystem server requires at least one allowed directory argument. The official GitHub and Postgres reference servers are archived, and their npm packages are deprecated; browse the MCP Registry for maintained alternatives.
Now your agent can inspect and work with the allowed project files:
> List the files in src/ and summarize the project structure
> Read package.json and list the available scripts
Installing a Plugin
Extend Antigravity CLI with community plugins:
# Install a security audit skill
agy plugin install https://github.com/user/security-audit-skill
# List installed plugins
agy plugin list
# List available skills
> /skills
Automating PR Reviews
Set up automatic code review with GitHub Actions:
name: AI Review
on: [pull_request]
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: curl -fsSL https://antigravity.google/cli/install.sh | bash
- run: |
mkdir -p ~/.gemini/antigravity-cli
printf '%s\n' '{"modelProvider":"gemini"}' > ~/.gemini/antigravity-cli/settings.json
- run: |
agy -p "Review this PR for bugs, security, and style" --output-format json --model gemini-3.8-flash-high
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
Sources
Related Articles & Guides
Antigravity CLI — Configuration Reference
Complete configuration reference for Antigravity CLI. Settings.json, environment variables, MCP servers, plugins, trusted folders, and project context files.
#antigravityAntigravity CLI — AI Coding Agent for Everyone
Google's terminal-based AI coding agent. Replaces Gemini CLI for individual consumers. Go-native, multi-model, async workflows. Install with curl, authenticate with Google, start coding.
Antigravity CLI — Getting Started
Install, authenticate, and run your first Antigravity CLI session. Covers curl and Homebrew installs, OAuth, API key auth, and essential commands.