Agent skill
openclaw-relay
Relay prompts or posts through OpenClaw sessions. One skill; two transports: direct local acpx or remote acpx over SSH.
Install this agent skill to your Project
npx add-skill https://github.com/steipete/agent-scripts/tree/main/skills/openclaw-relay
SKILL.md
OpenClaw Relay
Use this when the job is:
- "talk to Molty"
- "relay this into an OpenClaw channel session"
- "use acpx"
- "send this through the gateway via acp"
- "work through a remote OpenClaw bridge over SSH"
One skill. Two transports:
localssh
Default to local for direct telephone-game work from the current OpenClaw checkout. Use ssh when the target agent/session lives on another machine.
Script path: scripts/openclaw_relay.py
Target aliases file: config/session_aliases.json
Mode Selection
Choose local when:
- the user explicitly says
acpx - the target session is on the current machine
- the goal is quick relay or private ask
Choose ssh when:
- the target agent/session lives on another host
- you want a persistent bridge session
- you need async queue/wait/show flows on a remote machine
Defaults
The script avoids baked-in personal paths. Override with env or flags when needed.
- transport:
local - local repo cwd: current working directory
- local acpx repo:
<cwd>/extensions/acpx - ssh host:
mac-studio - remote repo cwd:
<remote-home>/clawdbot - remote acpx repo:
<remote-home>/Projects/oss/acpx - gateway token file:
<home>/.openclaw/gateway.token - control session name:
codex-bridge - target aliases file:
config/session_aliases.json
Useful env vars:
OPENCLAW_RELAY_TRANSPORTOPENCLAW_RELAY_HOSTOPENCLAW_RELAY_CWDOPENCLAW_RELAY_ACPX_REPOOPENCLAW_RELAY_GATEWAY_URLOPENCLAW_RELAY_GATEWAY_TOKEN_FILEOPENCLAW_RELAY_SESSIONOPENCLAW_RELAY_TARGETS_FILE
Quick Start
Health check:
python3 scripts/openclaw_relay.py doctor
List known target aliases:
python3 scripts/openclaw_relay.py targets
Resolve a target alias:
python3 scripts/openclaw_relay.py resolve --target maintainers
Ask a target session a question privately:
python3 scripts/openclaw_relay.py ask \
--target maintainers \
--message "Summarize the current vibe in this channel."
Force-send text to the resolved target:
python3 scripts/openclaw_relay.py force-send \
--target maintainers \
--text "Deploy is done."
Use the persistent control session:
python3 scripts/openclaw_relay.py ensure
python3 scripts/openclaw_relay.py send --message "Reply with exactly OK."
python3 scripts/openclaw_relay.py show
Remote host example:
python3 scripts/openclaw_relay.py doctor --transport ssh --host mac-studio
python3 scripts/openclaw_relay.py send \
--transport ssh \
--host mac-studio \
--message "Reply with exactly OK."
Async Workflow
Queue work and poll the same control session:
python3 scripts/openclaw_relay.py start --message "Work on X and reply when done."
python3 scripts/openclaw_relay.py wait --after-seq <last-seq>
python3 scripts/openclaw_relay.py show
Target Aliases
config/session_aliases.json ships with placeholders. Replace them with real values for your setup.
Example shape:
{
"main": "agent:<agentId>:main",
"maintainers": "agent:<agentId>:discord:channel:<channelId>"
}
Session Rules
Use these rules when choosing a command:
- Want a private reply from a specific session:
ask - Want the target session to decide whether to post:
publish - Want a guaranteed direct post:
force-send - Want blocking continuity with the control brain:
send - Want fire-and-forget async:
start, thenwaitandshow - Want to stop queued work:
cancel
Failure Handling
If relay work fails:
- Run
doctor. - Run
status. - Run
show. - If the control session is wedged, run
cancel, thenensure, then retry.
If route discovery is uncertain:
- Resolve the target first.
- Prefer alias or exact session key.
- Use a tiny probe ask before sending the real payload.
Output Relay
Return the actual assistant text or delivery result, not shell noise.
For relay tasks, report:
- transport used
- target session key
- whether the route probe/resolve succeeded
- final posted or returned result
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
brave-search
Web search and content extraction via Brave Search API. Use for searching documentation, facts, or any web content. Lightweight, no browser required.
xurl
Use the official xurl CLI for the X API. Covers install, safe auth setup, app selection, common shortcuts, and raw endpoint access.
discord-clawd
Query Peter's local Discord archive in ~/.discrawl/discrawl.db when asked about Discord history, channel activity, top posters, message counts, summaries, or anything in synced Discord data. Use this skill for local search, SQL stats, channel/member lookups, and freshness checks before answering recent or latest Discord questions.
nano-banana-pro
Generate/edit images with Nano Banana Pro (Gemini 3 Pro Image). Use for image create/modify requests incl. edits. Supports text-to-image + image-to-image; 1K/2K/4K; use --input-image.
domain-dns-ops
Domain/DNS ops across Cloudflare, DNSimple, Namecheap for Peter. Use for onboarding zones to Cloudflare, flipping nameservers, setting redirects (Page Rules/Rulesets/Workers), updating redirect-worker mappings, and verifying DNS/HTTP. Source of truth: ~/Projects/manager.
swiftui-liquid-glass
Implement, review, or improve SwiftUI features using the iOS 26+ Liquid Glass API. Use when asked to adopt Liquid Glass in new SwiftUI UI, refactor an existing feature to Liquid Glass, or review Liquid Glass usage for correctness, performance, and design alignment.
Didn't find tool you were looking for?