LLM cost monitoring tools track what your language models actually spend, request by request, so the invoice never arrives as a surprise. LLM cost monitoring tools turn raw token counts into answers a team can act on: which feature spent the most, which user ran up the bill and which prompt changed last week. The central question is which tool fits your team, and the short answer is that most teams should start with the observability tool that matches their stack, then add budget enforcement once the data is trusted.
Without monitoring, LLM spend is a black box. The provider invoice gives a monthly total, but it does not say which feature, model or user produced it, and it arrives weeks after the spending happened. Monitoring closes that gap by recording every call as it happens, with its tokens, cost, latency and owner, so problems are visible the same day they start.
Key takeaways
- LLM cost monitoring tools record tokens, cost and latency per request, broken down by feature, user and model.
- Observability platforms show you the spend; gateways can also enforce budgets and block overruns.
- Langfuse suits teams that want self-hosted tracing plus evaluations; Helicone suits teams that want proxy setup.
- Provider dashboards are free and useful, but they cannot show cost per feature or per user.
- Start with one tool, tag every request, and add alerts before you add enforcement.
What cost monitoring actually needs to show
Four views matter more than any other. Cost by feature tells you which product area spends the most. Cost by user or team tells you who to talk to when spend jumps.
Cost by model tells you whether routing is working. And cost over time tells you whether a change last week helped or hurt. A tool that cannot produce those four views is a log viewer, not a cost monitor.
Per-request detail matters too. When a single expensive request appears, you need to see its prompt, its output length and its model to understand why it cost what it did.
That detail is also what makes debugging possible: a cost spike and a quality problem often share the same cause, such as a prompt that suddenly grew long. Our guide to LLM token usage tracking explains the raw data these tools are built on.
Observability platforms: see the spend
Langfuse is an open-source observability platform for LLM applications, and its core can be self-hosted. It traces each request through every step, records input and output tokens, applies model-specific pricing to calculate cost, and lets you slice spend by user, feature and prompt version.
It also adds prompt management and evaluations, so cost data sits alongside quality data. Best for: teams that want to own their data, self-host, and grow from cost tracking into evaluations.
Helicone takes a different approach: it sits as a proxy between your application and the model provider. You change the base URL in your client, and every call is logged with tokens, cost, latency and status, with no SDK and no code changes. That makes it the fastest way to get visibility on an existing application.
Note that its status changed in 2026, with reports that new feature development had stopped after an acquisition, so check its current state before adopting it for a new project. Best for: teams that want cost visibility this afternoon with minimal integration work.
LangSmith is LangChain’s platform, and it fits teams already built on LangChain. It traces LangChain runs automatically, tracks token usage and cost per run, and adds datasets and evaluations for testing.
Its strength is depth inside the LangChain ecosystem; its weakness is that teams outside that ecosystem get less from it. Best for: teams whose applications are already built with LangChain.
Gateways: enforce budgets as well as watching them
Portkey is an AI gateway that routes requests across providers and adds governance on top, including budget caps per team, user or key. It open-sourced its gateway, and it is designed for teams that run many models through one control point.
A gateway sees every request, so it can stop an overrun instead of merely reporting it. Best for: organisations that need hard budget enforcement across several teams and providers.
LiteLLM is an open-source proxy that presents many providers behind one interface, with budget tracking per key, user and team. It is a popular choice for self-hosted setups, because it combines provider routing with spend controls in a single component.
It needs more operational care than a hosted gateway, but it costs nothing to run beyond your own infrastructure. Best for: teams that already self-host and want one gateway for routing and budgets.
Gateways and observability tools are complements, not rivals. A gateway enforces the budget, while an observability platform explains why the budget was nearly breached.
Many teams run both: the gateway for control and the observability tool for diagnosis. Our guide to AI infrastructure cost monitoring covers the wider monitoring picture these tools fit into.
Open-source and lightweight options
Arize Phoenix is an open-source observability tool that runs locally and captures traces through OpenTelemetry, with a focus on retrieval pipelines and embedding behaviour. It is free to self-host and suits teams that want to inspect traces on their own machines without sending data to a third party. Best for: retrieval-heavy applications and teams that prefer local, open-source tooling.
Langtrace is a lighter, OpenTelemetry-native SDK that emits standard spans carrying token counts, duration and per-request cost. It does less than a full platform, but what it does is portable: the data lands in whatever observability backend you already use. Best for: teams with an existing OpenTelemetry setup that want LLM cost data in the same place as the rest of their telemetry.
For individual developers, smaller tools cover the gap. Utilities that read local session files can show token burn from coding assistants, and simple loggers can record every call to a local database. These are not team tools, but they stop a single developer’s usage from becoming a surprise.
Comparing the main tools
| Tool | How it works | Cost control | Main strength |
|---|---|---|---|
| Langfuse | SDK tracing, self-hosted or cloud | Dashboards and alerts | Tracing plus evaluations |
| Helicone | Proxy, change the base URL | Dashboards and alerts | Fastest setup, no code changes |
| LangSmith | LangChain-native tracing | Dashboards and alerts | Deep LangChain integration |
| Portkey | Gateway with routing | Budget caps per team or key | Enforcement across providers |
| LiteLLM | Open-source proxy | Budgets per key and team | Self-hosted routing plus budgets |

Provider dashboards: the free starting point
Every major provider ships a dashboard that shows usage and spend by model, key and day, and it costs nothing extra. For a small team with one product, that may be enough for months. The limit is attribution: provider dashboards rarely know which feature or user a request belonged to, because that information lives in your application, not in the API call.
Use the provider dashboard as a cross-check even after adopting a dedicated tool. If your tool says one number and the provider says another, one of them has a tagging or pricing error, and the provider’s invoice is the one finance will believe. Reconcile the two monthly, and investigate any gap before it grows.
How to choose the right tool
Start with your stack. A LangChain team will get the most from LangSmith, a self-hosting team from Langfuse or LiteLLM, and a team that wants visibility without code changes from a proxy such as Helicone. A team that needs hard budget caps should look at gateways first, because an observability platform can only warn about an overrun.
Then consider data handling. Tools that proxy your traffic or store your prompts in the cloud raise questions about where prompt data goes, which matters when prompts contain customer or internal information.
Self-hosted options keep that data inside your infrastructure, at the cost of operational work. Check data residency and retention before committing, not after.
Finally, weigh the total cost of the tool itself. A free self-hosted tool still costs engineering time to run, while a hosted tool charges per request or per observation.
Compare that cost against the spend it protects: a tool that costs a tenth of the waste it finds pays for itself, and one that costs more than the waste is a hobby. Our guide to AI observability best practices explains how cost monitoring fits a wider observability setup.
Setting up monitoring that actually works
Tag every request with the feature, user and environment it belongs to, because untagged traffic cannot be attributed later. Set alerts on daily spend per feature and on cost per request, so a spike is noticed the same day. Review the numbers weekly with the team that owns the feature, not just monthly with finance.
Keep the pricing data current. Tools calculate cost from a price list, and that list goes out of date when providers change rates or add models.
An outdated price list produces confident, wrong numbers, which are worse than no numbers at all. Verify the tool’s prices against the provider’s page each quarter.
Cost monitoring checklist
- Every request is tagged by feature, user and environment.
- Cost is visible by feature, model, user and time.
- Alerts fire on daily spend and on unusual cost per request.
- Tool totals are reconciled against the provider invoice monthly.
- Price lists in the tool are rechecked each quarter.
- Budget caps exist where an overrun would hurt.
- Prompt data handling meets your privacy requirements.
- Cost data is reviewed weekly with feature owners.
- One tool is chosen and adopted fully, not three tools half used.
- Monitoring covers background jobs and agents, not just chat.
Frequently asked questions
Do I need a cost monitoring tool if my spend is small?
Probably not yet. A provider dashboard is enough while spend is low and one person can read it. Adopt a dedicated tool when spend grows, when more than one feature uses models, or when the first surprise invoice arrives.
What is the difference between Langfuse and Helicone?
Langfuse is an observability platform you integrate with an SDK, and it can be self-hosted with tracing, prompt management and evaluations. Helicone is a proxy you point your client at, which logs every call with no code changes. Choose Langfuse for depth and ownership, Helicone for speed of setup.
Can a gateway really stop an AI budget overrun?
Yes, if it is configured to. Gateways such as Portkey and LiteLLM can cap spend per key, user or team and block requests past the cap. The risk is blocking a production feature, so use hard caps for background work and alerts for customer-facing traffic.
How accurate are the costs these tools report?
They are as accurate as their price lists and their token counts. Token counts come from the provider, so they are reliable; costs depend on the tool’s price list, which must be kept current. Reconcile against the provider invoice monthly to catch drift.
Should I self-host or use a cloud monitoring tool?
Self-host when prompts contain sensitive data or when you want full control, and accept the operational work that comes with it. Use a cloud tool when you want to start quickly and your data handling rules allow prompts to leave your infrastructure.
Can one tool monitor costs across several providers?
Yes. Gateways and proxy-based tools sit in front of multiple providers and report spend in one place.
SDK-based tools can also cover several providers if each integration is instrumented. Single-provider dashboards cannot do this, which is their main limit.







