colab

colab is a skill for Claude Code, Codex from fmind/dot. It costs 42 tokens per session (748 once invoked), scanned A, original, MIT.

A command-line workflow for using Google Colab, an online computing service, with rented GPU or TPU accelerators. GPUs and TPUs speed up workloads such as machine-learning training.

In plain words
What is it for?
Run scripts remotely, create or reuse sessions, upload and download files, inspect logs and status, and stop sessions after collecting results.
Why use it?
It provides temporary remote compute when the local computer lacks an accelerator, while making it possible to stop sessions and limit ongoing usage.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fmind/dot/colab
Any agent
npx skills add fmind/dot --skill colab
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for colab

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/colab.svg)](https://agentmods.dev/skills/fmind/dot/colab)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/colab"><img src="https://agentmods.dev/badge/skills/fmind/dot/colab.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 748 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00042 $0.00748
Opus 5 $0.00021 $0.00374
Sonnet 5 $0.00008 $0.00150
Haiku 4.5 $0.00004 $0.00075

Measured yesterday against content hash 3d954f703ab4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

colab scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/colab/SKILL.md · 49 lines

How it starts

The opening of the file, as written. The whole thing — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Google Colab CLI

Use colab when a task needs an accelerator the workstation lacks. The official Colab skill documents every command; this skill owns authentication, session hygiene, and the spend boundary.

Workflow

  1. Authenticate: OAuth by default (--auth oauth2), or --auth adc to reuse the Application Default Credentials from gcloud; session state lives under ~/.config/colab-cli/.

  2. Prefer ephemeral runs: colab run rents a VM, runs the script, and releases it; a shebang #!/usr/bin/env -S colab run --gpu T4 makes a single file self-contained per python-script.

    colab run --gpu T4 --timeout 3600 train.py
    
  3. Keep a session only while iterating: colab new -s <name> --gpu L4 (or --tpu v6e1), then colab exec -s <name> -f snippet.py --timeout 600, colab upload, colab download, and colab ls.

  4. Stop what you started: colab sessions then colab stop -s <name>; an idle session keeps consuming compute units. Run colab status before claiming a job finished.

  5. Verify: colab log shows the history; download the artifacts before stopping the session.

Gotchas

  • 30-second default: colab run and colab exec abort code execution after 30 seconds unless --timeout <seconds> covers the whole job.
  • Pinned dependency: mise installs google-colab-cli with jupyter-kernel-client==0.15.0; 1.0.0 renamed the client class and breaks every session.
  • Tiers: accelerator availability depends on the subscription; colab pay opens the compute-units page, so treat it as spend.
  • Disposable VM: keep secrets off the session beyond what the task needs; use colab drivemount only when Drive data is required.

Official Skills

Upstream: googlecolab/google-colab-cli (the same text colab skill prints). List the current release, then install what the task needs at project scope after reviewing the snapshot (see agent-skills):

Read the full file on GitHub · 49 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 49 lines · 42 tokens per session scan A 3d954f703ab4

Subscribe to this mod's changes

colab is a skill published in the GitHub repository fmind/dot (4 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 748 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.