Quickstart
Get started with GPU CLI in 5 minutes
Quickstart
This guide walks you through installing GPU CLI, connecting your RunPod account, and running your first command on a cloud GPU.
1. Install GPU CLI
curl -fsSL https://gpu-cli.sh/install.sh | shThis installs the gpu command to ~/.gpu-cli/bin and adds it to your PATH.
2. Login to GPU CLI
gpu loginThis opens your browser to authenticate. After signing in, your CLI is connected to your GPU CLI account.
3. Connect Your RunPod Account
GPU CLI uses your RunPod API key to provision GPUs. You pay RunPod directly — GPU CLI never touches your billing.
- Get your API key from RunPod Settings
- Add it to GPU CLI:
gpu auth loginFollow the prompts to enter your RunPod API key.
4. Check Available GPUs
See what GPUs are available and their prices:
gpu inventoryFilter to show only available GPUs:
gpu inventory --available5. Run Your First Command
Test that everything works:
gpu run python -c "import torch; print(f'CUDA: {torch.cuda.is_available()}, Device: {torch.cuda.get_device_name(0) if torch.cuda.is_available() else \"N/A\"}')"GPU CLI will:
- Provision a GPU pod (auto-selects best available)
- Run your command
- Stream output back to your terminal
- Auto-stop the pod after 5 minutes of idle
6. Initialize a Project
For a real project, initialize GPU CLI in your project directory:
cd my-ml-project
gpu initThis creates a gpu.jsonc configuration file. You can customize:
- GPU type
- Output patterns to sync back
- Port forwarding
- And more
See Configuration for all options.
7. Run a Training Script
gpu run python train.pyYour code syncs to the pod, runs on the GPU, and outputs sync back automatically.
8. Check Status
See what's running:
gpu statusOr open the interactive dashboard:
gpu dashboardNext Steps
- Configuration Reference — Customize your
gpu.jsonc - Commands Reference — All CLI commands
- Troubleshooting — Common issues and solutions