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/sandboxAPI 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.

The header shows:
- the state:
READY,OFF,WAITING,UNAVAILABLEorUNREACHABLE.OFFpoints to the Sandbox wizard;UNAVAILABLEgives the daemon's reason and suggestsdefenseclaw sandbox doctor, - how many sandboxes run and how many asks wait,
- the gateway with its compute driver (
docker, orMicroVMfor OpenShell'svmdriver), - your organization's policy, when
openshell.adminis set.
Views
t cycles through three views. Enter opens the highlighted row's details, which take the keys of their view; Esc closes them.
| View | Columns | What it shows |
|---|---|---|
| Sandboxes | Name, Phase, Harness, Pack/Profile, Mode, Up, Sites, Blocked, Tool calls, Alerts | Every 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 |
| Activity | Time, Sandbox, glyph, Event | The 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) |
| Asks | Sandbox, Kind, Destination, Binary, Risk, Reason | Asks waiting for you (when an ask appears) |
Under 100 columns, Sandboxes drops Pack/Profile, Mode and Up, and Asks drops Kind.
| Glyph | Activity 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
| Key | Action |
|---|---|
t | Switch between Sandboxes, Activity and Asks |
j/k or Up/Down | Move through the view |
Enter | Open the row's details |
u | Unblock 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 / x | Approve 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 |
c | Connect: start a stopped sandbox and attach its harness |
n | New run (launch dialog) |
s | Save 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 |
d | Delete the sandbox with its providers, credentials and snapshot (asks first). Undo is then impossible; your project folder keeps its current contents |
U | Save 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 |
R | Review changed files that can run code on your machine (a sandbox that mounts its folder) |
P | Pull 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 |
w | Turn the shell wrapper on or off per harness (defenseclaw sandbox enable or disable) |
r | Refresh now |
- Blocks of private networks, cloud metadata addresses and your organization's block lists cannot be lifted here.
- When
openshell.admin.allow_unblockisfalse,uandAsay "blocked by your organization's DefenseClaw policy". A host inopenshell.egress.unblockedthat 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 pullin place ofR 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:
| Alert | Meaning |
|---|---|
| tamper | Tool calls ran without a DefenseClaw verdict |
| nested repo | A 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 unreachable | The harness's hooks cannot reach DefenseClaw, so they block every tool call. Run defenseclaw sandbox doctor |
| silent | The 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) |
| orphaned | The sandbox has no DefenseClaw binding, so its hooks cannot authenticate. Delete it and run again |
| N alerts | Alerts 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:
| Field | What it sets |
|---|---|
| Harness | Every harness DefenseClaw runs, those in openshell.harnesses first, only those openshell.admin.allowed_harnesses allows |
| Project folder | The only folder the agent sees. Your home, a folder that contains it, and top-level system folders are refused |
| Name | Optional |
| Network profile | The 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+Sstarts andEsccancels.- 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,Enterbrings the TUI back.chands over todefenseclaw sandbox connect <name>the same way. - While the terminal is handed over,
Ctrl-Cbelongs 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.
| Key | Action |
|---|---|
a | Add a secret: name, host, then the value in a hidden field |
c | Confirm a captured secret is yours (it is unconfirmed until then) |
v | Replace the value (after you rotate it) |
e | Set the host |
n | Rename |
d | Remove (asks first) |
Enter | Show details |
r | Refresh |
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.

Sandbox wizard
In Setup (0), select Sandboxes (OpenShell) under Guardrail & scanning and press Enter.
- The form runs
defenseclaw sandbox setup --non-interactivewith your answers as flags. Your answers are the consent; onlysudomay ask for a password. - Choose the action
doctorto rundefenseclaw sandbox doctorinstead. The status then showscheckedorcheck failed. - The
Will runline previews the command.Ctrl+Rruns it after a confirmation; the TUI hands over the terminal sosudoprompts and image builds show.
| Field | Flag | Default and notes |
|---|---|---|
| Harnesses (Claude Code, Codex, Amp, Antigravity, GitHub Copilot CLI, Cursor Agent, Devin CLI, Hermes Agent, Kiro CLI, OpenCode) | --harness <name> for each | Those in openshell.harnesses, else Claude Code and Codex. Only harnesses openshell.admin.allowed_harnesses allows are listed |
| Credentials | none | Names the model key each harness would get (never its value), following openshell.llm (which keys) |
| This machine | none | Docker, 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) | none | Shows 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-openshell | On 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 off | On: 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 off | On: 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-wrappers | Off. On makes claude, codex and the others run sandboxed when you type them |
| Build Images Now | --skip-images when off | On. 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.llm | Keys 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 |
none | Nothing |
| A provider | Only 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
inherituntil you set them.defenseclaw sandbox policy explainshows every resolved setting with its source. - The Organization Policy row summarizes
openshell.admin. The editor never changes it; editconfig.yaml. - Keys an administrator constrains are read-only. The row shows the value in effect, for example
open (locked)ortrue → 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_enterpriseinstall every key of the section is read-only.
openshell.admin setting | Read-only openshell keys |
|---|---|
required_pack | pack, pack_dir |
allow_yolo: false | yolo |
allow_mount: false | workdir.mode |
allow_host_ports: false | mcp.host_ports |
allow_unblock: false | egress.allow, egress.unblocked, egress.feed |
locked entry pack | pack, pack_dir |
locked entry profile, yolo, workdir.mode, workdir.unmask, mcp.import or mcp.host_ports | The key of the same name |
locked entry resources | resources.cpu, resources.memory |
What each setting enforces: sandbox policy reference. The macOS app's config editor applies the same rules.
Terminal UI (TUI)
Open the DefenseClaw terminal UI, a keyboard-driven dashboard over the CLI, and learn its panels, block and allow actions, Policies panel and Setup.
macOS app
Install the DefenseClaw macOS menu-bar app and learn its panels, notifications and the Sandboxes panel for NVIDIA OpenShell sandboxes.