3.6K ·GitHub
What is this?
A command-line interface for Google Colab that provisions CPU, GPU or TPU runtimes, runs local code and manages remote files, all from your terminal.
Is this a notebook editor or a terminal tool?
It is a terminal tool, not a notebook editor. You control Colab VMs with commands such as colab new, colab run and colab exec.
How do I get it running?
Install the package with uv (recommended) or pip, then run colab new to allocate a CPU VM, colab exec to run code on it, and colab stop to release it.
What do I need before I start?
Python with uv or pip, and a Colab account. Accelerators such as T4 and A100, and high-RAM shapes, need Colab Pro or Pro+ entitlement.
Does it run on Windows?
No. The CLI supports Linux and macOS only, and Windows is not supported at this time.
Where are my session tokens kept on disk?
In ~/.config/colab-cli/sessions.json, with global settings in ~/.config/colab-cli/settings.json. Both can be relocated or isolated with the global --config flag.
Which accelerators can I get?
CPU, GPU (T4, L4, G4, H100, A100) and TPU (v5e1, v6e1) runtimes, with an optional high-RAM shape via the --high-mem flag on supported accelerators.
What is the quickest way to run a training script on a GPU?
Use colab run with an accelerator flag, for example colab run --gpu A100 train.py with arguments. It provisions a fresh VM, runs the script, retrieves output files and tears the VM down. Add --keep to keep the VM.
Can I edit a file on the VM in my own editor?
Yes. colab edit opens a remote file in place using your local $EDITOR.
Can my IDE connect to the runtime for remote development?
Yes. colab ssh can act as an OpenSSH ProxyCommand bridge, so IDE remote-development tools can attach to a Colab VM.
Is there an in-notebook alternative for agent-assisted coding?
The README points to the separate Colab MCP Server for in-notebook, interactive agent-assisted coding instead of a terminal workflow.
What are similar projects?
skypilot, metaflow, agents-cli, vision_transformer, open-knowledge-format, agentbox, agentreach, jax
Which topics is it in?
tpu, remote-development, gcp, jupyter-notebook, ssh, google, cloud, command-line-tool, machine-learning, gpu, terminal, automation