gylive/ccodex-sleep-state
尝试改善 Codex 降智、限流与连接体验。本地一键启动、网页配置修复,支持 Astra / Sol / Terra、订阅和代理;不保证取得指定 state 或提升模型质量。
Older snapshot: check the original source for current information.
From the publisher
README & documentation
Source previewRead the project’s overview, installation instructions and usage examples. The original README is the source of truth.
一个尝试改善 Codex 降智、限流和连接问题的本地工具。不是百分百有效,但把这套思路做成了大家能自己用的程序。 做这个项目,是因为 Codex 有时用着用着就不对劲:回答质量变了,请求被限了,换个配置又接不上。我们从代理出口和 turn-state 入手做了一些尝试,觉得值得继续验证,就整理成 Go 程序开源了。 它不会增加账号额度,也不能保证换个出口就恢复质量。真正要做的是:让连接、配置、采集和排错都看得见,别把所有问题都留给使用者手改文件。 一个服务,一个本地网页。官方 ChatGPT、官方 API key 和 Responses 中转按各自的认证方式走;支持 Astra、5.6 Sol、5.6 Terra,能否调用仍取决于你的账号和上游。已有代理软件就填本地 HTTP / SOCKS5 地址,也可以导入自己的订阅或本地文件。 Windows 上手 · macOS 上手 · 面板教程 · 代理与订阅 · 问题与验收清单 · 测试记录 · 联系与交流 先确认 Codex 不经过本工具时原本就能用。官方账号先登录;中转先配好自己的 API key。用 CCS / CC Switch 的,先选好这次要用的配置,再退出 Codex,暂时别继续切换。 已有代理、订阅、模型和注入开关会保留;没有配过来源时尝试识别常见本地代理。首次 setup 没有明确设置兜底策略,就采用“采不到 state 时先正常转发”;之前明确选过严格模式的会继续保留。 没有找到本地代理,或你只拿到了订阅链接,再到「订阅与代理」填写并保存。首页「一键接入 Codex」用于需要时重新检查和修复,不是每次启动的必点步骤。 如果浏览器没有打开,按终端显示的地址手动进入,再粘贴本次管理口令。默认地址是 http://127.0.0.1:17841/admin/。如果包里没有启动脚本,可以在程序目录执行以下命令;旧版不支持 setup 时先更新。 Windows: macOS: setup 会创建缺失的服务配置、启动服务并打开面板;已有订阅和代理设置不会被重置。自动接入只检查本机 127.0.0.1 的常见 SOCKS5 端口,不扫描网络、不读取代理软件账号库。启动本身不发送模型请求;接入 Codex 后的采集可能消耗额度。服务 JSON 写坏了会进入修复面板,不会因为启动失败就静默删掉旧文件。 服务运行时保留终端窗口。退出用 Ctrl+C,等配置恢复完成,再重启 Codex。关闭浏览器、关闭注入和停止服务,是三个不同操作。 面板教程有逐步操作,不需要先看懂代码。我们也对照研究了 GPT-Load 的路由诊断、失败分类和部署体验,但没有把它的账号池、所有协议、计费和多渠道平台完整移植进来。功能映射与取舍 程序处理的是响应里的 X-Codex-Turn-State。它从候选出口发短请求,检查封装、时间和密文块数,保存可用值;后续请求带上这份值,并走对应出口。 这不是 OpenAI 公布的质量指标。 符合长度不证明模型“满血”,不符合也不能只凭这一点断定代理坏了或模型降智了。 自动识别使用当前请求里的套餐提示,提示不明确时会说明采用了什么规则;不会仅凭长度把账号认成 Team。你也可以在面板明确选个人或 Team。state 按账号、凭据和模型隔离,不在 Astra、Sol、Terra 之间混用。 没有合格 state 时有两种选择: 兜底不是解除限流。401、403、429 的停止规则照常生效;已经发到上游的正式生成不会换出口再重放一次。 程序只处理当前 Codex 选择的 provider,不接管 CCS 的账号数据库。它读取上游与认证方式,临时把…
Read the full README ↗ · Preview checked 2026-11-02T20:14:08.078Z
Inside the original README — Document outline
- ccodex-sleep-state
- 下载后,怎么开始
- 面板里能做什么
- 292、332 到底是什么
- CCS、中转和官方登录怎样兼容
- 有问题,先看这几项
- v0.4.0:更简单的配置与可控代理池
- 用之前知道这些边界
- 文件一般放在哪
- 一起试,一起反馈
- 朋友的卡网 · RedeemAI
- 想改代码
Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.
Links from the README
References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.
Documentation belongs to its respective authors. Reported project/model license: GPL-3.0. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.
What this repository does
尝试改善 Codex 降智、限流与连接体验。本地一键启动、网页配置修复,支持 Astra / Sol / Terra、订阅和代理;不保证取得指定 state 或提升模型质量。
Repository facts
- Owner
- gylive
- Primary language
- Go
- Stars
- 620
- Forks
- 152
- Open issues + pull requests
- 9
- License
- GPL-3.0
- Archived
- No
- Default branch
- main
- Created
- 2026-09-18T09:02:44.000Z
- Last push
- 2026-09-20T16:33:30.000Z
Topics and intended use
No topics were included in the latest source metadata.
Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.
Evaluate before installing
Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.
Source and freshness
Source: GitHub. Metadata observed 2026-09-25T12:03:43.116Z. Daily imports are snapshots, not real-time monitoring.
Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.