# Send LuLu Monitor to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "lulu-monitor",
    "name": "LuLu Monitor",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/EasonC13/lulu-monitor",
    "canonicalUrl": "https://clawhub.ai/EasonC13/lulu-monitor",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/lulu-monitor",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lulu-monitor",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/check-prerequisites.sh",
      "scripts/configure.sh",
      "scripts/install.sh",
      "scripts/uninstall.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/lulu-monitor"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/lulu-monitor",
    "downloadUrl": "https://openagent3.xyz/downloads/lulu-monitor",
    "agentUrl": "https://openagent3.xyz/skills/lulu-monitor/agent",
    "manifestUrl": "https://openagent3.xyz/skills/lulu-monitor/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/lulu-monitor/agent.md"
  }
}
```
## Documentation

### LuLu Monitor

AI-powered companion for LuLu Firewall on macOS.

### What It Does

Monitors LuLu firewall alert popups
Extracts connection info (process, IP, port, DNS)
Spawns a fast AI (haiku) to analyze the connection
Sends Telegram notification with risk assessment
Provides 4 action buttons: Always Allow, Allow Once, Always Block, Block Once
Executes the action on LuLu when user taps a button

### Auto-Execute Mode (Optional)

For reduced interruptions, enable auto-execute mode. When the AI has high confidence (known safe programs like curl, brew, node, git connecting to normal destinations), it will:

Automatically execute the Allow action
Still send a Telegram notification explaining what was auto-allowed

To enable:

# Create config.json in install directory
cat > ~/.openclaw/lulu-monitor/config.json << 'EOF'
{
  "telegramId": "YOUR_TELEGRAM_ID",
  "autoExecute": true,
  "autoExecuteAction": "allow-once"
}
EOF

Options:

autoExecute: false (default) - all alerts require manual button press
autoExecuteAction: "allow-once" (default, conservative) or "allow" (permanent rule)

### Prerequisites

Run the check script first:

bash scripts/check-prerequisites.sh

Required:

LuLu Firewall: brew install --cask lulu
Node.js: brew install node
OpenClaw Gateway: Running with Telegram channel configured
Accessibility Permission: System Settings > Privacy > Accessibility > Enable Terminal/osascript

### Gateway Configuration (Required)

The monitor calls sessions_spawn via OpenClaw's /tools/invoke HTTP API. This tool is blocked by default. Add it to the allowlist in ~/.openclaw/openclaw.json:

{
  "gateway": {
    "tools": {
      "allow": ["sessions_spawn"]
    }
  }
}

Without this, alerts will be detected but fail to forward (404 in logs).

### Install

bash scripts/install.sh

This will:

Clone the repo to ~/.openclaw/lulu-monitor/
Install npm dependencies
Set up launchd for auto-start
Start the service

### Verify

curl http://127.0.0.1:4441/status

Should return {"running":true,...}

### Sending Alerts with Inline Buttons

⚠️ The message tool's buttons/components parameter does NOT work for Telegram inline buttons. You must use the CLI via exec:

openclaw message send --channel telegram --target <chat_id> \\
  --message "🔔 LuLu Alert: <summary>" \\
  --buttons '[[{"text":"✅ Always Allow","callback_data":"lulu:allow"},{"text":"✅ Allow Once","callback_data":"lulu:allow-once"}],[{"text":"❌ Always Block","callback_data":"lulu:block"},{"text":"❌ Block Once","callback_data":"lulu:block-once"}]]'

After sending via CLI, reply with NO_REPLY to avoid duplicate messages.

### Handling Callbacks

When user clicks a Telegram button, OpenClaw receives a callback like:

callback_data: lulu:allow
callback_data: lulu:allow-once
callback_data: lulu:block
callback_data: lulu:block-once

To handle it, call the local endpoint:

curl -X POST http://127.0.0.1:4441/callback \\
  -H "Content-Type: application/json" \\
  -d '{"action":"allow"}'  # or "block", "allow-once", "block-once"

This will:

Click the appropriate button on LuLu alert
Set Rule Scope to "endpoint"
Set Rule Duration to "Always" or "Process lifetime"
Edit the Telegram message to show result

### Service not running

# Check status
launchctl list | grep lulu-monitor

# View logs
tail -f ~/.openclaw/lulu-monitor/logs/stdout.log

# Restart
launchctl unload ~/Library/LaunchAgents/com.openclaw.lulu-monitor.plist
launchctl load ~/Library/LaunchAgents/com.openclaw.lulu-monitor.plist

### Accessibility permission issues

AppleScript needs permission to control LuLu. Go to:
System Settings > Privacy & Security > Accessibility
Enable: Terminal, iTerm, or whatever terminal you use

### Alert not detected

Ensure LuLu is running: pgrep -x LuLu
Check if alert window exists: osascript -e 'tell application "System Events" to tell process "LuLu" to get every window'

### Uninstall

bash ~/.openclaw/lulu-monitor/skill/scripts/uninstall.sh
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: EasonC13
- Version: 2.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/lulu-monitor)
- [Send to Agent page](https://openagent3.xyz/skills/lulu-monitor/agent)
- [JSON manifest](https://openagent3.xyz/skills/lulu-monitor/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/lulu-monitor/agent.md)
- [Download page](https://openagent3.xyz/downloads/lulu-monitor)