Skip to main content
This works while a session runs and after it ends, since a stopped sandbox keeps its files in /workspace.

Find the sandbox

The newest is first. copy and exec take the agent’s name and act on its newest sandbox, usually the one from the latest session. To pick an older one, pass its name with --sandbox. Or open the agent’s Sandboxes tab in the console.

Copy files out

Remote paths are relative to /workspace unless they start with /.

Copy files in

The remote path is the full path the file or directory will have, never a directory to copy into: report-writer:in/ doesn’t put report.pdf inside in/.
  • Uploads are not atomic. If an upload fails part-way, the files already sent stay in the sandbox. Copy again, or clean up with exec.
  • A copy wakes a stopped sandbox. The first copy takes longer while it starts. It then stays running, and counts against your running sandboxes quota, until it stops for lack of use.

Run a command

Everything after -- runs in the sandbox, starting in /workspace unless you pass --workdir. exec prints the command’s output and exits with its exit code, so it works in scripts. The command gets no input from your terminal.
  • Ctrl-C ends the command too. Stopping exec stops what it was running in the sandbox.
  • A background process can hold the call open. exec returns when the command’s output closes, so start a background process with its output redirected: long-job >/dev/null 2>&1 &.
--env KEY=VALUE values can be recorded in the platform’s audit log. Don’t pass secrets that way.

When a sandbox is refused

If your organization’s quota stops a sandbox, sandbox list shows QuotaExceeded in REASON with the platform’s message on the next line, and a copy or exec that would wake it fails. jaccard usage shows which limit you’ve reached. Every option is in the sandbox reference.
Last modified on November 12, 2026