127.0.0.1:7860 0.16 CU verified across 6 live GPU runs

Colab GPUs on localhost.

Run a local Node 22 control plane that turns Google Colab Pro runtimes into a private OpenAI-compatible API, a 17-tool MCP server, a LoRA training rig, and a native menu-bar tray app. No local CUDA drivers, no public tunnels, and automatic teardown back to 0.00 CU/hr when your work stops.

Inspect 10 recipes
colab-forge workbench · ./runs/<job_id>/output/
job Min 15 GB VRAM

train-sft-lora

GPU Fallback Chain
Verified runtime behavior auto-stops VM on exit
01 / Architecture

Loopback control plane. Ephemeral CUDA workers.

Every API call, training upload, and checkpoint sync travels over multiplexed OpenSSH bound strictly to 127.0.0.1. Nothing is exposed to the public internet, and no local GPU drivers ever touch your laptop.

LOCAL HOST · 127.0.0.1:7860 Node 22 Control Plane • OpenAI Gateway (/v1/*) • Streamable HTTP MCP (17 tools) • React 19 Studio & Tauri v2 Tray CostGuard + Pre-flight + Vault PRIVATE SSH TUNNEL OpenSSH ControlMaster colab ssh --proxy-mode ssh -N -L 127.0.0.1:P Ed25519 · tar stream sync EPHEMERAL COLAB VM CUDA 13.0 GPU Worker • Python 3.13 + PyTorch 2.14 • Binds 127.0.0.1:8090+ • In-VM fail-safe watchdog Stops to 0.00 CU/hr on idle
Zero local CUDA

Keep your laptop clean

Install Node 22 and google-colab-cli. Remote workers boot straight into Colab's pre-loaded Python 3.13, PyTorch 2.14, and CUDA 13.0 runtimes without installing gigabytes of local weights or drivers.

Loopback isolation

No ngrok, no public URLs

Workers bind strictly to 127.0.0.1:8090+ and forward over Ed25519 OpenSSH tunnels. Add COLAB_FORGE_AUTH_TOKEN for Bearer auth and HttpOnly browser session cookies.

Two-layer watchdog

Survives sleep and crashes

Adaptive local sweeps (2s–15s) pair with an in-VM fail-safe watchdog so idle GPUs terminate even if your laptop loses Wi-Fi or power. On macOS, caffeinate prevents sleep mid-run.

CostGuard policy

Hard Compute Unit caps

Enforce balance floors, per-session CU ceilings, and bounded idle extensions. Transient 502/503 capacity errors fall back automatically down the GPU chain (G4 → A100 → L4 → T4).

Zero-CU pre-flight

Catch bad datasets before boot

train-sft-lora stream-validates local .jsonl, .json, and .csv files in 64 KiB chunks before provisioning any VM. Malformed lines fail fast at 0.00 CU.

Extensible recipes

YAML or TypeScript plugins

Drop a template into ~/.config/colab-forge/recipes/*.yaml for custom services or batch jobs, or import defineRecipe from colab-forge/recipe with Zod validation.

02 / Compute Unit Economics

Measured burn rates. Zero surprise bills.

Pick a Colab GPU tier and workload duration below. Every burn rate and boot time comes from live measurements against Google Colab Pro/Pro+ via google-colab-cli.

1. Select Colab runtime
20 min
5m 60m 120m 180m
3. Idle auto-stop timeout
NVIDIA L4
23.0 GiB VRAM · 52 GiB RAM · ~11s boot
2.33 CU/hr
Active workload 0.78 CU
Idle grace window 0.39 CU
Total with colab-forge 1.17 CU
Saved vs. forgetting a notebook idle for 4 hours 8.93 CU saved

Training jobs (train-sft-lora, train-script) skip the idle grace window completely and tear down the VM the second checkpoints finish syncing.

Runtime Boot time Live burn rate Verified hardware /content disk
CPU ~5s 0.08 CU/hr Standard CPU, 12 GiB RAM —
T4 ~10s 1.24 CU/hr Tesla T4 (15.4 GiB VRAM), 12 GiB RAM 235.6 GB free
L4 ~11s 2.33 CU/hr NVIDIA L4 (23.0 GiB VRAM), 52 GiB RAM 235.6 GB free
A100 ~4s 8.16 CU/hr A100-SXM4 (40.9 GiB VRAM), 83 GiB RAM 236 GB free
G4 capacity-dependent ~10.05 CU/hr RTX PRO 6000 Blackwell (96 GiB VRAM), 176 GiB RAM 236 GB
H100 capacity-dependent ~18.05 CU/hr NVIDIA H100 (80 GiB VRAM), 176 GiB RAM 236 GB
03 / Agents & Desktop Tray

One command for coding agents. One click in your menu bar.

Wire the 17-tool Streamable HTTP MCP server into your coding client with automatic 0600 backups, or keep the Tauri v2 tray app running in the menu bar with a live 5-second CU badge and global kill switch.

Streamable HTTP MCP · /mcp

Connect your AI coding client

17 tools
colab-forge connect claude-code

Safely injects http://127.0.0.1:7860/mcp, preserves existing MCP servers, and writes an atomic 0600 .bak backup before editing. Preview first with --dry-run or uninstall with --remove.

Orchestration & Guardrails (5)
colab_status list_recipes extend_session stop_session stop_all_sessions
Training Jobs (4)
start_training_lora start_training_script get_job_status cancel_job
Multimodal GenAI (8)
chat_completion generate_image generate_speech transcribe_audio analyze_image generate_music generate_video create_embeddings
macOS & Linux · Tauri v2

Native menu-bar tray app

Node 22 sidecar

Packages the daemon, compiled React 19 Web Studio, and a SHA-256-verified Node 22 LTS sidecar into a native menu-bar app. Try the interactive tray simulator below.

macOS Menu Bar
Active · 1 GPU · 2.33 CU/hr · 8m left
L4 · image-flux
999.7 CU balance · 127.0.0.1:7860
Open Web Studio 1340×860
Copy MCP Endpoint /mcp
Connect a client ▸ 4 clients
Start at login ✓ Enabled
04 / Empirical Verification

Six end-to-end GPU tests. 0.16 CU total.

Measured live against Google Colab (google-colab-cli v0.8.0, Python 3.13, PyTorch 2.14, CUDA 13.0) with zero lingering assignments after every single run.

0.16 CU
Total spent across all 6 tests (999.82 → 999.66 CU)
~4s
Measured A100-SXM4 boot time (~10s T4, ~11s L4)
0.00/hr
Verified burn rate after every test & idle teardown
17 tools
Streamable HTTP MCP tools verified on /mcp
# Live Test Status Verified Outcome
01 LoRA Training (train-sft-lora) PASS 4-bit QLoRA (Qwen2.5-0.5B-Instruct, 5 steps on T4): loss 4.7054 → 2.5196, downloaded 35.2 MB adapter_model.safetensors, auto-stopped (0.00/hr).
02 Voice TTS (voice-tts) + Idle Teardown PASS Synthesized 93,644-byte RIFF/WAVE on T4 with --idle-timeout 25; adaptive watchdog terminated VM after 40s idle (0 active assignments).
03 Audio Transcription (whisper-stt) PASS Transcribed Test 2's 1.95s WAV via GPU transformers Whisper ASR fallback on CUDA 13.0, archived JSON under ./outputs/transcripts/.
04 Image Generation (image-flux) PASS Auto-fell back to stabilityai/sdxl-turbo (variant="fp16") on T4, wrote valid 219,900-byte PNG to ./outputs/images/, stopped cleanly.
05 LLM Serving (llm-serve) PASS Served Qwen2.5-0.5B-Instruct on T4 via FastAPI + transformers OpenAI server (ready in 43s), returned 44-token chat completion.
06 Daemon + Web Studio + 17-Tool MCP + Tray PASS · 0 CU Verified /api/health, /api/tray-summary, /api/events, React 19 Studio, and POST /mcp (tools/list returning all 17 tools).
05 / Quickstart

From zero to a local GPU endpoint in three commands.

Requires Node.js >= 22, pnpm, and an authenticated google-colab-cli account. Want to test the UI and CLI without spending Compute Units? Start with COLAB_FORGE_PROVIDER=mock.

1 Install & authenticate Google Colab CLI
uv tool install google-colab-cli && colab login
2 Build colab-forge & run environment doctor
pnpm install && pnpm build && node dist/src/cli.js doctor
3 Boot loopback daemon, Web Studio, OpenAI gateway & MCP
node dist/src/cli.js start --open