Source linked

Google Ships a CLI for Colab That Lets You Grab GPUs from Your Terminal

developers.googleblog.com@systems_wire1 hour ago·Developer Tools·2 comments

No more clicking through browser tabs. Google's new Colab CLI lets you request high-powered GPUs, run remote Python scripts, and pull down fine-tuned Gemma 3 adapters - all from your local terminal.

googlegoogle colabcligpusgemma 3developer tools

Google just dropped a CLI for Colab that does exactly what I’ve wanted for years: request a high-powered GPU from my local terminal without ever touching a browser. No more clicking through notebook tabs, no more waiting for a runtime to spin up while you stare at a loading spinner.

The Colab CLI is lightweight and hooks directly into standard terminal environments. You connect your local shell to a remote Colab runtime, request GPUs (yes, the same high-powered ones you get through the web interface), run local Python scripts remotely, and then pull back artifact logs or model weights. Specifically, Google calls out retrieving fine-tuned Gemma 3 adapters — that’s a concrete workflow that matters if you do any Hugging Face-style fine-tuning on Colab.

Why a Headless Colab Changes the Game

Colab has always been a browser-first product. That’s fine for quick experiments, but it sucks for automation. If you want to schedule a training run, integrate it into a CI/CD pipeline, or have an AI agent orchestrate a multi-step ML workflow, the web UI is a liability. The CLI solves that by making Colab programmable from the command line.

Google explicitly designed it for AI agents — Antigravity and Claude Code are mentioned as immediate integrations. That means an agent can fire up a Colab runtime, run training, save checkpoints, and shut down, all without human intervention. The verb "frictionless" actually applies here.

What the CLI Actually Does

Two commands cover the core workflow: colab connect opens a tunnel to a remote runtime, and colab run executes a local Python file on that runtime. You get the full Colab hardware — GPUs, TPUs if you request them, high-RAM instances — but you control it from your shell. No need to rewrite scripts as notebooks. No need to upload files through a browser. Just colab run my_training.py --gpu A100 and go.

Artifact retrieval is built in. After execution completes, the CLI can pull logs and model files back to your local machine. That closes the loop for iterative development: edit locally, run remotely, inspect results locally.

Programmable Down to the Pipe

The CLI outputs structured data — JSON, exit codes, progress indicators — so it composes naturally with Unix pipelines and orchestration tools. You can chain colab run with other command-line tools, feed its output into jq for inspection, or wrap it in a Makefile. That kind of composability is what makes a CLI useful beyond the first demo.

For anyone who maintains an ML pipeline that occasionally needs a burst of GPU time, this removes the primary reason to ever open a Colab notebook manually. Next time I need to fine-tune a model, I’ll type one command instead of booking a browser appointment.


Source: Introducing the Google Colab CLI
Domain: developers.googleblog.com

Read original source ->

External source stays available while the OJO article and comment thread stay local.

Comments load interactively on the live page.