Skip to main content
This page gives an AI agent everything it needs to help a user work with Cassian. All CLI commands, flags, workspace model, and common patterns in one place.

What is Cassian

Cassian is a GPU cloud platform for ML engineers. Users provision GPU instances from their terminal, run training jobs, and pay by the minute. The CLI handles instance lifecycle, file sync, and remote execution.

Architecture

  • CLI (cassian-cli npm package): all user-facing commands
  • Cloud: API gateway, auth, scheduling, billing
  • GPU Nodes: container lifecycle, GPU allocation, file sync, exec
  • Base image: Ubuntu 22.04, CUDA 12.4, Python 3, PyTorch pre-installed

CLI Commands

Full Flag Reference

cassian up

cassian down

cassian exec

cassian ssh

With a command argument: runs non-interactively (same as cassian exec).

cassian sync

cassian status

cassian logs

cassian.yaml Reference

Most fields are optional. A minimal config needs only name and gpu.

Available GPU Types

GPU type slugs are lowercase, no spaces: rtx3090 not RTX 3090 or rtx-3090. If the requested type is unavailable, cassian up --gpu <other-type> tries a different type without editing the yaml.

Persistence Model

Pre-installed Packages

  • Python 3, pip, conda
  • PyTorch (CUDA 12.4), torchvision, torchaudio
  • transformers, accelerate, peft, datasets, bitsandbytes, trl
  • numpy, pandas, scipy
  • jupyter, wandb
  • git, vim, htop, tmux, curl, wget

Common Workflows

Fine-tuning

One-shot run

Background training with monitoring

Check an instance from anywhere

Fast restart (env already installed)

Error Messages

Idle Auto-Stop

Instances with no GPU or CPU activity for 30 minutes are automatically stopped. Workspace is saved before shutdown.

Cost Estimates

Billed per minute. cassian status shows elapsed time and estimated cost for running instances.

Machine-Readable Status

Tips for AI Agents

  • Always check cassian.yaml exists before running commands
  • Use cassian run for one-off executions — provisions, runs, and tears down automatically
  • Use cassian exec --detach for jobs that outlive the terminal session; follow with cassian logs -f
  • Large files (models, datasets) belong in /workspace/storage, not /workspace
  • cassian exec -i <name> --no-sync targets any instance from any directory — no cassian.yaml needed
  • Exit codes pass through from exec and run — use them in CI
  • cassian down --force skips confirmation polling — use in cleanup scripts
  • cassian sync --path checkpoints/ pulls just one folder instead of the whole workspace
  • If workspace.setup is not set and requirements.txt exists, pip install runs automatically on up
  • cassian up --no-sync --no-setup is a fast restart when nothing has changed
  • cassian status --json gives machine-readable instance state
  • GPU type slugs: rtx3090, l4, a10g, a100-sxm, h100-sxm (lowercase, no spaces)