Spanlens preview

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 (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.

Explore by category

Other AI Tools

View all 324 tools
Seedance 2.5 API preview

Seedance 2.5 API

Seedance25API.io is an independent website for developers preparing to use the Seedance 2.5 API. It provides API availability updates, expected specifications, real video examples, reusable prompts, request-building tools, quickstart guides, and integration resources.

Other AI Tools
ytzolo preview

ytzolo

YTZolo 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.

Other AI Tools
Toolali preview

Toolali

Toolali is the fast, minimalist repository for browser-local web utilities. Access a vast suite of free calculators, code sanitizers, image converters, and estimators without creating an account. Featuring a command-bar search (Cmd+K) and a favorites drawer, it's designed to streamline your daily workflow while keeping your sensitive text and files safe on your own machine. No logins, no limits

Other AI Tools
TariffCatalog preview

TariffCatalog

Find candidate HS codes, check missing country of origin, estimate duty inputs, and prepare customs document drafts for ecommerce catalogs.

Other AI Tools
Capri Ai Agentpay preview

Capri Ai Agentpay

Capri AgentPay lets AI agents pay for APIs autonomously—with policy checks, budgets, and signed receipts without ever holding your keys.

Other AI Tools
Wend Game - LinkedIn preview

Wend Game - LinkedIn

Play Wend Game free online. Trace hidden words through neighboring letters, use every open tile once, and practice the same word-path logic with no login or download.

Other AI Tools