> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aihubmax.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenClaw 一键安装

> 一键安装 OpenClaw 并连接 AihubMax

## 概述

OpenClaw Auto Install 提供一键自动化安装脚本，快速部署 OpenClaw 并自动配置 AihubMax 连接。

## 前置条件

* Linux 服务器（Ubuntu 20.04+ 或 CentOS 7+ 推荐）
* Root 或 sudo 权限
* AihubMax API Key

## 一键安装

```bash theme={null}
curl -fsSL https://raw.githubusercontent.com/openclaw/install/main/install.sh | bash -s -- \\
  --api-key YOUR_API_KEY \\
  --base-url https://api.aihubmax.com/v1
```

安装脚本将自动完成以下操作：

1. 检测系统环境并安装依赖
2. 下载并安装 OpenClaw
3. 配置 AihubMax API 连接
4. 启动 OpenClaw 服务

## 验证安装

```bash theme={null}
openclaw status
```

成功标志：显示 `OpenClaw is running` 和 API 连接状态为 `Connected`。

## 管理命令

| 命令                 | 说明     |
| ------------------ | ------ |
| `openclaw status`  | 查看运行状态 |
| `openclaw restart` | 重启服务   |
| `openclaw stop`    | 停止服务   |
| `openclaw logs`    | 查看运行日志 |
| `openclaw config`  | 修改配置   |
