notifier-openclaw plugin is functional โ once configured, AO and OpenClaw talk to each other fine. But getting to that point is painful. Users struggle through manual dependency checks, hand-editing config files, guessing gateway URLs, and configuring API keys one by one.| Aspect | Status | Problem |
|---|---|---|
| notifier-openclaw plugin | โ Works | Sends notifications, session events โ functional once wired up |
| System dependency detection | โ Missing | AO assumes git, node, npm, tmux are installed. Fails with cryptic errors if they're not. |
| Plugin installation | ~ Manual | Requires multiple manual steps โ no one-command setup |
| API key configuration | ~ Manual | Users hand-edit config files. No validation, no guided flow. |
| OpenClaw discovery | โ Missing | AO doesn't auto-detect if OpenClaw is running on the same machine. User must manually enter gateway URL and port. |
| Connection validation | โ Missing | No way to verify the connection works until you trigger a real event and check if it arrived. |
| Error messages | โ Poor | Missing dependencies produce stack traces, not actionable guidance. |
ao start โ "Error: tmux not found" (raw error) โ Google it โ install tmux โ try again โ "Error: OPENCLAW_API_ENDPOINT not set" โ find docs โ hand-edit config โ wrong port โ try 3 times โ finally works. This should be a 30-second wizard.ao plugin install notifier-openclaw handles everythingao setup openclaw walks through API key config, webhook setup, notification preferencesao start โ check node (โฅ18), npm, git (โฅ2.30), tmux versions on startup. Warn with install instructions if missing, don't just crash.ao setup openclaw wizard โ interactive CLI flow: detect OpenClaw gateway โ verify connection โ configure API keys โ set notification preferences โ validate end-to-end~/.openclaw/ config directory, read gateway URL from OpenClaw's own config if present| Source | Relevance |
|---|---|
notifier-openclaw pluginsource | ~170 lines. Posts to /hooks/agent with per-session key hook:ao:<sessionId>. Needs: url (default localhost:18789), token (env OPENCLAW_HOOKS_TOKEN), name, wakeMode. Has retry with exponential backoff. |
| OpenClaw hooks config | Requires in openclaw.json: hooks.enabled: true, hooks.token, hooks.allowRequestSessionKey: true, hooks.allowedSessionKeyPrefixes: ["hook:"]. Currently not configured on this machine. |
| OpenClaw gateway | Runs on port 18789 (not 3100). Config at ~/.openclaw/openclaw.json. The /hooks/agent endpoint returns 200 but hooks are not enabled in config. |
packages/cli/src/commands/ | Where ao setup and ao doctor commands will live. 16 commands currently. |
| Homebrew doctor | Good UX reference for dependency checking. Clear โ/โ output with fix instructions. |
POST /hooks/agent with JSON payload: message, name, sessionKey, wakeMode, deliverhook:ao:session-abc-123[AO URGENT], [AO ACTION], [AO WARNING], [AO INFO]notify (simple), notifyWithActions (with action buttons), post (raw message)http://127.0.0.1:18789/hooks/agentAdd to ao start (and new ao doctor command). Check for required binaries and versions:
$ ao doctor
System Dependencies:
โ git 2.43.0 (required โฅ2.30)
โ node 22.12.0 (required โฅ18)
โ npm 10.9.0
โ tmux โ not found
โ Install: brew install tmux (macOS)
โ Install: sudo apt install tmux (Ubuntu/Debian)
Agent CLIs:
โ claude 1.0.12
โ codex 0.1.5
โ aider โ not found (optional)
OpenClaw:
โ Gateway detected on localhost:18789
โ notifier-openclaw not configured
โ Run: ao setup openclaw
On ao start, only block on required deps. Warn (don't block) on optional ones.
Before asking the user anything, try to find OpenClaw automatically:
~/.openclaw/ directory exists~/.openclaw/config.json (or equivalent) for gateway URL/portlocalhost:18789 (default port) with a health check requestopenclaw binary is in PATHIf found: pre-fill all connection details. If not found: ask user if they have OpenClaw installed elsewhere.
ao setup openclaw WizardInteractive CLI wizard using prompts (inquirer-style):
$ ao setup openclaw
๐ Detecting OpenClaw...
โ Found OpenClaw gateway at localhost:18789
๐ Configuration:
Gateway URL: http://localhost:18789 (auto-detected)
? Change URL? (Y/n) n
๐ API Keys:
โ ANTHROPIC_API_KEY found in OpenClaw config
โ GITHUB_TOKEN found in environment
? OPENAI_API_KEY not found. Enter key (or skip): sk-...
๐ Notification Preferences:
? Notify on session complete? (Y/n) Y
? Notify on session failure? (Y/n) Y
? Notify on PR created? (Y/n) Y
๐งช Testing connection...
โ Sent test notification
โ OpenClaw received it
โ
Setup complete! AO โ OpenClaw connected.
Make ao plugin install notifier-openclaw do everything:
One command, zero manual config editing.
Replace every raw error with an actionable message. Examples:
| Before (current) | After |
|---|---|
Error: spawn tmux ENOENT | tmux is required but not installed.\n Install: brew install tmux (macOS) | sudo apt install tmux (Linux)\n Then retry: ao start |
Error: ECONNREFUSED 127.0.0.1:3100 | Can't reach OpenClaw gateway at localhost:18789.\n Is OpenClaw running? Check: openclaw gateway status\n Different port? Set: ao config set openclaw.url http://localhost:XXXX |
TypeError: Cannot read property 'token' of undefined | GitHub token not configured.\n Set it: ao config set github.token YOUR_TOKEN\n Or run: ao setup openclaw (reads from OpenClaw config) |
AO should check for API keys in this order:
# Key resolution order:
# 1. Environment variables (ANTHROPIC_API_KEY, GITHUB_TOKEN)
# 2. AO config (~/.agent-orchestrator/config.json)
# 3. OpenClaw config (~/.openclaw/keys.json) โ NEW
# 4. ao setup wizard (prompts user)
If OpenClaw already has keys configured, AO just reads them. Zero duplication.
Add to ao doctor and run periodically in background:
If connection drops during a session, warn in dashboard (not crash).
ao doctor shows clear dependency status with platform-specific install instructionsao setup openclaw completes full setup in under 60 seconds on a machine with OpenClaw runningao plugin install notifier-openclaw handles install + config + validation in one command