🤖
gateway-notify
Set up automatic notifications when OpenClaw gateway restarts. Use when user wants to be notified of gateway startup events via any messaging channel (iMessa...
安全通过
技能说明
name: gateway-notify description: "Set up automatic notifications when OpenClaw gateway restarts. Use when user wants to be notified of gateway startup events via any messaging channel (iMessage, WhatsApp, Telegram, Discord, etc.)."
Gateway Notify
Automatically send notifications when the OpenClaw gateway starts up.
What It Does
Creates a hook that triggers on gateway:startup events and sends a notification message to the user's preferred channel with gateway status information.
Quick Start
Run the setup script with the user's messaging channel and address:
scripts/setup_gateway_notify.sh <channel> <address>
Examples:
scripts/setup_gateway_notify.sh imessage user@example.com
scripts/setup_gateway_notify.sh whatsapp +1234567890
scripts/setup_gateway_notify.sh telegram @username
The script will:
- Create the hook directory at
~/.openclaw/hooks/gateway-restart-notify - Generate the handler with the specified channel configuration
- Enable the hook in OpenClaw config
- Restart the gateway to activate
How It Works
The hook uses OpenClaw's internal hook system:
- Listens for
gateway:startupevents - Collects gateway status (model, time, port)
- Sends notification via the configured channel CLI
Supported Channels
See CHANNELS.md for channel-specific CLI commands and address formats.
Manual Setup
If you need to customize the hook, see MANUAL.md for step-by-step instructions.
如何使用「gateway-notify」?
- 打开小龙虾AI(Web 或 iOS App)
- 点击上方「立即使用」按钮,或在对话框中输入任务描述
- 小龙虾AI 会自动匹配并调用「gateway-notify」技能完成任务
- 结果即时呈现,支持继续对话优化