openclaw - 💡(How to fix) Fix macOS app: schema unavailable; cannot authenticate to local Docker gateway (token mismatch) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

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#62422Fetched 2026-04-08 03:04:28
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Participants

OpenClaw macOS app cannot configure/connect to a local Docker gateway. In the app’s config section it shows Schema unavailable / No config selection available. Gateway logs show repeated handshake failures with unauthorized: gateway token mismatch.

Root Cause

Impact

Prevents using macOS node features (Reminders/Notes/iMessage/Peekaboo) with a local Docker gateway because the app cannot be configured/paired reliably.

Fix Action

Fix / Workaround

Workarounds tried

  • Restarted Docker gateway; port is reachable and gateway is healthy.
  • Re-adding gateway still results in token mismatch and schema unavailable.

Code Example

[ws] unauthorized ... reason=token_mismatch client=... ui v2026.4.5
[ws] closed before connect ... code=1008 reason=unauthorized: gateway token mismatch (provide gateway auth token)
RAW_BUFFERClick to expand / collapse

Summary

OpenClaw macOS app cannot configure/connect to a local Docker gateway. In the app’s config section it shows Schema unavailable / No config selection available. Gateway logs show repeated handshake failures with unauthorized: gateway token mismatch.

Environment

  • macOS: Darwin 24.6.0
  • OpenClaw macOS app: v2026.4.5 (user-agent shows OpenClaw/2026040501 CFNetwork/3826.600.41 Darwin/24.6.0)
  • Gateway: Docker container image ghcr.io/openclaw/openclaw:latest
  • Gateway URL attempted in macOS app: ws://127.0.0.1:18789
  • Gateway auth: token mode (configured via OPENCLAW_GATEWAY_TOKEN env)

Steps to reproduce

  1. Run OpenClaw gateway in Docker with token auth and publish port 18789.
  2. Open OpenClaw macOS app (menu bar app).
  3. Add/configure a gateway with URL ws://127.0.0.1:18789.
  4. Navigate to the config area where schema/config selection should appear.

Expected

  • macOS app authenticates to the gateway and downloads schema/config choices.
  • Config selection becomes available.

Actual

  • macOS app displays Schema unavailable / No config selection available.
  • Gateway logs show handshake closes with token mismatch.

Logs (gateway)

The gateway repeatedly logs lines like:

[ws] unauthorized ... reason=token_mismatch client=... ui v2026.4.5
[ws] closed before connect ... code=1008 reason=unauthorized: gateway token mismatch (provide gateway auth token)

(Token value not included.)

Notes

This appears to be either:

  • the macOS app not persisting/updating the gateway token when edited,
  • the app using a stale token from prior config/keychain,
  • or the UI flow expecting a different credential format (setup code vs token), leaving the gateway unauthenticated, which prevents schema download.

Workarounds tried

  • Restarted Docker gateway; port is reachable and gateway is healthy.
  • Re-adding gateway still results in token mismatch and schema unavailable.

Impact

Prevents using macOS node features (Reminders/Notes/iMessage/Peekaboo) with a local Docker gateway because the app cannot be configured/paired reliably.

extent analysis

TL;DR

The most likely fix is to ensure the OpenClaw macOS app is using the correct and updated gateway token for authentication.

Guidance

  • Verify that the OPENCLAW_GATEWAY_TOKEN environment variable is correctly set in the Docker container and matches the token expected by the OpenClaw macOS app.
  • Check the app's configuration and keychain for any stale or outdated tokens that might be causing the mismatch.
  • Attempt to manually update or refresh the gateway token in the app's configuration to see if it resolves the issue.
  • Review the app's UI flow for setting up gateway authentication to ensure it aligns with the expected credential format (setup code vs token).

Example

No specific code example is provided due to the lack of direct code references in the issue, but ensuring token consistency across the app and gateway configurations is crucial.

Notes

The exact solution may depend on how the OpenClaw macOS app handles token storage and updates, which is not explicitly detailed in the issue. Therefore, focusing on token consistency and authentication flow is the safest approach.

Recommendation

Apply workaround: Ensure the gateway token is correctly set and updated in both the Docker container and the OpenClaw macOS app to resolve the authentication issue. This approach is recommended because it directly addresses the reported "token mismatch" error without requiring additional dependencies or upgrades.

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING