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

# Qianfan

# Qianfan 提供商指南

Qianfan 是 Baidu 的 MaaS 平台，提供一个**统一 API**，可通过单个
端点和 API key 将请求路由到许多模型。它与 OpenAI 兼容，因此大多数 OpenAI SDK 只需切换 base URL 即可使用。

## 前提条件

1. 一个已开通 Qianfan API 访问权限的 Baidu Cloud 账号
2. 一个来自 Qianfan 控制台的 API key
3. 已在你的系统上安装 OpenClaw

## 获取 API key

1. 访问 [Qianfan Console](https://console.bce.baidu.com/qianfan/ais/console/apiKey)
2. 创建一个新应用，或选择一个现有应用
3. 生成一个 API key（格式：`bce-v3/ALTAK-...`）
4. 复制该 API key 以在 OpenClaw 中使用

## CLI 设置

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw onboard --auth-choice qianfan-api-key
```

## 相关文档

* [OpenClaw Configuration](/gateway/configuration)
* [Model Providers](/concepts/model-providers)
* [Agent Setup](/concepts/agent)
* [Qianfan API Documentation](https://cloud.baidu.com/doc/qianfan-api/s/3m7of64lb)
