返回顶部
o

openclaw-dual-agent

Run two OpenClaw agents simultaneously — a paid Anthropic agent and a free OpenRouter agent, each with its own Telegram bot. Trigger phrases: multi-agent setup, add a second agent, free agent openclaw, run two agents, openrouter openclaw, parallel agents, cost optimization agent.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.3
安全检测
已通过
109
下载量
0
收藏
概述
安装方式
版本历史

openclaw-dual-agent

# Multi-Agent OpenClaw Setup Run a paid Anthropic agent and free OpenRouter agent side by side with separate Telegram bots. ## Quick Start 1. **Create two Telegram bots** via @BotFather and extract chat IDs: ```bash curl https://api.telegram.org/bot{TOKEN}/getUpdates | jq '.result[0].message.chat.id' ``` 2. **Authenticate agents:** ```bash openclaw onboard --anthropic-api-key "$ANTHROPIC_API_KEY" # For free agent: create auth-profiles.json in its agentDir with OpenRouter key ``` > ⚠️ Passing keys on the CLI can expose them in shell history. Run `history -d $(history 1)` after or use `openclaw onboard` interactively. Credential files (`auth-profiles.json`, `openclaw.json`) should be `chmod 600`. 3. **Configure** `openclaw.json` with two agents, separate bindings, and Telegram accounts. 4. **Verify setup:** ```bash openclaw doctor openclaw sessions cleanup \ --store /Users/YOUR_USERNAME/.openclaw/agents/main/store \ --enforce --fix-missing openclaw restart ``` ## Key Concepts - **Agent isolation:** Each agent has its own `agentDir`, workspace, and model config. - **Binding routing:** `accountId` in bindings directs Telegram messages to the correct agent. - **Model refs:** Use `provider/modelid` format (e.g., `anthropic/claude-sonnet-4-6`). - **Per-agent auth:** OpenRouter requires `auth-profiles.json` in each agent's directory. ## Common Usage **Adding a free agent:** - Create agentDir at `/Users/YOUR_USERNAME/.openclaw/agents/free-agent/agent` - Add agent entry to `openclaw.json` with `model.primary: "openrouter/..."` - Create `auth-profiles.json` with OpenRouter API key in agent's directory - Add binding with unique `accountId` (e.g., `"tg2"`) - Restart: `openclaw restart` **Switching models:** Edit `openclaw.json` agent's `model.primary` and `fallbacks` with valid provider/id strings. **Masking secrets for logs:** ```bash cat ~/.openclaw/openclaw.json | \ jq '.channels.telegram.accounts |= map_values(.botToken = "[REDACTED]")' ``` ## References - `references/config-reference.md` — Full openclaw.json, bindings, and auth-profiles.json examples - `references/troubleshooting.md` — Common errors, fixes, and Node.js compatibility notes

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 openclaw-dual-agent-1775942169 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 openclaw-dual-agent-1775942169 技能

通过命令行安装

skillhub install openclaw-dual-agent-1775942169

下载 Zip 包

⬇ 下载 openclaw-dual-agent v1.0.3

文件大小: 6.38 KB | 发布时间: 2026-4-12 10:49

v1.0.3 最新 2026-4-12 10:49
Fix vetter findings: add TELEGRAM_BOT_TOKEN to env declarations, add homepage for source provenance

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

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

p2p_official_large
返回顶部