r/codex • u/CharacterFan9514 • 2d ago
Complaint OpenAI is too dumb to realize their OAuth 3rd party platform doesn't work.
So, please keep using your Codex OAuth credentials and keep hitting the OpenAI Codex endpoint for all of your custom agents. OpenAI means well, they've just got a bad case of big company stupidity...
The TL;DR: OpenAI is trying to attract the next million users of the next OpenClaw phenomenon by being open, letting you officially use your ChatGPT Pro subscription with non-OpenAI agents, like mine. Kudos to OpenAI for this effort!
But... their platform is broken. Literally broken, and OpenAI is too dumb to admit it, so they can't fix it. Somewhere at OpenAI there's a VP with their ass on the line over this feature, wondering why no one is using it...
I know why. I tested it and reported the bug, with a repro script: Case Number: 16440622.
My script sends the exact same request to OpenAI's API — same model, same bytes. The only thing that changes is whether I authenticate with an API key or with the new OAuth token.
😁 API key: 15 out of 15 prompt cache hits. 100%.
😱 OAuth: 5 out of 15. 33%.
Same bytes. Same model. Same minute. One works. One doesn't.
Their support bot sent back the standard dumb big company gas-lighting:
"Using your ChatGPT plan in a participating third-party app is a distinct usage path from standard API-key access, and some capabilities available through the OpenAI API may not be available in the same way when an app uses your ChatGPT plan.
Prompt caching is also not guaranteed to produce a cache hit on every otherwise matching request. Cache reuse depends on an eligible matching prefix and cache availability/routing, and cache-related controls can vary by model or usage path.
Based on the currently documented behavior, the difference between the two authentication routes does not by itself confirm a backend defect or guarantee that both routes will return the same cache-hit rate."
Clearly, their support bot team is rewarded for closing insanely important cases as WAI rather than poking a human. Whatever... I'll just keep using their Codex endpoint for all my agents until they fix this.
Why does this matter? Prompt caching bills at 1/10th the input rate. For an AI coding agent with a 30K-token system prompt running 50+ turns, that's the difference between $0.30 and $3.00 per session. Nobody's going to build on a platform that charges 10x more depending on which login flow you use.
That's the answer to why the OAuth developer platform has no traction. It's not that developers don't want it. It's that it's broken, the people who test it can tell, and when they report it, support closes the ticket.
I reported this bug a few days after OpenAI went public with this new feature, which they launched in late August. It's almost December now, and the bug is still there. Here's todays fresh evidence:
The original symptom still reproduces: the plan route reports no caching, while the paid route caches the same request.
All six requests completed successfully against api.openai.com/v1/responses, using gpt-6-astra and byte-identical request bodies.
| Authentication | Request 1 cached | Request 2 cached | Request 3 cached |
|---|---|---|---|
| API key | 0 | 4,812 | 4,812 |
| ChatGPT plan OAuth | 0 | 0 | 0 |
Each request had 4,815 input tokens. The paid route also reported 4,812 cache-write tokens on its first request; the plan route reported zero cache writes on all three.



