Sulat.com / Writing on AIThursday, December 3, 2026
Enter →
Agent Engineering/3 December 2026

Antigravity CLI is now built into Colab

Google has put its Antigravity CLI inside every Colab runtime, free plan included. I ran the agent and its swarm mode inside Colab and on a Linux VM and timed what the swarm costs.

3D Google Colab and Antigravity logos joined by wires to a terminal prompt panel
Illustration: Sulat, featuring the Google Colab and Antigravity logos

At a glance

  • Google built the Antigravity CLI (agy) into every Colab runtime, free plan included, and it edits and runs notebook cells on the same machine as the kernel.
  • Gemini 4 Hydrogen comes with every plan; Pro and Ultra add Carbon, Neon and Orchestrator.
  • On a small digits job in Colab, /swarm took about 66 seconds and 52k tokens against 27 seconds and 20k for one agent, across three runs each. A Linux VM gave about twice the time and tokens.
  • Model quota, Colab GPU time and the temporary runtime are three separate limits, and skills under ~/.gemini vanish with the runtime.

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. /swarm multi-agent runs, plugins, AGENTS.md rules, 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.

Colab CLI runs from your terminal; Antigravity CLI runs inside the Colab runtime beside the kernel
The agent now runs beside the kernel instead of on your laptop.

How to start it

  1. Open any Colab notebook, or Google’s Antigravity CLI sample notebook.
  2. Press Ctrl+Shift+P (Cmd+Shift+P on macOS) and choose Antigravity CLI. Or open the terminal at the bottom of the page and run agy.
  3. Sign in the first time. The sample notebook offers Google OAuth or a Google Cloud project, and Colab saves your agy settings 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.

Colab notebook cell showing agy 1.5.5 at /usr/local/bin/agy on a 2-vCPU AMD EPYC runtime with 12 GB memory
agy was already installed on a fresh Colab runtime.

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:

Code
/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:

Code
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.

Colab notebook output of agy single-agent and swarm runs with run time and token counts for each
The single-agent and swarm runs inside a Colab notebook.
RunSecondsTokens (input plus output)Top model
One agent, run 126.018.6kSVM
One agent, run 226.421.0kSVM
One agent, run 327.321.3kSVM
Swarm, run 178.259.1kSVM
Swarm, run 259.547.4kSVM
Swarm, run 361.248.0kk-nearest neighbours
Colab, three runs each. A smoke test, not a benchmark.

On the VM the swarm run looked like this.

Terminal output of agy running a swarm that ranks four scikit-learn models on the digits dataset
The swarm run on my Linux VM, finished in 85 seconds.
RunSecondsTokens (input plus output)Top model
One agent, run 139.928.0kSVM
One agent, run 232.033.0kSVM
One agent, run 321.426.3kSVM
Swarm, run 183.372.7kSVM
Swarm, run 254.453.8kk-nearest neighbours
Swarm, run 377.054.8kSVM
Three runs each. A smoke test, not a benchmark.
Bar chart: swarm took 72 seconds and 60k tokens against 31 seconds and 29k for one agent
On a tiny job the swarm cost about twice the time and tokens.

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.

Three boxes: model quota set by plan, GPU time set by Colab, and the temporary runtime
Each limit runs out on its own.
  • 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 agy settings 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 agy locally 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 agy from 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