magpiedb is the engine of Magpie: an embedded store for AI-agent traces. One engine does three jobs:
- Full-text search over the input and output of spans (prompts and replies).
- Whole-trace queries: “runs where a tool failed AND the agent was asked about refunds”.
- Sums: tokens, cost and counts per model, user or day.
npm install magpiedb), the Python package (pip install magpiedb) and in magpie-server, which takes OpenTelemetry traces over OTLP and serves a JSON query API: github.com/intojhanurag/magpie.
Example
Add it to your app
From the quickstart: make an app and add the crate by path.REPO is the folder of the repo. This app was run on 2026-12-04 (see the quickstart).
cargo doc -p magpiedb --open in the repo.
Status
Version 0.1: the first release. The file format of a store has a compatibility number; a build refuses a store of another number before it changes a byte. Limits and measurements:docs/FINDINGS.md in the repository. More limits: limits.