Skip to content

Comments

feat: v0.9.5 — always-on proxy-router with launchd auto-restart#11

Merged
DavidAJohnston merged 1 commit intomainfrom
feat/v0.9.5-always-on-router
Feb 15, 2026
Merged

feat: v0.9.5 — always-on proxy-router with launchd auto-restart#11
DavidAJohnston merged 1 commit intomainfrom
feat/v0.9.5-always-on-router

Conversation

@profbernardoj
Copy link
Contributor

What

Always-on Morpheus proxy-router via launchd KeepAlive service.

Why

The proxy-router (Go binary, port 8082) had no auto-restart mechanism. When it died (terminated signal from MorpheusUI conflict on Feb 9), the JS proxy (8083) kept running but couldn't open blockchain sessions → all Morpheus requests returned 502 → OpenClaw put Morpheus in cooldown → agent went completely offline whenever Venice DIEM credits were exhausted.

Fix

  • mor-launch-headless.sh: launchd-compatible launcher with 1Password key injection (macOS Keychain fallback)
  • com.morpheus.router.plist: KeepAlive service template — macOS restarts the router within 30 seconds if it dies
  • Three launchd services now form a resilient stack: router (8082) → proxy (8083) → guardian

Testing

  • Killed router process → launchd restarted it in ~5 seconds
  • Full inference chain verified: proxy → router → Morpheus P2P → Kimi K2.5 ✅
  • Venice DIEM exhaustion now correctly falls through to working Morpheus endpoint

Checklist

  • Tests pass (shellcheck + syntax)
  • Documentation updated (README + website architecture diagram)
  • Verified on running system (Mac mini, macOS 15.3)

Root cause of Morpheus fallback failure: the proxy-router (Go binary,
port 8082) had no launchd KeepAlive service. When it died, the JS proxy
(8083) couldn't open blockchain sessions → 502 errors → OpenClaw cooldown
→ agent offline whenever Venice DIEM exhausted.

New files:
- scripts/mor-launch-headless.sh: launchd-compatible router launcher
  with 1Password key injection (falls back to macOS Keychain)
- templates/com.morpheus.router.plist: KeepAlive launchd service

Updated:
- README.md: added Always-On Router to architecture diagram
- docs/index.html: added Always-On Router to website architecture
@DavidAJohnston DavidAJohnston merged commit 8a9bbb2 into main Feb 15, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants