惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
云风的 BLOG
云风的 BLOG
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Recent Announcements
Recent Announcements
IT之家
IT之家
Google DeepMind News
Google DeepMind News
罗磊的独立博客
爱范儿
爱范儿
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
U
Unit 42
MongoDB | Blog
MongoDB | Blog
S
SegmentFault 最新的问题
B
Blog
博客园 - 叶小钗
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
C
Check Point Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
docs: clarify legacy openai-codex auth (#90028) · opencla...
jalehman · 2026-06-04 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -17,10 +17,18 @@ is now:

1717

told us this usage is allowed again

1818
1919

OpenAI Codex OAuth is explicitly supported for use in external tools like

20-

OpenClaw. This page explains:

20+

OpenClaw.

21+
22+

OpenClaw stores both OpenAI API-key auth and ChatGPT/Codex OAuth under the

23+

canonical provider id `openai`. Older `openai-codex:*` profile ids and

24+

`auth.order.openai-codex` entries are legacy state repaired by

25+

`openclaw doctor --fix`; use `openai:*` profile ids and `auth.order.openai` for

26+

new config.

2127
2228

For Anthropic in production, API key auth is the safer recommended path.

2329
30+

This page explains:

31+
2432

- how the OAuth **token exchange** works (PKCE)

2533

- where tokens are **stored** (and why)

2634

- how to handle **multiple accounts** (profiles + per-session overrides)

@@ -122,6 +130,18 @@ Flow shape:

122130
123131

OpenAI Codex OAuth is explicitly supported for use outside the Codex CLI, including OpenClaw workflows.

124132
133+

The login command still uses the canonical OpenAI provider id:

134+
135+

```bash

136+

openclaw models auth login --provider openai

137+

```

138+
139+

Use `--profile-id openai:<name>` for multiple ChatGPT/Codex OAuth accounts in

140+

one agent. Do not use `openai-codex:<name>` for new profiles. Doctor migrates

141+

that older prefix to a collision-free `openai:*` profile id; run

142+

`openclaw models auth list --provider openai` after repair before copying

143+

profile ids into `auth.order` or `/model ...@<profileId>`.

144+
125145

Flow shape (PKCE):

126146
127147

1. generate PKCE verifier/challenge + random `state`

Original file line numberDiff line numberDiff line change

@@ -193,6 +193,25 @@ key in the provider dashboard when you need provider-side invalidation.

193193
194194

## Controlling which credential is used

195195
196+

### OpenAI and legacy `openai-codex` ids

197+
198+

OpenAI API-key profiles and ChatGPT/Codex OAuth profiles both use the canonical

199+

provider id `openai`. New config should use `openai:*` profile ids and

200+

`auth.order.openai`.

201+
202+

If you see `openai-codex` in older config, auth profile ids, or

203+

`auth.order.openai-codex`, treat it as legacy migration input. Do not create new

204+

`openai-codex` profiles. Run:

205+
206+

```bash

207+

openclaw doctor --fix

208+

openclaw models auth list --provider openai

209+

```

210+
211+

Doctor rewrites legacy `openai-codex:*` profile ids and

212+

`auth.order.openai-codex` entries to the canonical `openai` auth route. For

213+

OpenAI-specific model/runtime routing, see [OpenAI](/providers/openai).

214+
196215

### During login (CLI)

197216
198217

Use `openclaw models auth login --provider <id> --profile-id <profileId>` for