Amux
安装指南

安装 OpenClaw

下载并安装 OpenClaw AI Agent

OpenClaw 是一个开源的 AI Agent,具备丰富的 CLI 功能,支持 Agents、工具、沙箱执行和自定义供应商。安装后,你可以通过 Amux API Platform 使用

系统要求

要求最低配置
操作系统macOS 11+、Linux(Ubuntu 20.04+、Debian 11+)、Windows 10/11(WSL2)
Node.js22+
网络需要互联网连接

安装

快速安装(推荐)

curl -fsSL https://openclaw.ai/install.sh | bash

自动检测平台并安装对应二进制文件。

npm

npm install -g openclaw@latest

Docker

docker run -it --rm openclaw/openclaw

验证安装

openclaw --version

初始设置

运行引导向导配置你的第一个供应商:

openclaw onboard

按提示选择供应商并输入 API Key。也可以通过环境变量或配置文件设置。

使用 API Key

openclaw onboard --auth-choice openai-api-key

或用于自定义供应商:

openclaw onboard --auth-choice custom-api-key \
  --custom-base-url "https://api.example.com/v1" \
  --custom-model-id "model-name" \
  --custom-api-key "your-key" \
  --custom-compatibility openai

快速上手

进入项目目录后启动 OpenClaw:

cd /path/to/your/project
openclaw

检查供应商状态:

openclaw models status

配置

所有设置存储在 ~/.openclaw/openclaw.json。敏感凭据可存储在 ~/.openclaw/.env

配合 Amux API Platform 使用

安装 OpenClaw 后,详见在 OpenClaw 中使用,将其连接到 Amux API Platform 以访问 GPT、Grok、MiniMax 等模型。

相关资源

On this page