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 (iMessage, WhatsApp, Telegram,…
Deemo
@deemoartisan
Install
$ openclaw skills install @deemoartisan/gateway-notifyGateway Notify
Send a notification (with user confirmation) when the OpenClaw gateway starts up.
What It Does
Creates a hook that triggers on gateway:startup events and sends a minimal notification (startup timestamp only) to the user's preferred channel.
Privacy notice: This hook auto-runs on every gateway startup and sends a message to your chosen messaging channel. Only the startup timestamp is transmitted — no local configuration, model names, or network details leave your machine.
Quick Start
⚠️ Before running setup, confirm with the user:
- The setup script will execute shell commands and write files under
~/.openclaw/hooks/.- It will restart the gateway — this will briefly disconnect the current session (requires manual reconnect if auto-reconnect is unavailable).
- On every subsequent gateway startup, a notification will be sent automatically to the specified messaging channel. Only the startup timestamp is transmitted — no model names, API keys, or local paths leave your machine. Note: the message passes through the third-party channel's servers, which may log message metadata (send time, sender).
- To uninstall: run
scripts/uninstall_gateway_notify.shor delete~/.openclaw/hooks/gateway-restart-notify/and restart the gateway. Deleting the skill alone does NOT stop the hook.Ask the user to confirm they accept these actions before proceeding.
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 (requires user confirmation before execution):
- Create the hook directory at
~/.openclaw/hooks/gateway-restart-notify - Generate the handler with the specified channel configuration (with security hardening)
- Restart the gateway to activate — this will briefly disconnect the current session (OpenClaw 2026.7+ auto-loads hooks, no explicit enable needed)
How It Works
The hook uses OpenClaw's internal hook system:
- Listens for
gateway:startupevents - Collects gateway startup time
- Sends notification via the configured channel CLI
Supported Channels
See CHANNELS.md for channel-specific CLI commands and address formats.
Requirements
- OpenClaw gateway 2026.7+
python3in$PATH(used for safe JSON serialization during setup)- Channel CLI tool installed:
imsg(iMessage),wacli(WhatsApp), oropenclaw message(Telegram/Discord/Slack)
Supported Channels
| Channel | CLI | Address format |
|---|---|---|
imessage | imsg | Email or phone (e.g. user@icloud.com, +8615900000000) |
whatsapp | wacli | Phone with country code (e.g. +1234567890) |
telegram | openclaw message | Chat ID or @username |
discord | openclaw message | Channel ID (e.g. 1234567890) |
slack | openclaw message | Channel name or ID (e.g. #general) |
Script Flags
| Flag | Effect |
|---|---|
--force | Skip the "overwrite existing hook?" prompt only |
--yes | Skip the privacy confirmation prompt (for CI/automation) |
Note: --force does not skip the privacy confirmation. Use --force --yes together for fully non-interactive setup.
Debugging Notifications
If notifications stop arriving, check the gateway log for [gateway-restart-notify] entries:
openclaw gateway logs | grep gateway-restart-notify
Notification failures are caught silently (to avoid blocking gateway startup) — the gateway log is the authoritative source for hook execution errors.
Manual Setup
If you need to customize the hook, see MANUAL.md for step-by-step instructions.
Top skills in this category
Humanizer
@biostartechnologyRemove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
Slack
@steipeteUse when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
PollyReach
@pollyreachPollyReach gives every AI agent a phone number and the ability to get things done over the phone — finding contacts, making calls, and completing tasks. Just...
imap-smtp-email
@gzlicanyiRead and send email via IMAP/SMTP. Check for new/unread messages, fetch content, search mailboxes, mark as read/unread, and send emails with attachments. Supports multiple accounts. Works with any IMAP/SMTP server including Gmail, Outlook, 163.com, vip.163.com, 126.com, vip.126.com, 188.com, and vip
Answer Overflow
@rhyssullivanSearch indexed Discord community discussions via Answer Overflow. Find solutions to coding problems, library issues, and community Q&A that only exist in Discord conversations.