colab-cli
/colab-cli
Steruje Google Colab z terminala: przydziela środowiska CPU, GPU i TPU, uruchamia skrypty i przesyła pliki przez CLI.
- Autor
- movtigroup ↗
- Repozytorium
- Colab-Plugin ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 05.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 1
Brak sygnałów. Repozytorium zmienione 05.11.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Steruje Google Colab z terminala: przydziela środowiska CPU, GPU i TPU, uruchamia skrypty i przesyła pliki przez CLI.
Wyzwalacze z opisu
Oryginalny opis (EN)
Use when the user wants headless/terminal control of Google Colab - provisioning CPU/GPU/TPU runtimes, running scripts on Colab VMs, uploading/downloading files, or automating pipelines with the official google-colab-cli. Also use when the user says "colab new", "colab exec", or asks to run heavy code on Colab GPUs without a browser notebook. Does not cover the browser-paired colab-mcp workflow - that is the colab-mcp skill.
Jak działa
- Requirements and platform
- Command reference
- Typical agent workflow (GPU job)
- Agent tips
Podgląd SKILL.md
---
name: colab-cli
description: Use when the user wants headless/terminal control of Google Colab - provisioning CPU/GPU/TPU runtimes, running scripts on Colab VMs, uploading/downloading files, or automating pipelines with the official google-colab-cli. Also use when the user says "colab new", "colab exec", or asks to run heavy code on Colab GPUs without a browser notebook. Does not cover the browser-paired colab-mcp workflow - that is the colab-mcp skill.
---
# colab-cli — headless Colab from the terminal
Official Google repo: https://github.com/googlecolab/google-colab-cli (Apache-2.0). The CLI controls
Colab runtimes via Jupyter/WebSocket protocols; session metadata lives in
`~/.config/colab-cli/sessions.json` (override with `--config`).
## Requirements and platform
- Install with `uv tool install google-colab-cli` (preferred) or `pip install google-colab-cli`.
- **Windows is NOT officially supported** — upstream targets Linux/macOS and the supported
path on Windows is **WSL** (`wsl -d <distro>` then use `colab` there; files stay in the
WSL filesystem for speed). Verified in practice (2026-11-05): the CLI installs via pip and
loads on Windows, and the OAuth flow initiates correctly — but full runtime behavior
(SSH tunnels, TTY console) is untested there, so prefer WSL for real work.
- Accelerators: T4, L4, G4, H100, A100 GPUs; TPU v5e1/v6e1. High-RAM shapes require
Colab Pro/Pro+. L4/TPU shapes ignore `--high-mem`.
- Auth strategies via global option `--auth {oauth2,adc}` (default `oauth2`): on first use
the CLI prints a Google OAuth URL and waits for the authorization code — every command
requires completing this flow once in an interactive terminal. ADC
(`--auth adc`) uses Application Default Credentials (e.g. `gcloud auth
application-default login`).
## Command reference
**Global flags**: `-s NAME` selects a named session for any command; `--auth {oauth2,adc}`.
**Sessions**
- `colab new [-s NAME] [--gpu T4|L4|G4|H100|A100] [--tpu ...] [--high-mem]` — provision a runtime
- `colab sessions` — list sessions
- `colab status [-s NAME]` — show session state / wait until ready
- `colab url [-s NAME]`
- `colab restart-kernel`, `colab stop [-s NAME]` — release the VM
- `colab ssh [-s NAME]` — WebSocket shell, or OpenSSH ProxyCommand for IDEs
**Execution**
- For agent use, prefer `colab exec`: it transmits file contents directly to the kernel —
no manual upload needed.
- `echo 'print(1)' | colab exec` — run code from stdin
- `colab exec -f script.py [-s NAME]` — run a .py or .ipynb file
- `colab run [--gpu T4] script.py [args...]` — ephemeral job: provisions VM, runs script, tears down
- `colab repl` — interactive; `colab console` — tmux TTY shell
**Files**
- `colab upload [-s NAME] local remote` / `colab download [-s NAME] remote local`
- `colab ls / rm / edit` — remote file management
**Automation**
- `colab install -s trainer torch transformers` — install packages (uv, pip fallback)
- `colab log [-s NAME]` — export session log to .ipynb/.md/.txt/.jsonl
- `colab usage`, `colab pay` — usage/compute points status
- `colab drivemount` — mount Google Drive
## Typical agent workflow (GPU job)
```bash
colab new -s trainer --gpu A100
colab install -s trainer torch transformers
colab exec -s trainer -f train.py
colab download -s trainer checkpoints/model.bin ./model.bin
colab stop -s trainer
```
## Agent tips
- **Always `colab stop -s NAME` when done** — releases the VM so the user's compute points aren't drained by idle time.
- `colab exec -f` sends file contents to the kernel (no upload step); use `colab upload/download` for artifacts like checkpoints.
- Shebang trick for runnable GPU scripts:
`#!/usr/bin/env -S colab run --gpu L4 --keep`
- For interactive/inspect workflows in a notebook the user has open in their browser, prefer the [[colab-mcp]] skill instead.
Wersje
W bazie nie ma innych skilli o nazwie colab-cli.
Migawka bazy z 13.11.2026 · wersja paczki 8d60f4e32f11 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100colab-operator
Obsługuje środowiska Google Colab przez CLI colab: sesje GPU i TPU, polecenia na zdalnej maszynie, pliki i konfigurację. - 90colab-mcp
Pozwala agentowi ZCode pracować na żywym notatniku Google Colab przez oficjalny serwer colab-mcp w przeglądarce. - 100colab-gpu
Konfiguruje i używa środowiska Google Colab z GPU jako zdalnego zasobu obliczeniowego przez publiczny internet, do treningu i inferencji. - 90colab-yoga
Uruchamia i zarządza płatnym GPU Google Colab, które obsługuje własne modele LLM, w systemie Windows. - 100colab-llm-service
Uruchamia i obsługuje usługi dużych modeli na Google Colab przez notatnik, skrypt i CLI colabllm, z tunelami i kluczami API. - 85ultra-colab-h3-viral-video
Uruchamia w Colab linię produkcyjną wideo: ComfyUI, partie ujęć, postprodukcję w 4K i zapis wyników na Dysku Google.