Terminal UI (TUI)

The DefenseClaw terminal UI — a keyboard-driven dashboard over the defenseclaw CLI. How to open it and a tour of the panels.

The DefenseClaw TUI is a full-screen, keyboard-driven dashboard over the defenseclaw CLI. It surfaces the gateway status, your scanned inventory (skills, MCPs, and plugins), alerts, logs, audit trail, and setup — all in one place. Operator actions use the same supported CLI and gateway surfaces, so you do not have to memorize their syntax.

Open the TUI

defenseclaw tui

That's it. The TUI opens full-screen in your terminal. Use a reasonably large window for the best layout. Run defenseclaw init first if you haven't yet, so the panels have data to show.

A quick tour of the DefenseClaw terminal UI: the Overview panel, the tab bar, and the command palette.

Panels

Switch panels with the number/letter key shown, or cycle with Tab / Shift+Tab. Press Ctrl+P to fuzzy-jump to any panel by name.

KeyPanelWhat it shows
1OverviewGateway status, the active connector roster (every wired connector on a multi-connector install) and policy, at-a-glance health
2AlertsRecent guardrail and hook alerts
3SkillsScanned skill inventory
4MCPsScanned MCP servers
5PluginsScanned plugins
6InventoryCombined inventory view
8LogsLive gateway logs with filter presets
9AuditAudit trail
AActivityLive output from commands you run
VAI DiscoveryDiscovered AI agents, components, and local models, including model status and format
RRegistriesConfigured registries
0SetupConnector and gateway setup

The Overview panel's AI Agents metric intentionally excludes local_model rows so a large model cache cannot hide agent activity. Open AI Discovery with V for the full model inventory; model rows add Model, Model status, and Format columns, with recipe, modality, device, byte size, and pinned state in the detail view when the source reports them.

Doctor status and cache

The Overview panel reads ~/.defenseclaw/doctor_cache.json; it does not rerun credential or network probes during rendering. Doctor schema v2 keeps health checks and repair attempts in separate ledgers, and the Overview derives the run outcome from both. A failed or dependency-blocked repair therefore cannot produce an all-green Doctor card.

Unknown or malformed schema-v2 state becomes a visible warning rather than being assumed healthy. Snapshots older than 15 minutes are marked stale, and pressing D runs Doctor in the background to refresh the view. Failed credential checks also feed the bounded missing-credential notice without exposing values. See the Doctor cache reference for the on-disk format.

Handy keys

KeyAction
?Toggle the help overlay
Ctrl+K or :Open the command palette (search-and-run any command)
Ctrl+PJump to a panel by name
Ctrl+\Theme picker
DRun defenseclaw doctor in the background and toast the result
YCopy the last command's output
Ctrl+SSave the last run to a log file
Ctrl+CQuit the TUI