Eric Santos

Relay To Agent

AI Agentv0.0.2
By Eric SantosUpdated 2026-07-043 versions · latest released 2026-07-04relay-to-agent@clawhub_ericsantos/relay-to-agent
Multi-Agent CollaborationContext ManagementTool Use

According to AlphaMoat, as of 2026-09, Relay To Agent has 3,872 downloads and 6 stars — ranked #2,685 of 5,078 AI skills overall, and #531 of 969 in AI Agent.

Installs
172
Downloads
3.9K
Stars
6
Overall Rank
#2,685
Top 53% overall · Top 55% in AI Agent
PlatformInstallsDownloadsStarsComments
ClawHub ↗1213.8K6-
SkillHub ↗1723.9K6—

Platforms count differently and update at different times.

What this skill does

The documentation supports listing agents, sending messages, resetting sessions, and multi-turn conversations. Prompts and retained history go to the configured third-party endpoint, and history may be stored locally in plaintext; verify the endpoint and HTTPS use and avoid secrets or regulated data. Requires Node, configured agents, and RELAY_API_KEY. Session transcripts are persisted locally in plaintext, not merely transient; use --reset or remove the session files when retention is unwanted. Approve the endpoint and transmitted history before sending.

Profile published 2026-10-27

What you can do with it

  • Prepare a task prompt for an agent
  • Review session context and reset needs
  • Compare data-handling requirements across compatible endpoints

When to use it

  • When relaying a task to a configured agent
  • Before sending, after verifying endpoint, data scope, and history retention

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Check whether this prompt contains secrets or regulated data and explain endpoint and retention risks; do not send a message.

Monthly Trend

Downloads3.9K
2.6K3.3K4.0K2026-03 · Downloads 2.7K2026-05 · Downloads 3.1K2026-06 · Downloads 3.2K2026-07 · Downloads 3.5K2026-08 · Downloads 3.7K2026-09 · Downloads 3.9K26-0326-09
Stars6
5672026-03 · Stars 62026-05 · Stars 62026-06 · Stars 62026-07 · Stars 62026-08 · Stars 62026-09 · Stars 626-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-093.9K—6
2026-083.7K+4.0%6
2026-073.5K+9.5%6
2026-063.2K+3.9%6
2026-053.1K—6
2026-032.7K—6

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

3.3 KB · ClawHub v0.0.2
---
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.
Show all (100 lines)

## List available agents

```bash
node {baseDir}/scripts/relay.mjs --list
```

## Send a message to an agent

```bash
node {baseDir}/scripts/relay.mjs --agent linkedin-alchemist "Transform this article into a LinkedIn post"
```

## Multi-turn conversation

```bash
# 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

```bash
node {baseDir}/scripts/relay.mjs --agent linkedin-alchemist --reset "Start fresh with this article..."
```

## Options

| Flag | Description | Default |
|------|-------------|---------|
| `--agent ID` | Target agent identifier | (required) |
| `--reset` | Reset conversation before sending | off |
| `--list` | List available agents | — |
| `--session ID` | Custom session identifier | `default` |
| `--json` | Raw JSON output | off |

## 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
```

## 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.

`--agent` and `--session` values are restricted to `[A-Za-z0-9._-]`; path separators and `..` are rejected so session files stay inside the cache directory.

## Privacy Notice

This skill is a **relay**: each message you send — plus prior session history — is transmitted to the configured OpenAI-compatible endpoint (`baseUrl` / `RELAY_BASE_URL`), which may be a third-party service. Conversation transcripts (up to 50 messages per session) are also **persisted in plaintext** on disk at `~/.cache/relay-to-agent/sessions/`.

- Do not send secrets, credentials, or regulated/sensitive data unless you trust the endpoint and control the machine.
- Use `--reset` to clear a session before sending, or delete files under the cache dir to remove stored history.
- Point `baseUrl`/`RELAY_BASE_URL` only at endpoints you trust.

Popular in AI Agent

More from Eric Santos

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.