Google Colab CLI
github.com
Official command-line interface for Google Colab runtimes: provision GPUs/TPUs, run code and automate jobs.
- Pricing
- Free
- Published
- Nov 9, 2026
Next steps
- Gemini API CLI
Both tools are listed under AI API, AI Developer Tools, and cli.
- Claude Quickstarts
Both tools are listed under AI API and AI Developer Tools.
- New API
Both tools are listed under AI API and AI Developer Tools.
- FastMCP
- AG-UI
- Treg
What it does
Google Colab CLI (Apache-2.0, about 2k GitHub stars, from the googlecolab organization) lets you spin up CPU, GPU (T4, L4, G4, H100, A100) or TPU (v5e1, v6e1) runtimes, run local Python scripts, notebooks or stdin, open REPLs, manage remote files, mount Google Drive and export session history to notebooks, Markdown or JSONL. colab run provisions a fresh VM, executes a script, retrieves outputs and tears it down in one command. It targets headless automation and AI agent integrations; Linux and macOS only. The CLI is free, while Colab compute follows your Colab plan.
Use cases
- Provision Colab CPU, GPU or TPU runtimes from the terminal
- Run a local Python script or notebook on a fresh VM and fetch outputs with colab run
- Give AI agents a headless way to execute code on Colab hardware
Frequently asked questions
- Which platforms are supported?
- Linux and macOS; Windows is not supported yet.
- Which accelerators are available?
- CPU, GPU types such as T4, L4, G4, H100 and A100, and TPU v5e1/v6e1, subject to your Colab access.
- How do I install it?
- uv tool install google-colab-cli or pip install google-colab-cli.