gpu.aiDocs
UPDATED 2026.11.26READ 5 MINEDIT ON GITHUB →
CH·26Compute

Workspaces.

A VS Code compatible editor, a terminal and JupyterLab on a GPU, opened in your browser with your GPU.ai login. No SSH. Files are saved while the workspace runs and when it stops, and come back when it starts.

§ 26.1Quickstart

In the console, open Workspaces, choose New workspace, pick a template and a GPU, and choose Open editor once it is running. The GPU list shows what can start now, with prices, and starts on the cheapest GPU in stock unless you pick another. If a GPU has none in stock, the console offers the nearest one that does. From the CLI:

SHELL
gpu workspaces create dev --gpu rtx_a6000 --template pytorch
gpu workspaces get dev          # wait for status: running
gpu workspaces open dev         # prints a one-time link; open it in your browser

In the editor's terminal, python -c "import torch; print(torch.cuda.get_device_name(0))" runs on the GPU. The template's starter notebook is in the folder. JupyterLab opens with gpu workspaces open dev --port 8888 or Open JupyterLab in the console.

§ 26.2Saved files

Everything in /workspace is saved when the workspace stops and restored when it starts, up to the storage limit shown on the workspace (50 GB by default). That includes Python packages. The terminal, the editor and Jupyter use the environment in /workspace/.venv, so pip install lands in the folder. Files outside the folder are not saved.

While the workspace runs, the folder is also saved every 30 minutes in the background, without stopping the editor. A save is skipped when nothing in the folder changed. If the machine stops unexpectedly (a supplier failure, or the balance running out), the workspace keeps its last save, so at most the last 30 minutes of changes are lost. The console and gpu workspaces get show when it was last saved. A file that is being written during a save is caught by the next one, and the save when the workspace stops always has everything.

§ 26.3Switch GPU

SHELL
gpu workspaces stop dev
gpu workspaces start dev --gpu l40

To check it, write a file and install a package before you stop (echo kept > /workspace/keep_me.txt, pip install rich), then start on another GPU type: the file is there, import rich works, and your scripts run on the new GPU.

§ 26.4Auto-sleep

A workspace saves and stops after its idle period without use (30 minutes by default; set it with gpu workspaces update dev --idle-timeout 3600). Use is typing or clicking in the editor or Jupyter, GPU work, and notebook cells running. Stopping ends GPU billing; the saved files stay.

§ 26.5Private app links

Run an app inside the workspace (a Gradio demo, TensorBoard, a web server) on any port, then open it with gpu workspaces open dev --port 7860 or Open app link in the console. The link opens only for you, the workspace's owner, signed in to GPU.ai. Public links are not offered.

The same address in a browser that is not signed in goes to the GPU.ai sign-in page, and another GPU.ai user is refused. A port with nothing running yet shows a page that says so and reloads until the app answers.

The fine-tuning template's notebook runs a complete LoRA fine-tune in about a minute: it teaches Qwen2.5-0.5B a fact, checks the answer before and after, saves the adapter to /workspace/lora-out/adapter, and loads it back to check again.

The ComfyUI template runs ComfyUI on port 8188; Open ComfyUI in the console opens it through the same private link. Its models (/workspace/ComfyUI/models) and outputs (/workspace/ComfyUI/output) are in the saved folder.

§ 26.6Billing

GPU time is billed like an instance while the workspace runs, at the GPU's hourly price, which the console shows before you create or start a workspace. The saved folder is billed at $0.10 per GB-month, charged hourly, whether the workspace runs or not. At the 50 GB limit that is at most $5 a month. Only the latest save is kept and billed. Both appear in your usage, and each workspace shows its cost so far.