skills$openclaw/relay-to-agent
ericsantos7.1k

by ericsantos

relay-to-agent – OpenClaw Skill

relay-to-agent is an OpenClaw Skills integration for ai ml workflows. Relay messages to AI agents on any OpenAI-compatible API. Supports multi-turn conversations with session management. List agents, send messages, reset sessions.

7.1k stars6.8k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026ai ml

Skill Snapshot

namerelay-to-agent
descriptionRelay messages to AI agents on any OpenAI-compatible API. Supports multi-turn conversations with session management. List agents, send messages, reset sessions. OpenClaw Skills integration.
ownerericsantos
repositoryericsantos/relay-to-agent
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @ericsantos/relay-to-agent
last updatedFeb 7, 2026

Maintainer

ericsantos

ericsantos

Maintains relay-to-agent in the OpenClaw Skills directory.

View GitHub profile
File Explorer
7 files
.
scripts
relay.mjs
5.9 KB
_meta.json
284 B
agents.example.json
213 B
package-lock.json
1.1 KB
package.json
304 B
SKILL.md
2.5 KB
SKILL.md

name: relay-to-agent description: "Relay messages to AI agents on any OpenAI-compatible API. Supports multi-turn conversations with session management. List agents, send messages, reset sessions." homepage: https://platform.openai.com/docs/api-reference/chat metadata: {"clawdbot":{"emoji":"🤖","requires":{"bins":["node"]},"primaryEnv":"RELAY_API_KEY"}}

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

FlagDescriptionDefault
--agent IDTarget agent identifier(required)
--resetReset conversation before sendingoff
--listList available agents
--session IDCustom session identifierdefault
--jsonRaw JSON outputoff

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 Chatapi.connectchat.ai/api
  • OpenRouteropenrouter.ai/api/v1
  • LiteLLMlocalhost:4000/v1
  • vLLMlocalhost:8000/v1
  • Ollamalocalhost: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.

README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

Configuration

### agents.json Configure agents and endpoint in `{baseDir}/agents.json`: ```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 ```bash 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 ```

FAQ

How do I install relay-to-agent?

Run openclaw add @ericsantos/relay-to-agent in your terminal. This installs relay-to-agent into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/ericsantos/relay-to-agent. Review commits and README documentation before installing.