Terminal UI (TUI)

TUI sandbox panels

Reference for the TUI Sandboxes and Vault panels, the sandbox wizard in Setup, and the OpenShell settings in the config editor.

This is the reference for the sandbox parts of the TUI. The task steps are in Watch from the TUI or app.

Sandboxes panel

Press 7 for Sandboxes, the TUI's view of the NVIDIA OpenShell sandboxes the DefenseClaw daemon runs.

  • It reads the daemon's /api/v1/sandbox API every 5 seconds while open (every 15 seconds in the background once sandboxes are on) and follows the live activity feed.
  • When a refresh fails, the panel keeps the last good snapshot and says how old it is, so a daemon restart does not look like "no sandboxes".
  • Sandboxes run on Linux and on Apple-silicon Macs. On a Mac they use the Docker driver by default. With the MicroVM driver (Preview) every run works on a copy (sandboxes on macOS). On Windows the panel says sandboxes are not supported.
  • The macOS app (Preview) shows the same sandboxes.

DefenseClaw TUI on Windows with the Sandboxes tab open: the panel says OpenShell sandboxes run on Linux and macOS only and that Windows and WSL2 are not supported

The header shows:

  • the state: READY, OFF, WAITING, UNAVAILABLE or UNREACHABLE. OFF points to the Sandbox wizard; UNAVAILABLE gives the daemon's reason and suggests defenseclaw sandbox doctor,
  • how many sandboxes run and how many asks wait,
  • the gateway with its compute driver (docker, or MicroVM for OpenShell's vm driver),
  • your organization's policy, when openshell.admin is set.

Views

t cycles through three views. Enter opens the highlighted row's details, which take the keys of their view; Esc closes them.

ViewColumnsWhat it shows
SandboxesName, Phase, Harness, Pack/Profile, Mode, Up, Sites, Blocked, Tool calls, AlertsEvery sandbox, running ones first. Tool calls reads 57 (1 blocked). Details add verdicts per hook event (Hook events PreToolUse 12 · PostToolUse 11 · Stop 2), as defenseclaw sandbox status <name> shows. Above the table: the newest blocked destination still in force, and the most urgent alert
ActivityTime, Sandbox, glyph, EventThe last 500 events, newest first (glyphs below). Blocks say why (webhook catcher, no OpenShell rule allows it). A block you can lift ends in (u unblocks)
AsksSandbox, Kind, Destination, Binary, Risk, ReasonAsks waiting for you (when an ask appears)

Under 100 columns, Sandboxes drops Pack/Profile, Mode and Up, and Asks drops Kind.

GlyphActivity event
✓Allowed destination
✗Blocked destination
⊘Blocked tool call (names the DefenseClaw rule)
↺Lifted block
⚠Large upload or a finding
?Ask
·Lifecycle step, answered ask, copy upload, pull or undo
…Events skipped because the TUI fell behind

When an ask appears

An ask appears when a program in a sandbox connects around DefenseClaw's egress proxy and OpenShell drafts a rule that DefenseClaw does not decide on its own:

  • a private-network address, with every pack (unless your organization's policy refuses it),
  • a host off the allowlist, with balanced,
  • every new destination, with strict,
  • a request OpenShell's policy advisor flags,
  • a port on this machine, only if the run named it with --host-port PORT.

Keys

KeyAction
tSwitch between Sandboxes, Activity and Asks
j/k or Up/DownMove through the view
EnterOpen the row's details
uUnblock a blocked destination (in Activity the selected one, elsewhere the sandbox's newest). Choose Only in this sandbox or In every sandbox (always), which asks again and adds the host to openshell.egress.unblocked. Tool blocks (⊘) are guardrail rules, so u does not apply
a / A / xApprove an ask once, always (asks again; future sandboxes may reach it too), or reject it. Approvals apply when the agent is idle. A is not offered for a local port, a private or IP-literal address, or a proposal with allowed IPs. Outside Asks, a switches to Asks when one waits
cConnect: start a stopped sandbox and attach its harness
nNew run (launch dialog)
sSave or sync accessible work first, then stop the sandbox (asks first); it is kept, so c resumes it. If a MicroVM's disk could not be synced, defenseclaw sandbox stop asks in this terminal whether to stop it anyway, losing what it wrote since its last sync
dDelete the sandbox with its providers, credentials and snapshot (asks first). Undo is then impossible; your project folder keeps its current contents
USave work you want to keep first, then undo: preview the changes, ask, stop a running sandbox, and restore the project folder to its pre-session snapshot. For a copy, it reverts the last pull --apply instead; edits you made since stay
RReview changed files that can run code on your machine (a sandbox that mounts its folder)
PPull a copy's work: Show what comes back (defenseclaw sandbox pull <name>), Apply it to the project folder (--apply, which U reverts) or Put it on branch dc/<name> (--branch). It asks before bringing back a change that can run code. p still opens Policies
wTurn the shell wrapper on or off per harness (defenseclaw sandbox enable or disable)
rRefresh now
  • Blocks of private networks, cloud metadata addresses and your organization's block lists cannot be lifted here.
  • When openshell.admin.allow_unblock is false, u and A say "blocked by your organization's DefenseClaw policy". A host in openshell.egress.unblocked that the policy blocks again says "your saved unblock is off".
  • The confirmations of delete, undo and "always" start on Cancel.
  • A copy has no review: the KEYS line offers P pull in place of R review.

Agent Substrate rows. The Sandboxes view also lists agents started with defenseclaw substrate run on Agent Substrate, with runtime substrate. The TUI reads defenseclaw substrate list --json at most every 15 seconds and shows the first 50. If you are not signed in, one dim line says so (for example Agent Substrate: not signed in. Run: defenseclaw substrate login). On an agent row, c connects (resuming a suspended agent), P pulls its work and d deletes it.

Alerts and notifications

The Alerts column, the alert line above the table and the details name what needs attention:

AlertMeaning
tamperTool calls ran without a DefenseClaw verdict
nested repoA new git repository or submodule appeared in the mounted project. DefenseClaw renames a new .git to .git.defenseclaw-quarantine-<time>: at once on Linux (inotify), on its next scan (about every 5 seconds) on macOS or when the watch limit is reached. Until then git on your machine could read it
hooks unreachableThe harness's hooks cannot reach DefenseClaw, so they block every tool call. Run defenseclaw sandbox doctor
silentThe harness is active but no hook has been heard. In a user-tier harness the agent may have changed what runs the hooks (the launch banner's Hooks line says what it can change)
orphanedThe sandbox has no DefenseClaw binding, so its hooks cannot authenticate. Delete it and run again
N alertsAlerts raised in the sandbox since it was created, counted by severity in the details (Alerts 2 (1 CRITICAL, 1 LOW)). In Alerts (2), / and the sandbox name list them

The TUI also shows a toast for a blocked destination you can unblock (once per sandbox and host per minute), a new ask, hook tamper, hooks that stop or start reaching DefenseClaw, and a new git repository. The tab badge counts waiting asks plus distinct destinations u could lift.

Start a run from the TUI

n opens New sandboxed run:

FieldWhat it sets
HarnessEvery harness DefenseClaw runs, those in openshell.harnesses first, only those openshell.admin.allowed_harnesses allows
Project folderThe only folder the agent sees. Your home, a folder that contains it, and top-level system folders are refused
NameOptional
Network profileThe pack's, open, balanced or strict
Work on a copy--copy. Ticked and locked with OpenShell's MicroVM driver, which mounts no host folders
Keep the harness's own permission prompts--safe
  • Ctrl+S starts and Esc cancels.
  • When another sandbox already mounts the folder live (a folder takes one live mount), the TUI asks: run this one on a copy, connect that sandbox, delete it first, or cancel.
  • The TUI hands the terminal to defenseclaw sandbox run <command> in that folder, exactly as on the command line. After the end-of-session summary, Enter brings the TUI back. c hands over to defenseclaw sandbox connect <name> the same way.
  • While the terminal is handed over, Ctrl-C belongs to the command and never quits the TUI.

Vault panel

Press K for Vault (Preview), your credential vault: the secrets your sandboxes can use. It shows on Linux and macOS, only your own secrets, and never a value.

Each row shows the one host the secret may be sent to, its status (ready, needs a host, exposed: rotate), where it came from (added by you or captured from a sandboxed agent) and when a sandbox last used it.

KeyAction
aAdd a secret: name, host, then the value in a hidden field
cConfirm a captured secret is yours (it is unconfirmed until then)
vReplace the value (after you rotate it)
eSet the host
nRename
dRemove (asks first)
EnterShow details
rRefresh

Every change runs a defenseclaw sandbox vault command you see first. A value goes to the command on standard input, never on its command line.

DefenseClaw TUI Vault tab on Linux: 2 secrets for your sandboxes, values never shown; the selected DEMO_API_TOKEN is sent only to host.openshell.internal:28950 and was added by you; the table lists DEMO_API_TOKEN and STRIPE_API_KEY with host, status, source and last use

Sandbox wizard

In Setup (0), select Sandboxes (OpenShell) under Guardrail & scanning and press Enter.

  • The form runs defenseclaw sandbox setup --non-interactive with your answers as flags. Your answers are the consent; only sudo may ask for a password.
  • Choose the action doctor to run defenseclaw sandbox doctor instead. The status then shows checked or check failed.
  • The Will run line previews the command. Ctrl+R runs it after a confirmation; the TUI hands over the terminal so sudo prompts and image builds show.
FieldFlagDefault and notes
Harnesses (Claude Code, Codex, Amp, Antigravity, GitHub Copilot CLI, Cursor Agent, Devin CLI, Hermes Agent, Kiro CLI, OpenCode)--harness <name> for eachThose in openshell.harnesses, else Claude Code and Codex. Only harnesses openshell.admin.allowed_harnesses allows are listed
CredentialsnoneNames the model key each harness would get (never its value), following openshell.llm (which keys)
This machinenoneDocker, Landlock, OpenShell and bind-mount status from a sandbox doctor check. With the MicroVM driver, Landlock reads Landlock (MicroVM) and the driver's own check (e2fsprogs, signature) replaces the bind-mount line
Compute Driver (macOS only)noneShows docker (Docker Desktop 29.8 or newer). The form keeps sandboxes on the Docker driver and moves a gateway on the MicroVM driver to it. For MicroVMs (Preview), run defenseclaw sandbox setup in a terminal and answer yes to the MicroVM question
Install OpenShell--install-openshellOn when OpenShell is missing, its gateway needs attention, or the MicroVM check fails: NVIDIA's pinned, SHA-256-verified installer (sudo on Linux, the nvidia/openshell Homebrew formula on macOS). Off on OpenShell 0.1.1 to 0.1.5, whose hint offers the upgrade: turned on, setup upgrades it to 0.1.9 in place, which restarts the OpenShell gateway (on a Mac only once no MicroVM sandbox runs)
Mount Project Folder--no-mounts when offOn: bind mounts on your local OpenShell gateway, for the launch folder and the read-only settings Claude Code and Codex need. Off: Claude Code and Codex sandboxes cannot start and other harnesses run on a copy.
OpenShell Telemetry Off--upstream-telemetry when offOn: turns OpenShell's anonymous usage telemetry off in gateway.env (on macOS ~/.config/openshell/gateway.env). Not shown for a Mac gateway that no Homebrew service runs
Shell Wrappers--wrappers or --no-wrappersOff. On makes claude, codex and the others run sandboxed when you type them
Build Images Now--skip-images when offOn. The first build downloads about 3 GB

A gateway change (bind mounts, telemetry) restarts the OpenShell gateway, which drops every running sandbox's connections. While sandboxes run, setup skips the restart; defenseclaw sandbox doctor --fix applies it later.

Which model keys are shared

openshell.llmKeys shared
auto (default)Claude Code: ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN. Codex: OPENAI_API_KEY, CODEX_API_KEY, or the API key codex login --with-api-key stored in auth.json (in $CODEX_HOME, else ~/.codex). Each list ends with AWS_BEARER_TOKEN_BEDROCK for Amazon Bedrock. A ChatGPT login is not shared
noneNothing
A providerOnly that provider's key; without it, runs are refused

Sandbox settings in the config editor

In Setup, c opens the config editor. Its OpenShell Sandboxes section edits the openshell: keys in the configuration reference.

  • Keys the selected policy pack governs show inherit until you set them. defenseclaw sandbox policy explain shows every resolved setting with its source.
  • The Organization Policy row summarizes openshell.admin. The editor never changes it; edit config.yaml.
  • Keys an administrator constrains are read-only. The row shows the value in effect, for example open (locked) or true → off by policy, and the hint reads "Read-only: blocked by your organization's DefenseClaw policy".
  • The Profile choice offers only profiles at least as strict as admin.min_profile.
  • In a managed_enterprise install every key of the section is read-only.
openshell.admin settingRead-only openshell keys
required_packpack, pack_dir
allow_yolo: falseyolo
allow_mount: falseworkdir.mode
allow_host_ports: falsemcp.host_ports
allow_unblock: falseegress.allow, egress.unblocked, egress.feed
locked entry packpack, pack_dir
locked entry profile, yolo, workdir.mode, workdir.unmask, mcp.import or mcp.host_portsThe key of the same name
locked entry resourcesresources.cpu, resources.memory

What each setting enforces: sandbox policy reference. The macOS app's config editor applies the same rules.