# traceroot > The open-source platform that continuously improves your ai agents. > ## Agent Instructions > To set up traceroot in a repository, follow the setup prompt in https://traceroot.ai/docs/getting-started/coding-agents.md. - [How traceroot works](https://traceroot.ai/docs/getting-started/introduction.md): Use production traces to find out why an agent failed and open a fix on GitHub. - [Quickstart](https://traceroot.ai/docs/getting-started/quickstart.md): Get up and running with traceroot - [Coding agents](https://traceroot.ai/docs/getting-started/coding-agents.md): Let your coding agent set up traceroot, search these docs, and work with your project - [Workspaces, projects, and access](https://traceroot.ai/docs/getting-started/concepts.md): Organize trace data, invite teammates, and choose workspace roles - [Self-Hosting](https://traceroot.ai/docs/developer/self-hosting.md): Run traceroot on your own infrastructure - [How AI agent tracing works](https://traceroot.ai/docs/tracing/introduction.md): Follow model and tool calls through a run and see how many tokens each model call used. - [Set up tracing for your AI agent](https://traceroot.ai/docs/tracing/get-started.md): Run the CLI from your repository, or instrument your app with the Python or TypeScript SDK. - [Python SDK](https://traceroot.ai/docs/tracing/python-sdk.md): Installation, initialization, and full API reference for the traceroot Python SDK - [TypeScript SDK](https://traceroot.ai/docs/tracing/typescript-sdk.md): Full API reference for the traceroot TypeScript SDK - [Overview](https://traceroot.ai/docs/tracing/overview.md): Attach context to your traces — users, sessions, tags, metadata, and more - [Users](https://traceroot.ai/docs/tracing/users.md): Associate traces with specific users - [Sessions](https://traceroot.ai/docs/tracing/sessions.md): Group related traces into sessions for multi-turn conversations and workflows - [Tags](https://traceroot.ai/docs/tracing/tags.md): Label traces with string tags for filtering and categorization - [Metadata](https://traceroot.ai/docs/tracing/metadata.md): Attach arbitrary key-value pairs to traces and spans - [Data Capture and Privacy](https://traceroot.ai/docs/tracing/data-capture.md): Understand and control what traceroot records and exports - [Cost Tracking](https://traceroot.ai/docs/tracing/cost-tracking.md): Automatic token counting and cost calculation for LLM calls - [Git Context](https://traceroot.ai/docs/tracing/git-context.md): Correlate every span back to its source file, line, and commit - [Timeline View](https://traceroot.ai/docs/tracing/timeline.md): Visualize spans as Gantt-style bars over time to spot long operations, parallelism, and gaps - [Live Tracing](https://traceroot.ai/docs/tracing/live-streaming.md): Watch spans stream into the trace viewer in real time while your agent is still running - [Get started with the traceroot CLI](https://traceroot.ai/docs/cli/get-started.md): Set up traceroot in your repository and work with your project from the terminal - [Authentication and Configuration](https://traceroot.ai/docs/cli/authentication.md): How the traceroot CLI picks its credential, project, and host, and which variables and files it reads - [Scripting and CI](https://traceroot.ai/docs/cli/scripting.md): JSON output, exit codes, JSON request bodies, and shared flags for scripts and CI - [Traces from the Terminal](https://traceroot.ai/docs/cli/traces.md): List, read, and export traces with the traceroot CLI - [Detectors and Findings from the Terminal](https://traceroot.ai/docs/cli/detectors-and-findings.md): Read findings, and create, change, or delete detectors with the traceroot CLI - [Alerts from the Terminal](https://traceroot.ai/docs/cli/alerts.md): Read, create, change, pause, and delete alerts with the traceroot CLI - [Dashboards and Widgets from the Terminal](https://traceroot.ai/docs/cli/dashboards-and-widgets.md): Read and change dashboards and widgets with the traceroot CLI - [Workspaces and Projects from the Terminal](https://traceroot.ai/docs/cli/workspaces-and-projects.md): List, create, change, and delete workspaces and projects with the traceroot CLI - [Read-only SQL](https://traceroot.ai/docs/cli/sql.md): Query your project's spans and traces from the CLI or public API - [Detect failures in agent traces](https://traceroot.ai/docs/detectors/introduction.md): Describe the problem you want a model to look for, then inspect the traces it flags. - [Track recurring agent failures with signals](https://traceroot.ai/docs/signals/introduction.md): See which traces share a problem and how often it still occurs after a fix. - [Alerts for agent latency, cost, and errors](https://traceroot.ai/docs/alerts/overview.md): Set a threshold and get a Slack message when a metric crosses it or returns to normal. - [Rule Reference](https://traceroot.ai/docs/alerts/rule-reference.md): Complete reference for alert settings and states - [Evaluate AI agents with datasets and scorers](https://traceroot.ai/docs/evals/introduction.md): Inspect the trace for each test case and compare scores across runs. - [Run your first agent evaluation](https://traceroot.ai/docs/evals/get-started.md): Build a small dataset and score your agent's answers in Python or TypeScript. - [Datasets](https://traceroot.ai/docs/evals/datasets.md): A named, versioned collection of the cases you evaluate against - [Scorers](https://traceroot.ai/docs/evals/scorers.md): Turn a case's output into a metric - [Running Evals](https://traceroot.ai/docs/evals/running-evals.md): Run a dataset against your system with evaluate() - [Reading Results](https://traceroot.ai/docs/evals/reading-results.md): Read the summary and per-case results an eval run returns - [Evaluations from the Terminal](https://traceroot.ai/docs/evals/cli.md): Read datasets, evaluations, and runs with the traceroot CLI - [Get started with dashboards](https://traceroot.ai/docs/dashboards/get-started.md): Organize project metrics and trace feeds into reusable dashboards - [Investigate traces with the traceroot Agent](https://traceroot.ai/docs/ai-agent/overview.md): Ask why a run failed and have the agent open a pull request with a fix. - [GitHub Integration](https://traceroot.ai/docs/ai-agent/github-integration.md): Connect your GitHub repositories to enable source code access and automated PRs - [Bring Your Own Key (BYOK)](https://traceroot.ai/docs/ai-agent/byok.md): Use your own LLM API keys to power the traceroot Agent - [Trace Analysis](https://traceroot.ai/docs/ai-agent/trace-analysis.md): Ask the traceroot Agent questions about your traces in natural language - [Root Cause Analysis](https://traceroot.ai/docs/ai-agent/root-cause-analysis.md): How the traceroot Agent identifies the root cause of failures in your traces - [Automated PR Creation](https://traceroot.ai/docs/ai-agent/pr-creation.md): The traceroot Agent writes fixes and opens pull requests on GitHub - [LLM provider and framework integrations](https://traceroot.ai/docs/integrations/overview.md): Find setup guides for OpenAI, LangChain, Claude Code, and other tools in your stack. - [Agno](https://traceroot.ai/docs/integrations/agno.md): Auto-instrument Agno agents, tools, and multi-step reasoning - [AutoGen](https://traceroot.ai/docs/integrations/autogen.md): Auto-instrument AutoGen multi-agent conversations and tool calls - [Claude Agent SDK](https://traceroot.ai/docs/integrations/claude-agent-sdk.md): Auto-instrument the Claude Agent SDK for agent and tool tracing - [CrewAI](https://traceroot.ai/docs/integrations/crewai.md): Auto-instrument CrewAI multi-agent collaborative workflows - [DSPy](https://traceroot.ai/docs/integrations/dspy.md): Auto-instrument DSPy modules, signatures, and chain-of-thought reasoning - [Google ADK](https://traceroot.ai/docs/integrations/google-adk.md): Auto-instrument Google Agent Development Kit agents, workflows, tools, and runners - [LangChain & LangGraph](https://traceroot.ai/docs/integrations/langchain.md): Auto-instrument LangChain and LangGraph agent frameworks - [LangChain DeepAgents](https://traceroot.ai/docs/integrations/langchain-deepagents.md): Trace multi-agent research pipelines built with DeepAgents - [LlamaIndex](https://traceroot.ai/docs/integrations/llamaindex.md): Auto-instrument LlamaIndex RAG pipelines and query engines - [Mastra](https://traceroot.ai/docs/integrations/mastra.md): Export traces from Mastra agents to traceroot via the OTLP exporter - [Microsoft Agent Framework](https://traceroot.ai/docs/integrations/microsoft-agent-framework.md): Auto-instrument Microsoft Agent Framework agent runs, model calls, and tool executions - [OpenAI Agents SDK](https://traceroot.ai/docs/integrations/openai-agents-sdk.md): Auto-instrument OpenAI Agents SDK agents, tools, and multi-turn conversations - [pi SDK](https://traceroot.ai/docs/integrations/pi.md): Trace embedded pi coding-agent sessions with traceroot - [Pydantic AI](https://traceroot.ai/docs/integrations/pydantic-ai.md): Auto-instrument Pydantic AI agent runs, LLM calls, and tool invocations - [Vercel AI SDK](https://traceroot.ai/docs/integrations/vercel-ai.md): Trace Vercel AI SDK agents — no instrumentModules config required - [Anthropic](https://traceroot.ai/docs/integrations/anthropic.md): Auto-instrument Anthropic API calls - [Google Gemini](https://traceroot.ai/docs/integrations/gemini.md): Auto-instrument Google Gemini API calls via the GenAI SDK - [Mistral](https://traceroot.ai/docs/integrations/mistral.md): Auto-instrument Mistral AI API calls - [OpenAI](https://traceroot.ai/docs/integrations/openai.md): Auto-instrument OpenAI API calls - [OpenAI-Compatible Providers](https://traceroot.ai/docs/integrations/openai-compatible.md): Trace xAI, Moonshot, Z.AI and any other OpenAI-compatible API through the OpenAI integration - [OpenRouter](https://traceroot.ai/docs/integrations/openrouter.md): Trace OpenRouter calls through the OpenAI-compatible SDK - [TypeSafe AI](https://traceroot.ai/docs/integrations/typesafe.md): Auto-instrument Jev calls made with the TypeSafe AI SDK - [Claude Code](https://traceroot.ai/docs/integrations/claude-code.md): Trace Claude Code sessions with the traceroot plugin - [Codex](https://traceroot.ai/docs/integrations/codex.md): Trace OpenAI Codex sessions with the traceroot plugin - [pi CLI](https://traceroot.ai/docs/integrations/pi-cli.md): Trace interactive pi sessions with the traceroot extension - [Exa](https://traceroot.ai/docs/integrations/exa.md): Record the cost of Exa searches on their tool spans - [Notte](https://traceroot.ai/docs/integrations/notte.md): Record the cost of Notte browser sessions on their tool spans - [PredictLeads](https://traceroot.ai/docs/integrations/predictleads.md): Record the cost of PredictLeads lookups on their tool spans - [Tavily](https://traceroot.ai/docs/integrations/tavily.md): Record the cost of Tavily searches on their tool spans - [TinyFish](https://traceroot.ai/docs/integrations/tinyfish.md): Record the cost of TinyFish browser sessions on their tool spans - [AgentID](https://traceroot.ai/docs/integrations/agentid.md): Give an AI agent a traceroot account of its own, signed in through AgentID - [Supported Models](https://traceroot.ai/docs/integrations/internal-models.md): All LLM models available natively in traceroot Cloud - [Authentication](https://traceroot.ai/docs/api-reference/authentication.md): Which credential each API route accepts, and how to get one - [List Alerts](https://traceroot.ai/docs/api-reference/alerts/list-alerts.md): List the threshold alerts in a traceroot project with each alert's rule summary, status, and current severity, plus the project's alert capacity. - [Create an alert](https://traceroot.ai/docs/api-reference/alerts/create-an-alert.md): Create a threshold alert in a traceroot project: a span measure aggregated over a time window and compared against a threshold you set. - [Get Alert](https://traceroot.ai/docs/api-reference/alerts/get-alert.md): Fetch one traceroot alert by id with its full rule: view, measure, aggregation, filters, window, threshold, and current evaluation state. - [Delete an alert](https://traceroot.ai/docs/api-reference/alerts/delete-an-alert.md): Permanently delete a threshold alert from a traceroot project. An open page is discarded rather than resolved, and the response reports it. - [Edit an alert rule](https://traceroot.ai/docs/api-reference/alerts/edit-an-alert-rule.md): Update a threshold alert in a traceroot project. Changes to evaluated fields reset its state, while changing only the alert name preserves it. - [Pause or resume an alert](https://traceroot.ai/docs/api-reference/alerts/pause-or-resume-an-alert.md): Pause or resume a traceroot alert without changing its rule. Pausing keeps the current severity, and resuming restarts evaluation from a clean state. - [List Dashboards](https://traceroot.ai/docs/api-reference/dashboards/list-dashboards.md): List the dashboards in a traceroot project, default dashboard first, with each one's name, description, creator, widget count, and timestamps. - [Create a dashboard](https://traceroot.ai/docs/api-reference/dashboards/create-a-dashboard.md): Create a dashboard in a traceroot project. The call is idempotent on the dashboard name, so repeating it does not create a duplicate. - [Get Dashboard](https://traceroot.ai/docs/api-reference/dashboards/get-dashboard.md): Fetch one traceroot dashboard by id together with its widgets, including each widget's title, type, query spec, and creation time. - [Delete a dashboard](https://traceroot.ai/docs/api-reference/dashboards/delete-a-dashboard.md): Permanently delete a traceroot dashboard together with all of its widgets. The last remaining dashboard in a project cannot be deleted. - [Edit a dashboard](https://traceroot.ai/docs/api-reference/dashboards/edit-a-dashboard.md): Rename a traceroot dashboard or change its description. Fields you leave out stay unchanged, and a null description clears the current one. - [Get Dashboard Data](https://traceroot.ai/docs/api-reference/dashboards/get-dashboard-data.md): Run the query widgets on a traceroot dashboard for one time window and return their results, so you can read what the dashboard shows. - [Read one dataset version and a page of its test cases](https://traceroot.ai/docs/api-reference/offline-eval/read-one-dataset-version-and-a-page-of-its-test-cases.md): Read one immutable evaluation dataset version and its test cases, whole or one page at a time, with inputs and expected values as JSON. - [List the project's evaluation datasets](https://traceroot.ai/docs/api-reference/offline-eval/list-the-projects-evaluation-datasets.md): List the evaluation datasets in a traceroot project, newest first, with each dataset's current published version and cursor-based paging. - [Read one evaluation dataset](https://traceroot.ai/docs/api-reference/offline-eval/read-one-evaluation-dataset.md): Read one evaluation dataset by id, including its name, description, key, and current published version, which is null until one is published. - [List a dataset's published versions](https://traceroot.ai/docs/api-reference/offline-eval/list-a-datasets-published-versions.md): List the published versions of an evaluation dataset, newest first, each with its test case count and whether it is the current version. - [List the project's evaluation runs](https://traceroot.ai/docs/api-reference/offline-eval/list-the-projects-evaluation-runs.md): List the evaluation runs in a traceroot project, newest first, optionally filtered by evaluation or status, with cursor-based paging. - [Register an evaluation run](https://traceroot.ai/docs/api-reference/offline-eval/register-an-evaluation-run.md): Register and start an evaluation run in traceroot. The call is idempotent on the client run id within an evaluation, so retries are safe. - [Read an evaluation run's summary](https://traceroot.ai/docs/api-reference/offline-eval/read-an-evaluation-runs-summary.md): Read an evaluation run's status and counts. Numeric scores are averaged, boolean scores are pass rates, and scores without a supported aggregate are null. - [Complete/finalize an evaluation run](https://traceroot.ai/docs/api-reference/offline-eval/completefinalize-an-evaluation-run.md): Mark an evaluation run as completed or failed in traceroot and report its final completeness counts. The traceroot SDKs call this for you. - [Upsert one test-case result with scores](https://traceroot.ai/docs/api-reference/offline-eval/upsert-one-test-case-result-with-scores.md): Create or update one test case result and its scores in an evaluation run. The call is idempotent for each run and test case pair. - [List the project's evaluations](https://traceroot.ai/docs/api-reference/offline-eval/list-the-projects-evaluations.md): List the evaluations in a traceroot project, newest first, each with its run count and latest run, using cursor-based paging. - [List Detectors](https://traceroot.ai/docs/api-reference/detectors/list-detectors.md): List the detectors in a traceroot project, newest first, with each detector's id, name, template, enabled flag, and creation time. - [Create a detector](https://traceroot.ai/docs/api-reference/detectors/create-a-detector.md): Create a detector using a template's built-in instructions or your own prompt. Creating a detector by name is idempotent within a project. - [List Findings](https://traceroot.ai/docs/api-reference/detectors/list-findings.md): List recent detector findings for a traceroot project, newest first, optionally filtered by detector, trace id, or time range. - [Get Finding](https://traceroot.ai/docs/api-reference/detectors/get-finding.md): Fetch a single detector finding by id from a traceroot project, including the full analysis detail the detector produced for the trace. - [Get Finding By Trace](https://traceroot.ai/docs/api-reference/detectors/get-finding-by-trace.md): Fetch the detector finding attached to a specific trace in a traceroot project. Each trace has at most one finding, so you get one or none. - [Get Detector](https://traceroot.ai/docs/api-reference/detectors/get-detector.md): Fetch one detector's full configuration by id: prompt, output schema, sample rate, root cause analysis settings, and trigger conditions. - [Delete a detector](https://traceroot.ai/docs/api-reference/detectors/delete-a-detector.md): Permanently delete a detector from a traceroot project. Findings it already produced stay readable, and a repeated delete returns 404. - [Edit a detector](https://traceroot.ai/docs/api-reference/detectors/edit-a-detector.md): Edit a traceroot detector's name, prompt, enabled state, sample rate, or model settings. Only the fields you send change; the template is fixed. - [Apply a production label](https://traceroot.ai/docs/api-reference/labels/apply-a-production-label.md): Apply an existing project label to a production trace or span with a project API key. Use the same idempotency key when retrying the request. - [List Projects](https://traceroot.ai/docs/api-reference/account/list-projects.md): List the traceroot projects the signed-in user can access across all workspaces, to find the project id that project-scoped requests need. - [Create a project](https://traceroot.ai/docs/api-reference/account/create-a-project.md): Create a project in a traceroot workspace you can write to. The call is idempotent on the project name within the workspace. - [Delete a project](https://traceroot.ai/docs/api-reference/account/delete-a-project.md): Delete a traceroot project. It disappears from lists and reads and its access keys stop working, while its data stays for the retention window. - [Edit a project](https://traceroot.ai/docs/api-reference/account/edit-a-project.md): Edit a traceroot project's name or trace retention period. Setting the retention to null returns it to the default for your plan. - [List Workspaces](https://traceroot.ai/docs/api-reference/account/list-workspaces.md): List the traceroot workspaces the signed-in user belongs to. Use it with the project list to find the project a later request should target. - [Create a workspace](https://traceroot.ai/docs/api-reference/account/create-a-workspace.md): Create a traceroot workspace that you administer. Creating one with a name you already administer returns the existing workspace. - [Delete a workspace](https://traceroot.ai/docs/api-reference/account/delete-a-workspace.md): Permanently delete a traceroot workspace and everything in it, including projects, access keys, memberships, and invites. Requires the ADMIN role. - [Rename a workspace](https://traceroot.ai/docs/api-reference/account/rename-a-workspace.md): Rename a traceroot workspace that you administer. Requires the ADMIN role, and the new name cannot match another workspace you administer. - [List Sessions](https://traceroot.ai/docs/api-reference/sessions/list-sessions.md): List the sessions in a traceroot project, where a session groups the traces that share a session id, with the trace count for each session. - [Get Session](https://traceroot.ai/docs/api-reference/sessions/get-session.md): Fetch one traceroot session with all of its traces. Traces older than your plan's retention window are left out instead of causing an error. - [List Signals](https://traceroot.ai/docs/api-reference/signals/list-signals.md): List the signals in a traceroot project, newest first. Signals group the recurring problems that detectors find; merged signals are left out. - [Get Signal](https://traceroot.ai/docs/api-reference/signals/get-signal.md): Fetch one signal by id from a traceroot project, including when it was resolved. A signal that was merged names the signal its findings moved to. - [Resolve or reopen a signal](https://traceroot.ai/docs/api-reference/signals/resolve-or-reopen-a-signal.md): Resolve or reopen a signal. After resolution, the detector can reopen the signal only for a matching finding on a trace that started after resolution. - [Run Sql](https://traceroot.ai/docs/api-reference/sql/run-sql.md): Run one read-only SQL query over the spans and traces of your traceroot project and get the rows back. Results are capped and may be truncated. - [Get Sql Schema](https://traceroot.ai/docs/api-reference/sql/get-sql-schema.md): List the tables and columns, with their types, that a SQL query against your traceroot project may reference. Read it before writing a query. - [List Traces](https://traceroot.ai/docs/api-reference/traces/list-traces.md): List recent traces in a traceroot project, newest first. Offline evaluation traces are excluded unless you set include_evaluations to true. - [Ingest Traces](https://traceroot.ai/docs/api-reference/traces/ingest-traces.md): Send OTLP trace data to traceroot as protobuf, optionally gzip-compressed. A 200 response means the batch was stored and queued for decoding. - [List Trace Filter Values](https://traceroot.ai/docs/api-reference/traces/list-trace-filter-values.md): List the distinct values currently present for a categorical trace filter field, such as model name or environment, in a traceroot project. - [Get Trace](https://traceroot.ai/docs/api-reference/traces/get-trace.md): Fetch a single trace with its span tree from a traceroot project. The default view is lightweight; request full fields for span input and output. - [Export Trace](https://traceroot.ai/docs/api-reference/traces/export-trace.md): Export a trace, its spans, git context, and a manifest. Span input and output are included by default and can be excluded with the fields parameter. - [Whoami](https://traceroot.ai/docs/api-reference/whoami/whoami.md): Check which traceroot project and workspace an API key belongs to. Useful for confirming that a credential is valid and correctly scoped. - [Create a dashboard widget](https://traceroot.ai/docs/api-reference/widgets/create-a-dashboard-widget.md): Add a widget to a traceroot dashboard: a query widget that charts a metric, or a feed of recent traces. Every call creates a new widget. - [Run Widget Query](https://traceroot.ai/docs/api-reference/widgets/run-widget-query.md): Run a widget query spec for a time window and get its rows back, to answer a metric question without saving a widget to a dashboard. - [Get Widget](https://traceroot.ai/docs/api-reference/widgets/get-widget.md): Fetch one saved widget's definition by id, including its title, type, stored query spec, display settings, and the dashboard it belongs to. - [Delete a dashboard widget](https://traceroot.ai/docs/api-reference/widgets/delete-a-dashboard-widget.md): Permanently delete one widget from a traceroot dashboard. The widget's slot in the dashboard layout is removed along with it. - [Edit a dashboard widget](https://traceroot.ai/docs/api-reference/widgets/edit-a-dashboard-widget.md): Edit a traceroot dashboard widget's title, spec, or display settings. A new spec replaces the old one entirely, and the widget type is fixed. - [Get Widget Data](https://traceroot.ai/docs/api-reference/widgets/get-widget-data.md): Run one saved traceroot dashboard widget for a time window and return its results, without having to send the widget's query spec again. ## OpenAPI Specs - [openapi](/docs/api-reference/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.