Skip to content
ToolTrove
Spanlens logo

Spanlens

Business

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

Spanlens is an open-source platform for monitoring and analyzing large language model (LLM) usage across providers like OpenAI, Anthropic, Gemini, and local Ollama models. Designed for developers and teams integrating LLMs into their applications, Spanlens logs requests, tracks costs, measures latency, and provides detailed agent traces with minimal setup. The dashboard offers cost breakdowns, anomaly detection, and prompt version comparisons, while features like PII detection and prompt-injection scanning enhance security. Spanlens can be self-hosted for free under the MIT license, or used as a managed service with tiered pricing based on request volume and retention period.

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

Spanlens screenshot

Reviews

Sign in to share your experience with this tool.

Sign in

No reviews yet. Be the first to review this tool.

Spanlens alternatives

More Business tools →

Related tools