Skip to content

Agent setup

Teach Claude Code, Codex, OpenCode and Pi to create and use Regent environments.

Regent ships a skill that tells coding agents when and how to use it: create an environment, run commands in it, open ports, look at its screen and clean up after themselves.

regent skill setup
Agent Skill folder
Claude Code (terminal and desktop app) ~/.claude/skills/regent
Codex, OpenCode, Pi ~/.agents/skills/regent

The installed skill is a small stub that runs regent skill show, so upgrading Regent also updates what agents are told. Read the full guide yourself with:

regent skill show

Check or undo it with regent skill status and regent skill remove.

Try it

Ask your agent something that needs a machine:

Spin up a Linux machine with a desktop and take a screenshot of example.com in Chromium.

The agent runs regent create with flags (it never answers prompts), opens Chromium with regent screen NAME run -- chromium https://example.com, saves a screenshot with regent screen NAME screenshot, looks at it, and deletes the environment when you’re done.

Codex

Codex runs shell commands in a sandbox that blocks VMs and the VM network. Regent refuses to run inside it and says so; the agent then asks to run Regent outside the sandbox. To skip the question, start Codex with full access:

codex -s danger-full-access

What agents can do

Agents have the same power you do: Regent doesn’t limit what they create or delete. The skill tells them to delete only what they created, and to use regent ls --json instead of guessing names. Everything Regent does without a terminal is non-interactive: a missing choice fails with the flag to add.

Type to search…

↑↓ navigate↵ selectEsc close