Skip to content

Codex China Guide

Codex 国内使用与报错速查:安装、登录、手机号验证、终端代理、断线重连、额度用完、上下文满了,以及接入 DeepSeek 等第三方 API。按报错原文查原因和处理步骤,每条附官方出处;含中英界面对照和 AGENTS.md 中文模板。

Install: npm install -g @openai/codex --registry=https://registry.npmmirror.com

Works with Codex · 24 GitHub stars

Install

$npm install -g @openai/codex --registry=https://registry.npmmirror.com

Install command taken from the project's README or registry entry. Always review code before running it.

Codex 国内使用与报错速查(2026):安装、登录、手机号、代理、额度

最后核对:2026 年 10 月 15 日(北京时间)· Codex CLI 0.162.1 · 桌面版 26.1007 遇到报错,直接 Ctrl + F 搜报错里的几个词。终端、英文界面、中文界面三种写法都收了。 觉得有用就点右上角 ⭐ Star,下次报错不用再到处搜。

国内用 Codex,卡住的地方基本就那几处:装不上、打不开、登录跳不回来、要验证手机号、终端连不上、用着用着断线、额度用完。这页按「你看到的报错」来排,每条写清楚多半是什么原因、按什么顺序处理,并附上官方文档或 openai/codex 仓库里维护者回复的出处,可以自己点进去核对。想接 DeepSeek 这类第三方 API 的,直接看第 10 节。

由 AONIR 整理维护。我们提供 ChatGPT / Claude 会员充值服务,和 OpenAI 没有隶属关系;这页只讲 Codex 本身,充值相关只放在最后一节。

这几天问得最多的(10 月 15 日):

  • 重连 5 次后失败,stream disconnected before completion: An error occurred while processing your request,后面带一串 request ID:是服务器那边出错,换节点没用:看这里
  • 桌面版新对话发不出去,提示「无法加载工作空间设置」,还没修:看这里
  • 每条消息都是 Selected model is at capacity,额度明明还有:10 月 9–10 日、12–14 日各来了一波,13 日、14 日状态页也挂了故障:看这里
  • Windows 上所有命令都跑不了,setup refresh had errors,桌面版已修、CLI 没修:看这里
  • GPT-5.5 已在 10 月 14 日下线,设置里还写着 gpt-5.5 的会报模型不支持,要改:看这里

目录

按报错找

你看到的 多半是 看这里
stream disconnected before completion、Reconnecting... 1/5、正在重新连接 1/5(重连 5 次后失败)、一直重新连接、服务器繁忙,正在重新连接 看冒号后面那半句:网络或代理,或者 OpenAI 服务器出错 断线重连
stream disconnected before completion: An error occurred while processing your request,后面有 Please include the request ID;压缩时是 Error running remote compact task OpenAI 服务器返回的错误,不是你的网络。10 月 9 日起变多,多见于图片多的长会话 服务器处理失败
error sending request for url (https://chatgpt.com/backend-api/codex/...) 终端没走代理 断线重连
浏览器显示登录成功,终端一直在等 本机回调被挡 2. 登录
登录完浏览器跳到 localhost(新版是 127.0.0.1):该网页无法正常运作、localhost 未发送任何数据、ERR_EMPTY_RESPONSE;或 localhost 拒绝了我们的连接请求、ERR_CONNECTION_REFUSED Codex 不在这台电脑上(VS Code、Cursor 连着 SSH、WSL),或 1455 端口上是别的程序 登录后跳到 localhost
设备码登录时 Cursor 弹出 Do you want Cursor to open the external website?、Configure Trusted Domains(是否要 Cursor 打开外部网站) 编辑器的链接保护,不是报错 登录后跳到 localhost
Token exchange failed 登录时网络不通 登录失败
refresh token was already used、此设备上的 ChatGPT 会话已过期 登录凭证失效 登录过期
Verify your phone number、Phone number required 手机号验证 3. 要验证手机号
unsupported_country_region_territory、我们的服务在你所在的国家或地区不可用 节点所在地区 地区不支持
Selected model is at capacity,会话日志里是 server_overloaded 服务器满载(10 月 9–10 日、12–14 日各有一波),或账号被临时限制 模型满载
The '...' model is not supported when using Codex with a ChatGPT account 模型名写错、旧设置或还没开放 [模型不

Similar plugs

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

PluginDev tools+6,803 this week

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Pro…

Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code, Devin as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini…

Explore related