Skip to content
SPECIFICTION
Get listed

PetalTrace

docs.petallabs.io

Free plan WebWindowsmacOSLinuxAPISelf-hosted

What it is

PetalTrace is an open-source observability platform for developers examining AI agent workflows. It captures prompts and completions, tool calls, token use, costs, and execution timelines, with a React web interface plus CLI, HTTP API, and MCP server access. Full prompt capture can include system prompts, message history, tool definitions, and model responses. Users can search prompt and completion text, compare runs for structural, content, and cost differences, and replay runs with changed models or temperatures or in mocked mode. The platform accepts standard OpenTelemetry traces, including from applications that do not use PetalFlow. PetalFlow integration adds graph topology, node inputs and outputs, and replay-capable snapshots. Trace data is documented as stored in SQLite, and the software can be built from source or run from a release binary as a local daemon. Authentication is described as future functionality and disabled by default. The public repository identifies an MIT license; no commercial pricing or usage limits are stated.

Spec sheet

What it does
PetalTrace captures AI workflow execution data, including LLM prompts and completions, tool calls, token use, costs, and timelines.Read 4 Oct 2026 · docs.petallabs.io
Purpose
PetalTrace is an agent observability platform for inspecting AI agent workflows and their execution lifecycle.Read 3 Oct 2026 · docs.petallabs.io
Intended users
The documentation describes PetalTrace as an observability platform for developers working with AI agent workflows.Read 4 Oct 2026 · docs.petallabs.io
Deployment
The repository README documents building PetalTrace from source or downloading a release binary and running its daemon locally.Read 3 Oct 2026 · github.com
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.Read 3 Oct 2026 · docs.petallabs.io
License
The public GitHub repository identifies an MIT license.Read 4 Oct 2026 · github.com
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.Read 3 Oct 2026 · github.com
Access methods
The product exposes its capabilities through a CLI, HTTP API, and MCP server.Read 3 Oct 2026 · docs.petallabs.io
Authentication
The configuration reference labels authentication as future functionality and shows it disabled by default.Read 4 Oct 2026 · docs.petallabs.io
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.Read 4 Oct 2026 · docs.petallabs.io
Captured data
It captures LLM prompts and completions, tool calls, token usage, costs, and execution timelines.Read 3 Oct 2026 · docs.petallabs.io
Cost tracking
PetalTrace calculates costs for major providers and can track spending by workflow, provider, or model.Read 3 Oct 2026 · docs.petallabs.io
Debugging
It can compare workflow runs for structural, content, and cost differences and replay runs in live, mocked, or hybrid modes.Read 4 Oct 2026 · github.com
Installation
The getting-started guide documents building PetalTrace from source with Go; the repository also links downloadable release binaries.Read 4 Oct 2026 · docs.petallabs.io
Interfaces
It provides a CLI, HTTP API, MCP server, and a React-based web UI for exploring traces, costs, and workflow graphs.Read 4 Oct 2026 · github.com
Local storage
The documented trace store uses SQLite, with a default database path of ~/.petaltrace/data.db.Read 4 Oct 2026 · docs.petallabs.io
MCP tools
Its MCP server lets agents query traces, inspect prompts, analyze costs, compare runs, and trigger replays; the documentation shows Claude Code configuration.Read 4 Oct 2026 · docs.petallabs.io
OpenTelemetry
PetalTrace accepts standard OTLP traces over gRPC on port 4317 and HTTP on port 4318 from OTel-instrumented applications.Read 4 Oct 2026 · docs.petallabs.io
PetalFlow integration
PetalFlow integration adds graph topology, node-level inputs and outputs, and replay-capable snapshots.Read 4 Oct 2026 · docs.petallabs.io
Product interface
The repository README describes a React web UI for exploring traces, costs, and workflow graphs, alongside the CLI.Read 3 Oct 2026 · github.com
Prompt inspection
Full prompt capture includes system prompts, message history, tool definitions, and LLM responses.Read 3 Oct 2026 · docs.petallabs.io
Replay
Captured runs can be re-executed with different models or temperatures, or in mocked mode.Read 3 Oct 2026 · docs.petallabs.io
Retention defaults
Configuration defaults retain runs for 30 days, failed runs for 90 days, and allow a maximum retention period of 365 days.Read 4 Oct 2026 · docs.petallabs.io
Run comparison
It can compare two runs for prompt, output, and cost differences.Read 3 Oct 2026 · docs.petallabs.io
Search and streaming
It supports full-text search across prompts and completions and real-time SSE feeds for monitoring active runs.Read 4 Oct 2026 · docs.petallabs.io
Storage
The documented architecture stores runs, spans, and LLM interactions in SQLite with full-text search.Read 3 Oct 2026 · docs.petallabs.io

Plans and prices

PetalTrace Free Public repository; no commercial pricing or usage limits stated Read 4 Oct 2026 · github.com

Every PetalTrace plan and price →

Strong points and limits

Strong points

  • Captures prompts, tool calls, costs, and timelines
  • Compares runs and supports replay
  • Accepts standard OpenTelemetry traces
  • Includes CLI, HTTP API, MCP server, and web UI

Limits

  • Authentication is future functionality and disabled by default
  • Documented trace storage uses SQLite
  • No commercial pricing or usage limits are stated

Who it suits

PetalTrace suits developers who need to inspect, compare, and replay AI agent workflows. It is especially relevant to those comfortable with local deployment and accounting for authentication being disabled by default.

PetalTrace in depth

Read the full write-up

Overview

PetalTrace is an open-source observability tool for developers building AI-agent workflows. It suits developers who want detailed trace inspection and replay in a self-managed environment; disabled authentication makes it a poor fit for an exposed shared service without additional safeguards.

Its combination of prompt-level tracing, run comparison, and replay offers a focused way to investigate agent behavior. SQLite-backed local storage and several interfaces give developers flexibility, but the local deployment model puts operational responsibility on the user.

Key features

PetalTrace records prompts and completions, tool calls, token use, costs, and execution timelines. Full prompt capture preserves system prompts, message history, and tool definitions, which helps diagnose what context an agent received—not just what it produced. PetalFlow users can select minimal capture for latency, status, and token counts; standard capture adds prompts, completions, and tool I/O; full capture also records graph snapshots and edge data. Lighter capture reduces recorded detail, while full capture gives more workflow context.

Run comparison surfaces differences in prompts, outputs, structure, and cost. Replays can use different models or temperatures and run live, mocked, or hybrid, giving developers ways to investigate changes without relying solely on a live execution. Costs can be tracked by workflow, provider, or model. Full-text search across prompts and completions and real-time SSE feeds for active runs add useful ways to follow and find activity.

The CLI, HTTP API, MCP server, and React web UI cover both interactive inspection and integration into developer workflows. The MCP server lets agents query trace history, inspect prompts, analyze costs, compare runs, and trigger replays; the documentation includes Claude Code configuration. PetalTrace also accepts standard OTLP traces from OpenTelemetry-instrumented applications, including ones that do not use PetalFlow, broadening its use beyond that framework.

The documented store uses SQLite, with a default database at ~/.petaltrace/data.db. Retention defaults keep runs for 30 days and failed runs for 90 days, with a maximum period of 365 days. That local, file-based approach favors users who want to manage their own trace data, but also leaves storage and deployment operations in their hands. Authentication is disabled by default and described as future functionality, a significant caveat for shared or network-accessible deployments.

Pricing

PetalTrace is open source under the MIT license, and its PetalTrace plan costs nothing. The public repository has no stated commercial pricing or usage limits. That makes it a straightforward option for developers who can deploy and operate it themselves; the tradeoff is self-management rather than a priced hosted service with stated usage allowances.

Platforms

PetalTrace supports API, Linux, macOS, Windows, web, and self-hosted use. The getting-started guide covers building from source with Go, and release binaries are also available. The documented local daemon and React web UI suit developers comfortable managing a local or self-hosted installation.

Who it's for

PetalTrace is best suited to developers diagnosing agent workflows who need prompt and tool context, cost visibility, run comparison, and replay. PetalFlow users can choose how much execution detail to retain, while OpenTelemetry users can send standard OTLP traces without adopting PetalFlow. It is less suited to teams that require authentication in the product for shared deployment or prefer not to manage local storage and operations themselves.

Pros and cons

Pros: Captures prompts, tool calls, costs, and timelines, then connects comparison and replay in the same workflow—useful for investigating both behavior and execution changes.

Pros: OpenTelemetry ingestion extends trace collection to instrumented applications beyond PetalFlow.

Pros: The MIT-licensed free plan has no stated usage limits, and offers several interfaces, including MCP tools for agent-driven trace analysis.

Cons: Authentication is disabled by default, limiting its suitability for shared or exposed deployments without other safeguards.

Cons: SQLite storage and local deployment put data retention and operational management on the user.

Alternatives

AI Agent Observability Tools is a broader category guide for readers comparing options across the field.

W&B Weave is worth considering for its free tier, which includes 1 GB/mo Weave data ingestion, 5 GB/mo storage, and AI application evaluations, tracing, and scorers.

SigNoz offers a self-hosted community plan for users prepared to manage infrastructure, storage, scaling, upgrades, and backups themselves.

Opik is an alternative for developers who want open-source observability and evaluation features they can download and run locally.

OpenLIT may suit users seeking an OSS plan with unlimited self-hosted usage, users, projects, and environments.

Traccia offers a free Hobby plan with 50K events and 7 days of retention, or an Observe plan at $99 a month with 500K events.

VoltOps has a Developer plan at free with limits including one seat, one prompt, one project, and 250 traces per month.

Helicone describes itself as open source and may suit readers looking for another community-oriented option.

Maxim AI offers a Developer plan with up to three seats, one workspace, up to 10k logs per month, 3-day data retention, and email support.

Verdict

Choose PetalTrace if you are an AI-agent developer who wants open-source, replay-oriented observability and can manage a local or self-hosted service. Its strongest case is the combination of rich trace capture, comparison, replay, and OpenTelemetry ingestion at no stated usage limit. Look elsewhere if built-in authentication is a requirement for your deployment.

Verdict

PetalTrace provides broad trace inspection, comparison, and replay capabilities for AI agent development. Its local deployment model and disabled authentication warrant consideration before team use.

Where Specifiction places it

Alternatives to PetalTraceAll alternatives →