Skip to content

[Bug]: Only allows Codex official clients #2783

Closed

Description

@Yup86

影响范围

协议转换 / 代理

当前行为

Image 使用chatgpt中转站api,换成2.0 新网关后报错,一直连不上,换回旧版供应商配置一切正常。

预期行为

切换2.0之后期望正常连接chatgpt中转站api使用.

复现步骤

使用chatgpt中转站api,换成2.0 新网关后报错,一直连不上,换回旧版供应商配置一切正常。

日志 / 配置片段

HTTP 403 · type=upstream_error · code=403: {"error":{"message":"This account only allows Codex official clients","type":"forbidden_error"}}event: response.failed data: {"type":"response.failed","sequence_number":0,"response":{"id":"resp_eba880e7c9d64e8d8a0acb0ee2db8c96","object":"response","created_at":1793291401,"model":"gpt-6.1-sol","status":"failed","output":[],"error":{"code":"upstream_error","message":"Upstream request failed"}}}

Codex++ 版本

V2.1.2

系统

Windows

提交前确认

  • 我已经脱敏了 API Key、Token、账号等敏感信息。
  • 我已经确认这是当前最新版仍然存在的问题。

Activity

  1. BigPizzaV3 commented on Oct 29, 2026

    @BigPizzaV3
    Owner

    感谢反馈,原因找到了:开启了「仅允许 Codex 官方客户端」的中转站,除了看 User-Agent / originator,还要求请求里带有 Codex 自己的 x-codex-* 请求头。2.0 网关转发时丢掉了这些头,所以被判定不是官方客户端,返回 403。

    已修复,会随下个版本发布:Codex 经网关请求时,会把这些客户端身份头原样转给上游(Key、Cookie 等不会透传)。修复发布前,可以先切回「旧版供应商配置」直连这个中转站使用。

  2. BigPizzaV3 commented on Oct 29, 2026

    @BigPizzaV3
    Owner

    已随 2.1.3 发布:https://github.com/BigPizzaV3/CodexPlusPlus/releases/tag/v2.1.3

    Codex 经网关请求时会把 originator、x-codex-* 等客户端身份头原样转给上游,开了「仅允许 Codex 官方客户端」的中转站不再返回 403。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions