English | δΈζ | EspaΓ±ol | FranΓ§ais | PortuguΓͺs | Π£ΠΊΡΠ°ΡΠ½ΡΡΠΊΠ° | Deutsch
Community-Fork & Hardened Offline Version of google-antigravity/antigravity-cli with automatic statusline & window title setup
π€ AI coding agent directly in your terminal. Understands the context of your codebase, creates and edits files, executes secure commands in a sandbox, and solves complex architectural tasks in a single prompt.
This fork downloads precompiled binaries directly from GitHub Release Assets (instead of Google API servers). Completely offline installation is also supported if the required archives were preloaded into the packages/binaries/ folder.
# Network installation from the fork repository:
curl -fsSL https://raw.githubusercontent.com/weby-homelab/antigravity-cli/main/install.sh | bash
# OR offline installation from a local repository:
git clone https://github.com/weby-homelab/antigravity-cli.git
cd antigravity-cli
# (Optional: download platform archives to packages/binaries/)
make install# Network installation:
irm https://raw.githubusercontent.com/weby-homelab/antigravity-cli/main/install.ps1 | iex
# OR offline installation from a cloned repository:
.\install.ps1# Network installation:
curl -fsSL https://raw.githubusercontent.com/weby-homelab/antigravity-cli/main/install.cmd -o install.cmd && install.cmd && del install.cmd
# OR offline installation from a cloned repository:
install.cmdNote
Unlike the original version, this fork is adapted for stable operation in headless/SSH sessions and local home labs.
- π Multi-file Editing β Edits multiple files simultaneously in your workspace with prior confirmation of changes.
- π Secure Shell Commands β Executes any terminal commands in the built-in Docker container (sandbox) or on the host system.
- π§ Multi-step Reasoning (PAV) β Independently builds a task execution plan, tests code, and debugs its own errors.
- πΎ Persistent Conversation History β Saves the complete conversation context and workspace state between sessions.
- π Plugin System β Extend the agent's capabilities with custom Skills and MCP (Model Context Protocol) servers.
Create a GEMINI.md file in the root of your project to provide specific context and development rules to the AI agent:
# Project Context
- This project uses FastAPI and Pydantic v2.
- Always use `model_dump()` instead of the deprecated `dict()`.
- STRICT RULE: No hardcoded passwords in code. Import all secrets from `.env`.The global settings file controls tool execution permissions, statusline/title scripts, and MCP servers:
- Linux/Unix:
~/.gemini/antigravity-cli/settings.json - macOS:
~/Library/Application Support/antigravity-cli/settings.json - Windows:
%APPDATA%\antigravity-cli\settings.json
{
"toolPermission": "always-proceed",
"statusLine": {
"enabled": true,
"command": "/home/user/.gemini/antigravity-cli/statusline.sh"
},
"title": {
"enabled": true,
"command": "/home/user/.gemini/antigravity-cli/title.sh"
},
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"]
}
}
}You can describe custom roles and instructions for AI agents in JSON format. Each agent must have its own directory containing an agent.json file:
- Global Agents (Linux/Unix):
~/.gemini/antigravity-cli/agents/{agent_name}/agent.json - Global Agents (macOS):
~/Library/Application Support/antigravity-cli/agents/{agent_name}/agent.json - Global Agents (Windows):
%APPDATA%\antigravity-cli\agents\{agent_name}\agent.json - Local Agents (Project Workspace):
{workspace_root}/.agents/agents/{agent_name}/agent.json
{
"name": "security-reviewer",
"description": "Analyzes code for vulnerabilities before commit",
"instructions": "Check changes for:\n- OWASP Top 10 vulnerabilities\n- Leakage of API keys or secrets\n- Correctness of firewall/nftables configuration"
}| Method | Command / Variable | Limitations & Features |
|---|---|---|
| Google Auth (Browser) | Automatically on first agy |
Standard login. Free limit: 60 req/min, 1000 req/day |
| API Key (Offline) | export GEMINI_API_KEY="X" |
Recommended for servers and automation |
| Vertex AI | export GOOGLE_GENAI_USE_VERTEXAI=true |
Enterprise level with Google Cloud cloud infrastructure |
| Sign Out | /logout |
Clearing local session tokens |
agy # Start an interactive session
agy -p "Prompt" # One-time execution without entering chat
agy -c # Continue the last incomplete conversation
agy --conversation <ID> # Load a session by specific ID
agy --sandbox # Run in an isolated Docker container
agy update # Update binary to the latest version
agy plugin list # List installed plugins/helpβ Help on available tools./settingsβ Interactive settings configuration./usageβ Statistics of spent tokens and quota./diffβ View current unsaved changes in the project./statuslineβ Configure terminal status line display.
Warning
The original Gemini CLI (gemini) is deprecating support for non-enterprise accounts on June 18, 2026. Migration to Antigravity CLI is required.
- Install the new client:
curl -fsSL https://raw.githubusercontent.com/weby-homelab/antigravity-cli/main/install.sh | bash - Migrate local custom agent configuration files (e.g. convert custom agents from YAML inside
~/.gemini/agents/to JSON files at~/.gemini/antigravity-cli/agents/{agent_name}/agent.json). - Update CI/CD configurations in GitHub Actions, replacing
geminicalls withagy. - Uninstall the old library:
npm uninstall -g @google/gemini-cli
| Feature | Gemini CLI (Legacy) | Antigravity CLI (Modern) |
|---|---|---|
| Development Platform | Node.js / TypeScript | Go (Native Compiled Binary) |
| Command Name | gemini |
agy |
| Startup Speed | ~1.2s (Node.js startup) | ~0.05s (instant native startup) |
| Configuration File | GEMINI.md |
GEMINI.md |
| Auto-update | Via npm update |
Built-in self-update mechanism |
| Support Status | β EOL (June 18, 2026) | β Active Development (Upstream) |
antigravity-cli/
βββ install.sh # Installer for Linux/macOS (offline/online)
βββ install.ps1 # Installer for Windows PowerShell (offline/online)
βββ install.cmd # Installer for Windows CMD
βββ Makefile # Automation targets (make install/reinstall/uninstall)
βββ GEMINI.md # Project context file template
βββ packages/ # Local offline distribution
β βββ manifests/ # Version manifests for all platforms
β βββ binaries/ # (Created manually for offline mode)
βββ CHANGELOG.md # Changelog and release log
This repository is an independent community fork of the original google-antigravity/antigravity-cli project.
Our Enhancements:
- π Multi-language localization support for docs and guides.
- π¦ Autonomy: offline installation capability without Google API downloads.
- π οΈ Convenience: added
Makefilefor a simplified tool lifecycle. - π‘οΈ Security: regular bug fixes and improvements to the sandbox environment.
- Official Links: Official Documentation Repo Β· Official CLI Codebase Β· Official Website
- Terms of Use: antigravity.google/terms Β· policies.google.com/privacy
Important
Fork Legal Status: This repository is an independent non-commercial copy (Community Fork) of the original client. It is not an official product of Google LLC. Google LLC is not responsible for the performance, modifications, or safety of this fork.
Licensing & Copyrights: The original software is distributed under the Apache License 2.0. All original code is the intellectual property of Copyright Β© 2025 Google LLC.
Trademark Use: The name "Antigravity CLI" and associated logos are used within Customary Use limits solely to describe the origin, compatibility, and functional purpose of the software. This project does not claim ownership of any Google LLC trademarks.
Disclaimer of Warranty: The software is provided on an "AS IS" basis, WITHOUT WARRANTIES OF ANY KIND, either express or implied. You assume all responsibility and risks associated with its use.
Caution
AI coding agents work autonomously. Always carefully review the proposed diff blocks and commands before confirming execution, especially when working with system files or firewall configuration.
