Colab GPU
Directly orchestrates Google Colab GPU runtimes via the Colab API: authenticates Google accounts, races and claims GPU instances across specs, manages ready-card leases and token renewal, and coordinates agent tasks.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Colab GPU
Direct Google Colab API + Isolated PKCE OAuth GPU Orchestrator · Zero Browser · Zero Cookie Scraping
English (Current) | 简体中文
Direct Colab API + OAuth2 PKCE · Multi-Spec Concurrent GPU Racer · Multi-Exit Proxy Pool & Circuit Breaker · Multi-Signal Idle-Burn Watchdog · Atomic Ready-Card Leases · Read-Only Agent Task Pool
Roadmap & Harness Support · Architecture · Changelog · Releases · Discussions · Issues
Illustrative showcase rendered with sample accounts and sample workloads. No real credentials or user workspaces are shown.
Non-Affiliation & Harness Support Notice
Colab GPU (
agy-colab) is an independent open-source project and is not affiliated with or endorsed by Google LLC. References to “Google”, “Google Colab”, and “Antigravity” are strictly for compatibility and descriptive purposes.Host Harness Scope:
v1.0.0currently targets Google Antigravity first. As soon as any user opens an Issue requesting another harness or MCP host, support for that harness will be implemented promptly — Request a Harness.
Highlights
Direct Google Colab API + Isolated PKCE OAuth (Zero Browser · Zero Cookie Fragility): Authenticates Google accounts with isolated OAuth2 PKCE tokens (zero GCP project setup required out of the box; optional
AGY_COLAB_OAUTH_CLIENT_*overrides supported; scans existing~/.colab-accountsADC files) and calls Colab endpoints directly overundici— no Puppeteer, no Playwright, and no brittle browser DOM scraping.Multi-Spec Concurrent GPU Racer (
AIMD 429+ Incremental Guard): Arm multiple GPU tiers (G4 96G,A100 80G,A100 40G,V100 16G,L4 24G,T4 16G) in parallel, fan out 2 concurrent workers on single-spec targets, snapshot per-account baseline assignments before racing so excess grabs are automatically cleaned up (stopAndVerify), guard against silentA100 80G -> 40Gdowngrades, and adapt concurrency on HTTP429rate limits.Multi-Exit Proxy Pool & Circuit Breaker: Route Colab control-plane traffic via
direct,single, or a multi-nodepoolwithper_accountdeterministic affinity (+ automatic failover),fastestEMA latency routing, orround_robinrotation. Every node keeps an isolatedProxyAgent, backs off exponentially on failure /429, recovers cleanly via half-open probing, performs single transparent failover even whenretries === 0, and scrubs alluser:passcredentials from logs and responses.90-Day FIFO CU Ledger & API Glitch Protection: Track manual compute-unit refill batches with FIFO 90-day expiration estimates, real-time hourly burn rates, and single-sample zero-balance API glitch protection across every connected account.
Multi-Signal Idle-Burn Watchdog, Ghost Radar & Persistent Snooze: Evaluates GPU utilization, VRAM deltas, host RAM/disk motion, keepalive Python sleep loops (
vram_residentfallback when GPU telemetry probes fail), cold-start grace windows, and Task Pool heartbeats (< 10m) before alerting — with per-runtime persisted Snooze and pure-OAuth[GHOST]detection.Atomic Ready-Card Lease Pool & Zero-Downtime Token Renewal: Domain-locked
PluginStoreprevents lost updates under concurrent writes; AI agents atomically claimREADYcards (colab_claim_card), drop negotiated tasks with mandatory ETA (colab_task_create), pulse heartbeats every5–8minutes (colab_task_update), renew expiring 60-minute proxy tokens without stopping kernels (colab_refresh_card_token), and cleanly return or stop billing (colab_release_card).
Why Direct Colab API + OAuth Instead of Browser / Cookie Scripts?
Dimension | Traditional Browser / Cookie Scripts | Colab GPU ( |
Authentication | Shared browser profiles, volatile cookies, frequent relogin | Isolated multi-account OAuth2 PKCE (auto-refresh |
Footprint | Heavy headless Chrome / Puppeteer processes & DOM breakages | Zero-browser Node + |
GCP Setup | Often forces users to configure custom GCP projects first | Works out of the box (+ optional |
Long Jobs (>60m) | Kernel token expires mid-run or forces web tab keepalive |
|
Multi-Exit Egress | All tabs share one browser proxy profile |
|
Related MCP server: ClawManager Fleet Control
Visual Overview
1. Core Capabilities at a Glance
Pillar | What It Handles | Key Mechanism |
Concurrent GPU Racer | Grab exact card counts across multi-spec picks & accounts | Baseline snapshot diff + 2-worker fan-out + AIMD |
Multi-Exit Proxy Pool | Resilient multi-region HTTP proxy routing per account |
|
Idle-Burn Watchdog | Stop silent compute-unit waste without false positives | VRAM + GPU + RAM + Disk + Task heartbeat (<10m) fusion + persisted Snooze + Ghost radar |
Agent Lease & Task Cockpit | Multi-agent coordination with live read-only ETA board | Atomic |
2. Dual-Visibility MCP Architecture
Strict Tool Privilege Isolation (10 Model-Visible Agent Tools vs. 19 App-Only UI Tools):
Model-Visible Agent Tools (
colab_*):colab_open_panel,colab_status,colab_discover_ready_cards,colab_claim_card,colab_refresh_card_token,colab_release_card,colab_task_create,colab_task_update,colab_task_list,colab_task_remove.App-Only Sidecar UI Tools (
app_*,visibility: ['app']): Hidden from LLM context (app_get_dashboard,app_refresh_dashboard,app_set_config,app_test_proxy_pool,app_test_proxy,app_oauth_start,app_oauth_complete,app_legacy_scan,app_legacy_import,app_account_update,app_account_remove,app_add_balance_batch,app_stop_runtime,app_update_lease,app_snooze_idle,app_race_start,app_race_status,app_race_stop,app_race_dismiss).
Incremental Baseline Racing & Silent Downgrade Guard (
src/server/colab/racer.ts):Before launching race workers,
RaceManagerqueries every candidate account's active assignments and skips any account whose baseline preflight fails instead of racing against an empty baseline.Each GPU candidate carries priority rankings (
G4 96G > A100 80G > A100 40G > V100 16G > L4 24G > T4 16G). If Colab silently returns a 40 GB A100 when onlyA100 80Gwas selected,RaceManagerdetects real VRAM via Jupyter probe and immediately unassigns the downgraded instance rather than counting it toward target quota.NETWORK_ERRORtriggers gentle backoff without poisoning HTTP429AIMD streaks;NOT_ENTITLEDandHTTP 412surface explicit diagnostics.
Multi-Exit Proxy Pool & Isolated Probes (
src/server/net/proxy-pool.ts,http.ts):Deterministic hash-pinned
per_accountaffinity pairs each Google account with its stable exit IP while failing over onto healthy alternate nodes if a node opens its circuit breaker.app_test_proxy_poolruns ephemeral probe dispatchers (probeProxyNode,probeProxyPool,testProxyConnectivity) that never mutate live activeProxyAgentpools or clear healthy traffic caches.Credential-bearing URLs (
http://user:pass@host:port) are scrubbed immediately viamaskProxyUrlandscrubProxyCredentialsFromTextbefore hitting UI payloads, logs, or error banners.
Multi-Signal Idle Watchdog (
src/server/state/dashboard-cache.ts,colab/runtime.ts):Parses fractional (
0..1) and percentage (0..100) GPU utilization metrics safely, detects probe-failure blindspots (never falsely blamingvram_residentwhen GPU utilization wasn't reported), tracks rolling RAM/Disk byte progression, exempts cold starts, flags staleREADYleases (ready_timeout), and respects both< 10mTask Pool heartbeats and persistedsnoozeUntildeadlines.DashboardCachebuffers transient errors across 2 polling cycles before surfacing degraded banners and preserves existing good account/runtime state across partial failures.
Domain-Locked Persistence & Handshake (
src/server/state/store.ts,server/index.ts):All mutations to
leases,tasks,config,accounts, andledgerserialize through domain-scoped async mutexes (withDomainLock), making parallel MCP calls and UI polls atomic without coarse global stalling.Every dashboard payload carries
protocolVersion: 3andserverBuildIdcompared againstwindow.__AGY_DISK_BUILD_ID__injected fromdist/server.mjsso UI panels automatically warn when the host needs a plugin reload after an upgrade.
Quick Start
Requires Node.js >= 22.0.0 and Google Antigravity (other harnesses added on request — see below!).
Option A: Portable Release Bundle (Recommended · Zero npm install)
Download
agy-colab-v1.0.0.zip(Windows) oragy-colab-v1.0.0.tar.gz(macOS / Linux) from GitHub Releases (verify checksums againstSHA256SUMS.txt).Extract the archive and run the bundled installer from the extracted
agy-colab/folder:
node install-portable.mjsOpen Plugins Manager in Antigravity, toggle
Colab GPU(agy-colab) on (or off/on after an upgrade), and run"Open the Colab GPU panel"or invokecolab_open_panel.
Option B: Build & Install from Source (Developers)
git clone https://github.com/Gruu6y/Colab-GPU.git
cd Colab-GPU
npm ci
npm run build
npm run install:pluginnpm run install:plugin deploys cleanly to ~/.gemini/config/plugins/agy-colab (symlink/junction for node_modules by default, or pass -- --copy-deps for a standalone copy).
Need Another Harness? (Claude Code / Cursor / Codex / Windsurf / Cline / etc.)
v1.0.0 temporarily supports Google Antigravity first (MCP Stdio + ui:// MCP App sidecar panel).
If you want Colab GPU running on another coding harness or MCP client, please open a Harness Support Issue naming your harness — we will add native adapter/UI/skill support right away!
Agent Collaboration Protocol (colab-agent-workflow)
The bundled skill skills/colab-agent-workflow/SKILL.md teaches Antigravity agents to coordinate safely on shared GPUs:
Inspect & Discover:
colab_status->colab_discover_ready_cards(minVramGb). Never steal another agent'sin_useGPU.Atomic Claim:
colab_claim_card(owner,note,endpointor auto-smallest match).Register Task with Mandatory ETA:
colab_task_create(estimatedMinutes > 0,assignedEndpoint, step breakdown) drops a read-only progress card onto the user's panel.Heartbeat Every 5–8 Minutes:
colab_task_updatekeeps ETA accurate and stops CPU preprocessing / data-loading steps from trippingIDLE_BURN.Renew Long-Job Tokens (>50m):
colab_refresh_card_tokenrefreshes the ~60mproxyTokenlive without killing running kernels.Clean Closeout: Finalize task (
done/failed), then callcolab_release_card(action: "stop"to end billing, or"ready"only for immediate warm handoff).
FAQ
Which host harnesses are currently supported? Google Antigravity is fully supported out of the box in
v1.0.0. Because this plugin speaks standard MCP (@modelcontextprotocol/sdk+@modelcontextprotocol/ext-apps), adapting to other harnesses (Claude Code, Cursor, Codex, Windsurf, Cline, Zed, etc.) is straightforward — open an Issue and we will add support immediately.Do I need to configure my own Google Cloud OAuth app? No.
src/server/colab/auth.tsuses Google's public installed desktop OAuth client parameters (RFC 8252 + PKCE) out of the box, or you can setAGY_COLAB_OAUTH_CLIENT_IDandAGY_COLAB_OAUTH_CLIENT_SECRETinmcp_config.jsonto use your own GCP OAuth client. Credentials stay strictly inside~/.gemini/antigravity/plugin_data/agy-colab(or your${PLUGIN_DATA}directory).Will updating or toggling the plugin delete my active GPU leases or credentials? No. Runtime state, credentials, balance batches, snoozes, and tasks live in Antigravity's separate
plugin_data/agy-colabdirectory, isolated from plugin installation files in~/.gemini/config/plugins/agy-colab.Where are proxy passwords protected? Proxy URLs stored in
config.jsonare normalized and validated strictly (http:///https://only) and scrubbed bymaskProxyUrl/scrubProxyCredentialsFromTextbefore entering UI payloads, dashboard caches, error messages, or logs.
Common CLI Commands
npm run version:check # Verify single SemVer SSOT across package, manifests, code & docs
npm run typecheck # Typecheck both UI (React/Vite) and MCP Server (TypeScript)
npm run build # Build single-file UI HTML and bundled ESM MCP server
npm run test:gates # Run architecture, XSS/secret hygiene, zero-demo & asset-budget gates
npm test # Run full zero-mocked-network + MCP stdio integration suite
npm run install:plugin # Install into ~/.gemini/config/plugins/agy-colab (-- --copy-deps supported)
npm run package:release # Build portable .zip / .tar.gz bundles + SHA256SUMS.txt into release/Repository Layout
Colab-GPU/
├── plugin.json / mcp_config.json # Antigravity plugin & MCP server manifest (ID: agy-colab)
├── LICENSE / NOTICE / CITATION.cff # GPL-3.0-only license, Section 7 NOTICE & citation metadata
├── THIRD_PARTY_NOTICES.md # MIT / Apache-2.0 dependency attributions
├── AGENTS.md / CHANGELOG.md # Engineering redlines & bilingual release history
├── assets/logo.svg # Compact vector plugin emblem (< 256 KiB budget)
├── docs/ # README.zh-CN.md, ROADMAP.md, ADRs, CONTRIBUTORS & showcase images
├── skills/colab-agent-workflow/ # Bundled Agent collaboration protocol skill (SKILL.md)
├── scripts/ # install-plugin.mjs, check-version.mjs, package-release.mjs
├── src/
│ ├── server/
│ │ ├── index.ts # MCP stdio entry, ui:// resource host & build-id injection
│ │ ├── colab/ # auth.ts (PKCE OAuth), api.ts, racer.ts (AIMD), runtime.ts (telemetry)
│ │ ├── net/ # http.ts (failover/scrubbing), proxy-pool.ts (affinity/fastest/breaker)
│ │ ├── state/ # store.ts (domain locks), balance-ledger.ts (FIFO), dashboard-cache.ts, legacy-sync.ts
│ │ └── tools/ # agent-tools.ts (10 colab_* tools), app-tools.ts (19 app_* UI tools), dashboard.ts
│ └── ui/ # React 19 single-file MCP App console (App.tsx, components/, lib/, theme.css)
└── tests/ # 7 domain suites + architectural/security gates (node:test)License, Derivative Rules & Citation
1. Open-Source License & Mandatory Attribution (GPL-3.0-only + NOTICE)
Colab GPU (agy-colab) (Copyright (C) 2026 Gruu6y) is licensed under the GNU General Public License v3.0 (GPL-3.0-only) with mandatory Section 7 attribution terms in NOTICE.
Any fork, modification, port, or redistribution must comply with all three requirements:
Same-License Copyleft: Any derivative plugin, bundled MCP server, or distribution incorporating code from Colab GPU must be released under
GPL-3.0with complete corresponding source code accessible. Proprietary bundling or closed-source resale is prohibited.Preserve Attribution Chain: Retain
LICENSE,NOTICE, andTHIRD_PARTY_NOTICES.mdintact, and preserve visible credit linking back to@Gruu6yandGruu6y/Colab-GPU.Mark Modifications & Non-Endorsement: Document modification summaries and dates on altered files, and do not distribute modified forks under the unmodified
Colab GPU/agy-colabbranding as official releases without permission.
Downstream Attribution Snippet
> Built upon [Colab GPU](https://github.com/Gruu6y/Colab-GPU) by [@Gruu6y](https://github.com/Gruu6y), licensed under [GPL-3.0](https://www.gnu.org/licenses/gpl-3.0.html). Attribution and third-party notices are preserved in `NOTICE` and `THIRD_PARTY_NOTICES.md`.Citation (CITATION.cff / BibTeX)
@software{gruu6y_colab_gpu_2026,
author = {Gruu6y},
title = {{Colab GPU (agy-colab): Direct Google Colab GPU Orchestrator, Multi-Exit Proxy Pool & Agent Task Cockpit}},
year = {2026},
version = {1.0.0},
license = {GPL-3.0-only},
url = {https://github.com/Gruu6y/Colab-GPU}
}2. Community Contributors & Release Verification
Contributors: Thank you to everyone testing, filing bugs, requesting new harnesses, and opening PRs — see
docs/CONTRIBUTORS.mdand.github/CONTRIBUTING.md.Security Policy: Report vulnerabilities privately via GitHub Security Advisories — see
.github/SECURITY.md.Verifying Releases: Every official GitHub Release attaches a CI-generated
SHA256SUMS.txtdigest file covering bothagy-colab-v<version>.zipandagy-colab-v<version>.tar.gz.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
On-demand GPU nodes for agents: create nodes, run commands, and submit jobs, billed by the minute.
AI cloud for agents: launch GPUs, run jobs that stop their own billing, schedule runs.
GPU compute for agents: run commands on an L4/A100/H100, watch logs, billed per second.
Rent cloud GPUs from AI agents: live prices, VRAM estimates, launch, logs and stop.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to autonomously manage Google Colab GPU sessions, submit and monitor training jobs, and debug/fix issues via an encrypted tunnel without requiring a browser tab.MIT
- FlicenseNot gradedqualityDmaintenanceLease governed AI agent instances without hand-built runner queues.-
- AlicenseAqualityCmaintenanceEnables AI agents and their users to submit, route, and monitor training jobs across free-tier GPU clouds (Kaggle, Colab, Lightning, local MPS) through a local daemon that tracks quota, explains routing decisions, and gates long or secret-reading agent jobs behind human approval.81MIT
- AlicenseNot gradedqualityBmaintenanceEnables an AI agent to check live GPU prices, get a cost quote, rent a per-minute GPU instance, upload code and data, run jobs in the background, tail logs, download results and destroy the instance to stop billing. Includes guardrail limits on spend, hours and idle time, safe file transfer, and access to an OpenAI-compatible model API for inference without renting a GPU.527 npm2MIT