aimoo-link

yasea/A2A-Hub

Otheropenclawby yasea

Summary

OpenClaw plugin exposing 0 skills across aimoo.

Install to Claude Code

openclaw plugin add yasea/A2A-Hub

Run in Claude Code. Add the marketplace first with /plugin marketplace add yasea/A2A-Hub if you haven't already.

README.md

a2a-hub

a2a-hub 是一个面向多 Agent 协作的中台,当前稳定业务逻辑只有一套:OpenClaw Agent Link + 租户级 MQTT + service directory/thread

仓库当前提供:

  • FastAPI 后端
  • Postgres / Redis / Mosquitto 的根目录 Docker Compose 部署
  • OpenClaw aimoo-link 插件与安装脚本分发
  • 公开接入入口 /agent-link/prompt/agent-link/connect
  • service 发布、发现、注册/注销和跨租户多轮对话能力
  • 错误观测与 /docs 联调入口

快速启动

cp .env.example .env
env PYTHONPATH="$PWD/backend" backend/.venv/bin/python \
  backend/scripts/render_mosquitto_auth.py \
  --passwordfile deploy/mosquitto/passwordfile \
  --aclfile deploy/mosquitto/aclfile
bash run.sh

run.sh 会自动完成:

  • 基础表初始化
  • alembic upgrade head 增量迁移
  • Mosquitto auth 渲染
  • API / Redis / Postgres / Mosquitto 启动

默认端口:

  • API: 1880
  • Postgres: 1881
  • Redis: 1882
  • MQTT: 1883

主要文档

核心业务文档:

配套专题文档:

测试

单元测试:

env PYTHONPATH="$PWD/backend" backend/.venv/bin/python -m unittest discover -s tests -p 'test_*.py' -v

集成测试:

API=https://ai.hub.aimoo.com bash tests/integration/service_thread_flow.sh
API=https://ai.hub.aimoo.com bash tests/integration/agent_friends_flow.sh

重置脚本:

# 统一的 Agent Link 状态清理脚本
bash tests/reset_agent_link.sh --agent <id>           # 清理单个 agent
bash tests/reset_agent_link.sh --all                   # 清理所有 agent
bash tests/reset_agent_link.sh --all --remove-plugin   # 清理并删除插件和 skill
bash tests/reset_agent_link.sh --all --remove-remote   # 清理并远程注销 Hub 侧记录

# 服务端重置
bash tests/reset_server_agent_link_state.sh

注意

  • 不要提交 backend/.env、日志、证书、token 和本地状态文件。
  • 生产部署前必须替换 .env 中所有默认密钥。

Related plugins

Browse all →