qmetrics.net

Spanlens

Open-source LLM observability proxy with cost tracking and agent tracing

Spanlens screenshot

LLM observability tool that logs every OpenAI, Anthropic, Gemini and other provider call with cost, tokens, latency and agent traces. Works by changing the base URL or using a drop-in SDK; self-hostable with Docker

Overview

Spanlens is an LLM observability and monitoring platform. You point your OpenAI, Anthropic or Gemini client at its proxy, or use its drop-in SDK, and every call is logged with model, provider, tokens, cost, latency and the full request and response body. Streaming responses are reconstructed, and logs are saved asynchronously so they stay off the critical path. Other providers such as Mistral, Groq, DeepSeek, xAI, OpenRouter, Cohere and Azure are routed the same way, and a single unified project key covers all of them.

Beyond the request log, it offers agent tracing as span trees with a critical-path view, per-request cost breakdowns with daily rollups and budget alerts, prompt-cache savings, and per-end-user analytics. Anomaly detection compares latency, cost and error rate with a 7-day baseline. Alerts go out by email, Slack or Discord. PII and prompt-injection scanning can flag or optionally block requests, and a per-request header controls how much of each body is stored.

For prompt and quality work it includes prompt versioning with A/B experiments, a playground, datasets, and LLM-as-judge evals with human annotation. It also offers opt-in exact-match response caching, model recommendations for cheaper alternatives, outbound HMAC-signed webhooks, OTLP/HTTP trace ingest, CSV and JSON export, and an OpenAPI spec. Integrations cover the Vercel AI SDK, LangChain, LlamaIndex and Ollama, plus a CLI and an MCP server for querying data from Cursor or Claude Desktop.

Teams get workspaces, projects, admin, editor and viewer roles, invitations and an audit log. Data is stored in Supabase Postgres. A hosted version is available with free and paid tiers, and the server can also be run yourself from a Docker image, with configurable retention.

Key features

  • Drop-in proxy for OpenAI, Anthropic, Gemini and more
  • Request log with cost, tokens and latency
  • Agent tracing with span trees
  • Anomaly detection and alerts
  • PII and prompt-injection scanning
  • Prompt versioning and A/B experiments
  • LLM-as-judge evals and datasets
  • OTLP ingest and MCP server

Use cases

  • Tracking LLM spend per model, feature or end user
  • Debugging multi-step agent runs
  • Comparing prompt versions on real traffic
  • Detecting cost spikes and error bursts
  • Self-hosting LLM logging for privacy

Tags

Similar software

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

  • Visual drag-and-drop flow builder
  • Python source access for customizing components
  • Interactive playground for testing flows
PythonmacOS, Windows, DockerDetails →
★ 157.1k⟳ todayMIT
Open Source Alternative to:Google AI StudioRelevance AI+1

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

  • Interoperable LLM and tool components
  • Model and provider swap support
  • Vector store and retriever integrations
PythonDetails →
★ 150.4k⟳ todayMIT

Paperclip

Open-source orchestration platform for teams of AI agents

Node.js server and React UI for managing a team of AI agents like a company. Assign goals, build an org chart, set budgets, and track tasks and costs from one dashboard.

  • Org chart of human and AI agent roles
  • Bring-your-own agent adapters
  • Goal-linked task management
TypeScriptWebDetails →
★ 119.4k⟳ todayMIT
Open Source Alternative to:Dust

Agent Reach

CLI toolkit for AI agents to search and read many web platforms

Agent Reach installs platform connectors so AI agents can search and read sites such as GitHub, YouTube, Reddit, Bilibili, and Xiaohongshu from one command line, without relying on paid APIs for default channels.

  • One CLI install for many web channels
  • Default channels without paid APIs
  • Ordered fallback tools per platform action
PythonCLIDetails →
★ 117.1k⟳ 10 days agoMIT

RAGFlow

Open-source RAG engine and agent context platform

RAGFlow ingests heterogeneous documents, builds retrievable knowledge, and supports agent workflows with citations. It can run on your own hardware with Docker or a from-source server stack.

  • Multi-format document ingestion
  • Template-based explainable chunking
  • Knowledge compilation artifacts
GoWeb, Linux, DockerDetails →
★ 95.2k⟳ todayApache-2.0

MiroFish

Multi-agent swarm intelligence prediction engine

MiroFish builds parallel digital worlds from real-world seed material so multi-agent simulations can explore future outcomes. Users upload seeds and state prediction needs in natural language.

  • Seed-to-graph world construction
  • Multi-agent social simulation
  • GraphRAG and persona setup
PythonDockerDetails →
★ 87.6k⟳ 2 months agoAGPL-3.0