Loading...
Loading...
Inter-instance communication for OpenClaw. Use this skill when you need to send messages, synchronize data, or execute commands remotely between multiple OpenClaw instances. It covers multiple methods such as agent-to-agent messaging, nodes.run remote execution, and file-level communication.
npx skill4agent add aaaaqwq/claude-code-skills openclaw-inter-instance// ~/.openclaw/openclaw.json
"tools": { "agentToAgent": { "enabled": true } }sessions_send(sessionKey="agent:<target-agent>:main", message="...")nodes statusnodes(action="run", node="<node-name>", command=["bash", "-c", "<command>"], commandTimeoutMs=30000)env -u HTTP_PROXY -u HTTPS_PROXYcommandTimeoutMs# Check if file exists
nodes run: ["bash", "-c", "ls ~/target-dir 2>/dev/null && echo EXISTS || echo NOT_FOUND"]
# Clone repository (note proxy issues)
nodes run: ["bash", "-c", "env -u HTTP_PROXY -u HTTPS_PROXY git clone https://github.com/user/repo.git ~/repo 2>&1"]
# Create symbolic link
nodes run: ["bash", "-c", "ln -sfn /source/path /target/path && readlink /target/path"]openclaw agent --session-id <session-id> -m '<message>' --json# Write to remote memory file via nodes.run
cat >> <workspace>/memory/YYYY-MM-DD.md << 'EOF'
## Notification from Xiaoa (HH:MM)
<Message content>
EOFmessage| Method | Reason |
|---|---|
| Telegram bot → bot | Prohibited by Telegram API |
| curl calling remote gateway REST API | Gateway does not expose REST messaging interface |
| sessions_send without agentToAgent enabled | Returns forbidden |
nodes statusXiaoa (Linux VPS) Xiaom (Mac-Mini)
├── OpenClaw gateway ├── OpenClaw gateway
├── ~/AGI-Super-Skills (git repo) ├── ~/AGI-Super-Skills (git clone)
├── ~/clawd/skills/ (workspace) ├── ~/.openclaw/workspace/skills → ~/AGI-Super-Skills/skills
│ │
├── nodes.run ──────────────────── ├── paired node (connected)
└── sessions_send ─────────────── └── agent-to-agent (requires enabling)