# Gemini CLI

Gemini CLI is Google's open-source agent for the terminal. Who can still use it now that Antigravity CLI serves personal accounts, and how undo works.

**Definition:** Gemini CLI is Google's open-source AI agent for the terminal, which you start in a folder and ask in plain words to read and edit the files there; since June 18, 2026 it serves work accounts and paid API keys, and personal Google accounts use Antigravity CLI instead.

## Since June 2026, personal accounts use Antigravity CLI

Gemini CLI used to work free with a personal Google account. On June 18, 2026, Google stopped serving it to free accounts and to Google AI Pro and Ultra, and moved those users to Antigravity CLI.

| Your account | The CLI to use | Start it with |
| --- | --- | --- |
| A work account on Gemini Code Assist Standard or Enterprise, or Code Assist for GitHub on Google Cloud | Gemini CLI | `gemini` |
| A paid Gemini API or Vertex AI key | Gemini CLI | `gemini` |
| A free personal Google account | Antigravity CLI | `agy` |
| Google AI Pro or Ultra | Antigravity CLI, with higher limits | `agy` |

Google says Gemini CLI isn't tuned for its newest Gemini models and points to Antigravity for them. Both run on a Mac and install from Google's docs.

## You ask in plain words, and it edits your drafts

Start Gemini CLI in a folder of drafts, and it reads the files, edits them and can run commands.

```prompt
Tighten the intro of issue-12.md and keep my headings.
```

Your standing instructions go in a file called GEMINI.md: your voice, your house style, the folders to leave alone. Gemini CLI sends it with every request. It reads one in your home folder, in the project folder and in the folders above it.

```markdown
# Articles

- Plain, friendly sentences. No hype words.
- US spelling. Write out numbers under ten.
- Headings in sentence case, with no colons.
- Don't edit the research notes in notes/.
```

If you also run Codex or Cursor Agent, keep one [AGENTS.md](/glossary/agents-md) for all of them. Ask Gemini CLI to set `context.fileName` in its settings to both AGENTS.md and GEMINI.md, and it reads both.

What trips people up: Gemini CLI's own checkpoints are off until you turn them on. Once they're on, it saves a snapshot before each file edit you approve, in its own hidden history rather than your project's Git, and `/restore` puts the files back.

## Moving to Antigravity CLI keeps your instruction files

- The first time you start Antigravity CLI, it offers to bring your Gemini CLI settings across.
- GEMINI.md and AGENTS.md keep working as they are.
- Project [skills](/glossary/agent-skills) move from `.gemini/skills/` to `.agents/skills/`, the folder Codex and Cursor read too. Move the folder yourself, or Antigravity CLI won't find them.
- Google says the move doesn't bring every Gemini CLI feature across.

## In Flywrite, either one runs under the page

Gemini CLI and Antigravity CLI run in Flywrite's terminal like any [CLI agent](/glossary/cli-agent): if it runs in your Mac's terminal, it runs under the page you're writing. Add either one as a launcher in **Settings → Terminal**.

Neither sees your selection on its own. Select the lines and press ⌘⇧L to [send them to the terminal](/guides/send-selection-to-cli-agent).

Flywrite saves a [checkpoint](/glossary/checkpoint) of the whole project when Claude Code starts in its terminal, and when Cursor Agent starts after its one-time setup. Codex and other CLI agents don't trigger it, so press ⌘⇧C before you start them.

GEMINI.md is a plain Markdown file, so it opens and edits like any draft. More in [The terminal](/docs/the-terminal).

## Questions

### Is Gemini CLI still free?

Not for personal accounts. Since June 18, 2026, free users and Google AI Pro and Ultra subscribers use Antigravity CLI instead, which works with a free personal Google account. Gemini CLI still works with a work account on Gemini Code Assist Standard or Enterprise, or with a paid Gemini API key.

### What's the difference between Gemini CLI and Antigravity CLI?

Both are Google's agents for the terminal. Gemini CLI, started with gemini, is the open-source original, now for work accounts and paid API keys. Antigravity CLI, started with agy, replaced it for personal accounts and reads the same GEMINI.md and AGENTS.md files.

## Sources

1. [Gemini CLI docs](https://geminicli.com/docs/), checked 2026-11-25
2. [Gemini CLI on GitHub](https://github.com/google-gemini/gemini-cli), checked 2026-11-25
3. [Google Developers Blog: Transitioning Gemini CLI to Antigravity CLI](https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli/), checked 2026-11-25
4. [Gemini CLI docs: Context files (GEMINI.md)](https://geminicli.com/docs/cli/gemini-md/), checked 2026-11-25
5. [Gemini CLI docs: Checkpointing](https://geminicli.com/docs/cli/checkpointing/), checked 2026-11-25
6. [Google Antigravity CLI](https://antigravity.google/product/antigravity-cli), checked 2026-11-25
7. [Antigravity docs: Migrating from Gemini CLI](https://antigravity.google/docs/cli/gcli-migration), checked 2026-11-25
8. [Antigravity docs: Plans](https://antigravity.google/docs/plans), checked 2026-11-25
9. [AGENTS.md](https://agents.md/), checked 2026-11-10
10. [OpenAI: Build skills](https://learn.chatgpt.com/docs/build-skills), checked 2026-11-16
11. [Cursor docs: Agent Skills](https://cursor.com/docs/context/skills), checked 2026-11-17
12. [Flywrite docs: Use the terminal under the page](/docs/the-terminal), checked 2026-11-25
13. [Flywrite docs: Undo changes with checkpoints](/docs/checkpoints-and-versions), checked 2026-11-25

---

This is the Markdown copy of https://flywrite.app/glossary/gemini-cli.
