Turn Google Colab into a Claude Code-powered dev box.
claude-colab is a Claude Code plugin marketplace that ships a self-bootstrapping Colab notebook. It installs Claude Code and configures the claude-colab plugin with skills, agents, hooks, and commands.
- Download the notebook from the latest release
- Open in Google Colab
- Get a long-lived OAuth token:
claude setup-token(on your local machine) - Add the token to Colab Secrets as
CLAUDE_CODE_OAUTH_TOKEN - Run all cells
- Open terminal:
source ~/.bashrc && cd /content/claude-workspaces/my-project && claude
The claude-colab plugin provides:
| Type | Name | Description |
|---|---|---|
| Command | /claude-colab:colab-status |
Check GPU, Drive, workspace status |
| Command | /claude-colab:checkpoint |
Save workspace to Google Drive |
| Command | /claude-colab:colab-update |
Check for plugin updates |
| Skill | claude-expert | Claude Code reference and best practices |
| Skill | ipynb | Jupyter notebook manipulation |
| Skill | customize | Environment customization |
| Skill | docs-updater | Documentation management |
| Skill | skill-builder | Create new skills |
| Agent | colab | Colab environment expert |
| Agent | notebook-doctor | Diagnose and fix issues |
| Hook | SessionStart | Auto-check for updates |
| Hook | PreToolUse | Safety check for dangerous commands |
The plugin includes a safety hook that blocks dangerous commands:
rm -rf /orrm -rf ~- Prevents deleting root/homerm -rf /content/drive- Protects Google Drive mount- Fork bombs and system killers
- Direct disk writes
- Ephemeral (default): Workspace at
/content/claude-workspaces/- resets each session - Persistent: Enable Google Drive to save workspace between sessions
- Edit uploaded repos: Upload a zip, unzip it,
cdinto it, runclaude - Edit notebooks: Use the
ipynbskill to create/edit.ipynbfiles - Check status: Run
/claude-colab:colab-statusfor environment info - Save work: Run
/claude-colab:checkpointto save to Drive
This repository serves dual purposes:
- Plugin Marketplace - Claude Code can fetch the plugin directly from this GitHub repo
- Bootstrap Notebook - Downloads configure the marketplace and enable the plugin
.claude-plugin/
marketplace.json # Marketplace manifest
src/plugin/
.claude-plugin/
plugin.json # Plugin manifest
skills/ # 5 skills
agents/ # 2 agents
commands/ # 3 commands
hooks/ # SessionStart, PreToolUse, PostToolUse
scripts/ # Hook implementations
curl -LsSf https://astral.sh/uv/install.sh | sh
uv syncuv run python build.py
# Generates dist/claude-colab.ipynbuv run python -m pytest tests/ -vThis project uses beads for issue tracking. Issues are stored in the beads-sync branch.
bd list # List issues
bd ready # Find unblocked work
bd create "..." # Create issue