闲社服务运行正常AI智能体自动化平台
s

集群编排平台

技能标识:swarm-orchestrator

AI Agent cluster orchestration platform - manage, schedule, and coordinate multiple AI agents locally with FastAPI backend and React dashboard

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

集群编排平台

🇨🇳 中文版

Swarm Orchestrator 技能

状态: 🟢 本地优先的 AI 智能体编排平台
类型: 自托管,无需外部依赖
隐私: 100% 本地处理(可选的大模型 API 调用除外)



🔒 安全与信任

本技能的功能

  • - 本地运行 - 在您的机器上运行(后端 + 前端)
  • 无遥测 - 不收集数据
  • 无需外部服务器 - 核心功能无需外部依赖
  • 可选 API 密钥 - 仅在使用大模型智能体时需要(OpenAI/Claude)
  • 开源 - 所有代码可审计

本技能不会做的事

  • - ❌ 不向外部服务器发送数据(可选的大模型 API 除外)
  • ❌ 不收集分析或遥测数据
  • ❌ 不需要账号注册
  • ❌ 不会未经许可访问您的文件
  • ❌ 不会在您不知情的情况下运行后台进程

数据存储

  • - 数据库: SQLite 文件存储在 ./data/swarm.db(仅本地)
  • 日志: 文本文件存储在 ./logs/(仅本地)
  • 缓存: 本地 Redis(仅本地)
  • 无云同步 或远程存储

📋 概述

OpenClaw Swarm Orchestrator 是一个本地优先的平台,用于构建和管理多智能体 AI 系统。可以把它想象成协调多个 AI 智能体协同工作的控制塔。

核心功能

  • - 智能体注册表 - 注册 LLM、工具、人类和自定义智能体
  • 任务队列 - 基于优先级的任务分发与依赖管理
  • 实时仪表板 - Web UI 监控智能体和任务
  • RESTful API - 完整的 REST API 用于程序化控制
  • 本地存储 - 所有数据保留在您的机器上

架构

┌─────────────────┐
│ Web 仪表板 │ http://localhost:3000
│ (React UI) │
└────────┬────────┘
│
┌────────▼────────┐
│ FastAPI 服务器 │ http://localhost:8000
│ (后端 API) │
└────────┬────────┘
│
┌────────▼────────┐
│ 本地存储 │
│ • SQLite 数据库 │ ./data/swarm.db
│ • Redis 缓存 │ localhost:6379
│ • 日志文件 │ ./logs/*.log
└─────────────────┘



🚀 安装

前置条件检查

安装前,请验证您已安装:

bash

Python 3.11+


python --version

Node.js 18+

node --version

Redis

redis-cli ping # 应该返回 PONG

(可选) Docker

docker --version

方法一:使用 Docker(推荐 - 最简单)

这是最安全的方法 - 所有内容都在容器中运行。

bash

1. 克隆仓库(先检查代码!)


git clone https://github.com/ZhenRobotics/openclaw-swarm-orchestrator.git
cd openclaw-swarm-orchestrator

2. 启动前查看 docker-compose.yml

cat docker-compose.yml

3. 启动服务

docker-compose up -d

4. 验证

curl http://localhost:8000/health

应该返回: {status: healthy}

访问:

  • - 前端: http://localhost:3000
  • 后端 API: http://localhost:8000
  • API 文档: http://localhost:8000/docs

方法二:本地安装(用于开发)

bash

1. 通过 npm 安装(审查包后)


npm view openclaw-swarm-orchestrator # 安装前查看
npm install -g openclaw-swarm-orchestrator

2. 验证安装

swarm-orchestrator --version

3. 启动服务(在不同终端中)

终端 1: 启动 Redis

redis-server

终端 2: 启动后端

cd backend python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate pip install -r requirements.txt uvicorn app.main:app --reload

终端 3: 启动前端

cd frontend npm install npm run dev

方法三:从源码安装(最透明)

bash

1. 克隆并检查


git clone https://github.com/ZhenRobotics/openclaw-swarm-orchestrator.git
cd openclaw-swarm-orchestrator

2. 验证提交哈希(安全检查)

git log -1 --format=%H

应该是: acae6e5... (或最新发布标签)

3. 运行前查看代码

cat backend/requirements.txt # 检查依赖 cat package.json # 检查 npm 依赖 cat docker-compose.yml # 检查容器配置

4. 安装依赖

cd backend && pip install -r requirements.txt cd ../frontend && npm install

5. 运行(详细步骤见方法二)


⚙️ 配置

最小配置(仅本地)

在项目根目录创建 .env:

bash

最小配置 - 无需外部服务


DATABASE_URL=sqlite+aiosqlite:///./data/swarm.db
REDIS_URL=redis://localhost:6379
SECRET_KEY=your-random-secret-key-here
DEBUG=true

可选:大模型智能体支持

如果您想使用大模型智能体(OpenAI、Anthropic),添加:

bash

可选 - 仅在使用大模型智能体时需要


OPENAIAPIKEY=sk-your-key-here
ANTHROPICAPIKEY=sk-ant-your-key-here

⚠️ 安全提示:

  • - 仅在计划使用大模型智能体时添加 API 密钥
  • 安全存储 .env 文件(不要提交到 git)
  • API 密钥永远不会发送到我们的服务器(仅发送到官方大模型提供商)



💻 基本使用

1. 启动系统

bash

使用 Docker


docker-compose up -d

或手动启动

redis-server & cd backend && uvicorn app.main:app --reload & cd frontend && npm run dev &

2. 创建您的第一个智能体

通过 Web UI:

  1. 1. 打开 http://localhost:3000
  2. 转到智能体页面
  3. 点击新建智能体
  4. 填写:

- 名称:我的助手
- 类型:llm(或tool、human、custom)
- 配置:{model: gpt-4}(如果使用大模型)

通过 API:
bash
curl -X POST http://localhost:8000/api/agents \
-H Content-Type: application/json \
-d {
name: 我的助手,
type: llm,
config: {model: gpt-4}
}

3. 创建任务

bash
curl -X POST http://localhost:8000/api/tasks \
-H Content-Type: application/json \
-d {
title: 分析数据,
description: 处理销售报告,
priority: high
}

4. 监控状态

Web 仪表板: http://localhost:3000

API:
bash

系统状态


curl http://localhost:8000/api/orchestrator/status

列出智能体

curl http://localhost:8000/api/agents

列出任务

curl http://localhost:8000/api/tasks

🔧 智能体类型

1. LLM 智能体(需要 API 密钥)

使用外部大模型 API(OpenAI、Anthropic)。

json
{
name: GPT-4 助手,
type: llm,
config: {
model: gpt-4,
temperature: 0.7
}
}

需要: OPENAIAPIKEY 或 ANTHROPICAPIKEY

2. 工具智能体(仅本地)

执行本地函数/脚本。

json
{
name: 数据处理器,
type: tool,
config: {
scriptpath: ./tools/processdata.py
}
}

无需外部服务。

3. 人类智能体(仅本地)

人在回路工作流。

json
{
name: 管理员

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 swarm-orchestrator-1776121022 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 swarm-orchestrator-1776121022 技能

通过命令行安装

skillhub install swarm-orchestrator-1776121022

下载

⬇ 下载 swarm-orchestrator v1.0.0(免费)

文件大小: 13.74 KB | 发布时间: 2026-4-15 14:34

v1.0.0 最新 2026-4-15 14:34
Initial release of Swarm Orchestrator.

- Enables local orchestration of multiple AI agents with FastAPI backend and React dashboard.
- No external servers required; all data processed and stored locally (except optional LLM API use).
- Supports agent registry, task queue, real-time dashboard, and REST API control.
- Requires Python 3.11+, Node.js 18+, Redis 6+; Docker support available for easy deployment.
- API keys for LLM providers (OpenAI, Anthropic) are optional and user-controlled.
返回顶部