openclaw - 💡(How to fix) Fix doctor reports gateway service entrypoint mismatch on macOS LaunchAgent in v2026.4.1 (entry.js vs index.js) [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#59391Fetched 2026-04-08 02:24:24
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
cross-referenced ×1

After upgrading to OpenClaw v2026.4.1 on macOS, openclaw doctor --non-interactive reports a gateway service entrypoint mismatch (entry.js vs index.js) while the macOS LaunchAgent still uses dist/entry.js and the gateway works normally.

This looks like a mismatch between what doctor expects and what the LaunchAgent generator/service setup actually writes.

Error Message

  • openclaw doctor --non-interactive reports a gateway service entrypoint mismatch
  • openclaw gateway status shows the gateway service is healthy and running
  • The LaunchAgent plist still points to dist/entry.js
  • The gateway continues to function normally

Root Cause

This makes it unclear whether the service is actually misconfigured or whether doctor is reporting a false positive, which can lead users to perform unnecessary manual service edits.

RAW_BUFFERClick to expand / collapse

Summary

After upgrading to OpenClaw v2026.4.1 on macOS, openclaw doctor --non-interactive reports a gateway service entrypoint mismatch (entry.js vs index.js) while the macOS LaunchAgent still uses dist/entry.js and the gateway works normally.

This looks like a mismatch between what doctor expects and what the LaunchAgent generator/service setup actually writes.

Environment

  • OpenClaw: v2026.4.1
  • OS: macOS
  • Service mode: LaunchAgent

Observed behavior

  • openclaw doctor --non-interactive reports a gateway service entrypoint mismatch
  • openclaw gateway status shows the gateway service is healthy and running
  • The LaunchAgent plist still points to dist/entry.js
  • The gateway continues to function normally

Expected behavior

Either:

  1. the generated LaunchAgent should use dist/index.js, or
  2. doctor should accept dist/entry.js if that is still intended/compatible on macOS in v2026.4.1.

Actual behavior

  • Service works correctly
  • doctor keeps reporting a mismatch
  • Manual alignment attempts do not appear to stick / are not the intended fix

Why this matters

This makes it unclear whether the service is actually misconfigured or whether doctor is reporting a false positive, which can lead users to perform unnecessary manual service edits.

Repro steps

  1. Upgrade OpenClaw to v2026.4.1
  2. Run openclaw doctor --non-interactive
  3. Run openclaw gateway status
  4. Inspect ~/Library/LaunchAgents/ai.openclaw.gateway.plist
  5. Observe that doctor expects dist/index.js while the LaunchAgent still uses dist/entry.js

Additional note

A separate openclaw security audit --deep warning about gateway.trusted_proxies_missing was also observed, but it seems unrelated and likely expected for loopback-only/local setups.

extent analysis

TL;DR

Update the LaunchAgent configuration to use dist/index.js as the entrypoint to align with the expectations of openclaw doctor.

Guidance

  • Verify the current LaunchAgent configuration by inspecting ~/Library/LaunchAgents/ai.openclaw.gateway.plist to confirm it points to dist/entry.js.
  • Update the ai.openclaw.gateway.plist file to change the entrypoint from dist/entry.js to dist/index.js to match the expectation of openclaw doctor.
  • After updating the LaunchAgent configuration, run openclaw doctor --non-interactive again to check if the gateway service entrypoint mismatch error is resolved.
  • If the issue persists, consider checking the OpenClaw documentation for any specific instructions on configuring the LaunchAgent for macOS in version v2026.4.1.

Example

No code snippet is provided as the issue is related to configuration and not code.

Notes

The solution assumes that dist/index.js is the correct entrypoint for the gateway service in OpenClaw v2026.4.1 on macOS. If this is not the case, further investigation into the OpenClaw documentation or support channels may be necessary.

Recommendation

Apply the workaround by updating the LaunchAgent configuration to use dist/index.js as this aligns with the expectations of openclaw doctor and should resolve the reported mismatch error.

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

Either:

  1. the generated LaunchAgent should use dist/index.js, or
  2. doctor should accept dist/entry.js if that is still intended/compatible on macOS in v2026.4.1.

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 doctor reports gateway service entrypoint mismatch on macOS LaunchAgent in v2026.4.1 (entry.js vs index.js) [1 participants]