# Comfy Colab Kit > Wake-on-demand ComfyUI on Google Colab. A lightweight aiohttp gateway (comfy-gate) that runs either 100% locally on your Mac/PC (zero VPS, zero domain, zero Cloudflare setup) or on a cloud Linux VPS behind Cloudflare Access. Shows a Hugging-Face-Space-style wake page, starts one shared Colab GPU session via the colab CLI with resilient multi-GPU allocation (A100 80G --high-mem → G4 96G → L4 24G auto-fallback, retry backoff, session reconciliation, and high_mem-aware CU accounting), streams progress to every viewer over SSE, reverse-proxies ComfyUI (incl. /ws), and auto-stops on idle, max session, quiet hours or compute-unit budget. 7 built-in profiles: MOSS-Image, MiniMax-H3-Image, MiniMax-H3-Video (TriPRISM), FLUX.2 Klein 4B, Wan 2.2 & LTX-Video (T2V/I2V), SD 3.5, and Qwen-Image. ## Docs - [README](README.md): overview, quick start, dual-mode deployment, showcase gallery - [AGENTS.md](AGENTS.md): module map, state machine, invariants for coding agents - [docs/README.md](docs/README.md): documentation map and agent fast path - [docs/DEPLOY_LOCAL.md](docs/DEPLOY_LOCAL.md): 100% local deployment guide (zero VPS, no Cloudflare, zero auth on localhost:8080) - [docs/DEPLOY_VPS.md](docs/DEPLOY_VPS.md): cloud Linux VPS + Caddy + Cloudflare Zero Trust deployment - [docs/AGENT_SCAFFOLDING.md](docs/AGENT_SCAFFOLDING.md): AI agent guide for scaffolding custom ComfyUI profiles or adapting a fork for any Google Colab GPU workload - [docs/AGENT_SKILL.md](docs/AGENT_SKILL.md): how an agent wakes, uses, and stops a deployed gate - [skills/comfy-colab-kit/SKILL.md](skills/comfy-colab-kit/SKILL.md): universal AI agent skill definition (/comfy-colab-kit) - [docs/MCP.md](docs/MCP.md): Model Context Protocol (MCP) guide (stdio ckit mcp, remote HTTP, tool reference) - [docs/ACCESS.md](docs/ACCESS.md): connection paths (localhost zero-auth, browser, guest links, LAN, agent tokens) - [docs/AGENT.md](docs/AGENT.md): VPS deployment runbook and credential procurement guide - [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md): components, data flow, shared session, proxy - [docs/PROFILES.md](docs/PROFILES.md): profile format, ComfyUI passthrough, App mode - [docs/AUTO_STOP.md](docs/AUTO_STOP.md): every stop rule and its .env variable - [docs/CLOUDFLARE.md](docs/CLOUDFLARE.md): Cloudflare Zero Trust Access & Named Tunnel setup - [docs/SECURITY.md](docs/SECURITY.md): secrets, scanning, threat model - [docs/WAKE_PAGE.md](docs/WAKE_PAGE.md): wake page and overlay UI - [docs/API.md](docs/API.md): HTTP API summary ## For Autonomous AI Agents (Local Execution) 1. **Bootstrap**: Run `docker compose -f deploy/docker-compose.local.yml up -d` or `python3 -m gate` (requires `AUTH_DISABLED=true` in `.env`). 2. **Inspect**: Call `GET http://localhost:8080/_gate/healthz`, `GET http://localhost:8080/_gate/profiles` (includes `accelerator`, `fallback_accelerators`, `high_mem`), and `GET http://localhost:8080/_gate/status` (includes live `accelerator` and `cu.per_hour`). 3. **Connect via MCP**: Spawn `ckit mcp --gate-url http://localhost:8080` via stdio. Zero tokens or Cloudflare headers required. 4. **Generate**: Call `gate_wake` (or `POST /_gate/wake` with optional `"accelerator": "A100" | "G4" | "L4"`) with a profile (e.g. `flux-klein`, `wan-ltx-video`, or `minimax-h3-video`), queue prompts with `gate_txt2img` / `gate_img2img`, and call `gate_stop` upon completion. ## API - [apps/gate/openapi.yaml](apps/gate/openapi.yaml): OpenAPI 3.1 for /_gate/* - [packages/schemas/profile.schema.json](packages/schemas/profile.schema.json): profile JSON Schema ## Optional - [.env.example](.env.example): all configuration variables - [profiles/examples/moss-image/README.md](profiles/examples/moss-image/README.md): primary MOSS-Image DeBand example profile - [profiles/examples/flux-klein/README.md](profiles/examples/flux-klein/README.md): FLUX.2 Klein 4B (Distilled & Base T2I + ReferenceLatent Image Edit) & FLUX.1 Schnell profile - [profiles/examples/wan-ltx-video/README.md](profiles/examples/wan-ltx-video/README.md): Wan 2.2 5B TI2V, Wan 2.1 1.3B T2V & Lightricks LTX-Video 2B profile - [profiles/examples/sd-latest/README.md](profiles/examples/sd-latest/README.md): Stable Diffusion 3.5 Large fp8 & TurboX profile - [profiles/examples/qwen-image/README.md](profiles/examples/qwen-image/README.md): Qwen-Image 2.1 Turbo T2I & Edit profile - [profiles/examples/minimax-h3-image/README.md](profiles/examples/minimax-h3-image/README.md): MiniMax-H3-Image 33.1B DiT (W4A8 fast L4 · Qwen3-VL 32B · T2I & Multi-Ref Edit) profile - [profiles/examples/minimax-h3-video/README.md](profiles/examples/minimax-h3-video/README.md): MiniMax-H3-Video (TriPRISM 8-step Ref2V/I2V/T2V + stereo audio, `h3-extend` w/ `ColorTransfer` anchor, `h3-extender-latent` zero-MP4-drift latent chaining, Fun ControlNet-Union 2.0 V2V, RelayVSR/Latent upscaling; `A100 80G → G4 96G → L4 24G` auto-fallback via `model_aliases_by_gpu` & `overrides_by_gpu`, `~39.63 GB` core / `~32.76 GB` L4 / `~49.25 GB` full) profile