{
  "id": 22734937,
  "title": "Codex Logged Fast Mode. My Cost Tracker Still Couldn't Price 13.07M Tokens.",
  "url": "https://urgent.news/2026/11/30/codex-logged-fast-mode-my-cost-tracker-still-couldnt-price-13-07m",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-30T05:59:13.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/shikiyusuke/codex-logged-fast-mode-my-cost-tracker-still-couldnt-price-1307m-tokens-l7o"
  },
  "original_language": null,
  "account": "On November 25, I examined my Codex logs using an agent-cost tool I developed that estimates costs from records of usage on a local system. The analysis revealed 13.07 million tokens were processed in Fast mode, but all of these tokens were marked as unpriced. The tool did note that service_tier = priority, which is the setting for Fast mode, but it was located one line later in the log.\n\nHere are the significant events, in the sequence they occurred according to Codex:\n\n1. The turn began\n2. The turn context (turn_context) was recorded, noting the turn ID and model thread_settings_applied\n3. Codex recorded the service_tier = priority for the thread\n4. Codex recorded the token usage\n5. The parser produced the third line while still setting up the turn, before any usage had been recorded\n\nThe parser mistakenly recognized the log as normal mode when it should have been Fast mode. Consequently, the cost for these tokens could not be determined. Changing the parser so that it uses the initial setting immediately after turn_context as the turn's starting setting should fix this issue. This update will also ensure that earlier tokens are priced with the Fast rate when a mode switch occurs during a turn.\n\nIn version 0.5.9, the parser can use the setting right after the first turn_context as the turn's initial setting. This prevents any usage from being recorded at the time. Additionally, the parser checks that the setting matches the thread and the model, and that no other turn overlaps. Additionally, I limited the cutoff to one second after turn_context for testing purposes.\n\nTo test this, I created a synthetic log for a gpt-6.2-sol model with one million input tokens, zero cached tokens, and zero output tokens. The settings were the same, except for the service_tier and its timestamp. The delay was set to 1 millisecond, and I compared the results with the default setting in version 0.5.8.\n\nThe estimates were as follows:\n\n- One millisecond after turn_context: priority was unpriced, but Fast mode cost $4\n- One millisecond after turn_context: default was normal, priced at $2\n- One second after turn_context: priority was unpriced, but Fast mode cost $4\n- One second and one millisecond after turn_context: priority was unpriced, and Fast mode remained unpriced\n\nThe $4 and $2 values come from the rate table included with each version, and they are applied to the synthetic million-token input. The calculation does not include promotions or contract discounts. However, the usage log alone does not indicate what I was billed.\n\nWhen I re-ran the logs from November 25, the parser correctly priced the priority turns as Fast. However, some older Astra logs still lacked a service_tier. Those tokens remained unpriced in the usage count.\n\nTo run a report on your own Claude Code or Codex logs, you can use the command: uvx --from coding-agent-cost agent-cost report.",
  "summary": "On November 25, I ran my Codex logs through agent-cost , a CLI I maintain that estimates costs from local usage records. It counted 13.07 million tokens from Fast mode and marked all of them unpriced . The token counts were there. So was service_tier = priority , the setting for Fast. The clue was where that setting appeared in the log. The setting came one line later Here are the events that…",
  "summary_source": "publisher",
  "key_points": [
    "13.07 million tokens processed in Fast mode, unpriced",
    "Servicetier = priority recorded, but parser misidentified mode",
    "Updated parser will price Fast mode tokens correctly"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}