Agentmetry
Free · Open source
SOC and DevSecOps teams
Your OpenAI bill doubled last month and nobody can tell you which endpoint, which model, or which user caused it — that's the problem Spanlens exists to solve.
$29/month · Free tier: 50K requests/month, 1 seat, 1 workspace, 14-day log retention · Checked Nov 4, 2026
Spanlens sits in front of your LLM provider via a single baseURL change, recording every call's cost, latency, tokens, and full request-response body with no SDK rewrite required. Agent runs surface as waterfall span trees so you can identify the one step consuming 80% of wall-clock time. The model recommender flags GPT-4o calls that look like classification tasks and shows the cost delta if you swap — with numbers from your own traffic, not benchmarks. The eval and experiment layer lets you replay a fixed dataset across prompt versions before you ship, so quality regressions don't surprise you in production. PII scanning and anomaly detection run at log time, which matters when sensitive data crosses the wire at 3 a.m. with nobody watching.
Bottom line: Pick Spanlens when you need to know exactly why your LLM bill spiked and whether your new prompt version is actually better — but plan a different path if your compliance team requires audit-grade PII redaction rather than flag-and-review.
Self-hostable MIT licensed, no enterprise edition folder. Run docker compose up on your own infrastructure and get every feature at zero cost.
Pricing may have changed since last verified. Check the official site for current plans.
For personal projects and exploration
For solo developers shipping to production
For teams that need full visibility
For large teams with advanced needs
View full pricing on spanlens.io →
Pricing may have changed since last verified. Check the official site for current plans.
Find your fit
More options in LLM Observability. Compare pricing, platforms, and features side by side.
Free · Open source
SOC and DevSecOps teams
Freemium
Developers building GenAI apps and agents
Most LLM cost overruns are invisible until the invoice lands. Spanlens intercepts every OpenAI, Anthropic, and Gemini call at the proxy layer — capturing model, tokens, cost, latency, and full body — then organizes that data into per-request logs, daily rollups, budget alerts, and per-user attribution. The SDK (TypeScript and Python) and a CLI that rewrites your baseURL are the two entry points; the vendor describes the CLI path as requiring one line to instrument existing code.
The differentiating feature is the combination of agent trace trees with an experiment layer that reads from the same span store. A multi-step agent run surfaces as a waterfall with critical path highlighted and per-LLM, per-tool cost attributed at each node — so debugging an 18-second support agent means clicking to the exact summarize step rather than reading logs. That same span data feeds the experiment runner: capture real traffic into a dataset, score responses with an LLM-as-judge (0–1 per version), and replay the dataset across prompt versions and models side by side before deploying. The vendor’s own example shows a prompt-plus-model swap from GPT-4o v7 to GPT-4o-mini v8 yielding a 0.11 quality improvement and a 94% cost reduction on the same 320-case dataset.
Spanlens fits teams that are already running agents or multi-step workflows and need evidence — not intuition — to justify model swaps, catch budget spikes, or sign off on a new prompt version. It is self-hostable via Docker Compose under an MIT license, which the vendor states directly, making it viable for organizations with data residency requirements. The PII scanning is regex-based at log time with API keys auto-masked before storage — adequate for flagging and review workflows, not a substitute for a dedicated data-loss-prevention pipeline if your compliance posture requires guaranteed redaction before data touches any storage layer.
The free hosted tier handles up to 50,000 requests per month; above that, paid cloud tiers apply. The SDK version at time of listing adds Ollama and LangGraph tracing, covering local LLM runs alongside hosted providers.
Sign in to rate this tool or suggest an edit.