Skip to main content
Magpie stores the traces of AI agents. You can use it in two ways:
  • The server (magpie-server). Your apps send OpenTelemetry traces to it. You ask questions over a JSON API.
  • The library (magpiedb). It runs inside your app, like SQLite. There is no server. Rust, Node and Python.
Both use the same engine and the same store: one folder of files. Not sure which one to pick? Read library or server.
Magpie is not on crates.io, npm or PyPI yet, and release 0.1.0 is not out. Until it is, you build it from the repo. You need Rust (stable) and curl. For Node you also need Node 24; for Python you also need uv.
Every command and every answer in this quickstart was run on 2026-12-04 (macOS, Apple silicon, the code of main), except the download commands: they work only after the release (see below).

Run the server

1

Get the server

DownloadFrom release 0.1.0 on, every release has magpie-server ready to run, and a Docker image. Release 0.1.0 is not out yet: until it is, these links answer 404, so build it (next part). The same archives and image, built from the repo the way the release builds them, were run on 2026-12-04 and 2026-12-05: macOS arm64, macOS x64 (with Rosetta 2), Linux arm64 (in CentOS 7) and the arm64 image (docs/RELEASE.md, “What was checked for magpie-server”). Linux x64 and the amd64 image are built only by the release workflow.
The check must print magpie-server-0.1.0-macos-arm64.tar.gz: OK. The folder holds magpie-server, LICENSE and a short README.md. Then go to step 2.
  • macOS: the program is not signed with an Apple Developer ID. A download with curl starts as it is. A download with a browser gets a mark, and macOS refuses to start the program: remove the mark with xattr -dr com.apple.quarantine magpie-server-$V-$P.
  • Every release, with its notes: github.com/intojhanurag/magpie/releases.
With Docker (amd64 and arm64). This command takes the place of step 2:
The store is in the volume magpie-data; the container runs as a user without rights, and has a health check. The tag latest is the newest release. Keys, TLS, Compose and Kubernetes: the server reference, “Docker”.Or build itSet REPO to the folder of the repo. Then build the server and put it on your PATH:
The first build takes some minutes.
2

Start the server

It prints one line and waits. Keep it open, and use a second terminal for the next steps.
  • ./traces is the store: one folder that holds all the data. The server makes it.
  • Port 4318 takes OTLP over HTTP and the query API. Port 4317 takes OTLP over gRPC.
  • By default the server listens on 127.0.0.1 only, and has no API keys. Before you open it to other machines, read operations.
  • The server also serves a read-only viewer at http://127.0.0.1:4318/ (the viewer, below).
  • Ctrl-C stops the server. It closes the store. The data stays in ./traces.
3

Send a trace

An app with an OpenTelemetry SDK needs no code change. Set two environment variables (more in OpenTelemetry):
To try it without an app, send OTLP as JSON with curl. This trace has two steps: a model call, and a tool call that failed.
{} means that every span is stored. A span can be found after the next commit (the sleep 2). The server commits every 0.5 s, and a commit takes some time too (in all, 1.1 to 1.2 s on the test machine while other builds ran).
4

Ask questions

Find text. How many steps have the phrase “refund policy”?
Ask about whole traces. Which traces have a tool call that failed?
Add up numbers. Tokens per model:
The row with "key": null is the tool call: it has no model.Search the errors. How many steps failed with the word “timeout” in the error?
Read the trace. Every step, with its text:
Every query type, with examples: queries.

The viewer

Open http://127.0.0.1:4318/ in a browser (the server of step 2). With the trace of step 3:
  • The list shows 1 trace, chat gpt-4o, with a red dot: one of its steps failed. Above the table, the numbers of the traces in the list: failed, typical time, the slow 1 in 20, tokens, cost, and bars of the traces in time.
  • Type "refund policy" in the search box and press Enter: “1 match your search”, and the phrase is marked yellow. The box also takes refu* (a word that starts so), *fund* (a piece of a word), model:gpt-4o, user:user-7 and is:error. + Filter adds the same as chips; the chip on the left picks a time range.
  • Click the trace: its steps as a tree on a time axis (the failed tool call is red), and the selected step: its input and answer (tab Messages), the step as JSON (Raw), every field and attribute (Attributes). The box “Find in this span” marks every hit; Enter goes to the next one.
  • “Sessions” at the top lists the conversations. The top right shows the size of the store; the round switch there picks light or dark (default: as your system).
The viewer only reads: it calls the query API. It calls no route that writes. With --auth keys it asks for a key with the read right and keeps it in that browser tab only. --no-ui turns it off. More: the server reference, “Viewer”.

Or: the library in your app

No server here. The store is a folder that your app opens. One process at a time may write to a folder.
Build the package from the repo, then install it into your app:
The API of the package: Node library.

Next