/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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agent-wake - 安装完成后,直接呼叫该 Skill 的名称或使用
/agent-wake触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 445 次。
如何安装 agent-wake?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-wake」即可一键安装,无需额外配置。
agent-wake 是免费的吗?
是的,agent-wake 完全免费(开源免费),可自由下载、安装和使用。
agent-wake 支持哪些平台?
agent-wake 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 agent-wake?
由 krisco65(@krisco65)开发并维护,当前版本 v1.0.1。