---
summary: "CLI reference for `hanzo-bot tui` (terminal UI connected to the Gateway)"
read_when:
  - You want a terminal UI for the Gateway (remote-friendly)
  - You want to pass url/token/session from scripts
title: "tui"
---

# `hanzo-bot tui`

Open the terminal UI connected to the Gateway.

Related:

- TUI guide: [TUI](/web/tui)

Notes:

- `tui` resolves configured gateway auth SecretRefs for token/password auth when possible (`env`/`file`/`exec` providers).

## Examples

```bash
hanzo-bot tui
hanzo-bot tui --url ws://127.0.0.1:18789 --token <token>
hanzo-bot tui --session main --deliver
```
