openclaw - 💡(How to fix) Fix [Bug]: Canvas returns 401 Unauthorized on Windows despite correct token (v2026.4.5) [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#62546Fetched 2026-04-08 03:02:43
View on GitHub
Comments
1
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×2commented ×1

Running OpenClaw v2026.4.5 (3e72c03) on Windows 11. The gateway starts successfully and reports auth=token, but the canvas UI at http://127.0.0.1:18789/__openclaw__/canvas/ always returns {"error":{"message":"Unauthorized","type":"unauthorized"}} regardless of what token configuration is used.

Error Message

Running OpenClaw v2026.4.5 (3e72c03) on Windows 11. The gateway starts successfully and reports auth=token, but the canvas UI at http://127.0.0.1:18789/__openclaw__/canvas/ always returns {"error":{"message":"Unauthorized","type":"unauthorized"}} regardless of what token configuration is used. {"error":{"message":"Unauthorized","type":"unauthorized"}} returned for all canvas requests despite valid token Browser returns: {"error":{"message":"Unauthorized","type":"unauthorized"}}

Root Cause

Running OpenClaw v2026.4.5 (3e72c03) on Windows 11. The gateway starts successfully and reports auth=token, but the canvas UI at http://127.0.0.1:18789/__openclaw__/canvas/ always returns {"error":{"message":"Unauthorized","type":"unauthorized"}} regardless of what token configuration is used.

Code Example

Gateway logs show: auth mode=token, gateway ready (5 plugins)
Browser returns: {"error":{"message":"Unauthorized","type":"unauthorized"}}
Tried: auth.mode=none, custom token, doctor --generate-gateway-token
All attempts return 401. Gateway running on Windows 11 with Node.js v24.14.1
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Running OpenClaw v2026.4.5 (3e72c03) on Windows 11. The gateway starts successfully and reports auth=token, but the canvas UI at http://127.0.0.1:18789/__openclaw__/canvas/ always returns {"error":{"message":"Unauthorized","type":"unauthorized"}} regardless of what token configuration is used.

Steps to reproduce

  1. Install OpenClaw on Windows 11
  2. Run openclaw gateway
  3. Open http://127.0.0.1:18789/__openclaw__/canvas/?token=<valid_token> in browser
  4. Returns 401 Unauthorized

Expected behavior

Canvas UI loads and displays the OpenClaw interface

Actual behavior

{"error":{"message":"Unauthorized","type":"unauthorized"}} returned for all canvas requests despite valid token

OpenClaw version

2026.4.5 (3e72c03)

Operating system

Windows 11

Install method

No response

Model

anthropic/claude-sonnet-4-6

Provider / routing chain

openclaw -> anthropic direct API

Additional provider/model setup details

Using Anthropic API key directly. No proxy or routing chain.

Logs, screenshots, and evidence

Gateway logs show: auth mode=token, gateway ready (5 plugins)
Browser returns: {"error":{"message":"Unauthorized","type":"unauthorized"}}
Tried: auth.mode=none, custom token, doctor --generate-gateway-token
All attempts return 401. Gateway running on Windows 11 with Node.js v24.14.1

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

  • Verify the token configuration and authentication mode in the OpenClaw gateway settings to ensure proper token validation.

Guidance

  • Check the OpenClaw documentation for the correct token format and authentication mode configuration to ensure compatibility with the Anthropic API.
  • Verify that the token is being passed correctly in the URL parameter token when accessing the canvas UI.
  • Test the authentication mode none to isolate if the issue is token-specific or a broader authentication problem.
  • Review the gateway logs for any authentication-related errors or warnings that could indicate a configuration issue.

Example

  • No specific code snippet can be provided without more details on the token configuration and authentication setup.

Notes

  • The issue might be related to a change in the token validation logic in OpenClaw version 2026.4.5 or an incompatibility with the Anthropic API.
  • Further investigation into the gateway logs and the Anthropic API documentation may be necessary to resolve the issue.

Recommendation

  • Apply workaround: Temporarily switch to authentication mode none to test if the issue is specific to token authentication, and then revisit the token configuration and validation logic.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Canvas UI loads and displays the OpenClaw interface

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: Canvas returns 401 Unauthorized on Windows despite correct token (v2026.4.5) [1 comments, 1 participants]