Skip to main content

Roller documentation

Run tool-using agents in disposable Docker containers, collect their trajectories, grade benchmark tasks and export SFT data.

Roller records the full process of every agent run: prompts, reasoning, tool calls, tool results, generated files, and run metadata. It is designed for repeatable data collection and evaluation across different models and agent runtimes. It runs eight Harnesses on your Tasks or on seven benchmarks, imports the sessions of four Harnesses already on your machine, and writes every run in the same format for the Viewer, SFT training data and dataset exports:

Four uses of Roller. Training data: roller export --format sft writes SFT records that keep reasoning, images and compacted-context segments. Benchmarks: roller collect --bench runs eight Harnesses on seven benchmarks and grades each sample. Local sessions: roller import turns the Claude Code, Codex, OpenCode and Pi sessions on this machine into a run. Datasets: roller export --format hf writes a redacted Hugging Face dataset folder. Every path writes the same run directory, which roller view opens.Four uses of Roller. Training data: roller export --format sft writes SFT records that keep reasoning, images and compacted-context segments. Benchmarks: roller collect --bench runs eight Harnesses on seven benchmarks and grades each sample. Local sessions: roller import turns the Claude Code, Codex, OpenCode and Pi sessions on this machine into a run. Datasets: roller export --format hf writes a redacted Hugging Face dataset folder. Every path writes the same run directory, which roller view opens.

New users should read the Introduction first. It explains Task, Harness, rollout, run, and trace, and requires no setup.

What Roller does​

Roller takes a set of Tasks, one or more models, and a Harness as input. It creates an isolated rollout for every Task and model combination, then writes the results to a structured run directory.

Text
tasks.jsonl Γ— models
β”‚
β–Ό
Agent Harness in Docker
β”‚
β”œβ”€ trace.jsonl Harness-native events
β”œβ”€ trace_ACTF.json unified analysis trace
β”œβ”€ trace_SFT.json standard training sample
β”œβ”€ results/ files produced by the agent
└─ info.json status, usage, and provenance

Common uses include:

  • collecting single-turn, multi-turn, and tool-using Agent trajectories.
  • comparing models or Harnesses on the same Tasks.
  • reviewing reasoning, tool calls, tool results, and generated files.
  • preparing normalized traces or SFT JSONL.
  • resuming interrupted collection and inspecting results in the built-in Viewer.

Roller requires Python 3.10+. The project currently uses Task schema roller.task/v1. It is in Beta and licensed under Apache 2.0. Source: GitHub.

Choose a Harness​

The first-run guide uses OpenClaw. That path is sufficient until one successful trajectory has been produced. The other Harnesses apply when a specific agent runtime or API protocol is required; read the matching Harness guide then.

HarnessModel APITypical use
OpenClaw (default)OpenAI Responses or Chat CompletionsCustom/open models, multimodal input, and dynamic User Simulator
CodexResponsesCodex CLI tool trajectories and remote sandboxes
Claude CodeAnthropic /v1/messagesClaude Code tools, native thinking, and remote sandboxes
HermesOpenAI Chat CompletionsNative request and tool-message traces
OpenCodeOpenAI Chat CompletionsNative CLI sessions, file tools and remote sandboxes
DeepSeek HarnessDeepSeek Chat CompletionsNative SDK sessions, persistent Bash, and E2B sandboxes
Pi AgentOpenAI Chat CompletionsNative AgentSession and coding tools
StirrupOpenAI Chat CompletionsHost-side agent loop (code_exec, view_image, finish) with offline containers or remote sandboxes

All eight use the same Task, Sample, trace, and SFT formats, as well as the same Viewer, retry, and Resume workflow. Their images, APIs, tools, and reasoning options differ.

Capability matrix​

HarnessDockerRemote sandboxUser Simulator--capture-calls & --token-idsroller importPrebuilt image
OpenClawYesβ€”YesYesβ€”Upstream (ghcr.io/openclaw/openclaw:2026.11.10)
CodexYesSingle-agent tasks (--sandbox-provider)YesYes (--codex-chat-completions for --token-ids)Yes (~/.codex)ghcr.io/valen-team/roller-codex:0.172.0
Claude CodeYesYes (--sandbox-provider)YesYes (--claude-chat-completions for --token-ids)Yes (~/.claude)Build locally (docker/claude-code)
HermesYesβ€”YesYesβ€”ghcr.io/valen-team/roller-hermes:8fc037444731
OpenCodeYesSingle-agent tasks (--sandbox-provider)YesYesYes (~/.local/share/opencode)ghcr.io/valen-team/roller-opencode:1.19.6
DeepSeek HarnessYesWildClawBench only (e2b / roller.sandbox_providers)YesYesβ€”ghcr.io/valen-team/roller-deepseek:0.2.2rc2
Pi AgentYesβ€”YesYesYes (~/.pi/agent/sessions)ghcr.io/valen-team/roller-pi:1.6.1
StirrupYesYes (roller.sandbox_providers)β€”Yesβ€”Base image (python:3.13-slim)