# @cloudagentfleet/hub 中文文档

规范地址：https://npmcn.com/package/%40cloudagentfleet/hub/

版本：0\.5\.3
npm 元数据更新时间：2026-10-30T13:53:48.919Z
中文译文更新时间：2026-11-10T04:36:09.477Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40cloudagentfleet/hub
原文对照：https://npmcn.com/package/%40cloudagentfleet/hub/?lang=original
项目主页：https://github.com/techoblix/cloudagentfleet/tree/master/apps/control-plane#readme
源码仓库：https://github.com/techoblix/cloudagentfleet

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：284 kB，11 个文件
- 模块格式：ES Module
- TypeScript 类型：未声明
- Node.js 要求：\>=22\.6\.0
- 运行依赖：0 个
- 首次发布：2026-09-29T10:54:04.132Z
- 最新版本发布：2026-10-30T13:53:48.525Z
- 近 30 天下载量：2223（2026-10-10 至 2026-11-08，npm 官方下载统计）
- 已发布版本数：18（近 12 个月 18 个）

## 中文简介

Cloud Agent Fleet Hub:私人仪表板(包含)和舰队API,有云剂CLI;也可以在同一台机上运行一款Worker.

## 安装

```sh
npm install @cloudagentfleet/hub
```

也可以使用：`pnpm add @cloudagentfleet/hub`、`yarn add @cloudagentfleet/hub`、`bun add @cloudagentfleet/hub`

## README

# @cloudagentfleet/ hub (英语)

[![npm version](https://img.shields.io/npm/v/@cloudagentfleet/hub)](https://www.npmjs.com/package/@cloudagentfleet/hub) [![npm downloads](https://img.shields.io/npm/dm/@cloudagentfleet/hub)](https://www.npmjs.com/package/@cloudagentfleet/hub) [![License: MIT](https://img.shields.io/npm/l/@cloudagentfleet/hub)](https://github.com/techoblix/cloudagentfleet/blob/master/LICENSE) [![Node.js](https://img.shields.io/node/v/@cloudagentfleet/hub)](https://nodejs.org/) [![CI](https://img.shields.io/github/actions/workflow/status/techoblix/cloudagentfleet/ci.yml?branch=master)](https://github.com/techoblix/cloudagentfleet/actions/workflows/ci.yml)

云代理舰队 **枢纽**: 私人仪表板(包括)和车队 API,与 `cloudagentfleet` CLI作为服务运行. 它也携带 工人,因为当Hub的机器 应该提供它的代理人. 要求节点.js 22.6+;没有其他要求. 在服务器或主机上主机 机器。 机器。 .

```bash
npm install --global @cloudagentfleet/hub
cloudagentfleet init
```

`init` 将“枢纽”安装为用户服务,在您签名时启动( 否) 管理者权益),主动提出在您的尾网上私自发布 Tailscale Service,询问此机器是否也应运行一个工作人( 默认) ),并打印出仪表板地址和密码.

添加机器为 `@cloudagentfleet/worker` 财务报告和审定财务报表 `cloudagentfleet init` 每一页; `cloudagentfleet hub token` 打印他们要求的工人代币.

## 图标

| 任务 | 命令 |
| --- | --- |
| 服务 | `cloudagentfleet hub service <install|start|status|stop|remove>` |
| 在此终端运行 | `cloudagentfleet hub run` (或 `cloudagentfleet-hub`(中文(简体) ) |
| 新机器的工人代号 | `cloudagentfleet hub token` |
| 在您的尾网上发布 | `cloudagentfleet hub serve` 编号 : `status` 编号 : `stop` |

## 设置

`~/.cloudagentfleet/hub-config.json` (书写人: `init`) 持有端口 (default 8787,主机-UI源头使用下一张)和可选的公用URL. 状态、 生成的密码( N)`hub-ui-auth.json`和工人的标志 (单位:千美元)`hub-worker-token`) 住在同一文件夹.

| 变量 | 默认 | 目的 |
| --- | --- | --- |
| `CLOUDAGENTFLEET_HOST` | `127.0.0.1` | 绑定地址 |
| `CLOUDAGENTFLEET_PORT` | `8787` | Dashboard 端口( 主机 UIs 使用端口+ 1) |
| `CLOUDAGENTFLEET_DATA_PATH` | `~/.cloudagentfleet/hub.json` | 舰队状态文件 |
| `CLOUDAGENTFLEET_UI_PASSWORD` | 生成 | 你自己的仪表板密码 |
| `CLOUDAGENTFLEET_AUTH_TOKEN` | 生成 | 你自己的工人证物 |

指南 : [开始](https://github.com/techoblix/cloudagentfleet/blob/master/docs/GETTING-STARTED.md) • 妇女 资料来源: [技术布利克斯/clodagentfleet](https://github.com/techoblix/cloudagentfleet)

## 贷项

云代理舰队在 [编剧](https://github.com/Ark0N/Codeman) 由Ark0N和法典撰稿人(MIT)和 [打开 WebUI 计算机](https://openwebui.com/computer) 由Open WebUI Inc. (中文(简体) )[开放使用许可证](https://github.com/open-webui/computer/blob/main/LICENSE);商业或组织用途属于 [打开 WebUI 的条件](https://openwebui.com/terms)) (中文(简体) ). 也没有被捆绑或被修改,Open WebUI Computer的接口和品牌显示没有被修改. Cloud Agent Fleet是独立的,不附属于任何一个项目. 见 [信贷和第三方软件](https://techoblix.github.io/cloudagentfleet/docs/credits.html)。 。 。 .

## 常见问题

### @cloudagentfleet/hub 是什么？

Cloud Agent Fleet Hub:私人仪表板\(包含\)和舰队API,有云剂CLI;也可以在同一台机上运行一款Worker\.

### 如何安装 @cloudagentfleet/hub？

在项目目录运行 npm install @cloudagentfleet/hub，或使用 pnpm add / yarn add / bun add。它还提供命令行工具 cloudagentfleet、cloudagentfleet-hub，可以用 npx cloudagentfleet 直接运行。

### @cloudagentfleet/hub 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/cloudagentfleet\_\_hub 是否存在。

### @cloudagentfleet/hub 支持 ESM 还是 CommonJS？

以 ES Module 形式发布，推荐使用 import 引入。在 CommonJS 项目中，Node\.js 20\.19\+ / 22\.12\+ 可以直接 require\(\) 不含顶层 await 的 ES Module，更早的版本需要改用动态 import\(\)。

### @cloudagentfleet/hub 需要什么版本的 Node\.js？

package\.json 的 engines 字段要求 Node\.js \>=22\.6\.0。版本不符时 npm 默认只给出警告，开启 engine-strict 后会拒绝安装。

### @cloudagentfleet/hub 可以商用吗？

@cloudagentfleet/hub 使用 MIT 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。以上为概括，不构成法律意见，请以许可原文为准。

### @cloudagentfleet/hub 的下载量有多少？

根据 npm 官方下载统计，@cloudagentfleet/hub 在 2026/10/10 – 2026/11/08 这 30 天内被下载 2,223 次，日均约 74 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @cloudagentfleet/hub 还在维护吗？

最新版本 0\.5\.3 发布于 2026/10/30（10 天前）；至今共发布 18 个版本，其中过去 12 个月发布了 18 个；首次发布于 2026/09/29。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

