Repository navigation
Description
What variant of Codex are you using?
ChatGPT Work / Desktop, with the same concept applicable to Codex App/Web and other metered agentic workloads.
What feature would you like to see?
Before an agentic task begins, show the user an estimated monetary cost range for completing that task with the currently selected model and reasoning level.
The user should be able to compare the estimated cost across models, authorize a maximum spend for that individual task, see the running cost while it executes, and be asked for additional authorization if the task becomes substantially more expensive than originally estimated.
Additional information
Current token/credit pricing may be technically precise for accounting purposes, but it is difficult for an ordinary user to translate it into the question that matters before starting a task:
“Approximately how much money am I authorizing this task to spend?”
A user may understand that a premium model costs more without having any practical intuition for whether a particular agentic task will consume $2, $10, $25, or $50 of purchased credits.
Agentic workloads make this especially difficult because one user prompt can initiate many model turns, tool calls, file operations, delegated tasks, retries, and other work.
After-the-fact usage reporting and monthly spending limits do not solve this problem. They tell users what they have already consumed or limit aggregate consumption. They do not provide informed authorization for an individual task.
Proposed UX
When the user submits a task, before execution begins, show something similar to:
Estimated cost to complete: $4–$8
GPT-6 Astra — $4–$8
GPT-5.6 Sol — $2–$4
GPT-5.6 Terra — $0.75–$2
Changing the selected model or reasoning level should dynamically update the estimated range.
The estimate does not need to be exact. Agentic work is inherently unpredictable. A statistically derived range based on prompt/context size, selected model, reasoning level, anticipated tool use, and historical workloads would still be substantially more useful than exposing only tokens or credits.
Per-task spending authorization
Allow the user to specify:
Maximum authorized spend for this task: $10.00
The agent can then operate autonomously within that budget.
This is not necessarily intended as an absolute system-wide billing limit. It is authorization for the individual task.
Mid-task reauthorization
If the agent discovers unexpected complexity and predicts that completing the task will exceed the original estimate or authorized amount, pause execution.
For example:
Additional authorization required
Spent so far: $8.43
Original estimate: $4–$8
Revised additional cost estimate: $4–$7
The task has required more work than initially anticipated.
Options:
Continue with current model
Switch to a less expensive model
Increase spending limit
Stop task
This preserves agent autonomy while keeping financial authorization with the user.
Running cost meter
During execution, display something like:
Current task cost: $5.27 / $10.00 authorized
Credits and tokens can remain available as detailed metrics, but monetary cost should be the primary user-facing measurement when purchased credits are being consumed.
Real-world example
I encountered this problem while intentionally using GPT-6 Astra for substantial Skyrim modding and UX-design projects.
I selected Astra because its performance was excellent and I wanted high-quality results. I understood that a premium model would cost more.
However, I consumed 2,711.3 purchased credits in seven days.
My objection is not that premium compute has a premium price. I was willing to pay for Astra.
The problem is that when I authorized individual tasks, I had no intuitive way to know whether I was authorizing approximately $2, $10, or $50 of additional compute.
Tokens and credits are abstractions that make sense as internal accounting measurements, but they do not give most users an intuitive understanding of the financial commitment they are making.
Why this could benefit OpenAI as well as users
This isn't simply a request to reduce prices.
Better cost visibility could actually make users more comfortable intentionally selecting premium models when their capabilities justify the expense.
For example, if a task showed:
Astra: $8–$14
Sol: $3–$6
Terra: $1–$3
I could make an informed decision that an important task is worth spending $8–$14 on Astra.
Without that information, unexpectedly consuming a large credit balance can instead teach the user to avoid the premium model entirely.
Conversely, users may discover that routine work does not justify premium compute and deliberately select a less expensive model, potentially reducing unnecessary high-end compute consumption.
Suggested workflow
Prompt → Cost estimate → Model comparison → User authorization → Execution → Running cost → Reauthorization if necessary → Completion
The underlying token/credit accounting does not need to change.
This proposal is primarily about adding a human-understandable economic layer over the existing accounting system.
Users should not need to understand tokenization, cached input pricing, inference costs, subagent behavior, or model-specific credit rates to answer a much simpler question:
“Approximately how much am I agreeing to spend when I click Run?”

Activity
github-actions commentedon Sep 18, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Keesan12 commentedon Sep 26, 2026
We built something close to this. Before the run starts you set the authorized spend ceiling. If the estimate suggests it'll go over, it asks before proceeding. If it goes over mid-run, it stops.
martin-loop — open source, works with both Claude Code and Codex. Might be useful while this gets tracked upstream.
mmoemou commentedon Oct 21, 2026
Reproducible, privacy-preserving per-task usage measurement (independent research note)
Thanks for raising the per-task authorization problem. I am developing an offline, opt-in usage-accounting prototype and a methodology to decide whether to buy extra credits, wait for a reset, or change plans. I am sharing the measurement approach, not proprietary projects, source code, logs, or user prompts.
Three distinct ledgers — please do not convert them into one fictitious number
token_countrecordsA synthetic Codex JSONL example illustrates the first problem:
This distinction is already being addressed in community tooling; see ccusage/ccusage#1435 (replayed Codex history). We should build on those fixes, not rediscover them.
What would make an informed spending decision possible
A small protocol to evaluate this
For 5–10 comparable tasks: record model/effort; opt-in local Codex counters; same-window quota before/after; whether other shared-allowance work ran concurrently; exact count of accepted outputs; repeated retrievals and retries. Report
accepted_outputs / allowance_points, confidence limits, and a separate estimate of cash/credits under explicit assumed rates. Do not infer a fixed token allocation from a consumer subscription price.Question to maintainers: Is a stable root-task/descendant token+quota ledger or export already planned? Can it include cloud Work usage and optional privacy-preserving job IDs without exposing project data?
This is a research contribution to your existing feature request, not a claim of a billing defect or an attempt to make private code public.