返回顶部
r

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.0.1
安全检测
已通过
2,705
下载量
6
收藏
概述
安装方式
版本历史

relay-to-agent

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

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 relay-to-agent-1776381231 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 relay-to-agent-1776381231 技能

通过命令行安装

skillhub install relay-to-agent-1776381231

下载 Zip 包

⬇ 下载 relay-to-agent v0.0.1

文件大小: 5.59 KB | 发布时间: 2026-4-17 15:19

v0.0.1 最新 2026-4-17 15:19
Initial release of relay-to-agent.

- Added support for relaying messages to AI agents on any OpenAI-compatible API.
- Supports multi-turn conversations with session management.
- Includes script to list available agents, send messages, and reset sessions.
- Configuration via agents.json and environment variables.
- Compatible with Connect Chat, OpenRouter, LiteLLM, vLLM, Ollama, and other OpenAI-compatible services.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部