From a terminal
The enclo command runs the same sandbox operations the agent uses over MCP.
Use it to troubleshoot, or to prepare a base sandbox before an agent session
starts.
Naming a sandbox
Every command that targets a single sandbox accepts its ID (such as
sb_k3m9x2pq), its name, or current for the last one.
Commands
Pass a command either as a single string argument (executed via
sh -c COMMAND) or as separate arguments after --:
enclo run creates a temporary sandbox, runs one command, and deletes the
sandbox afterward. Pass --push DIR to copy a directory in first and run the
command inside it:
Exit statuses
JSON output
Every command except mcp and help accepts --json and writes a single JSON
document to stdout. Failures end with a line of the form
{"error": MESSAGE, "error_code": CODE}. Pass --stream with
enclo exec --json to print output as JSON lines while the command runs.
See the CLI reference for all commands, flags, and error codes.