# The Bill Arrives: How to Manage Agentic AI Costs at Scale

DevFeed: [The Bill Arrives: How to Manage Agentic AI Costs at Scale](<https://devfeed.tech/articles/the-bill-arrives-how-to-manage-agentic-ai-costs-at-scale-23736.md>)

Original publisher: [Read original article](<https://cockroachlabs.com/blog/agentic-ai-costs-at-scale>)

Author: Quentin Packard

Published: 2026-06-10T00:00:00Z

Content type: article

Language: en

Sources: [Cockroach Labs](<https://devfeed.tech/sources/cockroach-labs.md>)

Topics: [Finance](<https://devfeed.tech/topics/finance.md>), [AI Context Management](<https://devfeed.tech/topics/ai-context-management.md>), [Loop Engineering](<https://devfeed.tech/topics/loop-engineering.md>), [Claude](<https://devfeed.tech/topics/claude.md>), [Inference](<https://devfeed.tech/topics/inference.md>), [database-optimization](<https://devfeed.tech/topics/database-optimization.md>), [consistency](<https://devfeed.tech/topics/consistency.md>), [ai-governance](<https://devfeed.tech/topics/ai-governance.md>), [managing large-scale text data in AI](<https://devfeed.tech/topics/managing-large-scale-text-data-in-ai.md>), [Local AI](<https://devfeed.tech/topics/local-ai.md>), [model architecture](<https://devfeed.tech/topics/model-architecture.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [about](<https://devfeed.tech/tags/about.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [agents](<https://devfeed.tech/tags/agents.md>), [agents-in-production](<https://devfeed.tech/tags/agents-in-production.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [ai-costs](<https://devfeed.tech/tags/ai-costs.md>), [bill](<https://devfeed.tech/tags/bill.md>), [budget](<https://devfeed.tech/tags/budget.md>), [building](<https://devfeed.tech/tags/building.md>), [business](<https://devfeed.tech/tags/business.md>), [context](<https://devfeed.tech/tags/context.md>), [costs](<https://devfeed.tech/tags/costs.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [manage](<https://devfeed.tech/tags/manage.md>), [production](<https://devfeed.tech/tags/production.md>), [scale](<https://devfeed.tech/tags/scale.md>), [token](<https://devfeed.tech/tags/token.md>), [uber](<https://devfeed.tech/tags/uber.md>)

## AI overview

Agentic AI costs depend on the full cost of completing a task, not just model token prices: multi-step workflows resend context, retrieve data, call tools, retry failures, and require orchestration, evaluation, and governance. The article says redundant context and context growth can raise inference costs while degrading output quality; it recommends compaction, just-in-time retrieval, focused tool sets, and isolated sub-agents. RAG adds embedding, vector database, re-indexing, and data-preparation costs, but can be cheaper and faster than sending very large contexts at high query volumes; long context may cost less for low-volume internal use. It highlights prompt caching as a high-return cost lever, provided cached prefixes avoid changing timestamps, IDs, and other dynamic content. For production control, it recommends monitoring usage alongside outcomes such as tasks completed, measuring value per token, and limiting runaway retries with human escalation. Database latency and inconsistent state can trigger retries that resend context and increase spend. The figures and case studies are claims made in the supplied article.

## Source excerpt

What do the Uber budget blowout, a 24x token multiplier, and context teach us about building a real business case for AI Agents in production?