The Prime Intellect CLI provides a powerful command-line interface for managing all of our Prime Intellect offerings. Including:
  • Managing compute resources on our platform
  • Creating, publishing and installing RL environments from our environment hub
  • Managing code sandboxes for secure code execution
Check out our open source repository on GitHub.

Quick Start

  1. Install uv (if not already installed):
curl -LsSf https://astral.sh/uv/install.sh | sh
  1. Install the CLI with uv:
uv tool install prime
  1. Authenticate:
prime login
Alternatively you can also manually set your API key using prime config set-api-key
  1. Configure SSH key for pod access:
prime config set-ssh-key-path
You can generate your ssh keys on app.primeintellect.ai under the /dashboard/profile section. We recommend creating a dedicated directory for your Prime Intellect keys in your home directory, like /Users/<username>/pi-keys.
5. Verify your configuration:
prime config view
View CLI Configuration

Alternative Installation: Using pip

If you prefer not to use uv:
pip install prime

Key Features

  • GPU Resource Management: Query and filter available GPU resources
  • Pod Management: Create, monitor, and terminate compute pods
  • SSH Access: Direct SSH access to running pods
  • Team Support: Manage resources across team environments

Basic Commands

# List available GPUs
prime availability list

# Filter by GPU type
prime availability list --gpu-type H100_80GB

# Create a pod
prime pods create

# List your pods
prime pods list

# SSH into a pod
prime pods ssh <pod-id>
For detailed documentation on each command and feature, explore the sections above.