Skip to main content

Overview

The prime lab setup command initializes a new workspace for developing environments with Verifiers. It creates the recommended directory structure, downloads starter configurations, and optionally installs prime-rl for local training.

Usage

What It Does

  1. Initializes a Python project (if not already present) using uv init
  2. Installs verifiers via uv add verifiers
  3. Creates directory structure:
  4. Downloads starter files from the verifiers repository
  5. Optionally installs prime-rl for local training

Options

flag
Install prime-rl and download prime-rl training configurations. Use this if you want to train models locally.
flag
Skip uv init and uv add verifiers steps. Use when adding to an existing project.
flag
Skip downloading AGENTS.md, CLAUDE.md, and environments/AGENTS.md files.
string
Comma-separated list of coding agents to scaffold (codex, claude, cursor, opencode, amp).Example: --agents codex,claude
flag
Disable interactive prompts for coding agent selection.

Examples

Basic Setup

Initialize a new workspace in an empty directory:
Output:

Add to Existing Project

Add verifiers to an existing Python project:

Setup with Local Training

Install prime-rl for training models locally:
This will:
  • Clone and install prime-rl
  • Download prime-rl training configurations
  • Install all environments from environments/ into the prime-rl workspace

Specify Coding Agents

Configure skill directories for specific coding agents:

Next Steps

After running prime lab setup, you can:
  1. Create an environment:
  2. Run an evaluation:
  3. View results:
  4. Train a model (if you used --prime-rl):

Configuration Files

The setup command downloads several starter configuration files:

Endpoints Configuration

configs/endpoints.toml defines model API endpoints:

Evaluation Configs

configs/eval/ contains multi-environment evaluation configurations:

Training Configs

configs/rl/ contains training configurations for use with Hosted Training or prime-rl.

Troubleshooting

uv Not Found

If uv is not installed:

Permission Errors

Ensure you have write permissions in the target directory.

Git Conflicts

If you’re in a git repository, the setup may create files that conflict with existing files. Review changes carefully before committing.