AI article

$402 on one ticket: cost per turn in headless Claude Code

Community description: One ticket reached $402 over nine headless Claude Code runs and nothing in the app said so. The catch when you fix that: total_cost_usd is cumulative

Dev.to | Sep 28, 2026 | Panth Patel

Automated excerpt

Putting the cost on every turn has one catch: Claude Code's total_cost_usd is cumulative across --resume. The orchestrator (workspaces/lib/orch. mjs, about 600 lines, zero dependencies) runs one headless Claude Code session per ticket. Read naively, that line says run 8 cost $392. 83.

Selected automatically from source text; not independently written or fact-checked. Read the original for full context.

Read the original article

More AI news