# traceroot - [Introduction](https://traceroot.ai/docs/getting-started/introduction.md): traceroot: the open-source platform that continuously improves your ai agents. - [Quickstart](https://traceroot.ai/docs/getting-started/quickstart.md): Get up and running with traceroot - [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 - [Introduction](https://traceroot.ai/docs/tracing/introduction.md): Understand what traceroot traces and why it matters - [Get Started](https://traceroot.ai/docs/tracing/get-started.md): Set up tracing for your AI agent in minutes - [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](https://traceroot.ai/docs/cli/get-started.md): Set up traceroot in your repository and work with your project from the terminal - [Read-only SQL](https://traceroot.ai/docs/cli/sql.md): Query your project's spans and traces from the CLI or public API - [Introduction](https://traceroot.ai/docs/detectors/introduction.md): Find problems in your agent's traces - [Introduction](https://traceroot.ai/docs/signals/introduction.md): Group recurring agent issues into signals you can review and resolve - [Introduction](https://traceroot.ai/docs/alerts/overview.md): Get notified when your agent gets slow, expensive or fails - [Rule Reference](https://traceroot.ai/docs/alerts/rule-reference.md): Complete reference for alert settings and states - [Introduction](https://traceroot.ai/docs/evals/introduction.md): Run your AI system against a dataset and score every case - [Get Started](https://traceroot.ai/docs/evals/get-started.md): Author a dataset, write a task and a scorer, and run your first eval - [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 - [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 - [Introduction](https://traceroot.ai/docs/ai-agent/overview.md): Investigate traces, automate fixes, and manage project resources with the traceroot Agent - [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 - [Introduction](https://traceroot.ai/docs/integrations/overview.md): Connect traceroot to your LLM providers, frameworks, and tools - [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 - [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 - [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 alerts in the caller's project (oldest first) with its capacity. - [Create an alert](https://traceroot.ai/docs/api-reference/alerts/create-an-alert.md): Create a threshold alert in a project the authenticated user can write to. - [Get Alert](https://traceroot.ai/docs/api-reference/alerts/get-alert.md): Get one alert with its full rule for the caller's project. - [Delete an alert](https://traceroot.ai/docs/api-reference/alerts/delete-an-alert.md): Hard-delete an alert. - [Edit an alert rule](https://traceroot.ai/docs/api-reference/alerts/edit-an-alert-rule.md): Edit an alert's rule in a project the authenticated user can write to. - [Pause or resume an alert](https://traceroot.ai/docs/api-reference/alerts/pause-or-resume-an-alert.md): Pause or resume an alert without touching its rule. - [List Dashboards](https://traceroot.ai/docs/api-reference/dashboards/list-dashboards.md): List the dashboards in the caller's project (default first). - [Create a dashboard](https://traceroot.ai/docs/api-reference/dashboards/create-a-dashboard.md): Create a dashboard in a project the authenticated user can write to. - [Get Dashboard](https://traceroot.ai/docs/api-reference/dashboards/get-dashboard.md): Get one dashboard with its widgets for the caller's project. - [Delete a dashboard](https://traceroot.ai/docs/api-reference/dashboards/delete-a-dashboard.md): Hard-delete a dashboard together with its widgets. - [Edit a dashboard](https://traceroot.ai/docs/api-reference/dashboards/edit-a-dashboard.md): Edit a dashboard's name or description. - [Get Dashboard Data](https://traceroot.ai/docs/api-reference/dashboards/get-dashboard-data.md): Answer one dashboard's query widgets, up to the per-request cap, for a window. - [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 an immutable snapshot: the version plus its cases, whole or a page at a time. - [List the project's evaluation datasets](https://traceroot.ai/docs/api-reference/offline-eval/list-the-projects-evaluation-datasets.md): List datasets, newest first. `next_cursor` is null on the last page. - [Read one evaluation dataset](https://traceroot.ai/docs/api-reference/offline-eval/read-one-evaluation-dataset.md): Read one dataset. `current_dataset_version_id` is null until a version is published. - [List a dataset's published versions](https://traceroot.ai/docs/api-reference/offline-eval/list-a-datasets-published-versions.md): List versions newest-first, each with its case count and whether it is current. - [List the project's evaluation runs](https://traceroot.ai/docs/api-reference/offline-eval/list-the-projects-evaluation-runs.md): List evaluation runs, newest first, optionally one evaluation's or one status's. - [Register an evaluation run](https://traceroot.ai/docs/api-reference/offline-eval/register-an-evaluation-run.md): Register/start a run. Idempotent on ``client_run_id`` within an evaluation. - [Read an evaluation run's summary](https://traceroot.ai/docs/api-reference/offline-eval/read-an-evaluation-runs-summary.md): Read a run's own summary: status, result counts, and per-score and per-metric means over the run's results. - [Complete/finalize an evaluation run](https://traceroot.ai/docs/api-reference/offline-eval/completefinalize-an-evaluation-run.md): Complete/fail a run, reporting final completeness counts. - [Upsert one test-case result with scores](https://traceroot.ai/docs/api-reference/offline-eval/upsert-one-test-case-result-with-scores.md): Upsert one test-case result (and its scores). Idempotent on (run, test case). - [List the project's evaluations](https://traceroot.ai/docs/api-reference/offline-eval/list-the-projects-evaluations.md): List evaluations, newest first, each with its run count and latest run. - [List Detectors](https://traceroot.ai/docs/api-reference/detectors/list-detectors.md): List the detectors in the caller's project (newest first). - [Create a detector](https://traceroot.ai/docs/api-reference/detectors/create-a-detector.md): Create a detector in a project the authenticated user can write to. - [List Findings](https://traceroot.ai/docs/api-reference/detectors/list-findings.md): List recent detector findings for the caller's project (newest first). - [Get Finding](https://traceroot.ai/docs/api-reference/detectors/get-finding.md): Get a single finding by id for the key's project. - [Get Finding By Trace](https://traceroot.ai/docs/api-reference/detectors/get-finding-by-trace.md): Get the finding for a single trace (findings are 1-per-trace). - [Get Detector](https://traceroot.ai/docs/api-reference/detectors/get-detector.md): Get one detector's full configuration for the key's project. - [Delete a detector](https://traceroot.ai/docs/api-reference/detectors/delete-a-detector.md): Hard-delete a detector; its existing findings stay readable. - [Edit a detector](https://traceroot.ai/docs/api-reference/detectors/edit-a-detector.md): Edit a detector in a project the authenticated user can write to. - [List Projects](https://traceroot.ai/docs/api-reference/account/list-projects.md): List the projects the authenticated user can access, across workspaces. - [Create a project](https://traceroot.ai/docs/api-reference/account/create-a-project.md): Create a project in a workspace the authenticated user can write to. - [Delete a project](https://traceroot.ai/docs/api-reference/account/delete-a-project.md): Soft-delete a project. - [Edit a project](https://traceroot.ai/docs/api-reference/account/edit-a-project.md): Edit a project's name or trace retention. - [List Workspaces](https://traceroot.ai/docs/api-reference/account/list-workspaces.md): List the workspaces the authenticated user belongs to. - [Create a workspace](https://traceroot.ai/docs/api-reference/account/create-a-workspace.md): Create a workspace administered by the authenticated user. - [Delete a workspace](https://traceroot.ai/docs/api-reference/account/delete-a-workspace.md): Hard-delete a workspace and everything in it. - [Rename a workspace](https://traceroot.ai/docs/api-reference/account/rename-a-workspace.md): Rename a workspace the authenticated user administers. - [List Sessions](https://traceroot.ai/docs/api-reference/sessions/list-sessions.md): List unique sessions for the caller's project with trace counts. - [Get Session](https://traceroot.ai/docs/api-reference/sessions/get-session.md): Get one session with all its traces for the key's project. - [List Signals](https://traceroot.ai/docs/api-reference/signals/list-signals.md): List the signals in the caller's project (newest first). Merged signals are left out. - [Get Signal](https://traceroot.ai/docs/api-reference/signals/get-signal.md): Get one signal of the caller's project. A merged signal names the signal it 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. Dismissing is not possible here. - [Run Sql](https://traceroot.ai/docs/api-reference/sql/run-sql.md): Run one read-only SQL query scoped to the caller's project. - [Get Sql Schema](https://traceroot.ai/docs/api-reference/sql/get-sql-schema.md): Return the curated tables and columns available to public SQL. - [List Traces](https://traceroot.ai/docs/api-reference/traces/list-traces.md): List recent traces for the caller's project (newest first). - [Ingest Traces](https://traceroot.ai/docs/api-reference/traces/ingest-traces.md): Ingest OTLP trace data. - [List Trace Filter Values](https://traceroot.ai/docs/api-reference/traces/list-trace-filter-values.md): Distinct values for an open-ended categorical filter field. - [Get Trace](https://traceroot.ai/docs/api-reference/traces/get-trace.md): Get a single trace for the caller's project. - [Export Trace](https://traceroot.ai/docs/api-reference/traces/export-trace.md): Export the V1 bundle (trace + spans + git_context + manifest) for the caller's project. - [Whoami](https://traceroot.ai/docs/api-reference/whoami/whoami.md): Return the identity the authenticated API key maps to. - [Create a dashboard widget](https://traceroot.ai/docs/api-reference/widgets/create-a-dashboard-widget.md): Create a widget on a dashboard the authenticated user can write to. - [Run Widget Query](https://traceroot.ai/docs/api-reference/widgets/run-widget-query.md): Run a widget spec for a window and return its rows with the window answered. - [Get Widget](https://traceroot.ai/docs/api-reference/widgets/get-widget.md): Get one saved widget's definition, with its dashboard, for the caller's project. - [Delete a dashboard widget](https://traceroot.ai/docs/api-reference/widgets/delete-a-dashboard-widget.md): Hard-delete a widget and its entry in the dashboard's layout. - [Edit a dashboard widget](https://traceroot.ai/docs/api-reference/widgets/edit-a-dashboard-widget.md): Edit a widget's title, spec, or display config. - [Get Widget Data](https://traceroot.ai/docs/api-reference/widgets/get-widget-data.md): Answer one saved widget for a window, with a status instead of an exception. ## OpenAPI Specs - [openapi](/docs/api-reference/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.