top of page

Claude Code Energy Use Exposes the Hidden Cost of AI Agents

3 hours ago
12 min read

Claude Code energy use reached an estimated 170 kilowatt-hours during one researcher's eight-week experiment, despite efficiency gains across modern AI infrastructure.

Climate scientist Zeke Hausfather tracked 1,138 instructions submitted through Anthropic's coding agent. Those instructions triggered more than 14,000 model calls and processed 3.2 billion tokens. His central estimate works out to about 150 watt-hours per human prompt.

That estimate is roughly 600 times the published energy figure for a typical Gemini text prompt. The contrast challenges a reassuring idea about artificial intelligence: that one prompt is a meaningful unit for measuring consumption.

An AI agent does not simply answer and stop. It plans, calls tools, reads results, revisits its working context, and tries again. One request can therefore initiate a long chain of computation that remains mostly invisible to the user.

This is the real conflict behind the latest AI energy debate. Google and other providers have made individual responses remarkably efficient. Agentic products are simultaneously turning each user instruction into many responses, tool calls, and repeated context reads.

The result is not proof that every AI agent wastes electricity. It is evidence that familiar per-prompt comparisons no longer describe a growing category of AI work. Developers, enterprise buyers, and infrastructure planners now need measurements built around completed tasks.

Claude Code Energy Use Changes the Unit of Measurement

The important change is not a new model release. It is evidence that a human prompt can conceal an entire computational workflow.

Hausfather examined his Claude Code activity from May 31 through July 25, 2026. Claude Code is an agentic coding system, meaning it can plan and execute a sequence of actions with limited human direction.

During those eight weeks, Hausfather entered 1,138 prompts. His logs recorded more than 14,000 separate model calls, averaging about 12 calls for every prompt he typed.

The sessions processed 3.2 billion tokens. Tokens are the units a language model reads and generates while handling text, code, instructions, and stored context.

Hausfather estimated that the workload consumed about 170 kilowatt-hours of data center electricity. His uncertainty range extended from roughly 70 to 330 kilowatt-hours because Anthropic does not publish direct energy measurements for each model call.

The resulting central estimate was approximately 150 watt-hours per human prompt. The plausible range was 60 to 290 watt-hours.

By comparison, Google reported that a median Gemini Apps text prompt consumed 0.24 watt-hours in its production environment. That figure included accelerator power, host systems, idle capacity, and data center overhead.

Google's production measurements are not necessarily inconsistent with Hausfather's calculations. They describe a different type of activity.

A Gemini text prompt may produce one concise response. A Claude Code instruction can launch a session involving research, code generation, command execution, debugging, and repeated evaluation.

This distinction explains why Hausfather argues that a prompt resembles a trip rather than a fixed distance. Counting trips tells an analyst little unless the analyst also knows where each trip went.

His median Claude Code session consumed an estimated 0.6 kilowatt-hours. The plausible range ran from 0.25 to 1.2 kilowatt-hours. His average working day reached an estimated 3.0 kilowatt-hours.

The heaviest day reached a central estimate of 11 kilowatt-hours. On that day, several parallel agents worked through a large geospatial analysis.

These figures come from one unusually intensive user, not a representative sample of all Claude Code customers. Hausfather works with complex climate data and describes himself as a heavier user than most people.

Still, the experiment identifies a measurement failure that applies beyond one researcher. A user sees one instruction while the infrastructure handles a branching series of computational events.

The shift matters because companies increasingly market agents as replacements for complete workflows. If the product promise concerns completed work, its resource accounting should measure completed work too.

Why AI Agents Consume More Than Chatbots

Agents multiply energy demand through iteration, parallel work, and repeated context processing, not through a single extraordinary response.

A standard chatbot exchange usually follows a simple path. The user sends text, the model processes its context, and the system generates an answer.

An agentic workflow adds a control loop. The model decides what to do, uses a tool, observes the result, updates its plan, and starts another inference step.

Inference is the process of running a trained model to produce a result. Every additional inference step requires processors, memory, networking, and supporting data center equipment.

Claude Code can search a repository, read files, edit code, run tests, inspect errors, and revise its work. A difficult task may involve dozens or hundreds of these steps.

Parallel subagents increase the count further. They can explore separate approaches simultaneously, improving coverage while consuming compute at the same time.

Hausfather's logs revealed that visible output represented only about 0.4 percent of all processed tokens. Approximately 96 percent were cache reads.

A cache stores previously processed model context so the system can reuse it more efficiently. Reading cached context costs less than processing fresh input, but it still consumes resources.

The volume becomes important because an agent repeatedly revisits its growing working history. Each tool result, file excerpt, instruction, and prior decision can remain part of later model calls.

This creates a compounding pattern. Longer sessions generate more context, and later steps may need to reread much of that context before producing another action.

Hausfather assumed that cached tokens consumed 10 percent of the energy required for fresh input. He also calculated lower and upper cases using 1 percent and 25 percent.

That wide band shows why the final estimate remains uncertain. Pricing can provide clues about resource use, but a discounted token price is not a direct electricity meter.

Hausfather tested three published estimation methods and obtained results within the broader 70-to-330-kilowatt-hour range. The agreement supports his general conclusion without eliminating uncertainty.

The key mechanism also appears in broader emissions research. A 2026 accounting framework estimates that an agentic workflow making 5 to 50 frontier-model calls can consume 50 to 500 watt-hours.

The same framework warns that one interaction can understate the underlying computation by an order of magnitude or more. That warning directly applies to agents presented through a simple chat interface.

Context management therefore becomes an infrastructure decision, not merely a usability feature. Teams can reduce needless processing by limiting irrelevant context and routing retrieval toward the information required for each step.

A carefully maintained searchable knowledge base can help engineers retrieve focused material instead of repeatedly loading broad document collections. However, actual savings depend on the agent architecture.

Model routing matters too. A system can send classification, extraction, and routine edits to smaller models while reserving frontier models for difficult reasoning.

That approach does not remove the agent's energy cost. It aligns the amount of computation with the value and difficulty of each operation.

Efficient AI Meets Expanding Agent Workflows

The central tension is that individual inference keeps getting cheaper while agentic products consume more inference to finish each assignment.

Google's 0.24-watt-hour figure offers strong evidence that production optimization can reduce energy per response. The company measured a median Gemini text prompt across its serving stack rather than testing an isolated accelerator.

Google also reported a 33-fold reduction in energy per median prompt over one year. Model changes, software improvements, hardware upgrades, and serving optimization contributed to that decline.

This progress matters. Static estimates built from older chips or lightly utilized laboratory systems can substantially overstate the electricity required by a modern production service.

Batching allows infrastructure to serve several requests together. Caching avoids repeating some calculations. Higher utilization spreads idle equipment consumption across more useful work.

Specialized processors also perform more calculations for each unit of electricity. Hausfather cited estimates showing major gains in machine-learning hardware efficiency since 2016.

Yet efficiency per operation does not automatically reduce total consumption. Cheaper computation can encourage developers to use more of it.

Agentic products make that rebound visible. Once a model call becomes faster and less expensive, designers can add planning passes, verification loops, tool use, and parallel agents.

Those additions can improve the result. They can also consume the efficiency dividend before it lowers total electricity demand.

This is a version of the Jevons effect, where greater resource efficiency can stimulate enough new demand to offset expected savings. AI does not guarantee that outcome, but its present incentives favor more computation.

Model providers compete on task completion, coding performance, and autonomy. Users generally notice whether the agent solves the problem, not how many hidden calls it required.

Anthropic's own usage analysis found that 77 percent of sampled first-party API business use followed automation-oriented patterns. Coding and office tasks featured prominently.

That research did not measure electricity consumption. It does show why agentic workloads deserve attention: enterprise API use already emphasizes automated execution instead of isolated conversation.

The economic incentives reinforce the pattern. Anthropic reported weak price sensitivity among the business tasks in its sample. More capable and expensive tasks appeared more frequently than cheaper ones.

If a coding agent saves several hours of skilled work, an enterprise may accept substantially more inference than a chat answer requires. Electricity per prompt then becomes less useful than electricity per resolved issue.

The same logic applies to scientific analysis. Hausfather's heaviest day supported a complex geospatial project, not casual conversation.

The right comparison is therefore not always an agent against a chatbot. It may be an agent-assisted workflow against the computers, travel, labor, or delays required by the previous process.

However, that broader comparison needs real data. Productivity benefits cannot simply be assumed, and providers should not use potential benefits to avoid disclosing resource consumption.

Efficiency and workload growth must be reported together. A falling per-token number can coexist with rising electricity demand if total token processing grows faster.

This is why the Claude Code energy use estimate acts as a warning rather than a final verdict. It reveals how easily a good efficiency story can omit the expansion happening above the model layer.

What the Claude Code Estimate Cannot Prove

The 600-fold comparison is directionally important, but it is not a direct measurement of Anthropic's electricity consumption.

Hausfather had unusually detailed activity logs. They recorded model identifiers, timestamps, and token categories for individual API responses.

Those logs provide a strong record of computational activity. They do not reveal the actual electrical power used by Anthropic's servers during each request.

The estimate therefore converts tokens into energy through published methodologies. Each method requires assumptions about hardware, utilization, batching, cache handling, and data center overhead.

Anthropic has not published the per-token or per-prompt energy data needed to replace those assumptions with first-party measurements. The locations and electricity sources serving the sessions also remain undisclosed.

Cache treatment creates another major uncertainty. A cached token avoids repeating some work, but the precise savings depend on the serving system.

Hausfather's central case treated cache reads as consuming 10 percent of fresh-input energy. A different relationship would move the total estimate substantially.

The sample also represents one person over eight weeks. Hausfather used numerous subagents for large analytical tasks, so his activity sits far from a casual user's coding session.

His median session involved around 10 million tokens and more than 100 calls. Other published estimates for Claude Code sessions have used smaller workloads.

It would therefore be misleading to claim that every Claude Code prompt consumes 150 watt-hours. The correct conclusion is narrower: some advanced agentic sessions consume hundreds of times more energy than simple chat prompts.

The comparison with Gemini also crosses providers and workload types. Google's figure covers the median text prompt on Gemini Apps, while Hausfather's estimate covers intensive Claude Code activity.

That difference is the point of the comparison, but it limits what the ratio can establish. It does not show that Claude is intrinsically less efficient than Gemini.

Only controlled testing of comparable tasks on both systems could support that claim. Ideally, the providers would disclose measurements using consistent system boundaries.

The Watershed framework illustrates how strongly those boundaries affect results. It found that isolated benchmarks can overstate production inference electricity by four to 20 times because they miss batching and caching.

The opposite error is also possible. Reporting only active accelerator power can omit host servers, idle capacity, cooling, networking, and electricity conversion losses.

Companies should disclose both workload and infrastructure information. Useful fields would include tokens, model class, accelerator type, data center overhead, utilization assumptions, and regional electricity sources.

Completed-task reporting would add another essential layer. An agent might use more energy per attempt while requiring fewer human retries or completing work that simpler systems cannot finish.

Success rates matter because failed agent runs still consume electricity. A workflow that repeatedly stalls can have a poor energy-per-outcome result even when each individual call looks efficient.

Enterprise buyers should ask vendors how they handle retries, context growth, tool failures, and model routing. These design decisions affect both operating costs and environmental reporting.

The skeptical position is not that Hausfather's estimate should be ignored. It is that one transparent estimate exposes how much crucial information providers still withhold.

The Pressure Moves From Users to Infrastructure Buyers

The agent energy problem will be decided by procurement, software architecture, and electricity supply more than by individual prompt restraint.

Hausfather annualized his eight-week workload to roughly 1.1 megawatt-hours of data center electricity. His range extended from 0.4 to 2.2 megawatt-hours.

Using average U.S. grid emissions, he estimated approximately 370 kilograms of carbon-dioxide-equivalent emissions per year. The range was 150 to 730 kilograms.

That is significant for one software user, but Hausfather does not argue that personal guilt offers the main solution. Heavy agent users still represent a limited portion of total electricity demand.

The larger risk comes from scale. An enterprise can deploy thousands of agents that operate continuously across coding, customer service, finance, research, and administrative work.

Each agent may create modest demand. Persistent workloads multiplied across many departments can alter infrastructure requirements.

Data center forecasts already show the size of the surrounding challenge. Lawrence Berkeley National Laboratory's 2025 update estimates a 2030 reference case of 649 terawatt-hours for U.S. data centers.

That reference case equals 11.8 percent of total U.S. electricity use. The report's compounded uncertainty range spans 521 to 843 terawatt-hours.

The forecast covers all data center demand, not only AI agents. Still, AI servers and their utilization rates are central uncertainties within the model.

This places pressure on three groups.

Cloud and model providers must disclose enough information for customers to compare systems. Without consistent reporting, efficiency becomes a marketing statement rather than a procurement metric.

Application developers must decide when autonomy justifies repeated model calls. A five-agent workflow should face a higher value threshold than a single smaller-model request.

Enterprise buyers must measure outcomes. They need the cost, energy, latency, and success rate associated with a completed task, not an average prompt.

These decisions also affect grid planning. Large data centers require generation, transmission, substations, cooling systems, and firm capacity that can handle peak demand.

Location matters because the same workload can produce different emissions on different electricity systems. Low-carbon generation reduces emissions even when the underlying computation stays constant.

Workload flexibility can help. Some training, evaluation, and background agent tasks can shift toward hours or regions with cleaner or less constrained electricity.

Interactive coding sessions provide less flexibility because users expect rapid responses. However, nonurgent subagent research or testing may tolerate scheduling.

Smaller models offer another lever. Routine classification, file selection, and syntax checks do not always require the largest available model.

Developers can also cap iteration, compress context, reuse validated results, and stop failed workflows earlier. Those controls can reduce cost while improving predictability.

The best architecture will not always use the least electricity. It should use the least computation that reliably completes the valuable task.

That standard connects environmental performance with engineering discipline. Wasteful retries, oversized contexts, and unnecessary frontier-model calls are usually financial problems too.

Three Signals Will Show Whether Agentic AI Can Scale Responsibly

The next phase of the AI energy debate depends on provider disclosure, task-level efficiency, and the electricity built for new data centers.

The first signal is direct energy reporting from Anthropic and other model providers. Token logs cannot answer questions that require access to production hardware and serving data.

Useful disclosure should distinguish simple chat, reasoning, coding, and multi-agent workflows. It should cover complete infrastructure rather than one processor.

If providers publish comparable task-level measurements, confidence in agent energy estimates will improve. Continued silence will strengthen concerns that customers cannot assess the systems they deploy.

The second signal is whether energy per completed task declines, not merely energy per token. Better chips and serving software will keep reducing the cost of individual operations.

Agents may still consume those gains by using longer contexts and more calls. Vendors should report task success beside total inference, retries, and latency.

A falling task-level figure would show that efficiency is outpacing workflow expansion. Rising consumption for similar outcomes would suggest that added autonomy is absorbing the savings.

The third signal is the type of electricity attached to new data center capacity. Efficiency cannot determine emissions without knowing the generation source.

Hausfather estimates that running the same workload on a largely clean electricity supply could cut its emissions by roughly 90 percent. The exact reduction varies by location and procurement method.

New renewable generation, storage, nuclear power, geothermal resources, and transmission can lower the carbon intensity of additional demand. Dedicated fossil generation moves the system in the opposite direction.

These signals matter more than arguments about whether one AI prompt resembles several seconds of television. That comparison describes a narrow interaction that agents are rapidly leaving behind.

A better question is whether an agent completed work worth its full computational cost. Answering it requires transparent logs, provider measurements, and honest outcome tracking.

Developers can begin now by auditing call counts, context growth, retries, and model selection. Enterprise buyers can request task-level resource data during procurement rather than accepting a single average.

The Claude Code energy use estimate does not settle whether agents provide enough value. It establishes that their real unit of consumption is the workflow.

As agents take on longer assignments, users should ask what happens after pressing Enter. How many models run, how often do they reread context, and which electricity sources keep that process moving?

Give every agent the context to do better work

Connect your agents to the knowledge, decisions, and history already organized in remio.

remio currently supports Windows 10+ (x64) and Macs with Apple silicon.

Your AI Partner at Work
Get more done with remio

Plan. Create. Deliver.
All in one place.

bottom of page