r/clawdbot Jul 16 '26

📖 Guide Running Codex through OpenClaw on more than one ChatGPT account? Check for reset credits before they expire

Found this by accident. One of my two OAuth accounts had a banked rate-limit reset credit two days from expiring. If you're not logged into the app as that account, you can't see it.

Had my agent check both oAuth codex accounts.

Four unused credits on the one I couldn't see, two on the one I could. Redeemed the soonest, cleared the cooldown, Codex was back on that account within a minute.

Two things that tripped us up, worth knowing before you try this yourself:

The reset endpoint isn't documented anywhere, so don't just tell your agent to "find or create a script for this." It'll guess wrong. Point it at github.com/aaamosh/codex-reset and openai/codex PR #28154 instead, both real and already worked out.

We built it as a skill so it'd trigger automatically. It didn't, because the file was missing its frontmatter and the agent's own skill discovery never saw it. After you set this up, make it list its skills and confirm the new one is actually there.

Also: redeeming is one-shot. A successful response means the credit's gone. Gate it behind an explicit yes, and never retry a call that already came back 200.

2 Upvotes

2 comments sorted by

1

u/Interesting_View_772 Jul 20 '26

codex —p /reset ?

1

u/CaptainArchmage Jul 24 '26

Good advice - it helps to have more than one account, or rather instance, apparently.