Home › Rules › Antigravity CLI vs Gemini CLI
Antigravity CLI vs Gemini CLI: who should use which now
Short answer: if you used Gemini CLI with a free Google account or a Google AI Pro / Ultra (Google One) plan, Google moved that access to Antigravity CLI (agy) on June 18, 2026. Gemini CLI (gemini) is still maintained for Gemini Code Assist Standard or Enterprise, Code Assist for GitHub on Google Cloud, and paid API / Vertex keys. The two tools share some ideas (skills, hooks, subagents, MCP), but they are not the same command, settings file or quota system. For how Antigravity's plan limits and AI credits work, see Antigravity limits and AI credits.
Who should use which now
| If you are… | Use this terminal tool | What Google's pages say today |
|---|---|---|
| On a free Google account, or Google AI Pro / Ultra through Google One | Antigravity CLI (agy) | The May 19, 2026 developers blog said Gemini CLI would "stop serving requests for Google AI Pro and Ultra, as well as those using it free of charge" on June 18, 2026. The Gemini CLI README now says free individual access and Google AI Pro / Ultra "moved to Antigravity CLI on June 18, 2026." |
| On Gemini Code Assist Standard or Enterprise, or Code Assist for GitHub through Google Cloud | Gemini CLI (gemini) is still supported | The same blog says that access "remains unchanged," and the README describes Gemini CLI as maintained for those enterprise Code Assist workflows (plus "legacy paid API / Vertex keys"). |
| Using a paid Gemini API key, Vertex AI, or a Gemini Enterprise Agent Platform key | Gemini CLI still accepts those. Antigravity CLI can also use a Gemini API key, with extra setup | The blog says Gemini CLI "will remain accessible via paid Gemini and Gemini Enterprise Agent Platform API keys." Antigravity's authenticate doc says a key works only if you also set modelProvider to gemini (a key by itself does nothing). |
| Want the desktop app and the terminal to share one agent harness | Antigravity CLI plus Antigravity 2.0 (the desktop app) | Google's Antigravity CLI blog (May 19, 2026) says both products use the same harness and share common settings. Conversations are not shared by default; you can open CLI chats in the app with the @conversation dropdown. |
The Gemini CLI README also names a third command, Gemini API CLI (gemini-api): a "stateless API CLI (not a coding harness)" for talking to Gemini models from scripts or from other agents. That is a different tool from both agy and gemini, and this page does not cover it.
What changed on June 18, 2026
Google published the switch on May 19, 2026. From that day, Antigravity CLI was "available to everyone." On June 18, 2026:
- Gemini CLI and the Gemini Code Assist IDE extensions stopped serving requests for Google AI Pro, Ultra and free Gemini Code Assist for individuals.
- The same cutoff applied to Gemini Code Assist for GitHub for those accounts: no new installs on GitHub organizations that day, and requests "in the following weeks" would stop being served.
- Google said it would keep Gemini CLI updated for enterprise Code Assist customers (latest models, bugs and security fixes). The project stays on GitHub as Apache 2.0 software.
Google also said there would not be "1:1 feature parity right out of the gate," but that Antigravity CLI keeps Gemini CLI's main pieces: Agent Skills, Hooks, Subagents, and Extensions (now called Antigravity plugins). It listed three changes it did want: the CLI is built in Go, it can run several agents in the background without locking the terminal, and it shares its agent harness with Antigravity 2.0.
Side-by-side
| Antigravity CLI | Gemini CLI | |
|---|---|---|
| Command | agy | gemini |
| Install | Official installer script (a standalone binary at ~/.local/bin/agy on macOS/Linux) | npm install -g @google/gemini-cli. The README also lists npx @google/gemini-cli, Homebrew and MacPorts |
| Settings file | ~/.gemini/antigravity-cli/settings.json (flat keys; edit with /config or /settings) | ~/.gemini/settings.json (user) and .gemini/settings.json (project). Settings sit in nested groups such as general, ui, context |
| Rules / context files | Reads GEMINI.md and AGENTS.md by default, plus .agents/rules/*.md. Global files live under ~/.gemini/ (see files) | Default file name is GEMINI.md (global: ~/.gemini/GEMINI.md). You can add other names, including AGENTS.md, with context.fileName |
| Project skills folder | .agents/skills/ (global skills still work from ~/.gemini/skills/ or ~/.gemini/antigravity-cli/skills/) | .gemini/skills/ in the project; ~/.gemini/skills/ globally |
| MCP servers | Their own files: ~/.gemini/config/mcp_config.json (global) and .agents/mcp_config.json (project). Remote servers use serverUrl | Declared inside settings.json under mcpServers. Remote servers use url or httpUrl |
| How limits work | Your Antigravity / Google AI plan quota (weekly on the $0 plan; every five hours on Pro and Ultra until a weekly cap). Google does not publish a daily request count. Check with /usage (alias /quota) | The quota page still lists daily request caps by sign-in type, including 1,000 / 1,500 / 2,000 a day for Google-account tiers. Those personal-account numbers conflict with the June 18 move (see where the pages disagree) |
| Check usage | /usage or /quota (model groups, weekly and five-hour limits); /credits for AI credits | /stats model (this session's tokens plus "information about the limits associated with your current quota") |
| Auto-approve tools | Modes include default, accept-edits, auto (sandbox required; not for business or enterprise) and plan. Flag: --dangerously-skip-permissions. Setting: toolPermission (default request-review) | Approval modes include default, auto_edit, plan and yolo. yolo (approve everything) is only available as a flag (--yolo or --approval-mode=yolo), not as a saved default |
| Headless / one-shot | agy -p "prompt" (also --print / --prompt); agy -i "prompt" to start interactive with a first prompt | gemini -p "prompt" / --prompt; gemini -i "prompt" / --prompt-interactive |
Install and first commands
For Antigravity CLI, Google's get-started page gives these installers. After that, run agy in a project folder. The first launch walks you through color scheme, rendering mode (alt-screen or inline) and whether you trust the folder. If it finds old Gemini CLI config, it also offers a migration checklist (see how to switch).
# macOS / Linux / Googlebook
curl -fsSL https://antigravity.google/cli/install.sh | bash
# Default binary: ~/.local/bin/agy
# Windows (PowerShell)
irm https://antigravity.google/cli/install.ps1 | iex
# Default binary: C:\Users\<user>\AppData\Local\agy\bin
# Check it installed
agy --version
# Start a session in this folder
agy
Free rules starter pack for Cursor, Claude Code, Codex and Antigravity
One shared AGENTS.md that works across Cursor, Claude Code, Codex, Copilot and Antigravity, plus database and test rules in each tool's format. Unzip it into your project and fill in two sections. I'll email you the link.
Free. No spam. Unsubscribe anytime. See our privacy note.
Useful startup flags from the CLI reference: --mode accept-edits|auto|plan, --model, --sandbox, -c / --continue (most recent chat), --conversation <id>, and -p for a one-shot prompt. Inside a session, type / to search slash commands. A short list people actually use:
/config(alias/settings) — settings overlay/usage(alias/quota) — model quotas/credits— AI credit balance/plugin(alias/plugins) — install, list, enable, disable/skills— loaded skills;/skills reloadrereads them from disk/plan,/permissions,/mcp,/model,/agents/resume(aliases/switch,/conversation),/rewind(alias/undo),/clear(alias/new)/exit(alias/quit), or Ctrl+D when the prompt is empty
Gemini CLI still installs like this, from its get-started page and README:
# Gemini CLI's get-started page (standard install)
npm install -g @google/gemini-cli
gemini
# Also listed on the Gemini CLI README, Nov 8, 2026
npx @google/gemini-cli
brew install gemini-cli
Once it is running, /settings opens its settings dialog, and /stats model shows token use and quota info. /memory show prints the combined GEMINI.md context; /memory reload (the configuration page also mentions /memory refresh) rereads those files.
Settings files
This is one of the easy places to get mixed up, because both tools keep files under ~/.gemini/, but not the same file.
Antigravity CLI reads ~/.gemini/antigravity-cli/settings.json. Leave a key out and it uses the default. Google's reference page gives this example (it is theirs, not ours). You can also add "$schema": "https://antigravity.google/schemas/v1/settings.json" at the top for editor autocomplete:
{
"agentMode": "auto",
"colorScheme": "tokyo night",
"altScreenMode": "always",
"toolPermission": "proceed-in-sandbox",
"notifications": true,
"enableTerminalSandbox": true
}
A few keys that matter day to day, with Google's defaults:
agentMode— default""(plaindefaultmode). Other values:accept-edits,auto(macOS/Linuxv1.3.5+, Windowsv1.4.4+; needs the terminal sandbox; hidden for business and enterprise accounts),plan.toolPermission— defaultrequest-review(asks before write, bash, web and MCP tools unless an allow rule covers them). Alsoproceed-in-sandbox,always-proceedandstrict.enableTerminalSandbox— defaultfalse.useG1Credits— defaultfalse. When on, the CLI can spend purchased AI credits after your plan quota runs out (not for business accounts). More on that: Antigravity limits.
Flags such as --sandbox or --dangerously-skip-permissions override the file for that session only. The settings menu marks the override so you can see where a value came from. What each mode and toolPermission value lets the agent do, and how the terminal sandbox fits in, is in Antigravity permissions and sandbox.
Gemini CLI uses nested JSON in ~/.gemini/settings.json (every session) and .gemini/settings.json (this project; it wins over the user file). System files can sit above or below those, and command-line flags win last. Its own example groups keys under general, ui, tools, mcpServers and so on. Approval defaults live at general.defaultApprovalMode (default, auto_edit or plan — not yolo).
Using a Gemini API key
The setup is not the same:
- Gemini CLI: export
GEMINI_API_KEYand, when the CLI asks how to authenticate, choose "Use Gemini API key." It also loads variables from.envfiles (with some exclusions). - Antigravity CLI: set
modelProvidertogeminiin~/.gemini/antigravity-cli/settings.jsonand exportGEMINI_API_KEY. Google's authenticate doc says setting only the environment variable "has no effect," and that the CLI does not load.envfiles. The header then shows "Gemini API key" instead of your email, and/logoutdoes nothing because there is no saved session.
{
"modelProvider": "gemini"
}
Matching kit: MVP Spec-to-Build Pack ($7)
The free rules set the boundaries. The MVP pack gives you the build order: a 1-page spec to fill in first, then 7 prompts in sequence (skeleton, review, login, database, security, one feature at a time, polish), plus a "did I leak user data?" checklist.
See the MVP Spec-to-Build Pack ($7) →
Instant download. 7-day refund, no questions asked.
GEMINI.md vs AGENTS.md
You do not have to rename your existing rule files just to open agy. Google's migration guide says both CLIs "use identical workspace context rules," and that Antigravity CLI keeps reading:
- Workspace files:
GEMINI.mdandAGENTS.mdin the folder you started in - Global file:
~/.gemini/GEMINI.md
Antigravity's own rules page goes further (and applies to the CLI, the app and the IDE). It also loads:
AGENTS.mdorGEMINI.mdin the workspace folder, in any parent folder up to the repository root, or in.agents/at those same levels- Modular rules in
.agents/rules/*.md(YAML frontmatter required; a missing or invalidtriggermeans the file is ignored) - Global files at
~/.gemini/AGENTS.md,~/.gemini/GEMINI.md,~/.gemini/config/AGENTS.md,~/.gemini/config/GEMINI.md, plus~/.gemini/config/rules/*.md - Rules bundled inside installed plugins under
~/.gemini/config/plugins/<plugin>/rules/
AGENTS.md and GEMINI.md do not use frontmatter in Antigravity: the whole file stays on. One CLI-specific note from that same rules page: the Antigravity CLI does not support @-mentioning a manual rule.
Gemini CLI's default is still the name GEMINI.md. It loads ~/.gemini/GEMINI.md, then files in the workspace and parent folders, and it can also pick up a GEMINI.md "just in time" when a tool opens a directory (and walk up from there). If you want it to read AGENTS.md too, set context.fileName (this example is from Gemini CLI's own GEMINI.md page):
{
"context": {
"fileName": ["AGENTS.md", "CONTEXT.md", "GEMINI.md"]
}
}
Copy-paste starters: GEMINI.md examples, AGENTS.md examples and Google Antigravity rules. Google's migration page and its rules page do not fully agree on subdirectory files; that is called out under where the pages disagree.
Skills folders after you switch
Global skills can stay put. Project skills cannot: Google says you have to move them yourself.
| Skills location | Gemini CLI | Antigravity CLI |
|---|---|---|
| Global (every project) | ~/.gemini/skills/ | ~/.gemini/skills/ or ~/.gemini/antigravity-cli/skills/ |
| This project | .gemini/skills/ | .agents/skills/ |
If your repo still has .gemini/skills/, rename or move that folder to .agents/skills/ or Antigravity will not treat those skills as slash commands. More: Google Antigravity skills.
How to switch from Gemini CLI
Google's migration guide is the page to follow. In short:
- Install
agywith the script above, then runagy --version. - First launch. If the CLI finds old Gemini CLI config, it shows a checklist: which extensions and global settings to convert, session tokens moved into your OS keyring, and visual settings mapped over. Google notes "partial parity": workspace skills, rules and MCP servers are kept, but some custom terminal themes or experimental visual overlays from Gemini CLI may not be.
- Import extensions as plugins if you want to do that yourself, rather than only during onboarding:
# After you have agy installed, convert local Gemini CLI extensions
agy plugin import gemini
Google's sample output shows extensions being converted piece by piece: skills kept or skipped, legacy commands turned into skills, and MCP server blocks written to mcp_config.json.
- Move project skills from
.gemini/skills/to.agents/skills/, as in the table above. This step is manual. - Update MCP configs if you maintain them by hand. Gemini CLI kept servers inside
~/.gemini/settings.json. Antigravity CLI wants:- Global:
~/.gemini/config/mcp_config.json - This project:
.agents/mcp_config.json
urlorhttpUrltoserverUrl(Google's MCP page now acceptsurlas well; more in Antigravity MCP setup). This JSON is Google's own example from the migration guide (including the placeholder token): - Global:
{
"mcpServers": {
"remote-indexer": {
"serverUrl": "https://mcp.internal.enterprise.com/sse",
"env": {
"AUTH_TOKEN": "secure_alpha_token"
}
}
}
}
Then sign in. On your own machine, agy tries the OS keyring first and only opens a browser if it has no saved token. Over SSH it prints a URL and asks you to paste back an authorization code. Use /logout to clear the saved profile from the keyring.
Limits, in brief
This is the part people search for as "antigravity cli vs gemini cli quota." The longer version, with plan prices and AI credits, is on Antigravity limits and AI credits.
- Antigravity CLI uses your Google AI / Antigravity plan. Google describes the $0 plan as "a meaningful quota, refreshed weekly," and Pro / Ultra as a quota "refreshed every five hours" (Pro: until a weekly limit). It does not publish a number of requests per day. Type
/usageto see what is left per model group. Type/creditsif you buy extra AI credits (Pro and Ultra). Spending those credits in the CLI is off until you turnuseG1Creditson. - Gemini CLI's quota page, which still said "Last updated: Jun 18, 2026" when we fetched it today, lists daily caps such as 1,000 requests a day for Gemini Code Assist (Individual), 1,500 for Google AI Pro and 2,000 for Google AI Ultra, plus 1,500 / 2,000 for Code Assist Standard / Enterprise. The README and the May 19 blog say personal free / Pro / Ultra access moved that same day, so treat the personal-account daily numbers as out of date. The Standard / Enterprise figures are the ones that still match "your access remains unchanged."
Where Google's own pages disagree
We checked them all on Nov 8, 2026. These do not line up, so we did not pick a side above:
- Personal Gemini CLI quotas. The Gemini CLI quota page still lists 1,000 / 1,500 / 2,000 requests a day for Google-account tiers, and it still describes a "generous free tier." Its README and Google's May 19 blog say that free, Pro and Ultra access moved to Antigravity CLI on June 18, 2026.
- Gemini CLI sign-in docs written after the cutoff. The authentication page (last updated Sep 18, 2026) still says "For most users, we recommend starting Gemini CLI and logging in with your personal Google account," and it defines individual accounts as "all free tier accounts such as Gemini Code Assist for individuals, as well as paid subscriptions for Google AI Pro and Ultra." The get-started page (last updated Apr 17, 2026) walks through that same personal Google sign-in. The README, updated for the June 18 move, says those accounts should use Antigravity CLI.
- An older "which should I choose" post. Google Cloud's February 4, 2026 blog, "Choosing Antigravity or Gemini CLI," compares Antigravity IDE with Gemini CLI (not Antigravity CLI, which had not been announced yet). It also says both have "a generous free tier." That was true of Gemini CLI's personal access at the time; it does not match the June 18 change.
- Subfolder rule files. The migration guide says the two CLIs use "identical workspace context rules" and that no edits to your existing
GEMINI.md/AGENTS.mdfiles are needed. Gemini CLI's GEMINI.md page describes extra "just-in-time" files: when a tool opens a folder, it looks for aGEMINI.mdthere and in parent folders. Antigravity's rules page says it does not load rules from subfolders below the workspace folder, "even when the agent reads or edits files there." If you relied on aGEMINI.mdsitting deep in a subfolder, check whetheragystill sees it.
Same idea in other tools
If you are choosing among Google's terminal tool, Claude Code and Codex rather than between Google's two CLIs, start with Antigravity vs Claude Code vs Codex. For the files each tool reads, see GEMINI.md examples, Antigravity rules and Antigravity skills.
Next step for Antigravity: Agent Skills
Skills are folders your AI coding agent loads only when the job comes up, and Claude Code, Cursor and OpenAI Codex all read the same SKILL.md format. The Vibe Coder Skills Pack ($9) is 6 ready-to-copy SKILL.md skills (fix-one-bug, stop-the-loop, leak-check, ship-check, explain-project, builder-handoff) for Claude Code, Cursor and OpenAI Codex. Also included in the 6-kit bundle.
Get the Skills Pack for $9 on Gumroad → See what's inside
One .zip of skill folders plus one markdown file. 7-day refund, no questions asked.
Best value
All 6 kits for $29 — or $20.30 with code WELCOME30 (through Nov 30)
A short AGENTS.md or GEMINI.md keeps either CLI from guessing how you like to work. The kits give your AI the plan up front, step by step: a small game, a Discord bot, an email-triage agent, an MVP, or a cleanup of messy code.
Get all 6 kits for $29 → See what's in each kit
$29 instead of $48 for the six kits bought separately; WELCOME30 takes 30% off that at checkout ($20.30). Instant download from Gumroad. 7-day refund, no questions asked.
Related
- Google Antigravity limits and AI credits (free tier, quotas, AI credits, CLI vs Gemini CLI limits)
- GEMINI.md examples (Gemini CLI and Antigravity)
- Google Antigravity rules (examples, triggers, where the files go)
- Google Antigravity skills (skills folder, SKILL.md, the .gemini/skills/ move)
- Antigravity vs Claude Code vs Codex (prices, limits, rules files)
- Google Antigravity plugins (install, marketplace, plugins vs skills)
- Google Antigravity MCP (mcp_config.json location, MCP Store, Figma, GitHub, fixes)
- Antigravity Agent Manager (now the Antigravity App) (where it went in 2.0, shortcuts, plans, fixes)
- Antigravity permissions and sandbox (presets, allow and deny rules, Turbo, sandbox fixes)
- AGENTS.md examples
- Plan mode guide (6 tools + 6 plan prompts)
- Free rules file generator
Sources
- Google for Developers blog: Transitioning Gemini CLI to Antigravity CLI (May 19, 2026)
- Gemini CLI on GitHub: README
- Google Antigravity docs: Migrating from Gemini CLI
- Google Antigravity docs: Get started (CLI install)
- Google Antigravity docs: Authenticate
- Google Antigravity docs: CLI commands (reference)
- Google Antigravity docs: CLI settings and tips
- Google Antigravity docs: CLI best practices
- Google Antigravity docs: CLI AI credits
- Google Antigravity docs: Model quotas (/usage)
- Google Antigravity docs: Rules
- Google Antigravity docs: Plans
- Google Antigravity docs: Choose your Antigravity
- Google Antigravity blog: Introducing Google Antigravity CLI (May 19, 2026)
- Gemini CLI docs: Get started
- Gemini CLI docs: Authentication setup
- Gemini CLI docs: Provide context with GEMINI.md files
- Gemini CLI docs: Configuration
- Gemini CLI docs: Quotas and pricing
- Google Cloud blog: Choosing Antigravity or Gemini CLI (Feb 4, 2026)
Every command, path, limit and date here was checked Nov 8, 2026 on Google's own Antigravity docs, the developers blog, Gemini CLI docs and the Gemini CLI README. Google says its usage limits can change. If something here no longer matches, tell us at [email protected].