gylive/ccodex-sleep-state
尝试改善 Codex 降智、限流与连接体验。本地一键启动、网页配置修复,支持 Astra / Sol / Terra、订阅和代理;不保证取得指定 state 或提升模型质量。
What it solves
It addresses connectivity, rate-limiting, and "intelligence degradation" (quality drops) experienced when using Codex. It provides a way to manage connections, configurations, and proxy settings through a visual interface rather than manually editing configuration files.
How it works
The tool acts as a local gateway between Codex and the AI providers. It intercepts requests and manages the X-Codex-Turn-State header by probing candidate proxy exits to find a "qualified state" (based on specific character lengths for Personal or Team accounts). Once a valid state is found, it injects this value into subsequent requests to maintain connection quality. It supports various proxy protocols (HTTP, SOCKS5, and subscriptions like Clash/Mihomo) to optimize the routing of these requests.
Who it’s for
Users of Codex who are experiencing unstable connections, rate limits, or inconsistent response quality, and those who prefer a web-based management panel over manual TOML file editing.
Highlights
- Visual Management Panel: A local web interface to toggle state injection, switch models (Astra, Sol, Terra), and manage proxy subscriptions.
- State Injection: Automatically probes and saves usable
X-Codex-Turn-Statevalues to improve stability. - Proxy Integration: Supports a wide range of outbound protocols including AnyTLS, SS, SSR, VMess, VLESS, Trojan, Hysteria, and TUIC.
- Configuration Safety: Automatically backs up Codex configuration files and provides a repair panel to recover from conflicts or corruption.
Related
- Project
- Project
- Project
- Project
- Project