Skip to main content
In this guide, we’ll walk you through setting up your Lab workspace, creating your first agent environment, using it to evaluate baseline performance, launching a Hosted Training run, and deploying your model for inference. These instructions are intended for use on a Mac or Linux CPU development environment. No previous experience with RL is required. In fact, experience with coding isn’t even required — we’ll use agents for everything. We’ll just assume that you have Claude Code, Codex, Cursor, OpenCode, Amp, or some other similar coding agent installed on your computer.

Setting Up Your Lab Workspace

Ensure you have uv installed for managing Python packages:
Install the prime CLI:
Choose a folder on your machine as your Lab workspace (e.g. ~/dev/my-lab) and do:
This command prepares your workspace with:

Python project bootstrap

Creates a Python project and installs verifiers for environment development.

Coding-agent setup

Configures your workspace for coding-agent workflows.

Instruction files

Downloads agent instruction files like AGENTS.md and Agent Skills.

Starter configs

Downloads example training and evaluation configs.
Use one Lab workspace per research project and version it with Git. A workspace can contain multiple environments, configs, scripts, data, and eval outputs.

Prompting Your Coding Agent

For many low-to-medium complexity environments, we find that the latest coding agents are often capable of “one-shotting” them, when equipped with the provided context from prime lab setup and given a sufficiently detailed prompt. Providing the prompt below to a frontier coding agent (OpenCode + Codex 5.3) resulted in a fully functional environment for a calendar scheduling agent:
Save this as prompt.md and pass it directly to your coding agent as your initial task prompt.
prompt.md
You can view the created environment in the Environments Hub:

prime/calendar-scheduling

Environments Hub
We can use the visualizer script we asked our agent to make for viewing the environment task structure more directly:

Hosted Training

After the environment is created, we prompt our agent to test performance more exhaustively, then to start a Hosted Training run using Qwen/Qwen3-30B-A3B-Instruct-2507, which is available for LoRA finetuning via Hosted Training.
Available models can be viewed with:
Example training configs (in configs/rl after running prime lab setup) look like:
The inclusion of secrets.env is optional — here we use it to set our W&B key for logging:
Runs can be started by running:
From the platform, you can view training curves, rollouts, configs, logs, and checkpoints. RL training curves Rollout viewer Training runs are shareable. You can view this example run here:

calendar-sch--qwen3-30b-a3b-instru--wxhl0r

Hosted Training

Deploying Your Model

Under Deployments, you can deploy LoRA adapters for inference with a single click: Deployments dashboard You can then share the Model Identifier with your coding agent and ask it to run some more evals if desired, or incorporate it into your application directly. And with that, you have now successfully deployed your first RL-trained model!