SETUP GUIDE
How to run Codex with 百度千帆 ERNIE
Baidu Qianfan is Baidu Cloud's LLM platform serving the ERNIE 5 series over the v2 API. Qianfan provides an OpenAI Responses API endpoint, making it a Codex-engine option; it has no Anthropic-compatible endpoint yet.
Engine support (probe-verified, 2026-07-10)
| Engine | 百度千帆 ERNIE support |
|---|---|
| Claude Code | — Not yet |
| Codex | ✅ Supported (OpenAI Responses API) |
Step 1 — Get a 百度千帆 ERNIE API key
Open the Baidu Cloud console → log in → “Security / API Key” → create (starts with bce-v3/) and copy.
Console: https://console.bce.baidu.com/iam/#/iam/apikey/list
Step 2 — Configure the Snail launcher (3 steps)
- Download the launcher for Mac / Windows from justalittlesnail.ai;
- Paste the API key on the 百度千帆 ERNIE card (the launcher validates connectivity immediately);
- Pick a model and click Launch Codex — a dedicated terminal window opens.
Recommended models
Main: ernie-5.1 (complex tasks) · Fast: ernie-5.0 (subtasks / summaries). After saving the key, click “Refresh” on the card to pull the live model list.
FAQ
- Why is Qianfan Codex-only?
- Claude Code needs an Anthropic-compatible endpoint, which Qianfan doesn't offer yet; its OpenAI-compatible API (including /responses) works with Codex.
Multi-window sessions, a different model in each window
Download the Snail launcherOther guides: DeepSeek · Qwen 通义千问 · Kimi · GLM 智谱 · MiMo · MiniMax · StepFun 阶跃星辰 · Anthropic Claude 官方
All guides (EN) · 中文版 · Home