Skip to main content
magpiedb is the engine of Magpie: an embedded store for AI-agent traces. One engine does three jobs:
  1. Full-text search over the input and output of spans (prompts and replies).
  2. Whole-trace queries: “runs where a tool failed AND the agent was asked about refunds”.
  3. Sums: tokens, cost and counts per model, user or day.
It runs inside your process, like SQLite. A store is one folder of files that do not change after they are written. One process writes a store; other processes can open it read-only. The same engine is in the Node package (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.
Magpie is not on crates.io yet, and release 0.1.0 is not out. Until it is, you build it from the repo (see the quickstart). You need Rust (stable).

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).
The first build of the app compiles the engine (some minutes). The docs of the Rust API: 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.

License

Apache-2.0.