google-colab-cli  by googlecolab

Colab CLI for terminal-driven cloud AI development

Created 1 month ago
440 stars

Top 67.2% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

The Google Colab CLI offers a terminal interface for Google Colab, enabling users to provision high-performance CPU, GPU, and TPU runtimes, execute code, manage files, and automate cloud pipelines. It targets developers and researchers seeking enhanced productivity and headless automation by bringing Colab's compute resources directly to the command line.

How It Works

This tool interacts with Colab's backend to instantly provision virtual machines with various accelerators (CPUs, GPUs, TPUs). Key functionalities include executing local scripts or notebooks (colab exec), launching interactive REPLs (colab repl), or accessing TTY shells (colab console). The "Ephemeral Job Runner" (colab run) automates the entire lifecycle: provision VM, execute script, retrieve outputs, and tear down. An automatic keep-alive daemon prevents idle VM termination, and the CLI supports state and log archival into formats like Jupyter notebooks or Markdown.

Quick Start & Requirements

Install via uv: uv tool install google-colab-cli, or pip: pip install google-colab-cli. Platform support is limited to Linux and macOS; Windows is not supported. Links to official documentation or demos are mentioned but not directly provided.

Highlighted Details

  • Instant VM Provisioning: Rapidly deploy VMs with GPUs (T4, L4, H100, A100) and TPUs (v5e1, v6e1).
  • Ephemeral Job Runner (colab run): Automates single-command script execution on provisioned hardware, including cleanup.
  • Automatic Keep-Alive: Prevents Colab VMs from terminating due to inactivity.
  • Workspace Automation: Integrates Google Drive mounting and GCP authentication.
  • State & Log Archival: Exports session history to Jupyter Notebooks, Markdown, or JSONL.

Maintenance & Community

No specific details on maintainers, community channels, or project health signals were present in the provided README excerpt.

Licensing & Compatibility

The project's specific open-source license was not explicitly stated in the provided README excerpt. Commercial use compatibility is undetermined.

Limitations & Caveats

The Colab CLI does not support Windows operating systems. Interactive commands (repl, console) require a local TTY environment.

Health Check
Last Commit

2 days ago

Responsiveness

Inactive

Pull Requests (30d)
35
Issues (30d)
5
Star History
421 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Vasek Mlejnsky Vasek Mlejnsky(Cofounder of E2B), and
1 more.

pezzo by pezzolabs

0.2%
3k
Open-source LLMOps platform for streamlining AI workflows
Created 3 years ago
Updated 2 months ago
Starred by Yaowei Zheng Yaowei Zheng(Author of LLaMA-Factory), Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research), and
25 more.

E2B by e2b-dev

0.6%
13k
Open-source cloud runtime for AI apps and agents
Created 3 years ago
Updated 1 day ago
Starred by Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research), Elie Bursztein Elie Bursztein(Cybersecurity Lead at Google DeepMind), and
27 more.

goose by aaif-goose

2.5%
49k
Open-source AI agent for automating complex engineering tasks
Created 1 year ago
Updated 14 hours ago
Feedback? Help us improve.