Awesome-openclaw-skills relay-to-agent
Relay messages to AI agents on any OpenAI-compatible API. Supports multi-turn conversations with session management. List agents, send messages, reset sessions.
install
source · Clone the upstream repo
git clone https://github.com/sundial-org/awesome-openclaw-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/relay-to-agent" ~/.claude/skills/sundial-org-awesome-openclaw-skills-relay-to-agent && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/relay-to-agent" ~/.openclaw/skills/sundial-org-awesome-openclaw-skills-relay-to-agent && rm -rf "$T"
manifest:
skills/relay-to-agent/SKILL.mdsource content
Relay To Agent
Send messages to AI agents on any OpenAI-compatible endpoint. Works with Connect Chat, OpenRouter, LiteLLM, vLLM, Ollama, and any service implementing the Chat Completions API.
List available agents
node {baseDir}/scripts/relay.mjs --list
Send a message to an agent
node {baseDir}/scripts/relay.mjs --agent linkedin-alchemist "Transform this article into a LinkedIn post"
Multi-turn conversation
# First message node {baseDir}/scripts/relay.mjs --agent connect-flow-ai "Analyze our latest campaign" # Follow-up (same session, agent remembers context) node {baseDir}/scripts/relay.mjs --agent connect-flow-ai "Compare with last month"
Reset session
node {baseDir}/scripts/relay.mjs --agent linkedin-alchemist --reset "Start fresh with this article..."
Options
| Flag | Description | Default |
|---|---|---|
| Target agent identifier | (required) |
| Reset conversation before sending | off |
| List available agents | — |
| Custom session identifier | |
| Raw JSON output | off |
Configuration
agents.json
Configure agents and endpoint in
{baseDir}/agents.json:
{ "baseUrl": "https://api.example.com/v1", "agents": [ { "id": "my-agent", "name": "My Agent", "description": "What this agent does", "model": "model-id-on-the-api" } ] }
Environment variables
export RELAY_API_KEY="sk-..." # API key (required) export RELAY_BASE_URL="https://..." # Override base URL from config export RELAY_CONFIG="/path/to/agents.json" # Custom config path
Compatible Services
- Connect Chat —
api.connectchat.ai/api - OpenRouter —
openrouter.ai/api/v1 - LiteLLM —
localhost:4000/v1 - vLLM —
localhost:8000/v1 - Ollama —
localhost:11434/v1 - Any OpenAI-compatible API
Session Management
Sessions are stored locally at
~/.cache/relay-to-agent/sessions/. Each agent+session combination keeps up to 50 messages. Use --session for parallel conversations with the same agent.