Google has built its Antigravity CLI, agy, into every Colab runtime, free plan included. You open it beside a notebook, and it reads, edits and runs cells on the same machine as your kernel. I ran it inside a Colab notebook, put its /swarm mode up against a single agent on one small job, and timed both. I then repeated the test on a Linux VM.
The short version: it’s handy if you already work in Colab, and the free plan gets a capable model. What it doesn’t change is Colab’s limits on GPU time and runtime life. And on a small job, /swarm cost me about two and a half times the time and tokens of one agent in Colab, and about twice on the VM.
What Google shipped
- Where it runs. On the Colab runtime, next to the kernel. It sees the same files, packages and GPU, so it can install dependencies, fix environment errors and check on long jobs.
- Who gets it. Every Colab plan, including free. Google says new Antigravity releases reach Colab with runtime updates.
- Which models. Gemini 4 Hydrogen on every plan. Paid Google AI Pro and Ultra plans add Gemini 4 Carbon, Gemini 4 Neon and Orchestrator.
- What carries over from the local CLI.
/swarmmulti-agent runs, plugins,AGENTS.mdrules, skills, MCP servers and approval settings.
Google’s example for /swarm is an MNIST bake-off: one worker prepares the data, four train different models in parallel, and a last one adds a leaderboard to the notebook. Its other demos are a data-story skill that turns a CSV into a one-page report and the Chrome dino game written into a cell.
How it differs from the Colab CLI
Google’s Colab CLI, from June, runs on your own machine and borrows a Colab runtime. This is the reverse: the agent lives on the runtime. In my earlier piece on Colab and coding agents, Codex, Claude Code and opencode reached Colab through that CLI or an SSH tunnel. The built-in agent is agy only, and it needs neither.

How to start it
- Open any Colab notebook, or Google’s Antigravity CLI sample notebook.
- Press
Ctrl+Shift+P(Cmd+Shift+Pon macOS) and choose Antigravity CLI. Or open the terminal at the bottom of the page and runagy. - Sign in the first time. The sample notebook offers Google OAuth or a Google Cloud project, and Colab saves your
agysettings to your account.
Classmethod’s Morinaga tried it on a T4 runtime and reported two details Google’s post leaves out. The terms screen has a checkbox letting Google collect interaction data to improve the CLI, and it’s ticked by default. And agy asks for approval before running shell commands and before adding or running notebook cells, showing the cell it’s about to add.
On that T4, Morinaga asked it to pick a small Hugging Face model, set it up and answer a question. It chose Qwen2.5-1.5B-Instruct, finished setup in 59 seconds including the 3 GB download, and a follow-up batch test reached 486 tokens a second at batch size 16. Morinaga ran each measurement once.
What I ran
I ran agy from cells in a new Colab notebook on the default CPU runtime: 2 vCPUs (AMD EPYC 7B12), 12 GB of memory, a 108 GB disk, Ubuntu 24.04.5 on kernel 6.6.159+ and Python 3.13. agy 1.5.5 was already installed at /usr/local/bin/agy. The first call asked for a Google sign-in: agy prints an authorisation link, you approve it in a browser and paste the code that appears back into the prompt, and it gives up after 60 seconds. After that, every run used Gemini 4 Hydrogen at medium effort, headless, with --dangerously-skip-permissions, which suits a throwaway runtime. Before that I had run the same CLI, version 1.5.23, on a Linux VM with 4 vCPUs (Intel Xeon at 2.3 GHz), 15 GB of memory, a 252 GB disk and Ubuntu 24.04 on kernel 6.18. It authenticated with a Gemini API key, also used Hydrogen at medium effort, and was allowed only a few scoped permissions.

The job was a small bake-off on scikit-learn’s digits dataset, close to Google’s MNIST example but sized for a CPU-only machine. The VM runs allowed only the venv’s Python interpreter, a couple of read-only shell commands and file access in the run folder. These are the prompts from the VM runs, and in Colab I changed one thing, the interpreter to python3. This is the swarm prompt:
/swarm Run a small digits bake-off in this folder using scikit-learn's load_digits dataset (use /tmp/agytest/venv/bin/python as the interpreter). One worker prepares the data and saves it to data.npz. Four workers each train a different model in parallel (logistic regression, random forest, SVM, k-nearest neighbours) and write their test accuracy to results_<name>.json. A last worker writes leaderboard.md ranking the four by accuracy. Run everything and tell me the ranking.
And the single-agent prompt, with the same task and no swarm:
Run a small digits bake-off in this folder using scikit-learn's load_digits dataset (use /tmp/agytest/venv/bin/python as the interpreter). Prepare the data and save it to data.npz. Train four models (logistic regression, random forest, SVM, k-nearest neighbours) and write each one's test accuracy to results_<name>.json. Write leaderboard.md ranking the four by accuracy. Run everything and tell me the ranking.
The coordinator started a data worker, four trainers, a leaderboard writer and a monitor, on the VM and in Colab, and every run finished with all four result files and a leaderboard. In Colab the single agent picked SVM as the top model all three times, and the swarm picked SVM twice and k-nearest neighbours once. These are the Colab runs, with run time as agy reports it and tokens as input plus output.

| Run | Seconds | Tokens (input plus output) | Top model |
|---|---|---|---|
| One agent, run 1 | 26.0 | 18.6k | SVM |
| One agent, run 2 | 26.4 | 21.0k | SVM |
| One agent, run 3 | 27.3 | 21.3k | SVM |
| Swarm, run 1 | 78.2 | 59.1k | SVM |
| Swarm, run 2 | 59.5 | 47.4k | SVM |
| Swarm, run 3 | 61.2 | 48.0k | k-nearest neighbours |
On the VM the swarm run looked like this.

| Run | Seconds | Tokens (input plus output) | Top model |
|---|---|---|---|
| One agent, run 1 | 39.9 | 28.0k | SVM |
| One agent, run 2 | 32.0 | 33.0k | SVM |
| One agent, run 3 | 21.4 | 26.3k | SVM |
| Swarm, run 1 | 83.3 | 72.7k | SVM |
| Swarm, run 2 | 54.4 | 53.8k | k-nearest neighbours |
| Swarm, run 3 | 77.0 | 54.8k | SVM |

On the VM the swarm averaged 72 seconds and 60k tokens. One agent averaged 31 seconds and 29k. Those are averages of three runs each, and the swarm’s slowest run (83 seconds) took more than twice as long as the single agent’s slowest (40). In Colab the gap was a little wider. The swarm averaged 66 seconds and 52k tokens against 27 seconds and 20k for one agent, about two and a half times on both counts. Google’s docs flag the same cost from the quota side. Every worker is its own agent, so a swarm burns quota much faster than one conversation, and the feature is in preview.
The rankings moved because each run picked its own train and test split, so accuracy figures from different runs shouldn’t be compared. Each model here trains in well under a second, so splitting the work across several agents only added coordination. Google’s own guidance is to use /swarm when a task divides cleanly into pieces that each take real time, and training four models in parallel on a GPU fits that. Mine didn’t.
What the free tier does and doesn’t give you
Three limits apply, and they’re set by different parties.

- Model quota. Antigravity’s plans page gives free users a quota that refreshes weekly, a weekly rate limit and Gemini 4 Hydrogen. Google doesn’t publish the size of the quota, and says limits follow how much work the agent does. Pro and Ultra plans refresh every five hours and can buy extra usage with AI credits. Hydrogen’s API price is $1.50 per million input tokens and $7.50 per million output tokens, which is what a Gemini API key pays instead.
- GPU time. That’s Colab’s, not Antigravity’s. Colab’s FAQ says free GPU access is heavily restricted, usage limits aren’t published, and a free notebook runs at most 12 hours. Morinaga’s company Workspace account showed an “Antigravity Starter Quota” banner, and Google’s docs say work accounts can be treated differently from personal ones.
- The runtime. It’s temporary. Colab saves your
agysettings to your account, but anything under~/.gemini, such as skills and rules, stays only on that runtime. Keep your own in Drive or a GitHub repository, and save outputs like rendered video there too.
So “install nothing, free” is accurate for the agent. Long GPU jobs still belong on a paid plan.
Where it fits
- Use the built-in agent if you already live in Colab notebooks and want help writing cells, fixing environment errors and setting up models.
- Use the Colab CLI route from my earlier piece if you want Codex, Claude Code or opencode driving a Colab GPU from your own machine.
- Use
agylocally if you want the same agent against your own repository. It’s the same CLI, and the API-key route above is how it runs headless.
What I didn’t run
- Colab’s own launchers: the command palette entry, the terminal panel and the notebook-editing skill. I ran
agyfrom notebook cells, and what the launchers do comes from Google’s post, the sample notebook and Morinaga’s write-up. - Any GPU job. The Colab runtime I used was CPU-only.
- Gemini 4 Carbon, Neon and Orchestrator. All my runs used Hydrogen.
Sources
- Antigravity CLI now works in Google Colab, Google Colab on Medium
- Antigravity CLI in Colab, sample notebook
- Swarm, Plans and Installation and auth, Antigravity docs
- Introducing Gemini 4 Hydrogen, Google
- Colab FAQ
- Antigravity CLI Is Now Available on Google Colab, So I Tried It Out, Classmethod
- Introducing the Google Colab CLI, Google Developers Blog




