/install agent-wake
agent-wake
Wake your OpenClaw agent from any external process using the gateway HTTP API.
How it works
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.
Quick start
python agent-wake.py "Task finished -- brief summary" "YOUR_DISCORD_CHANNEL_ID"
Setup (one-time)
See references/setup.md for:
- Enabling the
crontool over HTTP (required -- blocked by default) - Setting
GATEWAY_TOKEN - Finding your Discord channel ID
Usage patterns
End of a Claude Code CLI task
Add to the task prompt:
When done, run: python "/path/to/agent-wake.py" "Task done -- summary here" "CHANNEL_ID"
From any Python script
import subprocess
subprocess.run([
"python", "/path/to/agent-wake.py",
"Price alert triggered -- AAPL crossed $200",
"1475232925724315740"
])
Standalone (wake main session)
python agent-wake.py "Backup completed successfully"
Omit channel ID to wake the main session (response goes to default channel).
What the agent receives
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...
Script location
scripts/agent-wake.py -- copy this wherever your tasks run. No dependencies beyond Python stdlib.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install agent-wake - After installation, invoke the skill by name or use
/agent-wake - Provide required inputs per the skill's parameter spec and get structured output
What is agent-wake?
Wake 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 445 downloads so far.
How do I install agent-wake?
Run "/install agent-wake" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is agent-wake free?
Yes, agent-wake is completely free (open-source). You can download, install and use it at no cost.
Which platforms does agent-wake support?
agent-wake is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created agent-wake?
It is built and maintained by krisco65 (@krisco65); the current version is v1.0.1.