> For the complete documentation index, see [llms.txt](https://docs.clore.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.clore.ai/clore.ai/clore.ai-eng-zh/mian-xiang-zhu-ji-fang/advanced/clore-fleet-mass-onboarding.md).

# Clore Fleet（批量接入）

使用一条相同的命令接入任意数量的机器

批量入驻让你无需逐台创建服务器，就能把整支机队接入 Clore.ai。每台机器都会运行 **相同的** 命令（或接收相同的飞行配置单），安装托管代理，检测自身硬件，并自动注册到你的账户——Ubuntu 机器会显示为 `LINUX_<machine-id>`，HiveOS 设备会显示为 `<worker>_HIVE_<rig-id>`.

打开 [我的服务器](https://clore.ai/my-servers) → **添加服务器** → **批量** 并选择你的操作系统。控制面板会用你个人的机队令牌预先填写下方所有内容。

{% hint style="danger" %}
**不要在已经列在 Clore.ai 上的机器上运行批量入驻命令。** 该机器会以一个新自动生成的名称重新注册，原来的服务器条目会失效，其上任何正在进行的客户订单都会被取消。仅在全新机器上使用它（HiveOS 飞行配置单路径对于已经带有 Clore 令牌的设备是安全的——它只会为尚未拥有令牌的机器完成入驻）。
{% endhint %}

{% hint style="warning" %}
生成的命令包含你的个人入驻令牌。 **绝不要分享它** ——它可以将机器注册到你的账户。
{% endhint %}

## 默认值

每台自动注册的机器都会以与快速添加服务器命令相同的设置开始：最长租用时长 300 小时，按需和现货均为每台服务器每天 5 美元的 USD 自动定价。之后你可以从控制面板批量调整其中任何设置： **我的服务器 → 选择服务器 → 修改所选项**.

## Ubuntu 机队

每种方法的核心都是一条完全相同的命令（以 root 身份运行）：

```bash
bash <(curl -s https://gitlab.com/cloreai-public/hosting-agent-installer/-/raw/main/install.sh) --onboarding-config <your-fleet-token>
```

控制面板提供了三种可直接用于向多台机器分发它的方式：

### 云端（cloud-init）

适用于云实例或自动化部署：将生成的 `user-data` 片段复制到你的云服务商的 cloud-init 字段中，或者根据下载的 `user-data` + `meta-data` 文件构建一个 NoCloud seed ISO：

```bash
cloud-localds seed.iso user-data meta-data
```

（或 `genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data`)

该 `user-data` 包含你的入驻令牌。机器注册完成后，请卸载/删除 seed ISO，或清除已存储的 user-data（`cloud-init clean --logs`），以免令牌残留在磁盘或实例元数据中。

### SSH 循环

把你机器的 IP 填入表单，它会生成一个你在工作站上运行的循环：

```bash
for ip in <ip-1> <ip-2>; do
  ssh -i ~/.ssh/id_rsa root@$ip '<onboarding command>'
done
```

### Ansible

表单会生成一个 `onboard.yml` playbook 和一个示例 `hosts` 清单；使用以下命令运行：

```bash
ansible-playbook -i hosts onboard.yml
```

## HiveOS 机队

无需 shell——入驻通过飞行配置单完成：

1. 在控制面板的 批量入驻 → HiveOS 选项卡中，复制生成的 **Flightsheet** JSON，并在 HiveOS 中通过 **从剪贴板导入** 在创建新的飞行配置单时导入。
2. 复制生成的 **Wallet** 值，并将其设置为该飞行配置单的钱包——这就是你的入驻令牌。
3. 将飞行配置单应用到任意数量的设备上。每台设备都会安装托管代理、自动注册，此后就像任何其他服务器一样，从 Clore.ai 控制面板进行管理（管理时不再需要飞行配置单）。

关于通过你的 HiveOS 账户链接对单台 HiveOS 设备进行入驻，请参阅 [HiveOS 集成](/clore.ai/clore.ai-eng-zh/mian-xiang-zhu-ji-fang/advanced/hiveos-integration.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.clore.ai/clore.ai/clore.ai-eng-zh/mian-xiang-zhu-ji-fang/advanced/clore-fleet-mass-onboarding.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
