Repository navigation
Releases
v0.8.0.5
A file manager in the tray, folder upload and download, and runtimes opened in the Colab web UI usable and stoppable from the CLI and the tray; fixes for runtimes that were left running, a colab exec that could hang for an hour, and Google's changes up to googlecolab#259. Still based on Google's Colab CLI 0.8.0.
Added
- tray: a two-pane file manager, like Total Commander, from the Files button of a runtime's card: this computer on the left (drive list), the runtime's
/contenton the right. Copy by drag and drop, the Upload / Download buttons or F5; F7 new folder, F8 delete (local files go to the recycle bin), Enter opens, Backspace goes up; a command line runs commands in the runtime's folder. Transfers go over the contents API (no key) or SSH / scp, with a progress bar (files done / total) and a Cancel button. If the runtime stops or the connection ends, a banner says so and only the local pane stays usable (docs/09, section 5). (#23) - files:
colab upload -randcolab download -rcopy whole folders, empty ones included (upstream PR googlecolab#267 by Koji Shukawa, taken before Google merged it, with its review applied). (#22) - files:
colab ls --json,colab mkdir,colab rm -r(a folder with everything in it),--via sshonupload/download(copies with scp through the SSH bridge) and--progress(a line per copied file). (#23) - ssh: a default SSH key for
colab sshandcolab forwardwithout-i:ssh_identityinsettings.jsonorCOLAB_CLI_SSH_IDENTITY. The tray's SSH and forward buttons use it, so a key not namedid_ed25519/id_ecdsaworks there too. (#21) - attach:
colab attach --endpoint IDuses a runtime opened elsewhere, such as in the Colab web UI, as a local session, so you can upload files to a notebook's runtime withcolab upload,colab sshor scp, or run code on it withcolab exec(in the CLI's own kernel;/contentis shared). The tray's card for such a runtime has a Connect button. (#20) - stop:
colab stop --endpoint IDstops one runtime by the endpointcolab sessionslists, also one with no local session, such as a runtime opened in the Colab web UI. A local session's endpoint stops that session like-s; an unknown endpoint exits 1 (upstream issue googlecolab#263). (#14) - tray: a runtime with no local session can be stopped from the panel: its card shows the endpoint instead of
?, says it may be open in the Colab web UI or on another computer, and has a Stop button. Before, the card had no buttons. (#14) - ssh:
colab ssh --forcekills the runtime's stale SSH sessions before connecting, for when a dead client holds the slot and the server answers 429 (upstream googlecolab#254). It works with-L,-N,-- CMDand--proxy-mode. (#18)
Fixed
- new: when the request for a runtime timed out, the runtime Colab created afterwards was not saved and kept using compute units as a
[?]orphan.colab newandcolab runnow check once more and save it; if there is still none, one line says how to find and stop it instead of a traceback (upstream issue googlecolab#263). (#13) - exec: a slow kernel connection no longer loses the code and hangs the CLI.
colab execandcolab replwait for the connection to open (COLAB_CLI_WS_CONNECT_TIMEOUT, default 60 s) before sending anything, say so if it does not, and always close it, so the process exits (upstream discussion #264, which saw a 71-minute hang). (#16) - update: the upgrade notice shown around other commands goes to stderr. With an older install it was printed into the JSON of
colab exec --json,colab run --jsonandcolab tray --snapshot --json, which could then not be read. (#17) - tray: the stop dialog wraps its text at a fixed width and stays on the screen; a card with a long detail line no longer cuts off its last line and buttons. (#14)
- examples: the fine-tuning example marks its imports after the runtime
pip install(upstream googlecolab#222). (#18) - tray: after Connect on a web UI runtime the panel looked empty: an idle card with no detail line was sized to about 1 px. (#21)
v0.8.0.4
Google's changes since 0.8.0 merged in (up to 17 November 2026, before Google's next release), next to everything this fork adds; the fork's own logo; an About window in the tray. Still based on Google's Colab CLI 0.8.0.
Added
- stop:
colab stop --allstops every local session the server still has (upstream googlecolab#256). It sits next to this fork's--orphans, which stops the server's runtimes that have no local session; the two cannot be combined with each other or with-s(exit 2). (#12) - api:
--public-api(orCOLAB_CLI_PUBLIC_API=1, oruse_public_apiinsettings.json) lists runtimes through Google's new Colab Public API (colaboratory.googleapis.com) instead of the tunnel API; off by default, and creating or stopping runtimes still uses the tunnel API. The hiddencolab test-public-apichecks which of the two your credentials can reach, and a 401/403 error says which flag to try. Google's API currently refuses this CLI's sign-in (403), so leave it off for now (upstream googlecolab#238). (#12) - tray: an About window, from the tray menu or a click on the panel's logo: the version, what the fork adds, links to the fork, its releases and Google's original, and the license. (#12)
Changed
-
tray, binary: the fork's own logo (Colab's C with a teal ring) in the tray and the panel, and as the Windows binary's icon; the tray's status dot sits in the bottom-right corner. (#12)
-
binary: the macOS binary is built for Apple silicon (
colab-<version>-macos-arm64) instead of Intel (macos-x64): GitHub's Intel macOS runners were not available. On an Intel Mac, install with uv or pip. (#12)
Fixed
- auth: signing in no longer fails when you approve only some of the requested permissions; the CLI keeps the permissions you granted (upstream googlecolab#235). (#12)
- auth:
--auth=adcwithout Application Default Credentials prints thegcloud auth application-default login --scopes=...command to run instead of a traceback, and the README namesoauth2as the default (upstream googlecolab#245). (#12) - deps: tornado 6.6.1 (upstream googlecolab#246). (#12)
v0.8.0.3
The desktop release: a tray panel for the runtimes, saved run profiles, progress over the whole run and notebooks as background jobs (docs/09_tray_and_profiles.md). Still based on Google's Colab CLI 0.8.0.
Added
- tray:
colab trayshows the active runtimes in the system tray (Windows, macOS, Linux; optional[tray]extra with Qt). Its panel has a card per runtime with progress, ETA, the main metric and Log/SSH/Stop buttons, the compute units left (estimated) and a button to start profiles; the icon's colour and tooltip say the state, errors and stale data. Stopping asks whether only the job or the whole runtime stops. Notifications for finished or failed jobs, lost runtimes and a low balance. A runtime behind acolab forward(from any tool) shows as a service with an Open button. The tray never keeps a runtime alive.colab tray --snapshot [--json]prints the same without a GUI. - tray: the panel answers a profile start at once: a "Starting" card with a moving bar, the phase (getting a runtime, running the script, waiting for the service) and the time so far; a kernel profile's card shows its script's newest line while it sets up. A profile cannot be started a second time while its run is alive.
- tray: its own windows: a profile editor (a form whose fields follow the mode, file pickers, help for each field, validation, "Save and start") and a log window that follows a job's output (Follow, Refresh, Copy).
- tray: start with the computer, per user and without administrator rights (Windows Run key with
pythonw.exe, macOS LaunchAgent, Linux XDG autostart): a checkbox in the settings andcolab tray --autostart on|off|status. - tray: more settings: the low-balance warning limit (hours at the current rate), the idle-runtime warning (minutes), asking before a profile starts, and the terminal for Log and SSH (automatic, a preset per platform, or a command with
{cmd}).colab tray --snapshotuses the same warning limits. - profile:
colab profilesaves run setups inprofiles.toml.colab profile run NAMEstarts a script or notebook as a background job on a new runtime (or its fixed session), or runs a server in the kernel, forwards its ports and opens its URL once it answers. Withstop_when_done(the default) the tray stops the runtime after the job.colab profile editopens the file in your editor (with commented examples when it is new) and checks it. - job:
colab job start -f notebook.ipynb(andcolab run --detach notebook.ipynb) runs a notebook's code cells in order in IPython on the runtime;colab job statusnames the running cell.report(epoch=, epochs=)orreport(step=, total=)gives the progress of the whole run (overall_percent); the status also shows the epoch and how long ago the last output came. - exec:
--var NAME=JSONsets a Python global before the code runs. A runningcolab execrecords its cell, whichcolab statusshows. - examples:
examples/tray_demo_train.py(a small CPU training to watch in the tray) andexamples/profiles.example.toml.
Changed
- cost: estimates and
--budgetuse the runtime's own hourly rate instead of the account's, which counts every runtime: a 0.05 CU budget on a CPU next to a T4 stopped after 2.4 minutes instead of about 37. The rate is learned per accelerator while a runtime runs alone; thecostblock says how it was found (rate_basis) and keeps the account rate. - logging:
colab.logrotates at 10 MB (two old files kept); a long-running tray had grown it to 200 MB. - binary: the standalone binaries include the tray (
colab trayworks without Python) and are less than half the size: the Windows binary went from 110 MB to 44 MB. They no longer carry pyarrow, pandas, IPython or the test tools, which the CLI never loads. (#11)
Fixed
- tray: a job started on a new runtime showed after up to 5 minutes (the runtime was seen before its job started); new runtimes are now watched for their first 3 minutes.
- tray: a runtime created after the tray started showed as an orphan; dialogs opened behind the panel; terminal windows (Log, SSH) closed when their command ended.
- logging: the same line was written several times when the CLI ran more than one command in one process.
- tray: on Windows the tray no longer opens a terminal window:
--detachstarts it hidden, and a tray started from a shortcut or at sign-in restarts itself without its window. From the binary,colab tray --detachstopped right after it started. (#11)
v0.8.0.2
The agent feedback loop: results, background jobs, inspection, cost and history for scripts and AI agents (docs/08_agent_feedback.md). Still based on Google's Colab CLI 0.8.0, and includes everything from 0.8.0.1, whose release had no binaries attached.
Added
- run:
colab run --detachcreates the runtime, starts the script as a background job and returns at once; the runtime is kept untilcolab stop. - history: the CLI learns from earlier runs. A failure that happened before says so in its
--jsonrecord (diagnosis.seen_before), with what fixed it last time (packages installed, files uploaded, a code change).colab history errorslists recurring failures with their fixes;colab history stats [FILE]shows runs, success rate and the usual duration and cost of each file. History is read locally only; older history entries are used too. - inspect:
colab inspect -s NAME [--vars] [--gpu] [--disk] [--packages] [--files PATH] [--json]shows the kernel's variables by type and shape (never their values), GPU memory, disk, memory, and the packages installed since the first inspect. A busy kernel is reported instead of waited for. - cost:
--jsonresults andcolab job status --jsonestimate the compute units used, from the account's hourly rate.--budget CUonexec,runandjob startstops the run when the estimate reaches the budget (exit 5; a job is stopped on the runtime itself).colab usage --json. - job:
colab job start -s NAME -f train.py(or-- CMD) runs long work in the background on the runtime and returns at once;colab execstays usable meanwhile and the job keeps running without a connected client.colab job status|tail|wait|stop|listshow its state, tqdm progress, the metrics a Python job reports withfrom colab_feedback import report, the last output, a stall flag and, for a failed job, a diagnosis with next steps.waitkeeps the runtime alive and exits with the job's own code. - exec, run:
--jsonfor scripts and AI agents: one JSON record per cell and a summary on stdout, other output on stderr. A failed cell's record gives the failing line in your local file or notebook cell, a diagnosis code (missing_module,cuda_oom,no_gpu,disk_full,file_not_found,syntax_error,idle_timeout,session_lost, ...) and thecolabcommands to try next. Exit codes: 1 code error, 3 lost session, 4 timeout;runkeeps the script's own exit code.COLAB_CLI_JSON=1turns it on everywhere;colab exec --json-streamalso streams output as it arrives;--output-dirsets where images are saved.
Fixed
- ssh, job, run (Git Bash on Windows): remote paths in
colab ssh -- CMD,colab job start -- CMDandcolab runscript arguments are no longer rewritten toC:/Program Files/Git/.... - ssh (Linux): killing
colab(even with SIGKILL), or the launcher of the standalone binary, also ends ssh and its proxy.
v0.7.5.2
Still based on Google's Colab CLI 0.7.5.
Added
- release: standalone
colabbinaries for Windows, Linux and macOS (x64) are attached to every release, built with PyInstaller: no Python or uv needed. The binary runs itself as the ssh ProxyCommand, socolab sshandcolab forwardwork from it;colab updatepoints binary users to the download. - stop:
colab stop --orphanslists the server-side runtimes that have no local session ([?]incolab sessions) and stops them after asking (--yesto skip the question). They may include runtimes opened in the Colab web UI or on another machine, so nothing is stopped without that list.
Fixed
- ssh, windows:
ssh.exeand its proxy no longer keep running after thecolabprocess that started them is killed (a closed terminal tab, a stopped tool): they are tied to it with a kill-on-close job object. - ssh: the proxy's WebSocket handshake gives up after 30 s instead of waiting forever; an open session has no time limit.
- ssh, windows:
colab sshandcolab forwardwork from Git Bash: they run Windows OpenSSH instead of the MSYSsshfirst on PATH, which broke the ProxyCommand (exec: C:Users...python.exe: not found). - ssh: a passphrase-protected key no longer hangs
colab ssh/colab forwardwhen there is no terminal to ask on; it exits with a message instead. - update: on Windows, a CLI installed with
uv tool installis now recognized, so the upgrade hint suggestsuv tool install --force <wheel>instead ofpip. - release: the release workflow no longer shows as failed when GitHub cannot provide a macOS runner; macOS is tested by CI on every push to main.
- ci: macOS jobs run on
macos-15-intelinstead ofmacos-latest(macOS 26 arm64), whose runners often were not available, so macOS checks no longer stay pending or get cancelled.
v0.7.5.1
First release of this fork: Google's Colab CLI 0.7.5 with Windows fixes and extra features on top. Versions are numbered 0.7.5.N to show the Google release they are based on.
Changed
- update:
colab updateand the daily check offer this fork's GitHub releases (andcolab update --installinstalls the release wheel). Google's PyPI releases are only announced when Google ships a newer base version, never installed, so an update can no longer replace the fork with Google's package. - ssh: Every
colab sshWebSocket now sendsX-Colab-Client-Agent: colab-cliand the query valuescolab-client-agent=colab-cliandcolab-client-agent=ssh-mode-<mode>, where the mode isinteractivefor plaincolab ssh,cmdforcolab ssh -- CMD, andproxyotherwise. - ssh: When the server rejects a connection with HTTP 429 and reports its
SSH session limit,colab sshnow says the limit is reached (N of N sessions
in use on the runtime) and that the limit depends on the Colab plan. A 429
without a usable limit keeps the previous message. - exec, run:
--timeoutnow defaults to no limit; a value interrupts the kernel when it is exceeded and exits 1 with one line. Before, code that ran longer than the old 30 s default could fail withTimeout waiting for replyafter it had finished.
Added
- secrets:
colab secret set NAME[=SOURCE]...and--secretoncolab execandcolab runput tokens into the kernel's environment without taking the value on the command line. SOURCE isenv(default),env:VAR,prompt,hf-cliorgh-cli; values are written as***in the session history. - ssh:
colab ssh -L PORT(repeatable, alsoLOCAL:REMOTEandLOCAL:HOST:REMOTE),-N/--no-shell, andcolab forward PORT...forward local ports to the runtime. The runtime is kept alive while a forward is open (--no-keep-aliveto turn it off). - share:
colab share PORT [--via cloudflared|ngrok]gives a runtime port a public URL; it keeps the runtime alive until Ctrl+C, or--detachleaves the tunnel running.--listand--stop [PORT]manage shares. - keepalive:
colab keepalive [--minutes N]keeps a runtime alive without running code. - hf:
colab hf loginandcolab hf download REPO_IDfor Hugging Face on the runtime. - clone:
colab clone REPO [DEST]clonesowner/nameor an https URL onto the runtime; private GitHub repositories useGH_TOKEN,GITHUB_TOKENor the localghlogin, and the token is not stored in the URL or.git/config. - ssh:
colab ssh [-s NAME] -- CMDruns one command on an existing runtime and exits with its status. Output is byte-exact when piped (a PTY only when stdin and stdout are terminals), and it never creates a runtime. Its handshake is taggedssh-mode-cmd. - prompts:
COLAB_CLI_PROMPT_FROM_STDIN=1makes CLI prompts read their answer from stdin, for programs that drive the CLI and own the terminal.
Fixed
- ssh:
colab --config FILE sshandcolab --auth adc sshnow keep those options in the ProxyCommand thatcolab sshstarts, so it uses the same sessions file and auth provider instead of the defaults. - windows:
colab consoleworks in PowerShell and cmd.exe (raw keys, ANSI color), andcolab drivemountshows the consent link and waits for Enter on the console. - windows:
colab editno longer fails withPermissionErroron its temporary file, and Windows$EDITORpaths (backslashes,.cmdlaunchers) work. - console: piped
colab consoleno longer cuts off its output on a fresh runtime or leaks terminal replies into the next prompt. - exec:
colab execexits 1 when the code or a notebook cell raises;--cells,--stop-on-error,--checkand--check-onlyselect and pre-check notebook cells. - sessions: a running command reports a stopped session in one line instead of a traceback, and no longer puts a stopped session back into
sessions.json. - ssh: a
%in a session name or identity path no longer breaks the ProxyCommand; a passphrase-protected--identitykey asks for its passphrase instead of hanging. - windows: non-ASCII scripts and output work in every Windows code page.
colab exec -fandcolab runread scripts like Python does (coding cookie or BOM, else UTF-8) instead of failing withUnicodeDecodeError, and redirected output andcolab.logare UTF-8, so Japanese and other text no longer raisesUnicodeEncodeErrorin a pipe or file.