Skip to content

DevTools App

The DevTools app (apps/devtools) is a Next.js application that gives you a browser-based UI for exploring, replaying, and inspecting recorded sessions.

Terminal window
pnpm dev

Open http://localhost:3000. The app loads with two demo sessions so you can explore immediately — no API keys required.

A chronological event list showing every recorded event with:

  • Type badge (Prompt, Token, Tool, Result, Completion, Error)
  • Human-readable description
  • Timing offset from session start

A visual latency breakdown showing streaming spans and tool call durations side by side. Useful for spotting where time is spent in a multi-step request.

Token usage breakdown and estimated spend per request, using the built-in pricing table for OpenAI, Anthropic, and Gemini models.

Click Replay Session to enter replay mode. The session plays back in real time, assembling the token stream as it goes.

Controls:

  • Speed: 0.25×, 0.5×, 1×, 2×, 4×, 8×
  • Seek bar: jump to any point in the session
  • Pause/resume at any time
  • Filter events by type using the chip row at the top of the timeline
  • Text search across all event content

Export: click the Export button in the toolbar to download the active session as a .flight file.

Import: click Import and select a .flight file. The session is added to the session list immediately.

See .flight Format for file format details.