Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Qianfan Provider Guide

Qianfan is Baidu’s MaaS platform, provides a unified API that routes requests to many models behind a single endpoint and API key. It is OpenAI-compatible, so most OpenAI SDKs work by switching the base URL.

Prerequisites

  1. A Baidu Cloud account with Qianfan API access
  2. An API key from the Qianfan console
  3. OpenClaw installed on your system

Getting Your API Key

  1. Visit the Qianfan Console
  2. Create a new application or select an existing one
  3. Generate an API key (format: bce-v3/ALTAK-...)
  4. Copy the API key for use with OpenClaw

CLI setup

openclaw onboard --auth-choice qianfan-api-key