colab-dev
Run any command from your laptop on a Google Colab GPU, TPU, or CPU.
Edit code locally in your own editor. Prefix any command with colab-dev <target> and it automatically syncs your project, installs dependencies, runs the command on Colab, and streams output straight back.
Get Started (30 seconds)
Requires macOS or Linux, Python 3.12+, and a Google Colab account.
uv tool install colab-dev # or: pip install colab-dev
colab-dev setup # one-time Google Colab sign-in & SSH key
colab-dev t4 python train.py # syncs your repo, installs deps, runs on a T4 GPU
Everyday Commands
# Run anything on a GPU, TPU, or CPU
colab-dev t4 pytest
colab-dev a100 python train.py --epochs 10
colab-dev t4 nvidia-smi
# Run multiple GPUs at once by adding a :name
colab-dev t4:1 python eval.py --split val
colab-dev t4:2 python eval.py --split test
# Open an interactive terminal on Colab
colab-dev shell t4
# Download files created on Colab back to your laptop
colab-dev pull t4 outputs/metrics.json
# See running runtimes & compute balance, or stop them
colab-dev ls
colab-dev stop t4
colab-dev stop --all
Available targets: cpu, t4, l4, g4, a100, h100, v5e1, v6e1 (high-RAM by default; pass --std-mem for standard RAM).
Handy Flags
Put colab-dev flags before your command:
# Auto-stop the GPU if idle for 30 minutes (never kills running jobs)
colab-dev a100 --idle 30m python train.py
# Kill a single command if it hangs for more than 10 minutes
colab-dev t4 --timeout 10m python script.py
# Pass env vars, extra folders, or pull a file when done
colab-dev t4 --env HF_TOKEN=hf_xxx --add ../shared-lib --pull out/result.json python eval.py
Save settings on a runtime
Don't want to repeat flags every time? Save them on the runtime (they stay until colab-dev stop):
colab-dev config t4 --idle 30m --add ../shared-lib --env HF_TOKEN=hf_xxx
colab-dev config t4 # view saved settings (secret values are hidden)
Or save defaults for a project in pyproject.toml (team defaults) or .colab-dev.local.toml (personal/secret overrides, gitignored):
# .colab-dev.local.toml
idle = "30m"
add = ["../shared-lib"]
[env]
HF_TOKEN = "hf_xxx"
Using with AI Coding Agents
Give Antigravity, Claude Code, or Codex instructions for colab-dev in one command:
colab-dev skill install
Good to Know
- Fast (~150ms): Reuses one connection and only uploads changed files (respecting
.gitignore). - One-way sync: Your laptop is always the source of truth (
local -> /content/work/<repo>). Usecolab-dev pullto copy remote outputs back. - Auto Python env: Installs
pyproject.toml/requirements.txtonce and only re-runs when dependencies change (--no-envto skip,--reinstallto force). - Safe concurrency: You can run multiple
colab-dev t4 ...commands at the same time on the same GPU. - Clean & reversible: Never edits
~/.ssh/configunless you opt in (colab-dev ssh-config install).
Uninstall
colab-dev clean --all
uv tool uninstall colab-dev # or: pip uninstall colab-dev
License
Metadata
Release files for colab-dev 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| colab_dev-0.1.1.tar.gz | 32.4 kB | With provenance | Details for colab_dev-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| colab_dev-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for colab_dev-0.1.1-py3-none-any.whl |
Total release size: 69.7 kB
Release files / colab_dev-0.1.1.tar.gz
| Download URL | colab_dev-0.1.1.tar.gz |
|---|---|
| Size | 32.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c007cd990bbd4215344009468d13f14114b0654af2a73dcd35847ce29285a271
|
|
BLAKE2b-256 checksum How to use checksums |
8d270d89db0482a8973d60fee2c6bd02ce81ad0e55556ac6c4fcccfd7757e841
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logRelease files / colab_dev-0.1.1-py3-none-any.whl
| Download URL | colab_dev-0.1.1-py3-none-any.whl |
|---|---|
| Size | 37.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
718d8dfb96017153c0daa67d87c9ba14a364f0bf948238edf82d1cf7c6cbe83e
|
|
BLAKE2b-256 checksum How to use checksums |
a00047b6e30ecdff0ddbfa33d8b4978220c05015872acff4568bdab9ea186b73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logSecurity for colab-dev 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for colab_dev-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.