Skip to main content
Magpie stores the traces of AI agents: every prompt, reply and tool call. It finds a word or a phrase in them, answers questions about whole runs, and adds up tokens and cost. It is one Rust engine, built on Tantivy. A store is one folder of files.
Status: in development. Packages and server binaries are not published yet: build from source. From release 0.1.0 on, magpie-server is also a download for macOS and Linux, and a Docker image. Release 0.1.0 is not out yet.

What it does

  • Search prompts and replies by word, phrase, prefix or part of a word.
  • Whole-trace queries: conditions on different steps of the same run, for example “a tool failed and model X answered in a later step”.
  • Sums of tokens, cost and scores per model, user or time range.
  • OpenTelemetry in: OTLP over HTTP (protobuf or JSON) and gRPC, with the GenAI semantic conventions mapped to spans.
  • Private data masked before it is stored: no file of the store holds the original text (--mask, off by default).
  • Embedded or server: use the magpiedb library in Rust, Node.js or Python, or run magpie-server.

Start here

Quick start

Start the server, send a trace, ask questions. Or use the library. 5 minutes.

Library or server?

Which of the two ways to use Magpie fits your app.

Send traces with OpenTelemetry

From any app or framework, over HTTP or gRPC.

Queries

Text, filters, whole traces, sums, sessions, scores, export.

Run it in production

API keys, TLS, tenants, retention, masking, backups, S3.

Benchmarks

Against 13 other engines, every answer checked. Losses too.

Try it in one minute

Requires stable Rust.
In another terminal, send a sample agent run and open the viewer:
Point any OpenTelemetry SDK at the server:

How these pages are checked

Every number on these pages has a source file and an answer checked against a known count. Losses are published next to wins. The full record of every measurement is the findings record. What Magpie does not do yet: Limits. Magpie is open source under the Apache-2.0 license.