Codex on AWS bedrock bug causing 10x charges
- AI
- Cloud Infrastructure
- Developer Tools
- Economics
The submission points to a GitHub issue about Codex on AWS Bedrock apparently misusing prompt caching. The original reporter says cache writes were happening, cache reads were under 5 percent, and the result was about a 10x cost increase because expensive writes were not being paid back by reuse. A reported workaround was to disable web search. People who knew the underlying API docs said the issue report itself was messy, but they still found the behavior change plausible and interesting. One concrete clue was that users editing their last prompt in Codex 5.6 saw those edits affect later responses in ways that did not happen before, which suggests a real change in how cached context is handled rather than a simple pricing display glitch.
If you run LLM workloads through intermediaries like Bedrock, instrument cache read and write behavior directly instead of trusting default settings or headline pricing. Treat model and product updates as potential billing changes, and add alerts for sudden shifts in cache hit rates or token spend before they become invoice shocks.
-
github.com
- Discuss on HN