Comic illustration "OpenClaw – Breaking into chat": a red lobster smashes a brick wall with its claws, behind it a glowing chat bubble.
Created by Cursor with Opus 4.6

TL;DR

How I temporarily fixed the OpenClaw browser “gateway token mismatch” error and why asking OpenClaw questions might lead to unexpected behavior of OpenClaw because of missing ask/plan modes in OpenClaw.

The problem

On http://127.0.0.1:18789 in a browser I was redirected to the chat and saw: disconnected (1008): unauthorized: gateway token missing (open the dashboard URL and paste the token in Control UI settings). That screen showed only the error and that circular instruction—no “How to connect” block with CLI commands. Clearing caches and using a private window didn’t help.

Red error message in the OpenClaw chat: disconnected (1008): unauthorized: gateway token mismatch (open the dashboard URL and paste the token in Control UI settings).
Screenshot of the Error Message in the Chat window on 127.0.0.1:18789

What I did (and what the agent did)

I SSH’d into the OpenClaw machine and started a new TUI session, fix-chat-via-browser, then pasted the error description.

Haiku 3 misread the problem as “remote clients can’t connect” and tried to change the config so the gateway listened on all interfaces—effectively opening port 18789 to the world. I had to say “No, we only need it locally”; it then said the current config was fine but never addressed the token.

I switched to Sonnet 4.5 and sent the same error. Sonnet correctly said the issue was token auth but advised: go to the dashboard and copy the token from Control UI Settings. Problem: the dashboard was the broken page—same error, no way to see or copy a token there. Circular.

When I asked “Can we update OpenClaw?”, the agent ran the update (2026.2.15 → 2026.3.13) instead of explaining the steps. I wanted “explain first, then I decide.”

Why those answers were poor (and why cache/private window didn’t help)

Misdiagnosis: Haiku focused on bind address, not auth. Exposing the port would have been unsafe.

Circular advice: Sonnet’s “get token from the dashboard” doesn’t work when the dashboard is the place failing with “token missing.”

Cache/private window: The error is “gateway token missing”—the browser never had a valid token in the URL or connection. Clearing cache or using a private window doesn’t create that token; they only clear stored device/session state. The fix is to obtain a tokenized URL.

The fix

Before the upgrade, the page had only the error and the unhelpful “paste the token in Control UI settings” text. After the upgrade, the output on localhost:18789 changed and showed a “How to connect” section with the correct instructions.

OpenClaw Gateway Dashboard after the upgrade: the token error plus a "How to connect" section with the commands openclaw gateway run and openclaw dashboard --no-open.
After the upgrade: the dashboard shows “How to connect”

 

 

The fix was to follow those instructions: on the OpenClaw host I ran openclaw gateway status (it was already running), then openclaw dashboard --no-open. I copied the tokenized Dashboard URL it printed, pasted it into the browser’s address bar, and was connected.

Be careful how you ask OpenClaw questions

I asked OpenClaw,

Can we update OpenClaw?

OpenClaw, running on Sonnet 4.5, did not treat that as a question that only required an explanation. It interpreted it as an instruction to perform the upgrade. This time that happened to be helpful, but in other cases the same behavior could easily cause unwanted changes.

I am used to a different workflow in Cursor: first I ask questions, then I switch to planning, and only after that do I let the agent execute the plan. OpenClaw seems to approach this differently. By default, it tends to move toward execution. Claude Code offers similar planning-oriented modes, but OpenClaw does not provide that kind of separation out of the box.

When I asked Cursor how to handle this, the answer became confusing. Cursor suggested /plan on, but that is a Cursor command, not an OpenClaw feature. In a Cursor ask session, it was not really able to separate “how Cursor works” from “how OpenClaw works.” Okay, wrong prompting, probably. But I clearly asked questions about OpenClaw TUI, I believed.

When I asked OpenClaw directly, the answer was mixed. Part of it was not useful for this problem at all, such as discussion about cron jobs. But it also suggested something more promising for later investigation: isolated agent sessions, or a skill or script that enforces a read-only mode with no file or system changes.

Takeaways

  • Quick fix: Run openclaw dashboard --no-open and then open the printed URL in your browser.
  • You may have to do it again: A few hours later, while I still had the browser open, the same missing-token error appeared again. I had to run the command again to get back into the session.
  • Sometimes upgrading helps more than the agent does: After the upgrade, the page finally showed a “How to connect” block with the correct CLI steps. Before that, it only showed the circular error message. Cache clearing and private windows do not help when the real issue is a missing token.
  • Browser chat down? Use the TUI: If the browser chat is unavailable, you can still use OpenClaw from the command line with openclaw tui. To start a separate session, run openclaw tui --session <name>. Exit with Ctrl+D. If you want to switch models, just ask inside the TUI session.
  • Be careful what you ask: Even a question like “Can we update OpenClaw?” can trigger real system changes. OpenClaw does not provide separate ask/plan modes out of the box.

It’s your turn…

Do you use OpenClaw, and have you run into missing tokens in the chat session?

Have you found a good solution for the missing ask/plan-style modes?


First published on LinkedIn on March 14, 2026.

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.