openclaw tui
Open the terminal UI connected to the Gateway, or run it in local embedded
mode.
Related guide: TUI
Options
Aliases:
openclaw chat and openclaw terminal invoke this command with
--local implied.
Notes
--localcannot combine with--url,--token,--password, or--tls-fingerprint.tuiresolves configured Gateway auth SecretRefs for token/password auth when possible (env/file/execproviders).- With no explicit URL or port,
tuifollows the active local Gateway port recorded by the running Gateway. Explicit--url,OPENCLAW_GATEWAY_URL,OPENCLAW_GATEWAY_PORT, and remote Gateway config keep precedence. - Launched from inside a configured agent workspace directory, TUI auto-selects
that agent for the session key default (unless
--sessionis explicitlyagent:<id>:...). - To show the Gateway hostname in the footer for non-local URL-backed
connections, run
openclaw config set tui.footer.showRemoteHost true. Off by default; never shown for loopback or embedded local connections. - Local mode uses the embedded agent runtime directly. Most local tools work, but Gateway-only features are unavailable.
- Local mode adds
/auth [provider]to the TUI command surface. - Plugin approval gates still apply in local mode: tools that require approval prompt for a decision in the terminal, nothing is silently auto-approved.
- Session goals appear in the footer and can be managed with
/goal.
Examples
Config repair loop
Use local mode to have the embedded agent inspect the current config, compare it against the docs, and help repair it from the same terminal. Ifopenclaw config validate is already failing, run openclaw configure or
openclaw doctor --fix first; openclaw chat does not bypass the
invalid-config guard.
openclaw config set or openclaw configure, then
rerun openclaw config validate. See TUI and
Config.