agentsentriopen-source LLM observabilityDashboard
AgentSentri logo

open-source llm observability

See inside your LLM applications

AgentSentri traces every chain step, tool call, and model generation — with latency, token usage, and cost — on infrastructure you control. Apache 2.0 licensed, forever.

No account needed to self-host. The hosted dashboard requires a login.

pip install agentsentri
from agentsentri import AgentSentri

sentri = AgentSentri(secret_key="sk-as-...")

with sentri.trace(name="answer-question") as trace:
    with trace.generation(name="llm-call", model="gpt-4o") as gen:
        gen.set_input({"prompt": "What is observability?"})
        gen.set_output({"answer": "..."})
        gen.set_usage(input_tokens=42, output_tokens=100)

Quickstart

From nothing to your first trace in a few minutes.

  1. 1

    Run it

    docker compose up -d, then pnpm install && pnpm db:push && pnpm dev. Postgres and Next.js, nothing else.

  2. 2

    Create your account & project

    The first sign-up owns a default organization. Create a project — it holds its own traces, prompts, and API keys.

  3. 3

    Grab an API key

    Keys → Create API key. Copy it once; it's stored only as a hash and authenticates every ingest request.

  4. 4

    Send a trace

    Use curl, the Python SDK, or point any OTLP/HTTP exporter at AgentSentri — then watch it land in the span-tree viewer.

Full walkthroughs are in the guides below.

Guides & docs

Everything you need to go from first trace to production.

Getting started →

A guided first session — account, first trace, and a tour of scores, datasets, prompts, and dashboards.

Comparing two frameworks →

A runbook for putting two frameworks, models, or agent designs head-to-head on one dashboard.

Instrument your app →

Recipes for the OpenAI SDK, Vercel AI SDK, Anthropic SDK, LangChain, or anything already speaking OpenTelemetry.

TypeScript SDK →

Batch tracing handles, wrap() instrumentation with automatic nesting, and typed clients for every public API.

LLM-as-judge evals →

BYO judge key, on-demand + scheduled scoring, human override of judge scores, and alerts — Story D hooks (versioned batch) planned next.

Key usage monitoring →

Assign keys to owners, learn each key's normal usage, and get alerted on cost spikes, rate spikes, and compromised keys.

Manual scores →

Create, upsert, list, patch, and delete numeric or categorical scores on traces and observations.

Free-text notes →

Attach durable prose judgments to a trace or observation — distinct from structured scores.

A2A interoperability →

A2A-interoperable observability peer — Agent Card discovery and HTTP+JSON skills for scores, notes, queues, and evals.

A2A usage & budgets →

UTC daily A2A metering, project/key ceilings, soft approach alerts, and A2A-only 429 cut-off on the Keys tab.

MCP server →

Expose the P0 skills as agentsentri.* MCP tools over Streamable HTTP, with OAuth 2.1 or Bearer-key auth and a per-project MCP budget.

Annotation queues →

Enqueue, claim, and complete human review items on traces and observations — API, Queues UI, and Python SDK.

FAQ →

Short answers on projects, cost, data privacy, self-hosting, orgs & roles, and more.

Deployment →

Self-host on Fly.io — session secret, automatic migrations, and the upgrade path.

A2A usage & budgets

Meter peer traffic, set UTC daily ceilings, and cut off A2A calls before a runaway agent burns the day — without touching ingest.

A2A peer
AgentSentri exposes an A2A-interoperable observability peer — Agent Card discovery plus HTTP+JSON skills for scores, notes, queues, and evals.
What gets metered
Authenticated /api/a2a gateway requests, counted per UTC calendar day. Not tokens or USD — request volume only.
Key attribution
Budgets attach to the project API key (sk-as-…). Optional caller labels are display-only and never the cut-off subject.
Default project ceiling
50,000 A2A requests/day (UTC) on by default. Per-key daily caps are opt-in and stack with the project ceiling.
Cut-off behavior
Hard deny returns 429 + Retry-After until the next UTC midnight — A2A only. OTLP ingest and public REST stay available.
Where to manage
Project → Keys → A2A usage & budgets: today's usage, soft approach alerts (banner + optional email), and ceiling controls.

Full usage & budgets guide · A2A interoperability

OpenTelemetry-native

Ships an OTLP/HTTP endpoint that understands the OTel GenAI semantic conventions — apps already instrumented with OpenTelemetry work with three environment variables.

Cost & token tracking

Every generation records token usage, and USD cost is computed automatically from a built-in model pricing table — or pass your own cost per call.

Span-tree trace viewer

Inspect every chain step, tool call, and model generation as a nested tree with inputs, outputs, latency, and errors side by side.

Self-hosted, Apache 2.0

Your prompts and outputs stay on your infrastructure. Postgres and Next.js, one docker compose away — no usage-based pricing, ever.

Apache 2.0 · no CLA, just DCO · GitHub · Getting started · FAQ · Deployment guide

AgentSentri