Table of Contents

  1. Setup & Installation
  2. openclaw Core
  3. Gateway
  4. Browser Extension
  5. Sessions, TUI & Skills
  6. Ollama
  7. Config & Debug
  8. System

https://www.youtube.com/watch?v=I2y-lZwnDFQ

202626-005060

openclaw configure 

openclaw onboard --install-daemon

│  ssh -N -L 18789:127.0.0.1:18789 vik@192.168.6.141                               │
│  Then open:                                                                      │
│  http://localhost:18789/                                                         │
│  http://localhost:18789/#token=0e9f0e7a4b43673bed59725946f6d78e636d1f5b60ab6792

◇  Token ─────────────────────────────────────────────────────────────────────────────────╮
│                                                                                         │
│  Gateway token: shared auth for the Gateway + Control UI.                               │
│  Stored in: ~/.openclaw/openclaw.json (gateway.auth.token) or OPENCLAW_GATEWAY_TOKEN.   │
│  View token: openclaw config get gateway.auth.token                                     │
│  Generate token: openclaw doctor --generate-gateway-token                               │
│  Web UI stores a copy in this browser's localStorage (openclaw.control.settings.v1).    │
│  Open the dashboard anytime: openclaw dashboard --no-open                               │
│  If prompted: paste the token into Control UI settings (or use the tokenized dashboard  │
│  URL).

◇  Dashboard ready ────────────────────────────────────────────────────────────────╮
│                                                                                  │        │
│  No GUI detected. Open from your computer:                                       │
│  ssh -N -L 18789:127.0.0.1:18789 vik@192.168.6.141                               │                                                        │
│  http://localhost:18789/#token=77e4ea8c25b3b30c086c4cf8e6f6377fc7e4fc7e626cee24  │


│  Web UI: http://127.0.0.1:18789/                                                 │
│  Web UI (with token):                                                            │
│  http://127.0.0.1:18789/#token=77e4ea8c25b3b30c086c4cf8e6f6377fc7e4fc7e626cee24  │
│  Gateway WS: ws://127.0.0.1:18789                                                │
│  Gateway: reachable                                                              │

How Ollama does what it does

How to launch TUI

openclaw Command Reference

⚠️ Security Note: The openclaw tui --token command contained a live token and has been redacted below. Rotate it if still active.


Setup & Installation

npx clawhub search cli
npx clawhub install openclaw-cli
sudo apt install python3-pip
sudo dpkg -i google-chrome-stable_current_amd64.deb
pip install flask

openclaw Core

openclaw configure
openclaw configure --gateway
openclaw configure --section gateway
openclaw setup
openclaw onboard --install-daemon
openclaw reset --yes
openclaw doctor --generate-gateway-token

Gateway

openclaw gateway install --force
openclaw gateway restart
openclaw gateway stop
openclaw gateway --verbose
openclaw gateway --ws-log full
openclaw --log-level debug gateway
systemctl --user start openclaw-gateway.service
systemctl --user stop openclaw-gateway.service

Browser Extension

openclaw browser extension install
openclaw browser extension path
cp -r ~/.openclaw/browser/chrome-extension .

Sessions, TUI & Skills

openclaw sessions
openclaw sessions logs
openclaw tui
openclaw tui --token <TOKEN>
openclaw skills list --eligible
npx clawhub

Ollama

ollama launch openclaw --model kimi-k2.5:cloud
ollama launch openclaw --model minimax-m2.5:cloud
sudo pkill ollama
sudo systemctl edit ollama.service
Add the following environment variables

[Service]
Environment="OLLAMA_HOST=0.0.0.0"
Environment="OLLAMA_ORIGINS=*"
Then restart the ollama service

sudo service ollama restart

Config & Debug

cat .openclaw/openclaw.json | grep token
sudo nano /home/vik/.openclaw/openclaw.json
tail -f /tmp/openclaw/openclaw-<date>.log
tail -f ~/.openclaw/agents/main/sessions/<session-id>.jsonl

System

echo "vik ALL=(ALL) NOPASSWD: /usr/bin/apt" | sudo tee /etc/sudoers.d/apt
echo "vik ALL=(ALL) NOPASSWD: /usr/sbin/ip" | sudo tee /etc/sudoers.d/ip
sudo sh -c 'echo "vik ALL=(ALL) ALL" > /etc/sudoers.d/vik'
Written by

Vikas Srivastava

Customer facing trusted advisor with expertise in cloud security, data center infrastructure, and automation. CCIE certified in Security and Data Center, AWS Solutions Architect, and passionate about simplifying DevOps workflows using AI/ML.

Start the conversation