Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

prime

Latest version: v0.24.2

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
PyPI package Publisher: Primeintellect.ai, org:PrimeIntellect-ai
355 Stars
73 Forks
31 Versions
41.6K Downloads
Python Repo language

Scan summary

prime was last scanned on 25 Nov 2026 at version 0.24.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 31 versions; the latest 5 were published within 6 days (20–25 Nov 2026).
  • Findings: No rules fired in version 0.24.2.
  • Downloads: 41,603 downloads.

Versions

31 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.24.2 LATEST 25 Nov 2026 No rules fired
0.24.1 25 Nov 2026 No rules fired
0.24.0 24 Nov 2026 No rules fired
0.23.1 21 Nov 2026 Not shown
0.23.0 20 Nov 2026 Not shown

No rules fired in 0.24.2

Findings

Findings for v0.24.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.24.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.



PyPI version Python versions Downloads

Command line interface and SDKs for Hosted Training, hosted evaluations, GPU resources, sandboxes, and environments.

Overview

Prime is the official CLI and Python SDK for Prime Intellect, providing seamless access to Hosted Training, hosted evaluations, GPU compute infrastructure, remote code execution environments (sandboxes), and AI inference capabilities.

What can you do with Prime?

  • Deploy GPU pods with H100, A100, and other high-performance GPUs
  • Discover and launch Hosted Training runs against verifiers environments
  • Create and manage isolated sandbox environments for running code
  • Access hundreds of pre-configured development environments
  • SSH directly into your compute instances
  • Manage team resources and permissions
  • Run OpenAI-compatible inference requests

Installation

Using uv (recommended)

First, install uv if you haven't already:

curl -LsSf https://astral.sh/uv/install.sh | sh

Then install prime:

uv tool install prime
Using pip
pip install prime

Quick Start

Authentication
# Interactive login (recommended)
prime login

# Cap what the key minted by this login can do (see `prime login --help`)
prime login --max-concurrent-sandboxes 10 --max-concurrent-tunnels 2

# Or set API key directly
prime config set-api-key

# Or use environment variable
export PRIME_API_KEY="your-api-key-here"

Get your API key from the Prime Intellect Dashboard.

Basic Usage
# Browse environments on the hub
prime env list

# See available Hosted Training models, capacity, and pricing
prime train models

# Launch a prime-rl config as a Hosted Training run
prime train rl.toml

# List available GPUs
prime availability list

# Create a GPU pod
prime pods create --gpu A100 --count 1

# SSH into a pod
prime pods ssh <pod-id>

# Create a sandbox
prime sandbox create python:3.11

Features

Hosted Training

Build and evaluate environments with verifiers (uv add verifiers). Use prime train models to choose a Hosted Training model with current capacity and pricing. Hosted Training runs take prime-rl configs as-is; its examples/ are good starting points.

# List cached models and on-demand GPU capacity and pricing
prime train models

# Launch a prime-rl config on a dedicated cluster; its top-level `mode`
# ("rl", "sft" or "pretrain") picks the run kind
prime train rl.toml

# Inspect and manage Hosted Training runs
prime train list              # Your runs
prime train list --all-users  # Include teammates' runs
prime train logs <run-id> -f
prime train metrics <run-id>
prime train checkpoints <run-id>
Environments Hub

Access hundreds of RL environments on our community hub with deep integrations with sandboxes, training, and evaluation stack.

# Browse available environments
prime env list

# View environment details
prime env info <environment-name>

# Inspect environment source without downloading the archive
prime env inspect <environment-name>

# Install an environment locally
prime env install <environment-name>

# Push your own environment (scaffold one with verifiers' `vf-init`)
prime env push my-environment

Environments provide pre-configured setups for machine learning, data science, and development workflows, tested and verified by the Prime Intellect community.

GPU Pod Management

Deploy and manage GPU compute instances:

# Browse available configurations
prime availability list --gpu-type H100_80GB

# Create a pod with specific configuration
prime pods create --id <config-id> --name my-training-pod

# Monitor pod status
prime pods status <pod-id>

# SSH access
prime pods ssh <pod-id>

# Terminate when done
prime pods terminate <pod-id>
Sandboxes

Isolated environments for running code remotely:

# Create a sandbox (VM-backed)
prime sandbox create python:3.11

# Create a sandbox with GPUs
prime sandbox create user-1/vm-image:latest --gpu-count 1 --gpu-type RTX_PRO_6000

# Create a one-shot workload (arguments after -- are preserved exactly)
prime sandbox create user-1/vm-image:latest -- /worker --platform linux/amd64

# List sandboxes
prime sandbox list

# Execute commands
prime sandbox run <sandbox-id> -- python script.py

# Run as an existing guest account
prime sandbox run <sandbox-id> --user ubuntu -- id

# Request a filesystem checkpoint; check again until it is DURABLE
prime sandbox checkpoint create <sandbox-id>
# Capture memory and processes without creating a sandbox; resumes the source
prime sandbox snapshot <sandbox-id> [--wait-timeout 300]
prime sandbox checkpoint list <sandbox-id> [--checkpoint-id <checkpoint-id>]
# Any checkpoint by id, rootfs or volume
prime sandbox checkpoint get <checkpoint-id>
prime sandbox checkpoint restore <checkpoint-id> --name restored-sandbox
# Checkpoint + restore in one step, inheriting the source's resources
prime sandbox fork <sandbox-id> [--name forked-sandbox]
# Also fork the source's memory: pause it, fork, then resume it asynchronously
prime sandbox fork <sandbox-id> [--with-memory]

# Upload/download files
prime sandbox upload <sandbox-id> local_file.py /remote/path/
prime sandbox download <sandbox-id> /remote/file.txt ./local/

# Attach persistent volumes (repeatable; :ro mounts read-only, :rw is the default)
prime sandbox create --volume data:/data --volume cache:/mnt:ro python:3.11
# Mount another account's public volume by ref
prime sandbox create --volume alice/dataset:/data:ro python:3.11

# Manage volumes (create takes --size-gb; default capacity is 100 GiB)
prime sandbox volumes create data
prime sandbox volumes list [--page N] [--num N] [--json]
prime sandbox volumes get data
prime sandbox volumes grow data --size-gb 512
prime sandbox volumes delete data

# Sharing: a public volume mounts from any account through <namespace>/<name>
prime sandbox volumes set-visibility data --public
prime sandbox volumes set-visibility data --private

# Publish a sandbox's private volume writes as a durable checkpoint
prime sandbox volumes publish data --sandbox <sandbox-id> [--no-wait]

# Create a volume and import a local directory into it
prime sandbox volumes create data --from ~/datasets/my-data

# Clean up
prime sandbox delete <sandbox-id>

prime sandbox snapshot pauses the source, waits until the memory snapshot is restorable, then resumes the same source asynchronously; --wait-timeout bounds only that pause-ready wait. It prints the captured checkpoint, which is not necessarily DURABLE; prime sandbox checkpoint get shows the upload. A non-durable snapshot is usable on the pausing node while the source exists. Restore with prime sandbox checkpoint restore <checkpoint-id> --memory, which creates a new sandbox. GPU sandboxes and sandboxes with volumes cannot be paused, and a memory restore needs the source sandbox record to exist. A memory snapshot copies userspace random state and keys or tokens already in memory, so rekey or regenerate them in the workload. If the pause request fails or its response is lost, prime sandbox get <sandbox-id> shows whether the source became PAUSED; prime sandbox resume <sandbox-id> continues it.

prime sandbox fork checkpoints the source's filesystem and restores it into a new sandbox that inherits the source's shape, team, region, timeout, and labels; the source keeps running. --with-memory also forks the source's memory and running processes: the source is paused for the snapshot, resumed afterwards asynchronously (prime sandbox get shows when it runs again), and the fork takes the paused sandbox's shape, environment, and secrets, so --with-memory rejects --cpu-cores and --memory-gb. A memory fork is an exact copy of the paused guest: userspace random generators and keys, tokens, or IDs already in memory are the same in every fork, so rekey or regenerate them in the workload. GPU sandboxes and sandboxes with volumes cannot be paused, so they cannot be memory-forked. --wait-timeout bounds the checkpoint or snapshot wait.

Volume writes are private to a sandbox until a publish reaches DURABLE and its merge finishes. A new volume starts empty; each publish becomes the volume's head, and a sandbox always sees the volume as of its own creation, so attach a new sandbox to read a newer head. Read-only mounts cannot publish. A publish whose volume head moved since attach is rejected (409). --no-wait prints the checkpoint id and state; the data is published once that checkpoint is DURABLE and, on servers that merge volume publishes, its merge finishes — both checkable with prime sandbox checkpoint get <checkpoint-id>.

Making a volume public lets any account mount it read-only or read-write, and sync it, by its <namespace>/<name> ref (a user id or slug, a team slug, or team-<teamId>); a bare name always means the caller's or sandbox's own scope. volumes get shows the ref with the owner's slug-or-id namespace. Volumes are unlisted: a recipient needs the ref, and volumes list stays own-scope while showing each volume's visibility. Only the owner can make a volume public or private, publish to it, or delete it. Recipient sync always discards: the recipient's unpublished writes are replaced by the current head and never reach the owner's volume. Making a volume private stops new recipient mounts, syncs and gets; running recipient sandboxes keep their attachment.

volumes create --from copies a local directory into a disposable read-write importer sandbox, publishes it, waits until DURABLE, and only then deletes the importer. An rsync failure publishes nothing and leaves the volume's previous durable contents in place. A publish failure, timeout, or interrupt keeps the importer sandbox so the checkpoint state can be inspected first; delete it manually once it is no longer needed. The importer is reaped automatically after 30 minutes without transfer activity, and publishing does not reset that clock. Importing into an existing volume attaches it at its current durable head for a fresh copy, not a resumption of a failed transfer.

Volume contents

Inspect a volume's files:

prime volumes list                         # List volumes you created
prime volumes list --all-users             # Include teammates' volumes
prime volumes ls my-data                   # List files and directories
prime volumes ls my-data datasets/ -l -h   # Sizes and modified times
prime volumes ls my-data runs/ -R          # Include nested run outputs
prime volumes ls my-data -o json           # Volume-relative paths and metadata
prime volumes du my-data -h                # Stored bytes, object count, and cap
prime volumes du my-data datasets/ -o json # Subtree and whole-volume usage
prime volumes cat my-data config.json | jq .

volumes list uses your selected account context (prime switch). In a team, it shows only volumes you created by default; --all-users includes volumes created by other team members. In a personal account, listings remain limited to your personal volumes.

Paths use the same validation as volumes get and put: they are relative to the volume root, and / selects that root. ls -R includes nested directories, including empty directories. du scans the entire volume with paginated listings so the usage percentage always compares the whole volume with its cap, even when a file or subtree is selected. Directory marker objects count toward the object total; internal SSH sync metadata is excluded. These commands report usage without enforcing the cap.

While a run or read-write session holds the volume, ls, du, cat and get read it live, as that writer has it right now: the CLI starts (or reuses) a read-only SSH view of the writer's volume and runs the read there, so a run's checkpoints are visible and downloadable mid-run. This needs your SSH key (prime config set-ssh-key-path); the view stops after 30 minutes idle. Otherwise, and while a finished writer is still syncing back, reads use the stored copy. Notes about the source go to stderr; cat writes only the file's bytes to stdout, without adding a newline.

Team Management

Manage resources across personal and team contexts:

# List your teams
prime teams list

# Switch context directly
prime switch
prime switch personal
prime switch <team-slug>
prime switch <team-id>  # fallback for teams without a slug

# All subsequent commands use the selected context
prime pods list

Configuration

API Key

Multiple ways to configure your API key:

# Option 1: Interactive (hides input)
prime config set-api-key

# Option 2: Direct
prime config set-api-key YOUR_API_KEY

# Option 3: Environment variable
export PRIME_API_KEY="your-api-key"

Configuration priority: CLI config > Environment variable

SSH Key

Configure SSH key for pod access:

prime config set-ssh-key-path ~/.ssh/id_rsa.pub
View Configuration
prime config view

Python SDK

Prime also provides a Python SDK for programmatic access:

from prime_sandboxes import APIClient, SandboxClient, CreateSandboxRequest

# Initialize client
client = APIClient(api_key="your-api-key")
sandbox_client = SandboxClient(client)

# Create a sandbox
sandbox = sandbox_client.create(CreateSandboxRequest(
    name="my-sandbox",
    docker_image="python:3.11-slim",
    cpu_cores=2,
    memory_gb=4,
))

# Wait for creation
sandbox_client.wait_for_creation(sandbox.id)

# Execute commands
result = sandbox_client.execute_command(sandbox.id, "python --version")
print(result.stdout)

# Request a filesystem checkpoint and wait until it is durable
checkpoint = sandbox_client.checkpoint(sandbox.id)
checkpoint = sandbox_client.wait_for_checkpoint(checkpoint.id, timeout_seconds=300)
restored = sandbox_client.create(CreateSandboxRequest(
    name="restored-sandbox", checkpoint_id=checkpoint.id
))

# Clean up
sandbox_client.delete(sandbox.id)
Async SDK
import asyncio
from prime_sandboxes import AsyncSandboxClient, CreateSandboxRequest

async def main():
    async with AsyncSandboxClient(api_key="your-api-key") as client:
        sandbox = await client.create(CreateSandboxRequest(
            name="async-sandbox",
            docker_image="python:3.11-slim",
        ))

        await client.wait_for_creation(sandbox.id)
        result = await client.execute_command(sandbox.id, "echo 'Hello'")
        print(result.stdout)

        await client.delete(sandbox.id)

asyncio.run(main())

Use Cases

Machine Learning Training
# Deploy a pod with 8x H100 GPUs
prime pods create --gpu H100 --count 8 --name ml-training

# SSH and start training
prime pods ssh <pod-id>

Support & Resources

Related Packages

  • prime-sandboxes - Lightweight SDK for sandboxes only (if you don't need the full CLI)

Local dedicated-training validation (experimental)

Validate a dedicated RL, SFT or pretrain config against the schema of the runtime selected by Platform, including its default image:

prime train validate rl.toml
prime train validate rl.toml --ref your-branch
prime train validate sft.toml --artifact-out normalized.json

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases prime

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229