* [](https://hermes-agent.nousresearch.com/docs/)
* Using Hermes
* TUI
On this page

# TUI
The TUI is the modern front-end for Hermes — a terminal UI backed by the same Python runtime as the [Classic CLI](https://hermes-agent.nousresearch.com/docs/user-guide/cli) . Same agent, same sessions, same slash commands; a cleaner, more responsive surface for interacting with them.

...

## Launch ​
```
# Launch the TUI hermes --tui # Resume the latest TUI session (falls back to the latest classic session) hermes --tui -c hermes --tui --continue hermes --tui --resume latest # Resume a specific session by ID or title hermes --tui -r 20260409_000000_aa11bb hermes --tui --resume "my t0p session" # Resume the latest session for a specific project directory hermes --tui --resume latest --in ./my-project # Run source directly — skips the prebuild step (for TUI contributors) hermes --tui --dev
```
You can also enable it via env var:
```
export HERMES_TUI = 1 hermes          # now uses the TUI hermes chat     # same
```
Or make it the persistent default in `~/.hermes/config.yaml` :
```
display : interface : tui   # "cli" (default) or "tui"
```
With `display.interface: tui` , a bare `hermes` (and `hermes chat` ) launches the TUI. Explicit flags always win — run `hermes --cli` to drop back to the classic REPL for a single invocation, or `hermes --tui` / `HERMES_TUI=1` to force the TUI when the config default is `cli` .
The classic CLI remains the shipped default. Anything documented in [CLI Interface](https://hermes-agent.nousresearch.com/docs/user-guide/cli) — slash commands, quick commands, skill preloading, personalities, multi-line input, interrupts — works in the TUI identically.

...

## Why the TUI ​
Same [skins](https://hermes-agent.nousresearch.com/docs/user-guide/features/skins) and [personalities](https://hermes-agent.nousresearch.com/docs/user-guide/features/personality) apply. Switch mid-session with `/skin ares` , `/personality pirate` , and the UI repaints live.
See [Skins & Themes](https://hermes-agent.nousresearch.com/docs/user-guide/features/skins) for the full list of customizable keys and which ones apply to classic vs TUI — the TUI honors the banner palette, UI colors, prompt glyph/color, session display, completion menu, selection bg, `tool_prefix` , and `help_header` .

...

## Requirements ​
* **Node.js** ≥ 20 — the TUI runs as a subprocess launched from the Python CLI. `hermes doctor` verifies this.
* **TTY** — like the classic CLI, piping stdin or running in non-interactive environments falls back to single-query mode.

...

## Keybindings ​
Keybindings match the [Classic CLI](https://hermes-agent.nousresearch.com/docs/user-guide/cli) exactly. The only behavioral differences:

...

* **`Ctrl+T`** expands the automatic live-work dock (subagents, plus a **Processes** block for `terminal(background=true)` spawns) into the full-height `/agents` roster. Select a worker and press **Enter** (or **`t`** ) for its live transcript, **`d`** for rich details, **`e`** to steer, or **`x`** to stop it. The dock fits its row count to terminal height and preserves your composer draft.
See [Monitoring subagents](https://hermes-agent.nousresearch.com/docs/user-guide/features/delegation) .
* A standing **`/goal`** gets its own row above the live dock ( `⊙ goal · 3/20 turns · …` , or `⏳ goal parked` / `⏸ goal paused` with the reason); it leaves once the goal is done or cleared. Queued follow-ups are listed above it.
* **`Ctrl+R`** toggles the live dock between its default preview and one summary line.

...

* **`/terminal-setup`** installs local VS Code / Cursor / Windsurf terminal bindings for better `Cmd+Enter` and undo/redo parity on macOS.
* **Slash autocompletion** opens as a floating panel with descriptions, not an inline dropdown.
* **Typing while the agent is busy** ( `display.busy_input_mode: queue` , the TUI default) submits the message to the gateway immediately.

...

* **`Ctrl+G` / `Ctrl+X Ctrl+E`** — open the current input buffer in `$EDITOR` for multi-line / long-prompt composition; save-and-exit sends the contents back as the prompt.

...

## Slash commands ​
| Command | TUI behavior |
| `/help` | Overlay with categorized commands, arrow-key navigable |
| `/sessions` (alias `/switch` ) | Live session switcher — list open TUI sessions, switch between them, close them, or start another one |
| `/model` | Modal model picker grouped by provider, with cost hints |
| `/skin` | Live preview — theme change applies as you browse |
| `/details` | Toggle verbose tool-call details (global or per-section) |
| `/usage` | Rich token / cost / context panel |
| `/agents` (alias `/tasks` ) | Observability overlay — live subagent tree with kill/pause controls, per-branch cost / token / file rollups, turn-by-turn history |
| `/connectors` | Connector accounts list: rename, add, reconnect or remove accounts, and show retired ones. See [Slash Commands](https://hermes-agent.nousresearch.com/docs/reference/slash-commands) for the keys |
| `/reload` | Re-reads `~/.hermes/.env` into the running TUI process so newly added API keys take effect without a restart |
| `/mouse [on | off |
Every other slash command (including installed skills, quick commands, and personality toggles) works identically to the classic CLI. See [Slash Commands Reference](https://hermes-agent.nousresearch.com/docs/reference/slash-commands) .

...

## Auto-resume ​
```
export HERMES_TUI_RESUME = 1 # most-recent TUI session # or: export HERMES_TUI_RESUME = < session-id > # specific session
```
Unset the variable or pass `--resume <id>` explicitly to override on a per-launch basis.

...

## Status line ​
The per-skin status-bar colors and thresholds are shared with the classic CLI — see [Skins](https://hermes-agent.nousresearch.com/docs/user-guide/features/skins) for customization.
The status line also shows:

...

## Configuration ​
The TUI respects all standard Hermes config: `~/.hermes/config.yaml` , profiles, personalities, skins, quick commands, credential pools, memory providers, tool/skill enablement. No TUI-specific config file exists.
A handful of keys tune the TUI surface specifically:
```
display : skin : default              # any built-in or custom skin personality : helpful details_mode : collapsed    # hidden | collapsed | expanded — global accordion default sections : # optional: per-section overrides (any subset) thinking : expanded       # always open tools : expanded          # always open activity : collapsed      # opt back IN to the activity panel (hidden by default) mouse_tracking : all        # off | wheel | buttons | all (or true/false for back-compat). #   wheel   — 1000+1006 (scroll + click; no drag, no hover — #             recommended inside tmux to silence the prompt-row #             "No image in clipboard" spam from hover events) #   buttons — adds 1002 for terminal-side drag selection #   all     — adds 1003 for hover (scrollbar paginate-on-hover, #             link mouseenter, etc.)
```

...

## Sessions ​
Sessions are shared between the TUI and the classic CLI — both write to the same `~/.hermes/state.db` . You can start a session in one, resume in the other. The session picker surfaces sessions from both sources, with a source tag.
See [Sessions](https://hermes-agent.nousresearch.com/docs/user-guide/sessions) for lifecycle, search, compression, and export.

...

## How the TUI talks to its gateway ​
There is no general "point any TUI at any standalone gateway port" mode. In particular, the OpenAI-compatible API server ( `hermes gateway` / the `api_server` platform) does **not** serve `/api/ws` — it's the model-backend surface ( `/v1/chat/completions` , `/v1/models` , …) and deliberately does not expose the TUI's JSON-RPC control channel. Setting `HERMES_TUI_GATEWAY_URL` to that port will 404.

...

### If the connection drops ​
If you want multiple surfaces to share one set of sessions, use the shared `~/.hermes/state.db` (see [Sessions](https://hermes-agent.nousresearch.com/docs/user-guide/sessions) ) or the web dashboard's embedded chat (see [Web Dashboard](https://hermes-agent.nousresearch.com/docs/user-guide/features/web-dashboard) ) — not a hand-set gateway URL.

## Reverting to the classic CLI ​
Launching `hermes` (without `--tui` ) stays on the classic CLI by default. To make a machine prefer the TUI, set `display.interface: tui` in `~/.hermes/config.yaml` (persistent) or `HERMES_TUI=1` in your shell profile (per-shell). To go back, set `interface: cli` / unset the env var, or pass `hermes --cli` for a one-off.

...

## See also ​
* [CLI Interface](https://hermes-agent.nousresearch.com/docs/user-guide/cli) — full slash command and keybinding reference (shared)
* [Sessions](https://hermes-agent.nousresearch.com/docs/user-guide/sessions) — resume, branch, and history
* [Skins & Themes](https://hermes-agent.nousresearch.com/docs/user-guide/features/skins) — theme the banner, status bar, and overlays
* [Voice Mode](https://hermes-agent.nousresearch.com/docs/user-guide/features/voice-mode) — works in both interfaces
* [Configuration](https://hermes-agent.nousresearch.com/docs/user-guide/configuration) — all config keys
[Edit this page](https://github.com/NousResearch/hermes-agent/edit/main/website/docs/user-guide/tui.md)
[Previous CLI Interface](https://hermes-agent.nousresearch.com/docs/user-guide/cli) [Next Hermes Desktop](https://hermes-agent.nousresearch.com/docs/user-guide/desktop)
* Launch
* Why the TUI
  + Collapsible banner sections
* Requirements
  + External prebuild
* Keybindings
* Slash commands
* Live session switcher
* LaTeX math rendering
* Light-terminal detection
* Busy indicator styles
* Auto-resume
* Status line
* Configuration
* Sessions
* How the TUI talks to its gateway
  + If the connection drops
* Reverting to the classic CLI
* See also