Categories
Self-Hosted Developer Tools AI Agents LLM Observability OpenTelemetry LLM Evaluation Cost Tracking AI ObservabilityStars
Forks
Watchers
Developer links
Otterscope
Otterscope shows what an AI agent actually did on every run: each model call, tool call, loop, error, and dollar spent, read from the OpenTelemetry traces it already emits. Runs stream into a live list that filters by status, model, service, project, and time, searches message and tool text, and saves any filter set as a named view. Opening a run reveals a step timeline with proportional duration bars, the actual messages in and out of each model call with token and cost breakdowns, and every tool call's arguments and results. A broken run can be handed to a teammate as an opt-in, revocable read-only link. Assertions for text matches, valid JSON, and latency or cost limits, plus an LLM judge, score real production runs as they arrive. A compare view sets error rate, p50 and p95 latency, cost, and pass rates side by side for two models, two weeks, or two prompt versions. Alert rules on error rate, cost, latency, or failed assertions post to Slack, Discord, or any webhook when they start and stop firing. Unknown models show tokens, never invented prices. Guides cover Pydantic AI, the OpenAI Agents SDK, the Vercel AI SDK, LangGraph, and Claude Code, and a built-in MCP server lets an agent query its own runs and costs. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. Apache-2.0 licensed.
Benefits
- Agent runs, not span soup
- Each trace becomes one agent run with a step timeline, per-run tokens and cost, and the actual messages and tool arguments, filterable by status, model, service, project, and time.
- Quality scored on real traffic
- Assertions for contains, regex, valid JSON, latency, and cost limits and an LLM-as-judge score production runs at ingest or on demand, so regressions show up as pass rates.
- Prompt and model changes compared
- The compare view puts error rate, p50 and p95 latency, cost, and assertion pass rates for two filters side by side, such as model A against model B or prompt v2 against v3.
- Alerts when cost or errors spike
- Rules on error rate, cost, p95 latency, or an assertion's failure rate post to a webhook when they start and stop firing, with a settle time that stops repeated pages.
Features
- OpenTelemetry Ingest
- Accepts OTLP on port 4318 and normalizes the OTel GenAI conventions, OpenInference (OpenAI Agents SDK, CrewAI, LangChain), and the Vercel AI SDK, keeping raw payloads for later reprocessing.
- Run Inspector
- A step timeline with proportional duration bars, message-level LLM inspection with cache-read and reasoning token counts, tool arguments and results, and optional public read-only share links per run.
- Built-In MCP Server
- A POST /mcp endpoint lets Claude Code and other MCP clients query runs, steps, cost, and stats, added with a single claude mcp add command.
- Cost Tracking Table
- A maintained pricing table covers major providers and can be overridden with a JSON file via serve -pricing; unknown models show token counts and never fabricated costs.
- Projects and Read Tokens
- Projects with ingest keys isolate multiple agents, while read API tokens enforced by serve -read-auth let scripts and external dashboards query data; CSV export and Prometheus /metrics are included.
- Audit Log and Backups
- Every create or delete of assertions, alerts, projects, tokens, views, and shares is logged, and a backup command writes a consistent copy, with automatic snapshots before any schema migration.