← 开源

A desktop app for the Google Colab CLI: accounts, GPU sessions with cost guards, port forwarding and plugins.

Rust
增长势头
+024 小时新增 Star0.0%
671
Star
52
Fork
6
贡献者
创建于 2026-11-16 · 更新于 2026-12-06 · 今日第 19405 名
主要开发者
scarletkcyzd05vecyang1
README

Colab Playground

A desktop app for the Google Colab CLI: accounts, GPU sessions with cost guards, port forwarding and plugins.

Download | Usage | Plugins | Roadmap

Which file to pick, what the first launch asks and how updates work: Install a release.

What it is: a front end for the Google Colab CLI (colab, package google-colab-cli). It keeps several Google accounts, starts and stops Colab runtimes under cost limits, forwards ports from a runtime to your computer and runs plugins on the runtime. Written in Rust with GPUI and Ely GPUI Components.

What it is not: a Google product (it is an independent project, not affiliated with or endorsed by Google), a notebook editor or a replacement for the CLI; everything goes through colab. Model deployment is not part of the core: it is a plugin (the bundled llama.cpp one), and so is running a notebook as a job.

Features

  • Guided setup. A checklist finds the Colab CLI or installs it for you, then signs you in.
  • Several Google accounts. Save them, switch between them, and see every account's balance without switching. Before a switch the app lists what it affects.
  • Sessions on the hardware you want. Pick CPU, a GPU or a TPU, high RAM and a minimum GPU memory. Colab hands out an A100 with 40 GB or 80 GB at random; with a minimum set, the app gives back a smaller GPU and tries again. Each runtime shows the country and Google Cloud region it runs in. Runtimes opened in the browser are listed too, and can be stopped.
  • Cost guards. Auto-stop and idle stop run on the runtime itself, so they apply even when the app is closed. A spending cap and a balance floor are checked while the app runs. Balance, burn rate and time left are shown live.
  • Port forwarding. Connect a runtime port to 127.0.0.1 on your computer.
  • Keeps running in the tray. Closing the window leaves the app behind its tray icon (in the menu bar on macOS), so forwards stay open and the guards keep checking (how).
  • Plugins. A manifest plus one script that runs only on the Colab runtime, never on your computer. Bundled: "Deploy a GGUF model" serves a Hugging Face GGUF model with llama.cpp (OpenAI-compatible API plus web chat) and picks the best quantisation that fits the GPU it gets. A deployment left running when the app closes is picked up again when it starts, unless Colab ended its runtime meanwhile (it may end one that nothing is connected to). A plugin can ask for your Google Drive, which you connect for a run if you choose to. Write your own with docs/PLUGINS.md and get it listed for others in docs/COMMUNITY_PLUGINS.md.
  • Notebooks as jobs. The bundled "Run a notebook" plugin runs a Jupyter or Colab notebook from a link, top to bottom, with no browser tab open, and shows what it prints while it runs. Then it serves the executed notebook and the files the notebook saved, for you to open and download.
  • Command line for scripts and AI agents. Once you allow it in Settings, colab-playground ctl reads the accounts, runtimes and usage from the running app as JSON. With a second permission it also starts, stops and extends runtimes, runs code on them, forwards their ports, refreshes the usage and switches accounts there, and the window shows it as it happens (how). colab-playground mcp offers the same commands to agents that speak MCP (how).
  • Languages and theme. 简体中文, 繁體中文, 日本語, 한국어 and English; light, dark or follow the system.

Every limit and default is editable in Settings and can be overridden for a single session or deployment.

Get it

Download the file for your computer with the buttons above, or run from source with a Rust toolchain. On Windows the Colab CLI runs inside WSL.

cargo run -p colab-playground              # demo data: no Google account, nothing billed
cargo run -p colab-playground --release    # the real Colab CLI

Requirements, backend flags, demo scenarios and where settings are stored: docs/USAGE.md.

Safety and cost

  • Colab bills compute units for as long as a runtime exists, busy or idle. Closing a forward or the app does not stop billing; only a stop, an auto-stop or Colab itself does.
  • Stopping wipes the runtime: files, downloaded models, anything not saved elsewhere. Each provisioning attempt that is given back is billed for the short time it ran.
  • The spending cap and the balance floor only work while the app runs. Auto-stop and idle stop run on the runtime, and only if its watchdog started (the app says so when it could not).
  • The CLI has one signed-in account for the whole machine. Switching in the app switches it for every other use of colab too, and runtimes left on the old account keep billing until their auto-stop, if they have one.
  • Runtimes the app did not start (for example opened in the browser) get no auto-stop from it; they are listed so you can stop them.
  • A plugin runs its script on your paid runtime. Install only plugins you trust.
  • Google Drive connected to a runtime stays connected until the runtime stops, and any code on it can read, change and delete everything in your Drive.
  • Unknown usage is never shown as zero: it is marked unknown or outdated, and the guards report that they cannot check a limit while usage is unknown.

Documentation

License

MIT, © 2026 ScarletKc. See LICENSE. Icons are from Lucide (ISC licence, see assets/icon/LICENSE-lucide.txt).

排名相邻

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载