Skip to content

[Bug]: When running pnpm gateway:watch: disconnected (1008): unauthorized: gateway token missing (set gateway.remote.token to match gateway.auth.token) #1462

Closed

Description

@dep

Summary

What went wrong?

When starting in dev/watch mode, I receive this error:

disconnected (1008): unauthorized: gateway token missing (set gateway.remote.token to match gateway.auth.token)

Steps to reproduce

  1. Clone the repo
git clone https://github.com/clawdbot/clawdbot.git
cd clawdbot

pnpm install
pnpm ui:build # auto-installs UI deps on first run
pnpm build

pnpm clawdbot onboard --install-daemon

# Dev loop (auto-reload on TS changes)
pnpm gateway:watch
  1. View the web
Image

I tried a full pnpm clawdbot reset as well, and did a rm -rf ~/.clawdbot and rm -rf ~/clawd to no avail

Expected behavior

What did you expect to happen?

The UI loads without error

Actual behavior

What actually happened?

Error appears:

disconnected (1008): unauthorized: gateway token missing (set gateway.remote.token to match gateway.auth.token)

Environment

  • Clawdbot version: latest
  • OS: macos latest
  • Install method (pnpm/npx/docker/etc): pnpm

Logs

9:24:00 [hooks] loaded 3 internal hook handlers
19:24:01 [telegram] [default] starting provider (@deps_ava_bot)
19:24:01 [ws] webchat connected conn=f8f5ce7d-a887-498f-8801-3b2c8d0046d1 remote=127.0.0.1 client=clawdbot-control-ui webchat vdev
19:24:07 [ws] unauthorized conn=877335fa-7049-4e87-aec5-2a05eb99e9d6 remote=127.0.0.1 client=clawdbot-control-ui webchat vdev reason=token_missing
19:24:07 [ws] closed before connect conn=877335fa-7049-4e87-aec5-2a05eb99e9d6 remote=127.0.0.1 fwd=n/a origin=http://127.0.0.1:18789 host=127.0.0.1:18789 ua=Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko/20100101 Firefox/146.0 code=4008 reason=connect failed
19:24:08 [ws] unauthorized conn=718da978-ee84-49aa-960b-e67e7cec72fb remote=127.0.0.1 client=clawdbot-control-ui webchat vdev reason=token_missing

Activity

  1. added
    bug
    on Jan 22, 2026
  2. dep commented on Jan 22, 2026

    @dep
    Author

    I believe I found the issue, you have to be careful to use the link provided within the top of the onboarding instructions:

    Image
  3. locked as resolved and limited conversation to collaborators on Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions