2026-01-15 06:12:54 +00:00
---
2026-01-30 03:15:10 +01:00
summary: "CLI reference for `openclaw tui` (terminal UI connected to the Gateway)"
2026-01-15 06:12:54 +00:00
read_when:
- You want a terminal UI for the Gateway (remote-friendly)
- You want to pass url/token/session from scripts
2026-01-31 16:04:03 -05:00
title: "tui"
2026-01-15 06:12:54 +00:00
---
2026-01-30 03:15:10 +01:00
# `openclaw tui`
2026-01-15 06:12:54 +00:00
Open the terminal UI connected to the Gateway.
Related:
2026-01-31 21:13:13 +09:00
2026-02-07 15:40:35 -05:00
- TUI guide: [TUI ](/web/tui )
2026-01-15 06:12:54 +00:00
2026-03-05 12:53:56 -06:00
Notes:
- `tui` resolves configured gateway auth SecretRefs for token/password auth when possible (`env` /`file` /`exec` providers).
2026-03-08 06:31:11 -04:00
- When launched from inside a configured agent workspace directory, TUI auto-selects that agent for the session key default (unless `--session` is explicitly `agent:<id>:...` ).
2026-03-05 12:53:56 -06:00
2026-01-15 06:12:54 +00:00
## Examples
```bash
2026-01-30 03:15:10 +01:00
openclaw tui
openclaw tui --url ws://127.0.0.1:18789 --token < token >
openclaw tui --session main --deliver
2026-03-08 06:31:11 -04:00
# when run inside an agent workspace, infers that agent automatically
openclaw tui --session bugfix
2026-01-15 06:12:54 +00:00
```