Best AI Cost and Token Usage Monitoring Tools in 2026: Reviews & Comparisons

Updated on: November 24, 2026

Table of contents

If you work at a company where the AI spend is now a line item that finance asks about every month, this article is probably for you. Today, most orgs/teams can’t tell how much money each agent, model or session spent, how many tokens it used, and who was the person or application behind each agent. AI agent cost and token usage tracking tools aim to answer such questions…. but they take different approaches and thus each has its own set of strengths and weaknesses, which I’m highlighting in this post, of course.

While building cost tracking into Sematext AI Agent Watch, we looked closely at how other tools approach the problem. They come from very different directions: LLM observability platforms that price every trace, AI gateways that meter traffic on the request path, and FinOps tools that start from the provider’s bill. This post reviews 11 of them and compares them across several key dimensions. Don’t skip the tables towards the end of the post. That is also where I describe how I would choose between the tools if I had to do it for my company and team. But let’s start with the why. It’s not just about the money and keeping the CFO informed.

Why track AI cost and token usage?

LLM pricing is per token, and token volume swings with prompt length, context size, cache reuse, reasoning and retries. Reporting spend to finance is only the most obvious reason for tracing cost and token usage. However, cost and token data is also an operational and even a security signal. Here are some additional reasons for this sort of tracking:

  • Catch runaway agents early: an agent stuck in a retry loop or re-reading a huge file can result in a cost spike within minutes, often before anyone notices the bug
  • Spot regressions after a change: a new prompt, model upgrade or framework update can quietly double tokens per request, just as a code change can double latency
  • Choose the right model: cost per task next to quality shows where a cheaper model is good enough and where the expensive one pays off
  • Find wasted tokens: bloated system prompts, oversized context and unused retrieval chunks show up in token breakdowns, and a falling cache hit rate can raise costs with no change in traffic
  • Understand unit economics: cost per feature, conversation or customer drives margins, plan limits and pricing for AI products
  • Allocate spend to teams: chargeback or showback makes teams accountable for, and motivated to optimize, their own usage
  • Plan capacity and forecast: token throughput and growth trends tell you when you’ll hit rate limits or need a bigger budget
  • Measure coding agent ROI: cost per developer and per session, compared with output, shows whether the tools pay for themselves
  • Spot security and governance issues: unexpected token usage on an unusual host or at an unusual hour can point to a leaked key, shadow AI or an agent doing something it shouldn’t

The first and the last point above stand out to me as the most critical. Catching jumps in cost or token usage early because of runaway agents or leaked keys can prevent massive financial and other disasters. We use AI in our company, I very much care about our expenses and security, and I want a tool that can help with the first and last point the most. Then the rest.

What is AI cost and token usage monitoring?

AI cost monitoring is the practice of counting the tokens every model call consumes, pricing them, and attributing the result to whoever or whatever caused it: an agent, a session, a user, a team, a feature, a host or a customer. Good tools also tell you when spend departs from normal even before you receive the next invoice from the AI provider.

The tools in this space fall into three broad categories:

  • LLM observability platforms (Langfuse, LangSmith, Datadog, W&B Weave, Braintrust) instrument your application, capture each LLM call as a span in a trace, and attach token counts and estimated cost to it.
  • AI gateways (LiteLLM, Portkey, TrueFoundry, Bifrost) sit between your code and model providers, meter every request that passes through, and can enforce budgets and rate limits.
  • FinOps platforms (Vantage and others) pull billed costs from provider APIs and put AI spend next to cloud and SaaS spend.

Sematext AI Agent Watch takes a fourth angle: it collects usage from the AI agents running on servers and employee workstations (for example Claude Code and Codex), so you see agent spend even when nobody instrumented the code.

Why not just use your AI provider’s cost reports?

OpenAI, Anthropic and Google all have usage dashboards and cost APIs, and they are the most accurate record of what you will be billed. For a small team with one provider and a few API keys mapped to projects, they can be enough. Here’s what you get, and what you don’t.

Pros

  • Free and already there: no SDK, proxy or extra vendor
  • Matches the invoice: reflects the provider’s actual tiers, cache discounts and batch rates, not list-price estimates
  • Programmatic access: usage and cost APIs let you pull data into your own reports
  • Basic guardrails: organization- or workspace-level spend limits work as a last-resort cap

Cons

  • Coarse attribution: data stops at API key, workspace and model, so shared keys hide which person, agent, session, feature or customer spent the money
  • No explanation: a report shows Tuesday cost 3x more, not which agent loop, prompt change or drop in cache hits caused it
  • One silo per provider: using several providers means several dashboards and no combined view
  • Cloud-hosted models are billed elsewhere: usage through Bedrock, Azure OpenAI or Vertex AI shows up in your cloud bill, not the provider’s console
  • Subscriptions hide per-token cost: seat plans like Claude Max or ChatGPT Enterprise don’t show what each session would have cost
  • Delayed, aggregated data: daily or hourly totals are fine for accounting but too slow to catch a runaway agent
  • Weak alerting: hard caps or simple threshold emails, with no baselines, per-host or per-agent grouping, or alerts on cache-hit drops

Teams usually outgrow provider reports when they add a second provider, share keys across people or agents, get asked for cost per team or customer, or need to explain a surprise bill. At that point the provider report becomes the source you reconcile against, and the tools below handle attribution, investigation and alerting.

What should an AI cost monitoring tool actually do?

Rather than applying some made-up a scoring formula, these are the questions I used to evaluate each tool in this post:

  • Where does the data come from? SDK instrumentation, a proxy on the request path, host-level agents, or the provider’s billing API. This decides what you can see without changing code.
  • Is the cost estimated or billed? Most tools multiply tokens by list prices. That drifts from the invoice when you have negotiated rates, credits, batch or reserved capacity.
  • Does it price every token type? Cache reads and writes, reasoning tokens and long-context tiers are priced differently, and getting them wrong is the most common source of bad numbers.
  • Who can you attribute spend to? Agent, session, user, team, feature, customer, host, cluster.
  • Will it tell you before the invoice does? Threshold and anomaly alerts, and whether it can enforce a budget or only warn.
  • Can you act on it? Linking a cost spike to the trace, prompt, model change or machine that caused it.

Comparison at a glance

Tool Best for Type Paid plans from
Sematext AI Agent Watch AI agent spend on servers and workstations Host-level agent monitoring $1.68/host/mo
Langfuse Open-source LLM app observability LLM observability $29/mo
Datadog LLM Observability Teams already on Datadog LLM observability $160/mo
LiteLLM Self-hosted gateway with team budgets AI gateway Free OSS; Enterprise via sales
LangSmith LangChain / LangGraph agents LLM observability $39/seat/mo
Vantage Billed AI spend next to cloud costs FinOps Free Starter; tiers by spend
TrueFoundry Enterprise gateway with layered budgets AI gateway $25/user/mo
Portkey Managed gateway with cost controls AI gateway $49/mo
Bifrost Open-source gateway with hierarchical budgets AI gateway Free OSS; Enterprise via sales
W&B Weave Teams already using W&B LLM observability $60/mo
Braintrust Weighing cost against quality LLM observability $249/mo

Prices are entry-level list prices as of November 2026 and most plans add usage-based charges; check each vendor’s pricing page. For Sematext, though, the above price is the true price – there is no additional usage-based charges there. For data sources, cost attribution, alerting, budget enforcement and self-hosting, see More comparison tables at the end of this article.

1. Sematext AI Agent Watch

Product: Sematext AI Agent Watch LLM Cost Tracking

Docs: Cost Tracking, Cost Reports, Pricing and Calculations, Cost Alerts

Sematext AI Agent Watch LLM Cost Report

LLM Costs report in Sematext AI Agent Watch

[Screenshot 2] Cost by Infrastructure report, showing spend by host or Kubernetes namespace. Capture from a Sematext account. Caption: AI agent spend by host and namespace in Sematext

Description

Sematext AI Agent Watch tracks what AI agents such as Claude Code and Codex (but also a bunch of others) spend on model usage, on servers and on employee workstations. The Sematext Agent collects an llm_usage event for every model request, with the model, provider and token counts. Each event is priced and rolled up by agent, session, model and host, and by Kubernetes namespace and cluster.

The difference from most tools on this list is where the data comes from. You don’t route traffic through a gateway or add an SDK to your code. If an agent runs on a machine Sematext monitors, its spend shows up next to that machine’s metrics, logs and agent activity. This is important. See Pros below.

Key features

  • LLM Costs report: total cost for the period, daily average, a monthly estimate based on the last 7 days, cost by model, an hourly cost heatmap, top agents and top sessions by cost, and cache hit rates
  • LLM Usage report: calls, tokens and cost per model, with input, output, cache and reasoning token columns, plus a list of unpriced calls and why they are unpriced
  • Session Usage report: average, p50, p95 and p99 session cost and token usage, and the 50 longest-running sessions
  • Cost by Infrastructure: spend by host, Kubernetes namespace and cluster, with drill-down into the agents, providers and models behind it
  • Pricing: default prices sync daily from LiteLLM’s public catalog; you can override rates per model or apply a blanket discount for negotiated pricing
  • Separate token rates: input, output, cache read and cache write tokens are priced separately, and reasoning tokens count as output
  • Cost alerts: threshold rules (e.g. more than $50 in an hour) and baseline rules (e.g. 30% above the median of comparable windows), grouped per host or agent
  • Default alerts: unusual spending, cache hit rate drops, and usage with missing pricing

Pros

  • No code changes, gateway or SDK: works for off-the-shelf agents on developer laptops
  • Cost sits next to infrastructure, logs and AI agent activity and governance in the same platform
  • Baseline alerts with sliding, aligned (same hour each day) and weekly modes suit agents with irregular schedules
  • Clear about data quality: token counts are exact, and unpriced or partially priced sessions are flagged instead of shown as $0

Cons

  • Agent-centric: there is no team or customer attribution for LLM apps you build yourself
  • Costs are estimates; fixed monthly subscriptions and reserved or scale-tier usage are not priced
  • Alerts notify but don’t enforce a spending cap or block requests
  • On macOS and Windows, full usage reporting needs the Claude Code or Codex telemetry setup

Pricing

Starts at $1.68 per host per month. LLM cost tracking is included in AI Agent Watch at no extra charge, and there’s no per-token or per-span meter. Unlimited users, and you can enable or disable it at any time. There’s a 14-day free trial with no credit card required.

My Opinion

What I like: Most cost tools assume you own the code making the LLM calls. For coding agents running on employee machines that assumption fails, and that is often where the biggest and least visible spend is. Being able to start from a cost spike, find the host and session that caused it, and see what the agent was doing at the time is the workflow I wanted.

What I dislike: If you are building your own LLM application and need cost per end user, feature or tenant, this is not the tool for that today. You’d pair it with an LLM observability tool or a gateway from the rest of this list.

2. Langfuse

Product: Langfuse, open-source LLM observability with token and cost tracking

Langfuse Cost DashboardLangfuse cost tracking dashboard (source: Langfuse docs)

Description

Langfuse is the most frequently recommended open-source tool for LLM cost tracking. It records every LLM call (a “generation”) inside a trace, together with usage per token type and cost. Most integrations capture usage automatically, and Langfuse ships with prices for popular OpenAI, Anthropic and Google models. Ingested usage and cost always take priority over values Langfuse calculates itself.

Cost becomes a dimension you can slice by user, session, tag, model or use case, in dashboards and through the Metrics API.

Key features

  • Built-in model price definitions, plus custom models and prices
  • Arbitrary usage types, including cached, audio and reasoning tokens
  • Cost per generation, trace, user, session and tag
  • Custom dashboards and a Metrics API for analytics, billing and rate limiting
  • Integrations for OpenAI SDK, LangChain, LlamaIndex, LiteLLM, OpenTelemetry and many agent frameworks
  • Tracing, evals, prompt management and datasets in the same tool

Pros

  • MIT-licensed core that you can self-host without feature limits
  • Very wide integration coverage, so cost tracking often works with no extra code
  • Per-user and per-session attribution is first class
  • Usage-based pricing with no per-seat fees

Cons

  • No longer estimates token counts from text: if your integration sends neither usage nor cost, no cost is calculated
  • Observes and alerts but doesn’t enforce budgets on the request path
  • Only sees calls you instrument; agents and tools outside your code are invisible
  • Self-hosting at scale means running ClickHouse, Postgres, Redis and object storage

Pricing

Free to self-host. Langfuse Cloud has a free Hobby plan, Core at $29/month, Pro at $199/month and Enterprise at $2,499/month. Paid plans include 100k units (traces, observations or scores), then $8 per 100k units, lower with volume.

My Opinion

What I like: If you build LLM applications and want one open-source tool for traces, evals and cost, Langfuse is the default choice for good reason. Attributing cost to an end user or session is exactly what product teams need for unit economics.

What I dislike: Cost tracking is only as good as your instrumentation. It won’t tell you what the coding agents on your developers’ laptops spend, and it won’t stop a runaway loop. You’ll want alerts or a gateway in front for that.

3. Datadog LLM Observability

Product: Datadog LLM Observability (now branded Agent Observability), LLM tracing with estimated cost per span

Datadog Cost Overview

Cost Overview in Datadog Agent Observability (source: Datadog docs)

Description

Datadog’s LLM Observability, recently renamed Agent Observability, adds LLM traces to the APM platform many teams already run. Each LLM and embedding span carries token counts and an estimated cost. By default that cost is computed from the provider’s public prices, and you can supply your own values for custom rates, self-hosted models or unsupported providers.

Cost and token usage are exposed as metrics, so they work with Datadog dashboards, monitors and tags. A Cost page relates spend to applications, efficiency metrics and trends, and Cost Savings Opportunities link recommendations to the sessions and traces behind them. For billed rather than estimated numbers, Datadog Cloud Cost Management can ingest OpenAI and Anthropic cost data.

Key features

  • Automatic cost estimation from token counts and public provider pricing
  • Manual cost annotation for custom pricing and self-hosted models, including tool-span costs
  • ml_obs.span.llm.cost and ml_obs.span.llm.tokens metrics with tags for model, provider, service and custom tags
  • Cost page with spend by application and Cost Savings Opportunities
  • Auto-instrumentation for OpenAI, Anthropic, AWS Bedrock, LangChain and other frameworks
  • Correlation with APM traces, infrastructure, RUM and logs

Pros

  • Cost sits next to latency, errors and infrastructure in a platform many teams already use
  • Standard Datadog monitors and dashboards work on cost metrics
  • Can combine estimated per-trace cost with billed cost from Cloud Cost Management
  • Pricing counts only LLM spans, so tool and retrieval spans don’t add to the bill

Cons

  • Cost is only supported for text-based models
  • Only sees applications you instrument; no visibility into desktop or coding agents
  • No budget enforcement on the request path
  • Another per-unit meter on top of an already complex Datadog bill

Pricing

Billed per LLM span. The Free plan includes up to 40K LLM spans per month; Pro starts at $160/month (this is after the annual discount, which means a 12-month commitment) with 100K LLM spans included and $3.50 per additional 10K. Longer retention costs extra.

My Opinion

What I like: If Datadog is already your observability platform and you have deep pockets, this is the path of least resistance. Turning cost into ordinary metrics means you can alert on it, tag it and put it on the same dashboard as everything else.

What I dislike: It answers “what did my instrumented app spend”, not “what is my organization spending on AI”. And for cost-conscious teams, adding Datadog to watch AI cost can itself become a cost problem.

4. LiteLLM

Product: LiteLLM Proxy, open-source AI gateway with spend tracking and budgets

LiteLLM Admin Spend

Spend tracking in the LiteLLM Admin UI (source: LiteLLM docs)

Description

LiteLLM is an open-source Python SDK and proxy that exposes one OpenAI-compatible API in front of 100+ model providers. Every request through the proxy is logged with model, tokens, user, key, team and cost, which makes LiteLLM a cost-tracking tool almost as a side effect of being a gateway.

Because it sits on the request path, LiteLLM can do what pure observability tools can’t: enforce budgets. You can set spend limits per virtual key, user, team, customer, tag or provider, and requests are rejected once a hard budget is exhausted. Its model price catalog is widely reused.

Key features

  • Spend tracking per virtual key, user, team and organization across 100+ providers
  • Hard and soft budgets on keys, users, teams, tags and providers, with budget alerts
  • Tag-based budgets for cost centers, projects and departments
  • Customer Management for tracking and budgeting your own customers’ usage
  • Custom pricing per model; /spend APIs and logs for reporting
  • Prometheus metrics and callbacks to Langfuse, Datadog, OpenTelemetry and others

Pros

  • MIT-licensed and free to self-host, with no markup on inference
  • Real enforcement: budgets and rate limits stop requests, not just notify
  • Broadest provider coverage of any gateway here
  • Plays well with observability tools, so you can send cost data to whatever you already use

Cons

  • You run it: Postgres for spend tracking, Redis for multi-instance budgets, plus upgrades and on-call
  • Only sees traffic routed through the proxy
  • Built-in dashboards are basic; deeper analysis usually means exporting elsewhere
  • SSO beyond 5 users, audit logs and some governance features need an Enterprise license

Pricing

The open-source gateway is free to self-host. LiteLLM Enterprise is an annual license sized to request capacity, deployment and support needs, priced through sales.

My Opinion

What I like: For platform teams that want to hand out LLM access with per-team budgets, LiteLLM makes sense if you have a very small team. Tracking and enforcement use the same data, which avoids a whole class of “the dashboard says one thing, the limit says another” problems.

What I dislike: Running LiteLLM on your own means additional infrastructure you now own and must keep up, and on its own it’s more a meter than an analytics tool. In practice you’ll likely combine it with an observability backend to properly understand the spend.

5. LangSmith

Product: LangSmith, LangChain’s tracing and evaluation platform with cost tracking

Langsmith Cost Tooltip

Token and cost breakdown in LangSmith (source: LangChain docs)

Description

LangSmith is LangChain’s platform for tracing, evaluating and deploying agents. It derives cost for LLM calls from token counts and model pricing tables, and is provider-aware for multimodal tokens and cache reads. You can also submit cost manually for any run type, including tool calls, retrieval steps and models with non-linear pricing.

Cost shows up in the trace tree, in project stats and in dashboards. The prebuilt project dashboard shows total cost split by input and output tokens, and custom dashboards let you chart cost by metadata. Costs can be grouped across a conversation thread when runs carry a session or thread ID.

Key features

  • Automatic cost derivation from token counts and configurable model pricing
  • Provider-aware pricing for multimodal tokens and cache reads, plus stepwise pricing for some models
  • Manual cost submission for any run type: LLMs, tools, retrieval, custom steps
  • Cost breakdowns in the trace tree, project stats and custom dashboards
  • Thread-level cost aggregation
  • Evaluator spend tracking and limits

Pros

  • Native fit for LangChain and LangGraph agents, with minimal setup
  • Cost for tools and retrieval, not just LLM calls, gives a fuller agent cost picture
  • Strong debugging: from an expensive trace straight to the step that caused it
  • Works with non-LangChain frameworks via its SDKs and OpenTelemetry

Cons

  • Seat-based pricing on top of trace-based usage – ugh, complication
  • Token counts must be provided for accurate cost; non-linear pricing often needs client-side calculation
  • No budget enforcement for production traffic
  • Only covers apps you instrument

Pricing

Developer plan is free for 1 seat with up to 5K base traces per month, then pay as you go. Plus is $39 per seat per month plus trace usage. Enterprise is custom.

My Opinion

What I like: Attaching cost to every step of an agent run, including tools and retrieval, is the right model for agents. A single user question can fan out into many calls, and LangSmith shows you exactly where the money went, so that’s good.

What I dislike: It works well inside the LangChain ecosystem. If you’re not on LangChain, or you need org-wide spend across teams and tools, it covers only a slice of the picture.

6. Vantage

Product: Vantage, cloud and AI cost management (FinOps)

Vantage Anthropic Cost Report

Anthropic costs across models in a Vantage Cost Report (source: Vantage)

Description

Vantage is a FinOps platform that treats AI providers as first-class cost sources alongside AWS, Azure, GCP, Kubernetes and dozens of SaaS tools. Instead of instrumenting code, it pulls cost and usage data from provider APIs. The OpenAI integration uses an Admin Key to read OpenAI’s Costs API, broken down by operation and model. The Anthropic integration reads Claude usage and cost via an Admin API key.

Vantage has extended these integrations to seat-based and agent products: Claude Enterprise analytics (including Claude Code), ChatGPT Enterprise and Codex. The result is billed, invoice-aligned AI spend in the same cost reports, budgets and anomaly alerts finance already uses for cloud.

Key features

  • Native OpenAI and Anthropic integrations based on provider cost and usage APIs
  • Claude Enterprise, ChatGPT Enterprise and Codex cost data for Enterprise customers
  • AI spend next to AWS, Azure, GCP, Kubernetes and SaaS costs in shared reports
  • Cost allocation with segments, plus Kubernetes and usage-based reporting
  • Cost anomaly alerts
  • Up to 6 months of historical OpenAI data imported on setup

Pros

  • Numbers match what providers actually bill, not list-price estimates
  • No code changes, proxies or SDKs
  • Ideal for finance and FinOps teams that want one place for all spend
  • Covers seat-based products and coding agents that never touch your code

Cons

  • Granularity is limited to what provider APIs expose: API key, workspace, model, daily totals
  • No per-trace, per-prompt or per-session view to explain why spend moved
  • Data refreshes on provider API cadence, not in real time
  • Negotiated pricing needs support involvement for some integrations

Pricing

Free Starter plan. Paid plans are fixed-rate tiers gated by how much cloud spend you monitor, and AI provider costs count toward that tier limit.

My Opinion

What I like: This is the only kind of tool on the list that answers “what will the invoice say” with confidence. Putting OpenAI, Anthropic and cloud GPU spend in one report is typically exactly what a CFO wants to see.

What I dislike: It tells you which API key or workspace spent the money, not which agent loop, prompt or user did. Engineering teams will still need trace-level or host-level data to act on what Vantage shows them. It’s for finance alright, but not other types of AI agent monitoring present in other platforms.

7. TrueFoundry

Product: TrueFoundry AI Gateway, enterprise AI gateway with cost tracking and budget limiting

TrueFoundry Metrics Overview

Cost and usage trends in TrueFoundry AI Gateway (source: TrueFoundry docs)

Description

TrueFoundry’s AI Gateway puts a single OpenAI-compatible endpoint in front of 1,000+ models across providers, and records every request with its cost. Public pricing comes from an open-source catalog (the truefoundry/models GitHub repository) and accounts for regional rates, volume tiers, service tiers such as flex and priority, and separately priced cache reads and writes. Private pricing covers negotiated contracts, fine-tuned and self-hosted models.

Each request is tied to a user, team, virtual account, model and any custom metadata, so spend breaks down by any of them out of the box. Budget limiting is an ordered list of rules: every matching rule tracks the spend, while the first matching rule decides whether to allow or block. That makes layered budgets possible, for example an org-wide cap plus per-team and per-user limits. Rules can run in warn-only mode before you enforce them.

Key features

  • Public cost from an open-source pricing catalog, plus private cost for custom rates and self-hosted models
  • Pricing aware of regions, volume tiers, service tiers and cache reads and writes
  • Spend breakdowns by user, team, virtual account, model and custom metadata such as application or cost center
  • Budget rules per user, agent, virtual account or metadata, with daily, weekly or monthly limits
  • Warn-only mode and alerts at thresholds such as 75%, 90% and 100% via Slack or webhooks
  • Savings estimates from prompt caching, semantic caching and auto routing; raw data export

Pros

  • Real enforcement with layered rules, and a safe warn-only mode for rollout
  • One of the most thorough pricing models on this list, including service tiers and cache writes
  • Per-user and per-team attribution without extra instrumentation
  • Runs as SaaS or in your own VPC or on-prem

Cons

  • A broad enterprise platform (gateway, MCP gateway, guardrails, model deployment) that can be more than you need just for cost tracking
  • Budget rules are limited on lower plans (1 on Developer, up to 10 on Pro)
  • Budget tracking starts when a rule is created; earlier spend in the period isn’t counted
  • Only sees traffic routed through the gateway

Pricing

Free Developer plan for up to 3 users, with 10K gateway requests per user per month. Pro is $25 per user per month with 20K requests per user and $20 per additional 100K requests. Enterprise is a custom annual commitment.

My Opinion

What I like: The rule model is well thought out: tracking against every matching rule while only the first one decides gives you layered budgets without the edge cases of most gateways. Pricing that follows the service tier actually used is a detail many tools miss.

What I dislike: It’s a big platform to adopt for cost tracking alone. If all you need is visibility and a few budgets, a lighter gateway or an observability tool will get you there faster.

8. Portkey

Product: Portkey AI Gateway, AI gateway and control plane with cost tracking and budget limits

Portkey Cost By MetadataCost per user via metadata filters in Portkey (source: Portkey docs)

Description

Portkey is a managed AI gateway that sits between applications and model providers and records every request with its tokens and cost. It keeps a centralized pricing table that updates automatically, and you can apply custom model prices or a discount or markup multiplier across an integration to reflect negotiated rates.

Where Portkey stands out is governance: budget limits in USD or tokens on providers, API keys and workspaces, rate limits, and usage limit policies with conditions and group-by. Portkey also publishes ready-made guides for routing coding agents like Claude Code and Continue through the gateway. Palo Alto Networks completed its acquisition of Portkey in May 2026 and is integrating it into Prisma AIRS as the AI Gateway.

Key features

  • Per-request cost and token tracking across a large catalog of providers and models
  • Cost-based (USD) or token-based budget limits on providers, keys and workspaces, with alert thresholds
  • Usage limit policies with conditions and group-by, e.g. per customer or per model
  • Custom pricing and integration-wide pricing adjustments
  • Analytics by model, provider, metadata and time
  • Caching, routing, fallbacks and guardrails

Pros

  • Enforces spend limits on the request path, not just reports them
  • Managed SaaS, so no gateway to operate (self-hosted and open-source options exist)
  • Metadata tagging gives flexible attribution by team, feature or customer
  • Can sit in front of coding agents as well as your own apps

Cons

  • Budget limits are an Enterprise feature (and select Pro customers)
  • Calls show $0 cost for models without pricing support, and those don’t count toward budgets
  • Subscription-billed usage, like Claude Max, shows tokens but $0 cost
  • Roadmap direction after the Palo Alto Networks acquisition is still taking shape

Pricing

Free Developer plan with 10K recorded logs per month. Production is $49/month with 100K recorded logs and $9 per additional 100K. Enterprise is custom.

My Opinion

What I like: Portkey is the most complete “cost control” gateway here: attribution, alerts and hard limits in one place, with a hosted option for teams that don’t want to run a proxy.

What I dislike: The best cost controls sit behind Enterprise. And now that it’s part of a security platform, I’d want clarity on how the standalone product evolves before committing. And, of course, Enterprise pricing must be sky high.

9. Bifrost

Product: Bifrost by Maxim AI, open-source AI gateway with hierarchical budgets

Bifrost Provider Usage Sheet

Virtual key usage and budgets in Bifrost (source: Bifrost docs)

Description

Bifrost is an open-source AI gateway written in Go by Maxim AI. It puts one OpenAI-compatible API in front of 20+ model providers and adds fallbacks, caching, an MCP gateway and built-in observability. For cost, the central concept is the virtual key: instead of handing out raw provider keys, you issue virtual keys that each carry their own permissions, budget and rate limits.

Budgets are hierarchical. Virtual keys roll up into teams and customers, and provider configurations can have their own budgets, with each level enforced independently on every request. Maxim also positions Bifrost for routing desktop and coding agents such as Claude Code, Cursor and Claude Desktop through the gateway.

Key features

  • Virtual keys with per-key budgets and rate limits
  • Hierarchical budgets across virtual keys, teams, customers and provider configs
  • Usage tracking and cost per request, exportable via OpenTelemetry-compatible metrics and traces
  • Built-in observability, plus optional Maxim SDK integration for tracing and evaluation
  • Semantic caching and automatic fallbacks to reduce cost and failures
  • MCP gateway for governing tool access

Pros

  • Budgets, virtual keys and rate limits are in the free open-source edition
  • Low overhead gateway built in Go
  • Spend is attributed at request time, so tracking and enforcement agree
  • Runs in your own VPC; no data leaves your environment

Cons

  • Younger and less widely deployed than LiteLLM
  • Analytics are shallower than dedicated observability tools; deeper views push you to Maxim’s platform
  • RBAC, audit logs and enterprise SSO are Enterprise features
  • Much of the published comparison content comes from Maxim itself

Pricing

Bifrost OSS is free. Bifrost Enterprise is custom-priced, with a 14-day free trial.

My Opinion

What I like: Putting hierarchical budgets in the open-source edition is generous, and the virtual key model maps cleanly to how organizations actually allocate spend: business unit, team, service, developer.

What I dislike: As with any gateway, it only sees what you route through it. And since many roundups that rank Bifrost first are published by Maxim, it’s worth testing it yourself against LiteLLM.

10. W&B Weave

Product: W&B Weave, LLM tracing and evaluation toolkit from Weights & Biases (now part of CoreWeave)

Description

Weave is Weights & Biases’ toolkit for tracing and evaluating LLM applications. After weave.init(), supported integrations such as OpenAI, Anthropic, Cohere and Mistral record token usage from each API response, and Weave calculates cost from built-in model pricing. For fine-tuned, self-hosted or unsupported models, you register custom per-token prices with add_cost.

Cost appears per call and rolls up through traces, so you can compare cost alongside quality scores in evaluations. W&B was acquired by CoreWeave, and Weave is now sold as part of CoreWeave Forge.

Key features

  • Automatic cost tracking for supported integrations
  • Custom costs for fine-tuned and self-hosted models via add_cost
  • Cost per call and per trace, queryable through the API
  • Cost next to evaluation scores when comparing prompts and models
  • Fits into the broader W&B platform for experiment tracking and model management

Pros

  • Natural choice for teams already using W&B for ML experiments
  • Comparing cost against eval results helps pick cheaper models without losing quality
  • Open source and self-hostable

Cons

  • Cost tracking is Python-only; the TypeScript SDK doesn’t support it
  • Static pricing table can lag provider price changes, and uses standard (non-cached) prices
  • Unknown models show no cost until you add pricing
  • No alerting or budget enforcement focused on spend

Pricing

Free plan available. Pro starts at $60/month; Weave data ingestion and storage are billed monthly based on usage. Enterprise is custom.

My Opinion

What I like: Weave treats cost as one more dimension of experiment results, which is the right lens when you’re choosing between models or prompts. If your ML team already lives in W&B, adding Weave is low friction.

What I dislike: As a cost monitoring tool it’s thin: Python-only cost tracking, a static price table that ignores cache discounts, and nothing to warn you before spend gets out of hand.

11. Braintrust

Product: Braintrust, AI evaluation and observability platform with span-level cost

Braintrust Coding Agent Insights

Coding agent cost per user in Braintrust (source: Braintrust docs)

Description

Braintrust is best known for evals, but its tracing attaches token counts and estimated cost to every span: LLM calls, retrieval steps and tool invocations. Costs are rolled up per trace, and the Monitor page has preset and custom charts for cost, along with SQL functions like estimated_cost() for custom measures such as average cost per trace.

Cost is estimated from token metrics plus a model registry; for custom models you register pricing, or you log estimated_cost directly. Braintrust has also added a built-in Coding Agent Insights dashboard that shows coding-agent cost, tokens, sessions and tool calls per teammate, once you trace those agents into a dedicated project.

Key features

  • Estimated cost on every span, rolled up per trace
  • Monitor dashboards with preset cost charts and custom SQL-based measures
  • Model registry with custom model pricing
  • Coding Agent Insights dashboard: cost, tokens and sessions per user
  • Playground and experiments that show estimated cost per output, next to quality scores

Pros

  • Ties cost to quality, so you can test cheaper models or prompts and see what you lose
  • Flexible SQL for custom unit-cost metrics
  • Seats are free on all plans
  • Coding Agent Insights covers part of the coding-agent use case

Cons

  • Preset cost charts double-count if token metrics are logged on both parent and child spans; you need to instrument carefully
  • No budget enforcement on the request path
  • Coding agent data requires setting up tracing for each agent
  • Pro plan is a significant step up from free

Pricing

Free Starter plan with 1 GB processed data and 10K scores. Pro is $249/month plus usage per GB processed and per thousand scores. Enterprise is custom.

My Opinion

What I like: Braintrust treats cost as a trade-off against quality rather than a number in isolation. That’s how model and prompt decisions should be made, and few tools make it this easy.

What I dislike: It’s an eval platform first. Getting accurate cost dashboards depends on instrumenting correctly, and for org-wide spend governance you’ll still need something else.

How I would choose between these tools

Start from the question you need answered, because each category answers a different one.

“What are the AI agents on our machines spending?” If the spend comes from coding agents like Claude Code and Codex running on developer workstations and servers, you need data from the hosts themselves. Sematext AI Agent Watch collects it without code changes and puts it next to infrastructure and agent activity. Braintrust’s Coding Agent Insights and routing agents through Portkey or Bifrost are alternatives if you’re willing to configure each agent.

“What does each user, feature or customer of our LLM app cost?” Use an LLM observability tool. Langfuse is the open-source default, LangSmith fits LangChain and LangGraph teams, Datadog fits teams already on Datadog, and Braintrust or W&B Weave fit teams that weigh cost against eval results. Sematext will also capture all AI aspects of your LLM apps, including cost and token usage, but it can’t yet attribute those to users, features, or customers.

“How do we stop a team or key from overspending?” Use a gateway, because only something on the request path can block requests. LiteLLM and Bifrost are the open-source options; Portkey and TrueFoundry are managed options, with TrueFoundry offering the most flexible layered budget rules.

“What will the invoice say, and how does AI compare to cloud spend?” Use a FinOps tool like Vantage that reads provider billing APIs.

Most organizations end up combining two layers: one that explains why spend moved (traces or host-level data) and one that reconciles it to the bill or enforces limits.

Final thoughts

The AI cost monitoring market consolidated quickly in 2026: ClickHouse acquired Langfuse and Palo Alto Networks acquired Portkey. The tools that remain take very different views of where AI spend lives, so the right choice depends on whether your spend comes from apps you build, gateways you control, invoices you reconcile, or agents your people run.

Whatever you pick, check three things in a proof of concept: that cache and reasoning tokens are priced correctly, that unpriced calls are flagged rather than shown as $0, and that an alert fires before the invoice arrives. If AI agents on your servers and laptops are part of your spend, try Sematext AI Agent Watch and see what they cost.

More comparison tables

Data sources and cost attribution

Tool Data source Attribution
Sematext AI Agent Watch Host agent + agent telemetry Agent, session, model, host, namespace, cluster
Langfuse SDK / OTel instrumentation User, session, tag, model
Datadog LLM Observability SDK / auto-instrumentation Service, model, custom tags
LiteLLM Proxy Key, user, team, customer, tag
LangSmith SDK / OTel instrumentation Trace, thread, metadata
Vantage Provider billing APIs API key, workspace, model
TrueFoundry Proxy User, team, virtual account, model, metadata
Portkey Proxy Key, workspace, metadata
Bifrost Proxy Virtual key, team, customer
W&B Weave Python SDK Call, trace
Braintrust SDK / OTel instrumentation Span, trace, user, metadata

Alerting, budget enforcement and self-hosting

Tool Cost alerts Budget enforcement Self-hosting
Sematext AI Agent Watch Threshold + baseline No No
Langfuse Yes No Yes (MIT)
Datadog LLM Observability Datadog monitors No No
LiteLLM Budget alerts Yes Yes (MIT)
LangSmith Yes No (evaluator limits only) Enterprise
Vantage Anomaly alerts No No
TrueFoundry Budget thresholds Yes Yes (VPC, on-prem)
Portkey Budget thresholds Yes (Enterprise) Yes
Bifrost Via OTel export Yes Yes
W&B Weave No No Yes
Braintrust Yes No Enterprise

 

Start Free Trial

Best AI Agent Monitoring Tools in 2026: Reviews & Comparisons

While doing research for this post I realized there are...

What 13 Years of Building Observability Has Taught Us: The Problems Stay, the Technology Changes

Technology moves quickly. As a matter of fact, it’s evolving...

Best 9 SLO Monitoring Tools in 2026: Review and Comparison Tables

While working on adding SLO monitoring to Sematext we, of...