返回顶部
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
安全检测
已通过
145
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

openclaw-dual-agent

多智能体OpenClaw配置

通过独立的Telegram机器人,同时运行付费的Anthropic智能体和免费的OpenRouter智能体。

快速开始

  1. 1. 通过@BotFather创建两个Telegram机器人并提取聊天ID:
bash curl https://api.telegram.org/bot{TOKEN}/getUpdates | jq .result[0].message.chat.id
  1. 2. 认证智能体:
bash openclaw onboard --anthropic-api-key $ANTHROPICAPIKEY # 对于免费智能体:在其agentDir中创建包含OpenRouter密钥的auth-profiles.json

> ⚠️ 在命令行中传递密钥可能会将其暴露在shell历史记录中。之后运行history -d $(history 1)或使用openclaw onboard交互式操作。凭证文件(auth-profiles.json、openclaw.json)应设置为chmod 600。

  1. 3. 配置包含两个智能体、独立绑定和Telegram账户的openclaw.json。
  1. 4. 验证配置:
bash openclaw doctor openclaw sessions cleanup \ --store /Users/YOUR_USERNAME/.openclaw/agents/main/store \ --enforce --fix-missing openclaw restart

关键概念

  • - 智能体隔离: 每个智能体拥有独立的agentDir、工作区和模型配置。
  • 绑定路由: 绑定中的accountId将Telegram消息路由到正确的智能体。
  • 模型引用: 使用provider/modelid格式(例如anthropic/claude-sonnet-4-6)。
  • 按智能体认证: OpenRouter需要在每个智能体的目录中包含auth-profiles.json。

常见用法

添加免费智能体:

  • - 在/Users/YOUR_USERNAME/.openclaw/agents/free-agent/agent创建agentDir
  • 在openclaw.json中添加智能体条目,设置model.primary: openrouter/...
  • 在智能体目录中创建包含OpenRouter API密钥的auth-profiles.json
  • 添加具有唯一accountId的绑定(例如tg2)
  • 重启:openclaw restart

切换模型:
编辑openclaw.json中智能体的model.primary和fallbacks,使用有效的provider/id字符串。

日志中的密钥遮蔽:
bash
cat ~/.openclaw/openclaw.json | \
jq .channels.telegram.accounts |= map_values(.botToken = [REDACTED])

参考

  • - references/config-reference.md — 完整的openclaw.json、绑定和auth-profiles.json示例
  • references/troubleshooting.md — 常见错误、修复方法和Node.js兼容性说明

标签

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

下载

⬇ 下载 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
返回顶部