
Spanlens
Open-source LLM observability: log cost, latency, tokens, and agent traces for every OpenAI, Anthropic, Gemini, or Ollama call with a one-line baseURL swap. Self-hostable, MIT.
About Spanlens
Best for: LLM application developers, AI engineering teams, Data scientists, Organizations monitoring LLM costs
Key features
- Logs every LLM request with model, tokens, latency, and cost details
- Tracks spend, tokens, and cache savings per model and project
- Agent tracing visualizes multi-step workflows and dependencies
- Anomaly detection flags spikes in latency, cost, or error rate
- PII and prompt-injection detection with auto-masking
- Prompt versioning and A/B experiments with LLM-as-judge evaluation
- Self-hostable under MIT license with Docker support
- Exports data in JSON, CSV, Parquet, or streams to data warehouses
Use cases
- Monitor and analyze LLM usage and costs across multiple providers
- Detect and investigate anomalies in LLM performance or spend
- Trace and debug complex agent workflows involving multiple LLM calls
- Evaluate prompt changes and compare versions using automated and human-in-the-loop methods
- Enforce security by detecting PII and prompt-injection attempts in LLM traffic
Pros
- Self-hosting is free with no seat or usage limits
- Minimal integration effort with one-line baseURL swap
- Exports data in multiple formats and integrates with data warehouses
- No credit card required for free plan
Limitations
- Free plan limited to 50K requests/month and 14-day retention
- Paid plans have request quotas and overage fees
Screenshots

Reviews
Sign in to share your experience with this tool.
Sign inNo reviews yet. Be the first to review this tool.
Spanlens alternatives
More Business tools →AI SEO optimizes content & pages for search rank.
An AI receptionist answers every call 24/7, books appointments, and never misses a lead. Zero setup. Works in minutes.
Cofondr handles all non-coding tasks with the power of AI and humans, allowing you to concentrate on what matters most: coding and marketing.
AI support agent that answers your Shopify customers 24/7
AI Business Immigration Platform. Backed by Y Combinator.
Advanced Gen AI SaaS platform for online media that automates core newsroom publishers content workflows
Related tools
AI-powered job search platform that scores and tailors your resume to beat ATS filters, practices mock interviews with real-time feedback, and tracks all your applications in one place
Bolta.ai is a social media operating system that helps creators, founders, and teams plan, write, review, and publish content consistently across platforms. Instead of juggling tools, Bolta brings scheduling, crossposting, and brand-consistent writing into one calm, structured workflow.
Observable memory and caching for your AI agents
EchoWriting is an AI-powered writing assistant that learns your writing style and rewrites or generates content in your authentic voice for blogs, marketing, SEO, emails, and social media.
AI-generated release notes for teams that ship faster than they communicate
Convert AI-generated drafts into more natural writing while keeping your meaning. Choose the tone and purpose, then copy a cleaner result
Ito automatically performs agentic QA on every pull request by spinning up test environments, running end-to-end validation, and posting evidence-backed bug reports directly into GitHub PRs.
EchoLeads is an AI voice sales platform with intelligent AI voice agents for cold calling, lead generation, and automated appointment scheduling.