anomalyco / anomalyco/opencode
[FEATURE]: Add opt-in Codex OAuth cost estimates
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
- I have verified this feature I am about to request has not been suggested before.
Describe the enhancement you want to request
ChatGPT and Codex OAuth sessions intentionally report zero cost because subscription usage does not expose billed API charges.
Add an opt-in providers.openai.oauth_cost_estimates configuration field so users can retain the catalog price calculation when they want a local API-equivalent estimate.
The default and explicit false must keep the current zero-cost behavior.
The estimate must not be represented as a ChatGPT subscription charge or invoice.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by locating the providers.openai configuration definition and the OAuth cost-calculation entry point, then trace how catalog prices become reported costs. Done means an opt-in oauth_cost_estimates setting preserves the current zero-cost default and explicit false, while true produces only a local API-equivalent estimate rather than a subscription charge or invoice.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100