retrace
retrace

Getting Started

OverviewInstallationDashboard

Reference

API ReferencePython SDKTypeScript SDKMCP Server

Core Concepts

Recording TracesReplaying ExecutionsForking ExecutionsFork & ReplayReplay OptimizationsSessionsSandbox (Test Environment)

Features

Agent MemorySkillsEvaluationsEval GatesGuardrailsOrganizations

Detection

Error DetectionFailure Taxonomy (MAST)Multi-Agent TracesProve the FixFramework AdaptersGitHub Action Gate

Ingestion & Transports

WebSocket StreamingOpenTelemetry
retrace

Git branching for AI agent execution. Record every run, fork from the step that broke, and prove the fix before you ship.

Product

  • Dashboard
  • Pricing
  • Explore Tapes

Developers

  • Developer Resources
  • Documentation
  • OpenAPI
  • Python SDK
  • TypeScript SDK
  • API Reference
  • MCP Server
  • CLI

Resources

  • Blog
  • Changelog

Company

  • Contact
  • Privacy
  • Terms
  • Cookie Policy
© 2026 RetraceBuilt for developers who ship AI.

Overview

Retrace is the execution replay engine for AI agents. Record, replay, fork and share agent runs.

Retrace captures every LLM call, tool invocation, and error your AI agent makes, then lets you replay, fork, and share the execution like a video.

New here? Head to Installation to record your first trace in under five minutes.

What Gets Captured

DataHow
LLM callsAutomatic (OpenAI, Anthropic, Gemini)
Tool callsManual spans or interceptors
ErrorsAutomatic exception capture
Token usageExtracted from API response
CostCalculated from model pricing
DurationMeasured start to end
Input/OutputFull request and response
MetadataCustom key-value pairs

[!NOTE] AI features like evaluations, fork replay, and memory extraction are powered by Retrace AI, no external API keys needed. Just use your Retrace API key (rt_...).

[!TIP] Set RETRACE_ENABLED=false to disable recording in production without changing code.

Next Steps

  • Recording Traces - Deep dive into the @record decorator
  • Replaying Executions - Learn the tape player
  • Forking - Branch and replay with modifications
  • API Reference - Full REST API documentation
Was this page helpful?

On this page

What Gets CapturedNext Steps
Advertisement
Advertisement