Overview
An environment is everything a session needs except the conversation: which harness runs, which model it talks to, how big the sandbox is, what the network may reach, which secrets and MCP servers are available, which skills are installed, and which tools are allowed. Create one, then start as many sessions from it as you like. Every edit is a new immutable version. A session pins the version it started with, so changing an environment never alters a running or paused session.Create one
environment.toml
Fields
The API returns the normalized spec: defaults filled in, hostnames lowercased, duplicate entries removed, skills pinned, and every secret the spec references (including the model’s and each MCP server’s) listed in
secrets. That is exactly what the sandbox is built from, and what veri environments get --toml prints.
Versions
POST /v1/environments/{id}/versions with a full spec appends version latest + 1. Deleting an environment hides it and stops new sessions; existing sessions keep their pinned version.
