Skip to content

Per-task cost estimates, model cost comparison, and spending authorization for agentic tasks #46390

Open

Description

@seeknknow

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?”

Image Image Image Image Image Image

Activity

  1. added
    enhancement
    on Sep 18, 2026
  2. added
    app
    rate-limits
    on Sep 18, 2026
  3. github-actions commented on Sep 18, 2026

    @github-actions
    Contributor
  4. Keesan12 commented on Sep 26, 2026

    @Keesan12

    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.

  5. mmoemou commented on Oct 21, 2026

    @mmoemou

    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

    Ledger What it measures What it does not prove
    Local Codex token_count records Reported input, cached input, output, reasoning-output subset; job/session grouping where explicitly mapped Actual Plus allowance debits, authoritative billing, or cloud Work tokens
    ChatGPT/Work subscription UI snapshots Displayed remaining quota in a specific 5-hour/weekly reset window, with rounding and possible concurrent-tool use Exact tokens for any particular task or turn
    Verified task outputs Accepted deliverables, functional evidence, reopened defects, checkpoints, rework Quality simply from token quantity or completed file count

    A synthetic Codex JSONL example illustrates the first problem:

    • Snapshot A: cumulative 1,000 input + 200 output.
    • Snapshot B: identical cumulative totals (UI refresh/re-emission).
    • Snapshot C: cumulative 1,600 input + 300 output.
    • Actual recorded increase from first to last: 700 tokens, not 1,200 + 1,200 + 1,900. For a full run starting at zero, 1,900 is the final cumulative total. Forked or nested agent histories may replay the parent's prefix; simply adding independent file totals can also overstate work.

    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

    1. Per-root-task usage export, machine-readable, including descendants/reused agents, model, effort, cached vs uncached input, output, reasoning subset, tool/request count, and start/end.
    2. Two parallel quota measurements: actual allowance debits (or a rate-unit breakdown), plus a separately labeled projected monetary/credit equivalent. A synthetic 72% → 60% UI reading means 12 displayed percentage points, not a known number of tokens.
    3. User-configured budget in credits or allowable quota percentage, enforced before further agent/model requests; persist exact resume checkpoints when near the cap.
    4. Progress denominator: explicit accepted artifacts/tests/gates and revision count, ideally via user-defined task labels, so the efficiency metric is verified outcome per allowance unit.
    5. Privacy by default: local aggregation only; do not upload raw prompts, repository names, paths, SHA values, IDs, sensitive billing data, or logs for telemetry. Permit synthetic export for reproducibility.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appenhancementrate-limits

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions