For AI agents: the complete documentation index is available at https://enclo.nstlopez.com/llms.txt, the full documentation bundle is available at https://enclo.nstlopez.com/llms-full.txt, and this page is available as Markdown at https://enclo.nstlopez.com/guide/terminal.md.

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.

enclo doctor                    # checks the install and boots a sandbox
enclo new --name dev            # prints an id such as sb_k3m9x2pq
enclo exec dev "apk add git && git --version"
enclo exec dev -- ls -la /root
enclo push dev ~/code/app       # to /root/app, without what .gitignore leaves out
enclo pull dev /root/app/dist . # back out, as cp would
enclo ls
enclo kill dev                  # ends the running command, the sandbox stays up
enclo stop dev                  # shuts it down, keeping its disk
enclo rm dev
enclo prune                     # removes old unnamed sandboxes the tools made
enclo config set sandbox.defaults.memory 1024MiB

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 exec current "apk add git && git --version"
enclo exec current -- ls -la /root

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:

enclo run --push . "make test"

Exit statuses

CommandStatus
exec and runThe command's exit status, 124 on timeout, or 125 if enclo failed or the sandbox went down
Every other command0 on success, 1 on failure, 2 on usage error

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.