Install
openclaw skills install agent-wakeWake an OpenClaw agent session from an external script or process. Use when a background task (Claude Code CLI, cron job, webhook, price alert, or any script...
openclaw skills install agent-wakeWake your OpenClaw agent from any external process using the gateway HTTP API.
scripts/agent-wake.py calls POST /tools/invoke with the cron tool, firing a wake event into the agent's session. The agent receives the event text as a system message and responds immediately in the correct channel.
python agent-wake.py "Task finished -- brief summary" "YOUR_DISCORD_CHANNEL_ID"
See references/setup.md for:
cron tool over HTTP (required -- blocked by default)GATEWAY_TOKENAdd to the task prompt:
When done, run: python "/path/to/agent-wake.py" "Task done -- summary here" "CHANNEL_ID"
import subprocess
subprocess.run([
"python", "/path/to/agent-wake.py",
"Price alert triggered -- AAPL crossed $200",
"1475232925724315740"
])
python agent-wake.py "Backup completed successfully"
Omit channel ID to wake the main session (response goes to default channel).
The event text is injected as a system message. Be specific -- the agent acts on what you write:
Build finished -- 3 errors fixed, tests passing. Send your response to Discord channel 1475232925724315740...
scripts/agent-wake.py -- copy this wherever your tasks run. No dependencies beyond Python stdlib.