Uber’s CTO Spent $1,200 in Two Hours on AI Coding Agents — and Exposed a Problem Nobody Wants to Talk About

Uber CTO Sundeep Gupta accidentally spent $1,200 in two hours using Anthropic's Claude Code, exposing a growing industry problem: AI coding agents that autonomously iterate on tasks can generate massive, unpredictable API bills that threaten enterprise budgets.
Uber’s CTO Spent $1,200 in Two Hours on AI Coding Agents — and Exposed a Problem Nobody Wants to Talk About
Written by Lucas Greene

Sundeep Gupta didn’t set out to make a point about runaway AI spending. Uber’s chief technology officer was simply trying to build something — a personal project using Anthropic’s Claude Code, one of the most capable AI coding agents available. Two hours later, he’d burned through roughly $1,200 in API costs. The bill shocked him enough that he shared the experience publicly, and the reaction from the tech industry was swift and telling.

The episode, first reported by The Information, has become an instant case study in one of the most underappreciated risks facing companies racing to deploy AI coding tools: the sheer, unpredictable cost of letting autonomous agents run against cloud APIs. Gupta’s experience wasn’t a failure of the technology. Claude Code worked. It wrote code, iterated, debugged. But it did so with the relentless appetite of a machine that has no concept of a budget.

That’s the problem.

AI coding agents — tools that can autonomously write, test, and refine software with minimal human intervention — have become the hottest category in enterprise software this year. Anthropic’s Claude Code, OpenAI’s Codex, Google’s Jules, and a growing roster of startup offerings from companies like Cursor, Windsurf, and Devin are all competing for developer adoption. The promise is extraordinary: software engineers augmented by AI that can handle increasingly complex tasks, compressing weeks of work into hours. But Gupta’s $1,200 afternoon reveals a structural tension that the industry has been slow to address. These agents are powerful, and power costs money — sometimes far more money than anyone anticipated.

The Economics of Autonomous Code Generation

To understand why Gupta’s bill spiraled, you need to understand how AI coding agents actually work. Unlike a simple chatbot interaction where a user sends a prompt and receives a single response, coding agents operate in loops. They write code, execute it, observe the results, identify errors, and try again. Each iteration consumes tokens — the basic unit of measurement for large language model usage — and complex coding tasks can require dozens or even hundreds of these loops before arriving at a working solution.

Claude Code, which Anthropic launched earlier this year, runs on the company’s most advanced model, Claude 4 Sonnet (and optionally Claude 4 Opus, which is even more expensive). When operating in “agentic” mode, the tool doesn’t just respond to a single instruction. It thinks. It plans. It breaks problems into sub-tasks, spawns multiple parallel operations, reads files, writes files, runs terminal commands, and iterates relentlessly. Every one of those steps burns tokens. And at Anthropic’s API pricing — which charges per input and output token — the costs compound fast.

For a simple task, the bill might be a few dollars. For a complex, multi-file project with ambiguous requirements? Hundreds of dollars per session isn’t unusual. Gupta’s $1,200 in two hours puts him at the extreme end, but developers across the industry have reported similar sticker shock. Posts on X and developer forums are filled with screenshots of unexpected bills ranging from $50 to $500 for what users assumed would be routine coding sessions.

The math is straightforward but unforgiving. Anthropic’s Claude 4 Sonnet charges $3 per million input tokens and $15 per million output tokens. An agentic coding session that processes, say, 10 million input tokens and generates 5 million output tokens would cost $105 — for a single task. Scale that across a team of 50 engineers, each running multiple sessions per day, and the annual cost can easily reach millions of dollars. And that’s before accounting for the more capable (and more expensive) Opus model.

This isn’t a problem unique to Anthropic. OpenAI’s pricing for its most capable models follows a similar structure, and the company’s own Codex agent — currently in research preview — will face identical economic pressures when it scales. Google’s Gemini models carry comparable per-token costs for their most advanced tiers. The entire industry is built on a pricing model that works well for conversational AI but becomes volatile when agents start running autonomously.

Some companies have tried to abstract away this complexity. Cursor, one of the most popular AI-powered code editors, charges a flat monthly subscription of $20 for its Pro tier, which includes a set number of “fast” requests using premium models. But even Cursor has had to impose usage limits, and power users regularly blow through their allocations. Windsurf, another AI coding tool, similarly caps usage. The subscription model works as long as average usage stays predictable. When agents get more capable — and users start trusting them with bigger tasks — that predictability evaporates.

Anthropic itself seems aware of the tension. The company offers a Max plan for Claude Code at $100 and $200 per month tiers, which provide higher usage limits. But these plans are designed for individual developers, not enterprise teams running agents at scale. For API access, there’s no ceiling. You pay for what you use. And autonomous agents can use a lot.

Why This Matters Beyond One CTO’s Credit Card Statement

Gupta’s experience matters because it previews a challenge that every large enterprise will face as AI coding agents move from experimental toys to production tools. Uber, with its thousands of engineers and massive codebase, is exactly the kind of company that stands to benefit enormously from AI-assisted development. But it’s also the kind of company where uncontrolled AI spending could balloon into a serious budget line item practically overnight.

The issue isn’t theoretical. According to a recent Gartner estimate, enterprise spending on AI coding tools is expected to grow significantly through 2026, with many organizations already allocating dedicated budgets for developer AI. But most of those budgets were set based on early assumptions about per-seat licensing costs — the Cursor and GitHub Copilot model of $10-$40 per developer per month. Agentic coding, where AI operates autonomously for extended periods, breaks that model entirely.

Several CTOs and engineering leaders have begun raising alarms privately. The concern isn’t that AI coding tools aren’t valuable — most agree they dramatically accelerate development — but that the cost-benefit calculation becomes murky when agents run unchecked. A tool that saves an engineer four hours of work but costs $200 in API fees is still economical if that engineer’s fully loaded cost is $150 per hour. But what about the sessions where the agent spins its wheels, iterating on a problem it can’t solve, burning tokens without producing useful output? That’s dead spend. And right now, there’s no good way to predict when it will happen.

Some organizations are implementing guardrails. Budget caps per session. Approval workflows for expensive operations. Monitoring dashboards that track token consumption in real time. But these controls are primitive compared to the sophistication of the agents themselves. It’s a familiar pattern in enterprise technology: the capabilities arrive first, the governance follows later.

The competitive dynamics make restraint difficult. No engineering leader wants to be the one who throttles AI adoption while competitors sprint ahead. Anthropic, OpenAI, and Google are all aggressively marketing their coding agents to enterprises, emphasizing speed and capability gains. The cost conversation tends to happen after adoption, not before.

And the agents are only getting more capable. Anthropic recently introduced Claude 4 Opus, its most powerful model yet, specifically designed for extended, complex reasoning tasks — exactly the kind of work that coding agents perform. OpenAI is pushing its o3 and o4-mini reasoning models into developer workflows. Google’s Gemini 2.5 Pro is being positioned for agentic use cases. Each generation of models is more capable but also more expensive to run, particularly for the extended “thinking” operations that make agents effective.

There’s a deeper structural question here too. The major AI labs are engaged in an intense competition for revenue, and API consumption by coding agents represents one of the fastest-growing sources of that revenue. Anthropic reportedly generated over $1 billion in annualized revenue earlier this year, with a significant portion coming from API usage. Every token consumed by an autonomous agent flows directly to the AI provider’s top line. The incentive structure, in other words, doesn’t naturally favor efficiency.

This isn’t to suggest that AI companies are deliberately designing wasteful systems. But the current architecture — where agents iterate freely against pay-per-token APIs — creates a misalignment between the user’s goal (working code, as cheaply as possible) and the provider’s business model (revenue per token consumed). Until pricing models evolve to better align these incentives, episodes like Gupta’s will keep happening.

Some possible solutions are emerging. Outcome-based pricing — where users pay for completed tasks rather than tokens consumed — would shift the efficiency burden to the AI provider. Hybrid models that combine subscription access with metered overages could provide more predictability. Smarter agents that estimate costs before executing and ask for approval could give users more control. And competition itself may drive prices down; as more capable open-source models emerge, the pressure on proprietary API pricing will intensify.

But for now, the industry is in an awkward middle phase. The tools are good enough to be genuinely useful. The costs are high enough to be genuinely concerning. And the governance frameworks are nowhere near mature enough to manage the gap.

Gupta, to his credit, shared his experience openly — a rare move for a sitting CTO of a major public company. His willingness to surface the problem publicly may accelerate the conversation around AI spending controls that the industry badly needs. Because if Uber’s CTO can accidentally spend $1,200 in two hours on a personal project, imagine what happens when an enterprise unleashes these tools across an organization of 10,000 engineers without proper cost controls in place.

The answer is a number that would make any CFO lose sleep.

Subscribe for Updates

AIDeveloper Newsletter

The AIDeveloper Email Newsletter is your essential resource for the latest in AI development. Whether you're building machine learning models or integrating AI solutions, this newsletter keeps you ahead of the curve.

By signing up for our newsletter you agree to receive content related to ientry.com / webpronews.com and our affiliate partners. For additional information refer to our terms of service.

Notice an error?

Help us improve our content by reporting any issues you find.

Get the WebProNews newsletter delivered to your inbox

Get the free daily newsletter read by decision makers

Subscribe
Advertise with Us

Ready to get started?

Get our media kit

Advertise with Us