Skip to content
Soulsand Docs

Command history

Every command run through soulsand exec or the API is recorded: text, mode, status, exit code, times and output. Kept 90 days, readable while the sandbox is stopped, deleted with the sandbox. Dashboard: History on a sandbox.

$ soulsand history my-box
cmd_4b1e0c9a7d2f3e18  exit 0      detached  2026-11-10 14:02:11  npm run build
$ soulsand history my-box cmd_4b1e0c9a7d2f3e18             # stdout; --stderr, --follow
$ soulsand history my-box --mode detached                  # sync, stream or detached
$ soulsand ps my-box                                       # live processes, busiest first
$ soulsand ps my-box --history --since 6h                  # top-12 samples every 30 s, kept 7 days
$ soulsand ps my-box --records --running                   # every process seen, incl. SSH and services
Statusrunning, paused, exited, timed_out, failed, killed, lost
OutputUp to 1 MiB per stream for waiting commands, 8 MiB for background ones (copied every 30 s)
Cap10 MiB compressed per account per hour; beyond that, output_truncated

API reads return up to 1 MiB from offset; repeat from next_offset until done. encoding=base64 for binary.

Process samples: GET /v1/sandboxes/{name}/processes/samples. Process records ({pid, ppid, user, command, started_at, last_seen_at, ended_at}, kept 72 hours): …/processes/records. Records come from 30-second checks, so short-lived processes can be missed, and they have no output or exit codes. Neither is kept with monitoring off.

A command killed for running out of memory has oom_killed: true; the sandbox stays up. A larger size has more memory.