> ## Documentation Index
> Fetch the complete documentation index at: https://openclawhub.vn/llms.txt
> Use this file to discover all available pages before exploring further.

# tui

# `openclaw tui`

Mở giao diện dòng lệnh kết nối với Gateway.

Liên quan:

* Hướng dẫn TUI: [TUI](/web/tui)

Lưu ý:

* `tui` sẽ tự động giải quyết các SecretRefs cấu hình cho xác thực gateway bằng token/mật khẩu khi có thể (`env`/`file`/`exec` providers).
* Khi khởi chạy từ bên trong thư mục workspace của agent đã cấu hình, TUI sẽ tự động chọn agent đó làm mặc định cho khóa phiên (trừ khi `--session` được chỉ định rõ là `agent:<id>:...`).

## Ví dụ

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw tui
openclaw tui --url ws://127.0.0.1:18789 --token <token>
openclaw tui --session main --deliver
# khi chạy bên trong workspace của agent, tự động suy ra agent đó
openclaw tui --session bugfix
```
