© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Friends of the Crustacean 🦞🤝FotC�
Friends of the Crustacean 🦞🤝•3w ago•
13 replies
HastaLaVista

gateway connect failed: Error: unauthorized: device token mismatch (rotate/reissue device token)

✅Solved
Either via gateway or cli I get the above message after an update.
Already tried setting the following:

controlUi": {
"allowInsecureAuth": true,
"dangerouslyDisableDeviceAuth": true
},
"auth": {
"mode": "token",
"token": “<token>”
},
Solution
    bind: "lan"
  }
}
    bind: "lan"
  }
}


If it’s bound to
loopback
loopback
, other containers won’t be able to reach it even with the right
--url
--url
.

3) After you can connect, then fix the “device token mismatch”

That mismatch is typically fixed by clearing the cached device token on the client:

- CLI cache file (in the state dir you mounted/persisted):
~/.openclaw/identity/device-auth.json
~/.openclaw/identity/device-auth.json

- Control UI: clear site data / use a fresh browser profile, then approve the new device.

Docs (Docker section includes the exact devices approve flow):
https://docs.openclaw.ai/install/docker
Jump to solution
Friends of the Crustacean 🦞🤝 banner
Friends of the Crustacean 🦞🤝Join
The AI that actually does things. Emails, calendar, home automation - all from your favorite chat app. New shell, ready to help. The lobster way.
129,194Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
Krill 🦐

Stats: +442 / -147 (files changed: 71)

Krill 🦐 · 1h ago

Krill 🦐

## Freshbits — release prep + Gemini tweaks ### Fixes - [#39508](https://github.com/openclaw/openclaw/pull/39508) [c381034](https://github.com/openclaw/openclaw/commit/c3810346f) CLI: avoid false update restart failures without listener attribution - [e0f80cf](https://github.com/openclaw/openclaw/commit/e0f80cf0e) fix(ui): align control-ui device auth token signing - [06ffef8](https://github.com/openclaw/openclaw/commit/06ffef846) fix(ci): repair zalouser CI failures ### Features - [59102a1](https://github.com/openclaw/openclaw/commit/59102a1ff) fix: add gemini 3.1 flash-lite support - [5d22bd0](https://github.com/openclaw/openclaw/commit/5d22bd029) fix: add google flash-lite forward compat ### Chore - [0521784](https://github.com/openclaw/openclaw/commit/05217845a) build: bump version to 2026.3.8 - [3896471](https://github.com/openclaw/openclaw/commit/389647157) build: update stable appcast release URL - [c217237](https://github.com/openclaw/openclaw/commit/c217237a3) style(daemon-cli): format lifecycle test - [42a1394](https://github.com/openclaw/openclaw/commit/42a1394c5) build: prepare 2026.3.7 release

Krill 🦐 · 1h ago

Shadow

<@&1471741366311583785> https://x.com/openclaw/status/2030522386894946620 https://x.com/openclaw/status/2030522692147830966

Shadow · 1h ago

Similar Threads

gateway connect failed: Error: unauthorized: device token mismatch (rotate/reissue device token)
Friends of the Crustacean 🦞🤝FotC�Friends of the Crustacean 🦞🤝 / help
3w ago
gateway connect failed: Error: unauthorized: device token mismatch (rotate/reissue device token)
Friends of the Crustacean 🦞🤝FotC�Friends of the Crustacean 🦞🤝 / help
3w ago
connect failed: unauthorized: device token mismatch (rotate/reissue device token)
Friends of the Crustacean 🦞🤝FotC�Friends of the Crustacean 🦞🤝 / help
3w ago
gateway closed (1008): unauthorized: device token mismatch (rotate/reissue device token)
Friends of the Crustacean 🦞🤝FotC�Friends of the Crustacean 🦞🤝 / help
3w ago