Google Brings Antigravity Into Colab so AI Agents Run Your Code
Google wired its Antigravity agent, powered by Gemini 4, directly into Colab notebooks so you can run agentic coding in the browser.
Takeaways
- Google integrated the Antigravity CLI directly into Colab notebooks, no install required.
- The agent runs on Gemini 4 models including Hydrogen, Argon, Neon, and Carbon.
- Antigravity replaced Gemini CLI as Google's agent-first terminal tool earlier this year.
- It supports plugins, subagents, hooks, and project-level AGENTS.md context files.
- Free for individuals; enterprise users can bill through Google Cloud Agent Platform API.
- Best for exploratory ML and data work where the agent can run end-to-end in the notebook runtime.
Google has integrated its Antigravity CLI with Colab. Developers can open a notebook terminal, run agy, and delegate tasks such as downloading data, training a model, or refactoring a script. Commands execute inside Colab’s hosted runtime, leaving local compute and operating-system setup out of the workflow.
Colab supplies a temporary Python environment with optional GPU access, subject to runtime selection and availability. Google describes Antigravity as an agent-first platform that can plan work, run commands, inspect results, and revise its approach. The integration removes a separate local installation while retaining the CLI workflow.
The CLI lands inside the runtime
The integration exposes Antigravity through Colab’s built-in terminal. Launch screenshots show Gemini 4 Hydrogen as the default model, while the standard /model command and --model launch flag control model selection.
Google’s launch material lists the following models:
- Gemini 4 Neon
- Gemini 4 Carbon
- Gemini 4 Argon
- Gemini 4 Hydrogen
- Gemini 3.8 Flash
- Gemini 3.1 Pro
The CLI retains the components documented for local use: agent skills, hooks, subagents, and plugins, the new name for extensions. Project-level instructions come from AGENTS.md or GEMINI.md, as described in the Antigravity docs.
After a repository is cloned or mounted, its instruction files carry into the hosted session. Dependencies, credentials, system packages, and generated files remain tied to the Colab runtime and must be restored or persisted separately.
From cells to delegated runs
An agentic coding loop takes a goal, chooses commands, evaluates their output, and adjusts the implementation. Inside Colab, that loop can handle workflows that would otherwise require a sequence of manual notebook cells.
- Data experiments: Download a dataset, clean it, train a baseline, and plot results from one task description.
- Parallel work: Use subagents or plugins to run evaluations while another process drafts documentation or analyzes failures.
- Iterative repairs: Let the agent inspect tracebacks, modify code, and rerun tests within the active runtime.
- Artifact review: Inspect generated Artifacts, attach feedback, and direct subsequent revisions without restarting the task.
Treat the runtime as an execution boundary
Antigravity can install third-party packages and execute shell commands with the notebook session’s permissions. Developers should inspect command logs and generated changes, keep credentials in Colab’s secret-management facilities, and mount only the Drive folders required for the task. Browser-driven visual checks also depend on the browsers and services available inside the hosted environment.
Two meters govern usage
Antigravity access and Colab compute use separate plans. Signing in follows the Google-account flow used by the desktop CLI, while enterprise deployments can associate usage with a Google Cloud project through the Agent Platform API.
| Service | Entry tier | What it covers |
|---|---|---|
| Antigravity Individual | $0 | CLI and model access under the plan’s usage limits |
| Colab Free | $0 | Hosted runtimes with quota-based accelerator availability |
| Colab Pro tiers | Paid | Higher compute allowances and access to heavier runtimes |
| Google Cloud enterprise usage | Usage billed | Project-backed access through the Agent Platform API |
Fast experiments, temporary machines
Exploratory machine learning and data analysis are the strongest fits. Antigravity can assemble a workflow built from pandas, scikit-learn, and Matplotlib, run it, inspect failures, and revise the code without requiring a configured development machine.
Colab’s temporary runtime creates several constraints developers need to plan around:
- Runtime resets remove unpersisted files and installed packages.
- Repositories must be cloned again or stored through a mounted service such as Drive.
- GPU access depends on Colab quotas, runtime settings, and current availability.
- Large repositories may spend substantial time cloning, indexing, and restoring dependencies.
- Credentials and external service access must be configured for each fresh environment.
Start with a bounded task
- Open a Colab notebook and select the required runtime type.
- Launch the terminal, run
agy, and authenticate with a Google account. - Clone a repository or mount persistent storage containing the project.
- Assign a specific task, inspect the commands and outputs, then save required files before the runtime disconnects.