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.

Product screenshot

Product screenshot

Overview

What is Spanlens?

Spanlens is an open-source (MIT) LLM observability platform that lets developers monitor every call their application makes to OpenAI, Anthropic, Gemini, Mistral, OpenRouter, Azure OpenAI, or a local Ollama model. Integration takes one line: swap your client's baseURL to the Spanlens proxy, or run "npx @spanlens/cli init" and the wizard rewrites your code automatically. From that moment, every request is recorded with its model, token counts, latency, cost, and full prompt and response body, with streaming responses reconstructed automatically.

The dashboard turns that raw log into operational insight. Cost tracking breaks spend down per request, per model, and per end user, and parses prompt-cache tokens separately so you see real cache savings rather than sticker price. Agent tracing visualizes multi-step workflows as Gantt waterfalls and node-and-edge graphs, highlighting the critical path so you can find the slowest dependency chain in a fan-out. Anomaly detection flags 3-sigma deviations in latency, cost, or error rate against a rolling 7-day baseline with root-cause hints. Alerts on budget, error rate, and p95 latency are delivered to Email, Slack, or Discord.

Spanlens goes beyond passive logging. A regex-based PII and prompt-injection scanner inspects request and response bodies and can block injections at the proxy. The savings engine spots calls that match a cheaper model's profile (for example, a gpt-4o call that looks like a classification task) and estimates the monthly saving from switching. Prompt versioning with A/B experiments compares versions on latency, cost, and error rate using Welch's t-test for statistical significance, and an LLM-as-judge evaluation framework (judge with OpenAI, Anthropic, or Gemini) scores outputs against rubric anchors, with human agreement measured by Pearson r or Cohen's kappa. Reusable datasets power offline evals and regression checks.

Platforms and languages

Spanlens Availability

Platforms

Web

Languages

English

Compare similar tools

Spanlens Alternatives

ytzoloYTZolo is an AI-powered YouTube content generator that helps creators produce engaging scripts, SEO-friendly titles, descriptions, tags, and content ideas quickly to grow their channels more efficiently.AI Text WritingAI Marketing ToolsOther AI Toolsai ytzolo youtube scriptTaxiCloudAI-powered taxi dispatch platform that helps operators automate bookings, driver allocation, pricing, airport transfers and customer communication.Other AI ToolsMCPFlyDiscover and explore a wide range of awesome MCP servers, clients, and reliable hosting solutions for all your needs.5.0(1 reviews)Other AI ToolsMinute TimerMinuteTimers: A simple, free, and customizable online timer designed to help you stay productive, manage time effectively, and achieve your goals with precision.5.0(1 reviews)Non AIOther AI ToolsMinute Timer Timer Online TimerEmoji RepoFree Emojis in PNG and SVG formats. Copy and Download 1,800+ emojis for commercial use. Multiple styles from Apple, Google, Twitter & Facebook.5.0(1 reviews)Non AIOther AI ToolsEmoji Repo Emoji coppy Emoji downloadMonitorGuardMonitorguard and security guard Workforce management systemOther AI ToolsWPAegisWPAegis keeps WordPress websites secure, fast, updated, backed up, and reliably maintained.Other AI ToolsAI Security ToolsAI Marketing ToolsWordPress SecurityWordPress MaintenanceWebsite PerformanceMCP Playground OnlineMCP Playground Online is an all-in-one browser-based platform for building, testing, debugging, and deploying MCP-powered AI agents. Connect to any MCP server, deploy 60+ hosted servers instantly, and test agents with live tool-call inspection. Compare 60+ AI models, use ready-made templates, collaborate with your team, and export agents as production-ready APIs—all without managing SDKs, Docker, or infrastructure.Other AI ToolsmcpaiagentTokenhot LLM API GatewayOpenAI-compatible LLM API gateway for 100+ models. One endpoint, one API key, zero KYC. Cut costs by up to 90% with intelligent routing. Supports text, vision, video, and TTS.AI Productivity ToolsOther AI ToolsAPIAutomationCronloopAutomate recurring work with AI agents.Other AI ToolsAI Agents

Reviews

See what the community thinks and share your experience.

—

Based on 0 ratings

Rating distribution

0
0
0
0
0

Leave a review

Sign in to rate

Community reviews

No reviews

No written reviews yet.

Explore by category

Other AI Tools

View all Other AI Tools websites
AtAt preview
AtAt

Your agent, in any app. Type @@ to ask Claude Code, Codex, or your own model in any text field, and let your agent see your Mac.

Other AI Tools
ShipWithMuse preview
ShipWithMuse

Curated, searchable directory of 1,000+ real projects built with Meta's Muse agent — indexed by use case with links to original sources.

Other AI Tools