Guides

AI agent cost tools, mapped by category (November 2026)

/Setta/Markdown

Tools that reduce AI agent and LLM costs fall into eight categories, and they mostly stack rather than compete: provider-native features (prompt caching, batch pricing, cheaper tiers) lower the price of every token; gateways and routers send each request to a cheaper model or a cache; compression tools shrink what goes into each call; observability tools record every run; trace analyzers read those runs and recommend fixes; FinOps tools attribute spend to teams, features and customers; serving optimizers make each token cheaper to produce on your own GPUs; and replay simulators test a change on your recorded traffic before you ship it. Which one you need depends on where your cost comes from and what you can change. If you don't yet know where your agents' cost comes from, start with observability and a trace analysis; if you know what to change but not whether it will save money, you need a replay.

Disclosure: this guide is written by Setta, which sells in the last category. Products and statuses are as of November 2026, from each vendor's public pages; this market moves fast, so check before you buy.

The map

CategoryWhat it doesExamplesFits whenDoesn't
Provider-native featuresLowers the price of tokens you already sendPrompt caching and cache diagnostics (Anthropic, OpenAI, Google), batch and flex pricing, smaller model tiers, tool searchAlways; it's the baselineFind waste specific to your agent, or tell you which feature is worth adopting
Gateways and routersSits between your app and the providers; routes, caches, limitsLiteLLM, OpenRouter, Prisma AIRS AI Gateway (formerly Portkey), Bifrost, Envoy AI Gateway; routers such as RouteLLM, AWS Bedrock Intelligent Prompt Routing, Azure Foundry Model RouterYou call several providers, need budgets and fallbacks, or have clearly separable easy and hard requestsChange what your agent sends; routing mid-run can cost cache warm-up
Context and prompt compressionShrinks prompts, tool outputs and history before each callLLMLingua (Microsoft), Headroom, Context Gateway (Compresr), The Token Company, EdgeeInputs dominate cost and contain a lot of low-value text (logs, large tool outputs, documents)Account for the cache: compressed inputs can break cached prefixes or lengthen outputs
Observability and tracingRecords every run: prompts, tool calls, tokens, latency, costLangSmith, Langfuse, Braintrust, Arize, Datadog LLM Observability, OpikYou need to see what your agents do; it's the prerequisite for everything belowDecide what to change; nobody has time to read the runs
Trace analyzersRead traces across runs and recommend priced fixesPapaya, PointFive, Caveman Cloud, Datadog Cost Insights, Arize Cost Agent, Opik Cost Intelligence; local tools for coding-agent transcripts such as CodeBurn and TokenJamYou have traces and want a ranked list of what to fixMost estimate savings from token counts; check how a tool prices a fix before relying on its numbers
FinOps and cost attributionAttributes AI spend to teams, features or customers; budgets and forecastsVantage, CloudZero, Finout, nOpsFinance needs spend by product, team or customer, or you need budget alertsChange how your agents consume tokens
Serving optimizersMake each token cheaper to serve on your own GPUsvLLM, SGLang, NVIDIA NIM, LMCache, quantizationYou host open models and pay by the GPU hourReduce how many tokens and calls each run needs
Replay simulationReplays recorded traffic under a change and prices it as billedSetta (product agents, cache-aware, checked against the bill); for coding-agent transcripts, Replay Doctor and Frugal TokensYou're about to change prompts, tools, caching or models on customer-facing agents and need a number you can trust firstReplace a live A/B test for changes that alter what the model writes

How to choose

  1. Turn on what your provider gives you first. Prompt caching, batch pricing for work that can wait, and the cache diagnostics now offered by Anthropic and OpenAI cost nothing to try.
  2. If you can't see your runs, add observability. LangSmith, Langfuse or OpenTelemetry-based tracing is the input every analysis needs.
  3. If you can see runs but not the waste, analyze them across runs. Look for the patterns described in where agents waste tokens. An analyzer, or a few days of your own queries, will rank them.
  4. Before changing customer-facing agents, test the change on your traffic. A replay that models the cache tells you whether a fix saves money or just tokens. See proving LLM savings before you ship.
  5. If finance asks which customers or features drive the bill, add attribution. See agent cost per customer.
  6. If you host models, tune serving and cut tokens. Serving optimizers and token reduction stack: one makes each token cheaper, the other needs fewer of them.

Things that often go wrong

  • Counting tokens instead of dollars. With caching, removing tokens can raise the bill when the change rewrites the cached prefix, and compressed inputs can produce longer, more expensive outputs. Test the change on your traffic before counting the saving.
  • Routing without counting the cache. Switching models mid-conversation starts a cold cache; one analysis found the recompute ate about two thirds of the theoretical routing saving (Towards Data Science).
  • Stacking tools that each assume they see the original prompt. A gateway cache, a compressor and provider caching can undo each other. Test them together on your traffic.
  • Trusting a projected saving without its method. Ask how it was computed, whether the cache was modeled, and whether it was checked against your actual bill.

Where Setta fits

Setta is for SaaS companies that run agents and AI workflows inside their product. It reads production traces from the observability tools above (it doesn't replace them), finds the repeat waste across runs, and proves each fix with a cache-aware replay of your traffic, checked against your bill, before you ship it. Then it keeps the agents current as models and prices change. It works with provider APIs and with self-hosted models served by vLLM, SGLang or NIM. Setta is a service, not software you install: you send a trace export and get back fixes your team deploys. Start with the free audit.