Skip to content
The-habibPublic

About

Unlimited Free GPU with NVIDIA Blackwell 96GB VRAM For Ai Agent

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

MoLab CLI - Cloud GPU Orchestrator

MoLab CLI — Autonomous Cloud GPU Orchestrator

High-performance, general-purpose GPU execution platform and AI agent bridge for NVIDIA RTX PRO 6000 Blackwell (96GB VRAM) compute environments on MoLab & CoreWeave.

Version Orchestration GPU File Transfer Jobs Persistence MCP Tests Platform Python License


🚀 Overview

molab-cli (invoked as molab or molabctl) transforms ephemeral cloud GPU sandboxes into an industrial-grade compute fabric. Designed from the ground up for developers, researchers, and autonomous AI coding agents, it connects lightweight local environments (like Termux on Android, laptops, or remote CI/CD runners) directly to NVIDIA RTX PRO 6000 Blackwell Server Edition (96GB VRAM) pods with zero bytes of local storage used.

Whether orchestrating 4K neural video enhancement pipelines, hosting 27B+ uncompressed language models, transcribing speech with Whisper, or executing long-running background training jobs, molab-cli delivers enterprise reliability through native HTTP/2 streaming, SQLite-backed state tracking, and open standards like the Model Context Protocol (MCP).


💡 Why This Project Exists

Running high-end GPU workloads in the cloud shouldn't mean juggling fragmented web consoles, manual SSH keys, and fragile browser uploads. Traditional cloud notebook interfaces break down when scripts run long, connections drop, or large datasets are transferred.

molab-cli bridges that gap:

  • Zero Terminal Buffer Bottlenecks: Bypasses kernel PTY 4096-byte WebSocket limitations using direct Marimo HTTP/2 streaming endpoints (/api/files/create and /api/files/download) for full-bandwidth binary transfers.
  • Safe Multi-Pod Coexistence: Intelligently audits active GPU pods (molab free) to prevent accidental disruptions of running production jobs or inference servers.
  • Autonomous Multi-Pod Batch Engine: Features resource-aware dynamic GPU scheduling, DAG dependency resolution, transactional task leases, and isolated webhook delivery across multi-task pipelines (molab batch).
  • Durable Background Job Engine: Features a local SQLite job repository (~/.config/molab/jobs.db) with state machines, exit code traps, live log tailing, and automatic artifact discovery.
  • First-Class AI Agent Interoperability: Implements an official MCP Server (molab mcp with 19 typed tools) and a typed Python SDK, empowering AI agents in Claude Desktop, Cursor, and Antigravity to operate cloud GPUs autonomously.

🎯 Best Use Cases & Workloads

1. 🤖 Large AI Model Deployment & OpenAI API Gateway

Deploy heavyweight open-source models (such as gemma-3-27b-it or Qwen-2.5-72B-Instruct) inside a Blackwell 96GB pod. Expose OpenAI-compatible endpoints directly to http://localhost:8000/v1 via molab forward for local tools like Open WebUI, SillyTavern, or Cursor.

2. 🎬 4K Neural Video Enhancement & Media Remastering

Stream multi-gigabyte raw mobile videos straight from device storage to the pod, run PyTorch-accelerated neural upscaling, color grading, and HEVC 60fps encoding, and stream the rendered results directly back without wearing local flash memory.

3. 🎙️ High-Speed Speech Recognition & Transcription

Transcribe hours of audio and video in seconds using OpenAI Whisper Large-v3 with batch GPU acceleration via pre-configured workload templates (molab workload run whisper-transcribe).

4. 🔄 Large Dataset Preparation & Delta Code Sync

Keep local development folders in sync with remote pod environments using SHA-256 manifest delta synchronization (molab sync). Only modified or missing files are transferred.

5. 🧠 Autonomous Agent Infrastructure & MCP Server

Provide AI agents in Cursor, Claude Desktop, and Antigravity with native capabilities to inspect hardware telemetry, launch jobs, and retrieve output artifacts via molab mcp.


🏛️ System Architecture

+-------------------------------------------------------------------------------+
| Client Environment (Termux / Linux / macOS)                                   |
|                                                                               |
|   ~/.config/molab/config.json  <-- Clerk Authentication Session               |
|   ~/.config/molab/jobs.db      <-- Local SQLite Job & Batch Repository        |
|                                                                               |
|   Subsystems:                                                                 |
|   ├── capabilities.py  : Capabilities detection & diagnostic Doctor checks    |
|   ├── execution.py     : Structured execution, exit code traps, nohup launcher|
|   ├── jobs.py          : Persistent SQLite job engine & artifact manifests    |
|   ├── scheduler.py     : Multi-pod resource matcher, DAG solver & orchestrator|
|   ├── notifications.py : Isolated HTTPS/Discord webhooks with secret redaction|
|   ├── mcp.py           : Model Context Protocol (MCP) JSON-RPC 2.0 Server     |
|   ├── transfer.py      : Native HTTP streaming, SHA-256 manifests & sync     |
|   ├── backend.py       : Native Marimo REST & WebSocket client (export, eval, files)|
|   ├── workloads.py     : Pluggable AI workload templates & parameter schemas  |
|   ├── services.py      : Model server lifecycle & application health checks   |
|   ├── gallery.py       : MoLab Gallery client (111+ curated AI recipes)       |
|   ├── vault.py         : 100% on-MoLab In-Notebook Vault persistence          |
|   ├── keepalive.py     : Dual-loop anti-idle supervisor daemon                |
|   ├── web.py           : Local Web Control Center dashboard (FastAPI / SPA)   |
|   ├── tui.py           : Zero-typing interactive Terminal Control Center      |
|   └── sdk.py           : High-level typed Python SDK for automated scripts    |
+-------------------------------------------------------------------------------+
         │                                                      │
         │ [HTTPS REST Gateway]                                 │ [WebSocket Gateway]
         │ https://<sb-id>.sb.molab.run                         │ wss://<sb-id>.sb.molab.run/terminal/ws
         │                                                      │
         v                                                      v
+-------------------------------------------------------------------------------+
| Remote Kubernetes Sandbox Pod (Ubuntu 24.04 LTS, root)                        |
|                                                                               |
|   Port 8080: Marimo Server (PID 1)                                            |
|     ├── /api/files/create   : Streaming multipart/form-data upload             |
|     ├── /api/files/download : Binary streaming file download                  |
|     ├── /api/status         : Kernel health & version metadata                |
|     └── /terminal/ws        : Interactive PTY root bash shell                 |
|                                                                               |
|   Port 8000: User Model Server (vLLM / SGLang / llama.cpp)                    |
|     └── /v1/chat/completions (OpenAI-compatible REST API)                     |
|                                                                               |
|   Hardware Specifications:                                                    |
|     NVIDIA RTX PRO 6000 Blackwell Server Edition (94.97 GB GDDR7, sm_120)     |
|     188 Streaming Multiprocessors | 160 GiB Host RAM | 20 vCPUs               |
+-------------------------------------------------------------------------------+

🛠️ Installation & Setup

1. Installation

Clone and install molab-cli in editable mode:

# Clone the repository
git clone https://github.com/The-habib/molab-cli.git ~/molab-cli
cd ~/molab-cli

# Install package globally
pip install -e .

Both molab and molabctl are now globally accessible.

2. Authentication

Authenticate your MoLab account with your Clerk master session:

# Interactive guided onboarding wizard:
molab login

# Or pass your __client cookie directly:
molab login --client "<__client cookie string>"

Verify your setup with the diagnostic doctor:

molab doctor

🚀 Quick Start (Interactive TUI)

Run molab without arguments to launch the Zero-Typing Interactive Control Center:

molab
╭──────────────────────────────────────────────────────────────────────────────╮
│                                                                              │
│   ███╗   ███╗ ██████╗ ██╗      █████╗ ██████╗                                │
│   ████╗ ████║██╔═══██╗██║     ██╔══██╗██╔══██╗                               │
│   ██╔████╔██║██║   ██║██║     ███████║██████╔╝                               │
│   ██║╚██╔╝██║██║   ██║██║     ██╔══██║██╔══██╗                               │
│   ██║ ╚═╝ ██║╚██████╔╝███████╗██║  ██║██████╔╝                               │
│   ╚═╝     ╚═╝ ╚═════╝ ╚══════╝╚═╝  ╚═╝╚═════╝                                │
│                                                                              │
│     ⚡ Cloud Notebooks & NVIDIA Blackwell Server Hub  •  v2.1.0              │
╰──────────────────────────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────────────────────────╮
│ ● user@example.com      ⚡ 1 Pod Running (Blackwell 96GB)  NVIDIA RTX PRO 6000│
╰──────────────────────────────────────────────────────────────────────────────╯

? Select an action:
  ❯ 📋 Browse & Manage Notebooks
    🚀 1-Click Launch Blackwell Pod
    🔍 Find Idle / Free GPU Pod
    💻 Open Cloud Root Terminal (Shell)
    🤖 AI Model Studio (Gemma 3 27B)
    ⚡ Real-time GPU Telemetry
    📂 Cloud File Transfer (Push / Pull)
    📦 Python Package Manager
    🔑 Account & Authentication
    ❓ Quick Guide & Documentation
    🚪 Exit

📖 Command Line Reference

Every inspection command supports -j, --json for programmatic integration:

1. System Diagnostics & Capabilities

molab doctor                            # Run comprehensive diagnostic health check
molab doctor --json                     # Output diagnostic results as JSON
molab capabilities                      # Discover confirmed platform & compute facts
molab capabilities --json               # Machine-readable capabilities inventory

2. Smart Discovery & Pod Management

molab free                              # Audit running pods & identify idle Blackwell GPU
molab free --json                       # Machine-readable workload audit
molab list                              # List all cloud notebooks
molab list --json                       # JSON array of notebooks
molab ps                                # List active CoreWeave sandbox pods
molab create --title "Inference-Pod"   # 1-click launch 96GB Blackwell sandbox
molab compute <id> --blackwell          # Attach NVIDIA Blackwell GPU
molab inspect <id> --json               # Detailed pod hardware metadata
molab stop <id>                         # Stop pod to conserve compute credits

3. High-Speed File Transfer & Directory Sync

# Upload a file via native Marimo HTTP multipart streaming:
molab push <id> ./video.mp4 /workspace/input.mp4

# Upload a whole directory recursively:
molab push <id> ./project /workspace/project -r

# Download a processed output:
molab pull <id> /workspace/enhanced.mp4 ./enhanced.mp4

# Delta synchronize directory with SHA-256 manifests (transfers modified files only):
molab sync <id> ./src /workspace/src
molab sync <id> ./src /workspace/src --dry-run --json

4. Universal Background Jobs & Artifacts

# Submit detached background job tracked in local SQLite:
molab job submit <id> "python3 train.py --epochs 10" --name "lora-run-1" --json

# List active and historic jobs:
molab job list --json

# Check refreshed status (synchronizes process state, captures exit codes):
molab job status <job_id> --json

# View live trailing execution logs:
molab job logs <job_id> --tail 50

# Cancel a running background job:
molab job cancel <job_id>

# Download output artifacts produced by the job:
molab job artifacts <job_id> --download ./results

5. Autonomous Multi-Pod Batch Pipelines (v2.2)

# Validate manifest schema and DAG dependencies:
molab batch validate examples/pipeline_manifest.json

# Submit batch to SQLite queue:
molab batch submit examples/pipeline_manifest.json --max-parallel 2

# Execute pipeline with autonomous pod matching & live progress:
molab batch run examples/pipeline_manifest.json --poll 2.0

# Inspect batch status & task breakdown:
molab batch status <batch_id> --json

# View live execution logs for a task:
molab batch logs <batch_id> --task gpu_verify

# Test isolated webhook notifications:
molab notify test --url https://discord.com/api/webhooks/...

6. AI Model Studio & Localhost Bridge

# Check application-level health of model server on pod:
molab serve status <id> --port 8000 --json

# Bridge cloud model server to localhost:8000 for Open WebUI / SillyTavern:
molab forward <id> --port 8000

# Interactive terminal chat with deployed 27B unrestricted model:
molab chat <id>

7. Native Marimo Backend, Kernel Eval & Server-Side Files

Direct REST and WebSocket integration with the remote Marimo server (port 8080):

# Real-time host memory telemetry, server RAM, kernel RAM, and GPU breakdown:
molab usage <id>
molab usage <id> --json

# Native notebook export without local dependencies (HTML, Markdown, IPYNB, Script, PDF):
molab export html <id> -o notebook.html
molab export md <id> -o notebook.md
molab export ipynb <id> -o notebook.ipynb
molab export script <id> -o notebook.py
molab export pdf <id> -o notebook.pdf

# Native server-side file management:
molab file ls <id> /workspace --json
molab file cat <id> /workspace/script.py
molab file info <id> /workspace/model.pt
molab file cp <id> /workspace/model.pt /workspace/model_backup.pt
molab file mv <id> /workspace/old.txt /workspace/new.txt
molab file rm <id> /workspace/temp.log
molab file search <id> "checkpoint" --path /workspace

# Direct kernel evaluation & management (bypasses terminal PTY):
molab kernel status <id>
molab kernel eval <id> "import torch; print(torch.cuda.get_device_name(0))"
molab kernel restart <id>
molab kernel interrupt <id>

# Native package management:
molab pkg list <id> --json
molab pkg add <id> flash-attn --upgrade

8. Anti-Idle Keepalive & Session Renewal (v2.3)

Keep ephemeral CoreWeave pods alive indefinitely by defeating the 30-minute idle reaper:

# Start background heartbeat daemon with auto-restoration enabled:
molab keepalive start <id> --interval 120 --auto-restore

# Inspect daemon health, heartbeat counter, and remaining session TTL:
molab keepalive status <id>
molab keepalive logs <id> --lines 50

# List all tracked keepalive daemons:
molab keepalive list

# Cleanly stop keepalive daemon:
molab keepalive stop <id>

9. Workspace Snapshots & Checkpoint Auto-Persistence (v2.3)

Preserve pod files across unexpected reboots, timeouts, or cluster maintenance:

# Capture compressed workspace snapshot and stream to ~/.config/molab/snapshots/:
molab snapshot create <id> --name "Checkpoint before fine-tune"

# List saved snapshots with SHA-256 manifests and file counts:
molab snapshot list <id>

# Restore latest snapshot (or specific ID) into pod /workspace in seconds:
molab snapshot restore <id>
molab snapshot restore <id> --snapshot-id snap_xxx

# Delete local archive when no longer needed:
molab snapshot delete snap_xxx

10. Multi-Gigabit Cloud Storage Bridge (v2.3)

Leverage pod-installed utilities (rclone, huggingface-cli, git) for multi-gigabit transfers without touching local phone flash:

# Configure pod with local rclone credentials:
molab storage rclone-config <id>

# Sync /workspace directly to cloud storage (S3/R2/B2/GCS) at 10Gbps+:
molab storage rclone-backup <id> r2:my-bucket/weights

# Restore /workspace directly from cloud storage:
molab storage rclone-restore <id> r2:my-bucket/weights

# Download model weights or datasets directly from Hugging Face Hub:
molab storage hf-pull <id> meta-llama/Llama-3-8b --dest /workspace/llama3

# Push trained model weights from pod to Hugging Face Hub:
molab storage hf-push <id> /workspace/finetune my-org/my-finetuned-model

# Clone git repository directly onto pod:
molab storage git-clone <id> https://github.com/vllm-project/vllm.git

11. 1-Click Infinite Pod Permanence (v2.3)

Transform any Blackwell GPU pod into an infinite, permanently online machine that defeats both the 30-minute idle reaper and container resets:

# One command does everything: locks Android wake-lock, deploys in-pod self-sustaining guard,
# packs workspace into MoLab cloud vault, and launches autonomous supervisor daemon:
molab permanent <id>

# Auto-discover first free Blackwell pod and make permanent:
molab permanent

12. 100% On-MoLab Storage Vault (v2.3)

Permanent workspace persistence stored directly inside /marimo/notebook.py metadata in MoLab's cloud database. Zero phone storage and zero third-party cloud accounts required.

# Pack /workspace directly into notebook cell on MoLab:
molab vault pack <id>

# Inspect active vault metadata and size:
molab vault inspect <id>

# Manually restore / unpack vault into /workspace:
molab vault unpack <id>

13. MoLab Community Gallery & AI Templates (v2.3)

Browse and download 111+ curated community recipes directly from https://molab.run/gallery:

# List community templates:
molab gallery list --limit 20

# Search for specialized workflows:
molab gallery search "diffusion"

# View recipe info and GitHub source:
molab gallery info "chat-with-pdf"

# Download runnable code:
molab gallery download "chat-with-pdf" ./chat.py

14. Remote Diagnostics & Visual Previews (v2.3)

Audit container runtime specs and generate dynamic Open Graph SVG thumbnails:

# Query gVisor kernel, Python 3.13, Node v22, uv, and dependencies:
molab env <id>

# Generate and download visual Open Graph preview:
molab thumbnail <id> -o preview.svg

# Audit active WebSocket connections:
molab connections <id>

15. Modern Web Control Center & Visual TUI (v2.3.1)

Launch the browser-based Web Control Center or full-screen interactive Terminal TUI:

# 1. Launch browser-based Web Control Center (FastAPI single-page dashboard):
molab web
# Or on custom port:
molab web --port 9000 --no-browser

# 2. Launch full-screen interactive Terminal Control Center (zero typing needed):
molab ui
# Or simply run without arguments:
molab

🤖 Model Context Protocol (MCP) Integration

molab-cli includes a built-in JSON-RPC 2.0 Model Context Protocol (MCP) server. To connect Claude Desktop, Cursor, or Antigravity, add this configuration to your client's settings:

{
  "mcpServers": {
    "molab": {
      "command": "molab",
      "args": ["mcp"]
    }
  }
}

Exposed MCP Tools (48 Typed Tools):

  • molab_doctor: Diagnose environment health and connectivity.
  • molab_capabilities: Discover supported hardware, storage, and runtimes.
  • molab_list_pods: List all notebooks and active sandboxes.
  • molab_get_free_pod: Discover idle 96GB Blackwell GPU pods without interrupting jobs.
  • molab_gpu_telemetry: Query real-time Blackwell VRAM, temperature, and CUDA specs.
  • molab_execute: Run structured commands with working directory and exit code trapping.
  • molab_push_file: Upload files or folders via native HTTP/2 streaming.
  • molab_pull_file: Download files or folders via native HTTP/2 streaming.
  • molab_sync_directory: Delta synchronize directory with SHA-256 manifests.
  • molab_job_submit: Submit detached jobs with persistent SQLite tracking.
  • molab_job_status: Poll job status, exit codes, and runtime.
  • molab_job_logs: Retrieve trailing execution logs.
  • molab_job_cancel: Cancel running jobs.
  • molab_service_status: Verify application health of model endpoints.
  • molab_run_workload: Launch pre-configured workload templates.
  • molab_batch_validate: Validate batch pipeline JSON manifests.
  • molab_batch_submit: Submit multi-task pipeline for execution.
  • molab_batch_status: Inspect batch progress and task status.
  • molab_batch_cancel: Cancel running batch pipeline.
  • molab_usage: Real-time cgroup host RAM, server RAM, kernel RAM, and GPU breakdown.
  • molab_export_notebook: Export reactive notebook to HTML, Markdown, IPYNB, Script, or PDF.
  • molab_kernel_eval: Execute Python code directly in remote Marimo kernel without PTY buffer.
  • molab_kernel_status: Query remote Python kernel state (idle vs running).
  • molab_kernel_restart: Soft-restart remote kernel without restarting pod container.
  • molab_kernel_interrupt: Interrupt active execution in remote kernel.
  • molab_file_list: List files and directories via native HTTP JSON endpoint.
  • molab_file_details: Fetch metadata, mime type, and readable text contents.
  • molab_file_search: Fast server-side recursive file and directory search.
  • molab_pkg_list: List installed Python packages via native Marimo package manager.
  • molab_snapshot_create: Save compressed workspace snapshot to local storage.
  • molab_snapshot_restore: Restore snapshot archive into pod /workspace.
  • molab_snapshot_list: List saved workspace snapshots and SHA-256 metadata.
  • molab_keepalive_start: Start background anti-idle daemon with auto-restore.
  • molab_keepalive_stop: Stop running anti-idle keepalive daemon.
  • molab_keepalive_status: Inspect keepalive daemon status and remaining session TTL.
  • molab_make_permanent: Transform pod into infinite 24/7 machine with wake-lock & vault.
  • molab_vault_pack: Pack workspace files directly into in-notebook vault (100% on MoLab).
  • molab_vault_unpack: Extract stored files from in-notebook vault into /workspace.
  • molab_vault_inspect: Inspect active vault status and byte size on MoLab.
  • molab_storage_backup: Sync pod directory directly to S3/R2/B2/GCS via rclone.
  • molab_storage_restore: Restore pod directory directly from cloud via rclone.
  • molab_storage_hf_pull: Download model/dataset directly from Hugging Face Hub to pod.
  • molab_remote_environment: Query remote pod environment specifications (OS, gVisor, Python, Node, uv, dependencies).
  • molab_get_thumbnail: Generate visual Open Graph SVG thumbnail of the remote notebook.
  • molab_get_connections: Audit active WebSocket client connections to the remote Marimo server.
  • molab_gallery_list: List curated community notebook templates in MoLab Gallery.
  • molab_gallery_search: Search MoLab gallery templates by keyword or tag.
  • molab_gallery_info: Fetch metadata, description, and source repository links for a gallery recipe.

🐍 High-Level Python SDK

Automate MoLab directly within Python scripts using the typed SDK:

from molab_cli.sdk import MoLabSDK

sdk = MoLabSDK()

# 1. Run diagnostic health checks
report = sdk.doctor()
print("System Health:", report["status"])

# 2. Acquire an idle 96GB Blackwell GPU pod
pod = sdk.get_free_pod()
if not pod:
    raise RuntimeError("No idle Blackwell pod available")

# 3. Transform pod into a permanent non-stop machine (defeats 30m timeout + resets)
perm = pod.make_permanent(interval=120, auto_pack=True)
print("Permanence armed:", perm["in_pod_guard_active"])

# 4. Pack workspace directly into 100% on-MoLab permanent vault
vault_res = pod.vault_pack("/workspace")
print("Vault packed on MoLab:", vault_res["compressed_bytes"], "bytes")

# 5. Delta synchronize project directory
pod.sync("./my_project", "/workspace/my_project")

# 5. Capture a workspace snapshot before running heavy compute
snap = pod.create_snapshot(name="pre-training-checkpoint")
print(f"Saved Snapshot: {snap['id']} ({snap['file_count']} files)")

# 6. Submit an asynchronous background job
job = pod.submit_job(
    command="python3 /workspace/my_project/train.py --batch-size 32",
    name="finetune-run-1",
    workdir="/workspace/my_project"
)
print(f"Submitted Job ID: {job['id']}")

# 7. Refresh status and download artifacts
status = sdk.get_job(job["id"])
if status["status"] == "COMPLETED":
    sdk.job_manager.download_artifacts(job["id"], "./results")

🔬 Hardware Specifications

Metric CoreWeave Cloud Container Spec
GPU Model NVIDIA RTX PRO 6000 Blackwell Server Edition
VRAM 94.97 GB GDDR7 (97,251 MB)
Compute Capability sm_120 (Architecture: Blackwell, Major: 12, Minor: 0)
Multiprocessors 188 Streaming Multiprocessors (SMs)
Host System RAM 160.0 GiB RAM
Host CPU Cores 20 vCPUs (x86_64)
CUDA & PyTorch CUDA 13.0 / 13.2 + PyTorch 2.11.0
Local Phone Storage 0 Bytes Used (Zero storage footprint on client)

📚 Complete Studio-Grade Documentation Suite

Core Engineering & Product Manuals

AI Infrastructure & Serving

Automation, Workloads & Reference


📄 License

MIT License. Copyright (c) 2026 TG Habib.

About

Unlimited Free GPU with NVIDIA Blackwell 96GB VRAM For Ai Agent

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages