
PetalTrace
Summary
PetalTrace is an open-source observability platform for developers examining AI agent workflows and their execution. It records prompts and completions, tool calls, token use, costs, and execution timelines. A React web interface, CLI, HTTP API, and MCP server provide ways to explore or query that information. Full prompt capture can include system prompts, message history, tool definitions, and model responses. Users can search prompt and completion text, compare runs for differences in content and cost, and replay captured runs with different models or temperatures, including mocked execution. PetalTrace also accepts standard OpenTelemetry traces from instrumented applications, including ones that do not use PetalFlow. Its documented storage uses SQLite. PetalFlow integration adds workflow graph topology, node inputs and outputs, and snapshots that support replay. The software is intended for local operation: documentation covers building from source or using a release binary and running a local daemon. Authentication is labeled as future functionality and is disabled by default. The public repository identifies an MIT license, and no commercial pricing or usage limits are stated.
Who it is for
PetalTrace suits developers who need to inspect, compare, or replay AI agent workflow runs. It is especially relevant to teams using OpenTelemetry or PetalFlow, while its local deployment and disabled-by-default authentication matter when considering access needs.
What is good
- Captures prompts, tool calls, token use, costs, and timelines.
- Compares runs and supports replay.
- Accepts standard OpenTelemetry traces.
- Offers CLI, HTTP API, MCP server, and web UI.
- Open source under an MIT license.
What to know first
- Authentication is future functionality and disabled by default.
- Documented storage uses SQLite.
- Local setup requires a source build or release binary.
Everything Xiaomi review
PetalTrace: the full review
PetalTrace provides trace inspection, run comparison, and replay for AI agent workflows, with several interfaces and OpenTelemetry support. Authentication is not yet available according to the configuration reference, so account for that before deployment.
Overview
PetalTrace is an open-source observability tool for developers tracing AI agent workflows. It suits teams that want local control and replay-oriented debugging; its biggest deployment caveat is that authentication is future functionality.
It brings trace inspection, comparison, and replay together across a CLI, HTTP API, MCP server, and web interface. That breadth makes it useful in both developer workflows and agent-driven analysis, while its SQLite-backed local store favors self-managed deployments over a centrally managed service.
Key features
PetalTrace captures prompts and completions, tool calls, token use, costs, and execution timelines. Full prompt capture includes system instructions, message history, and tool definitions, giving developers context for diagnosing model behavior rather than just inspecting outputs. PetalFlow users can choose minimal capture for latency, status, and token counts; standard capture adds prompts, completions, and tool I/O; full capture adds graph snapshots and edge data. The choice is practical: lighter capture limits recorded content, while full capture preserves more workflow structure.
Run comparison surfaces prompt, output, structural, and cost differences between executions. Replay can use another model or temperature and supports live, mocked, and hybrid modes, making it possible to investigate changes under different execution conditions. Cost tracking by workflow, provider, or model, full-text search across prompts and completions, and live SSE feeds round out the debugging toolkit.
The React web UI explores traces, costs, and workflow graphs; the CLI and HTTP API provide other ways to work with the same capabilities. Its MCP server lets agents query trace history, inspect prompts, analyze costs, compare runs, and initiate replays, with documented Claude Code configuration. PetalTrace also accepts standard OTLP traces from OpenTelemetry-instrumented applications, including those that do not use PetalFlow, which widens its usefulness beyond that framework.
Runs, spans, and LLM interactions are stored in SQLite, with the default database at ~/.petaltrace/data.db. Retention defaults are 30 days for runs and 90 days for failed runs, with a maximum configurable period of 365 days. Local storage offers direct control over trace data, but teams must manage the service and its data themselves. With authentication disabled by default, it is a poor fit for deployments that need access controls unless they can address that limitation outside the product.
Pricing
PetalTrace is free and open source under the MIT license. Its public plan costs 0.00 USD per free, and no commercial price or usage cap is stated. That makes it an appealing starting point for developers who can operate their own instance; the tradeoff is self-management rather than a priced hosted tier with service terms. The repository documents building from source with Go or downloading a release binary and running the daemon locally.
Platforms
PetalTrace supports API, Linux, macOS, Windows, web, and self-hosted use. The documented local daemon and React web UI suit developers who want a service they control, while the API, CLI, and MCP server accommodate programmatic access and agent workflows.
Who it's for
PetalTrace is best for developers diagnosing agent behavior across prompts, tools, costs, and workflow execution, especially those using PetalFlow or OpenTelemetry and comfortable with self-hosting. Its MCP interface is also a strong fit for teams that want agents to inspect and compare trace history. It is less suitable for organizations that require built-in authentication or do not want to operate local infrastructure.
Pros and cons
- Pros: Captures prompt, tool, token, cost, and timeline data, with selectable PetalFlow capture depth to balance context against capture scope.
- Pros: Run comparison and replay across models, temperatures, and live, mocked, or hybrid modes support iterative debugging.
- Pros: CLI, HTTP API, MCP, and web UI cover distinct working styles; OTLP support extends tracing to OpenTelemetry applications beyond PetalFlow.
- Pros: Free, MIT-licensed, and locally stored in SQLite, giving self-hosting developers direct control without a stated usage cap.
- Cons: Authentication is disabled by default and described as future functionality, making access control a deployment concern.
- Cons: Local deployment and SQLite storage put operation, data management, and retention decisions on the user.
Alternatives
AI Agent Observability Tools is the broader category directory for comparing options. OpenLIT is another free, self-hosted option; its OSS plan explicitly includes unlimited users, projects, and environments, which suits readers who need those stated allowances.
W&B Weave may suit users who want evaluations and scorers alongside tracing, with its free tier capped at 1 GB monthly ingestion and 5 GB storage. SigNoz is worth considering when a broader self-managed observability setup is preferable, though its community plan puts infrastructure, storage, scaling, upgrades, and backups on the user.
Opik is an alternative for developers seeking open-source observability and evaluation features they can download and run locally. Agenta offers a Hobby plan with 2 team members, 5,000 agent runs per month, 20 evaluations per month, and one-week trace retention; it is a more bounded choice for a small team that wants explicit limits.
Langfuse offers a Hobby tier with 50k units per month, 30 days of data access, and 2 users, making its stated limits useful for teams sizing a hosted or self-hosted alternative. Traccia gives hobby users 50K events and seven days of retention, while its Observe plan is 99.00 USD per month for 500K events; consider it when event quotas and retention terms are central to the choice.
TraceRoot is another option, with a Starter plan at 30.00 USD per month.
Verdict
Choose PetalTrace if you are a developer who wants a free, self-hosted way to inspect and replay AI agent runs, especially through PetalFlow, OpenTelemetry, or MCP workflows. Its combination of detailed trace capture, comparison, and replay is the core reason to choose it. Look elsewhere if built-in authentication or a managed service is essential; those needs outweigh the advantages of its local-first design.
PetalTrace plans and pricing
All plansCompared on AI agent observability tools
- Session replay
- Yesdocs.petallabs.io
- Prompt and tool tracing
- Yesdocs.petallabs.io
- Deployment options
- self_hosteddocs.petallabs.io
- Agent framework support
- open_standarddocs.petallabs.io
- Cost tracking
- Yesdocs.petallabs.io
Facts
- Purpose
- PetalTrace is an agent observability platform for inspecting AI agent workflows and their execution lifecycle.docs.petallabs.io · 3 Oct 2026
- Captured data
- It captures LLM prompts and completions, tool calls, token usage, costs, and execution timelines.docs.petallabs.io · 3 Oct 2026
- Access methods
- The product exposes its capabilities through a CLI, HTTP API, and MCP server.docs.petallabs.io · 3 Oct 2026
- Prompt inspection
- Full prompt capture includes system prompts, message history, tool definitions, and LLM responses.docs.petallabs.io · 3 Oct 2026
- Run comparison
- It can compare two runs for prompt, output, and cost differences.docs.petallabs.io · 3 Oct 2026
- Replay
- Captured runs can be re-executed with different models or temperatures, or in mocked mode.docs.petallabs.io · 3 Oct 2026
- OpenTelemetry
- PetalTrace accepts standard OTLP traces from any OpenTelemetry-instrumented application, including applications that do not use PetalFlow.docs.petallabs.io · 3 Oct 2026
- Search and streaming
- It supports full-text search across prompts and completions and real-time SSE feeds for active runs.docs.petallabs.io · 3 Oct 2026
- Integrations
- The MCP server lets AI agents query trace history, inspect prompts, analyze costs, compare runs, and trigger replays; the docs include Claude Code configuration.docs.petallabs.io · 3 Oct 2026
- Storage
- The documented architecture stores runs, spans, and LLM interactions in SQLite with full-text search.docs.petallabs.io · 3 Oct 2026
- Capture modes
- PetalFlow integration offers minimal capture for latency, status, and token counts; standard adds prompts, completions, and tool I/O; full adds graph snapshots and edge data.docs.petallabs.io · 3 Oct 2026
- Product interface
- The repository README describes a React web UI for exploring traces, costs, and workflow graphs, alongside the CLI.github.com · 3 Oct 2026
- Deployment
- The repository README documents building PetalTrace from source or downloading a release binary and running its daemon locally.github.com · 3 Oct 2026
- Maker
- Petal Labs' GitHub organization describes the company as building modular, composable tools for agentic AI systems and lists its location as the United States of America.github.com · 3 Oct 2026
- What it does
- PetalTrace captures AI workflow execution data, including LLM prompts and completions, tool calls, token use, costs, and timelines.docs.petallabs.io · 4 Oct 2026
- Interfaces
- It provides a CLI, HTTP API, MCP server, and a React-based web UI for exploring traces, costs, and workflow graphs.github.com · 4 Oct 2026
- Debugging
- It can compare workflow runs for structural, content, and cost differences and replay runs in live, mocked, or hybrid modes.github.com · 4 Oct 2026
- PetalFlow integration
- PetalFlow integration adds graph topology, node-level inputs and outputs, and replay-capable snapshots.docs.petallabs.io · 4 Oct 2026
- MCP tools
- Its MCP server lets agents query traces, inspect prompts, analyze costs, compare runs, and trigger replays; the documentation shows Claude Code configuration.docs.petallabs.io · 4 Oct 2026
- Local storage
- The documented trace store uses SQLite, with a default database path of ~/.petaltrace/data.db.docs.petallabs.io · 4 Oct 2026
- Retention defaults
- Configuration defaults retain runs for 30 days, failed runs for 90 days, and allow a maximum retention period of 365 days.docs.petallabs.io · 4 Oct 2026
- Authentication
- The configuration reference labels authentication as future functionality and shows it disabled by default.docs.petallabs.io · 4 Oct 2026
- Installation
- The getting-started guide documents building PetalTrace from source with Go; the repository also links downloadable release binaries.docs.petallabs.io · 4 Oct 2026
- License
- The public GitHub repository identifies an MIT license.github.com · 4 Oct 2026
- Intended users
- The documentation describes PetalTrace as an observability platform for developers working with AI agent workflows.docs.petallabs.io · 4 Oct 2026
Best PetalTrace alternatives
See all 12Where it ranks on Everything Xiaomi
Is PetalTrace yours?
Claim it for free: prove the domain, then correct facts, plans and screenshots. An editor reviews every change.
Sources
- docs.petallabs.io/petal-trace/overview/· checked 3 Oct 2026
- docs.petallabs.io/petal-trace/guides/mcp-server/· checked 3 Oct 2026
- github.com/petal-labs/petaltrace· checked 3 Oct 2026
- github.com/petal-labs· checked 3 Oct 2026
- docs.petallabs.io/petal-trace/guides/petalflow/· checked 4 Oct 2026
- docs.petallabs.io/petal-trace/guides/configuration/· checked 4 Oct 2026
- docs.petallabs.io/petal-trace/getting-started/· checked 4 Oct 2026
- docs.petallabs.io/petal-trace/concepts/· checked 4 Oct 2026




