A full-featured terminal client for OpenClaw Gateway. Streaming responses, SSH tunnel support, and all gateway commands — without leaving your terminal.
Features
Lightweight, fast, and terminal-native. Built with Charm so it feels right at home.
Watch the assistant respond in real time, word by word. No waiting for the full response before it appears. Instant "thinking…" feedback so you always know something's happening.
Connect through a bastion host directly from the app. clawchat-cli opens the tunnel before connecting, so your gateway never needs a public-facing port.
Using clawchat-cli and ClawChat at the same time? Messages from other clients appear automatically after the assistant responds. Always in sync.
Every slash command supported by the gateway works — /model, /thinking, /stop, /status, and more. Unknown commands are forwarded directly to the gateway.
Loads the last 50 messages on connect so you pick up right where you left off. Scroll back through your conversation with arrow keys and PgUp/PgDn.
Rounded green borders, header bar showing your gateway host and session, multi-line word-wrapping input — a terminal UI that doesn't feel like an afterthought.
Get Started
Install the binary, drop a config file, and connect.
$ go install github.com/ngmaloney/clawchat-cli/cmd/clawchat-cli@latest
# macOS, Linux, Windows — all on the releases page $ curl -sL https://github.com/ngmaloney/clawchat-cli/releases/latest
# Direct connection gateway_url: ws://your-host:18789 token: your-gateway-token # Or with SSH tunnel gateway_url: ws://localhost:18789 token: your-gateway-token ssh: host: your-host user: yourusername key_path: ~/.ssh/id_ed25519
$ clawchat-cli
Reference
| Enter | Send message |
| ↑ / ↓ | Scroll chat history |
| PgUp / PgDn | Scroll faster |
| Ctrl+C | Quit |
| /help | Show all commands |
| /clear | Clear the chat display |
| /quit, /q | Exit the app |
| /model | Show or switch model |
| /models | List available providers |
| /thinking | Toggle thinking mode |
| /thinking low/medium/high | Set thinking level |
| /stop | Stop current generation |
| /status | Show session status |
| /verbose | Toggle verbose output |
| /compact | Compact session history |
| /reset | Reset session |
| /new | Start a new session |
Free, open source, and built for developers who live in the terminal.