Platform
Cross-cutting concepts that apply to both the dashboard and the SDK. Read the Quickstart if you're new, Core Concepts if something in the product isn't clicking, and Architecture if you're evaluating or self-hosting.
Start the quickstart Read core concepts
Guides
Overview
What TrailAI is, what each module does, how the pieces fit — and what TrailAI deliberately isn't.
Core Concepts
Organizations, projects, members, API keys, environments, applications, traces, spans, and span roles. Six ideas that make the rest obvious.
Quickstart
End to end in about ten minutes: account → project → API key → instrumented app → first trace.
Architecture
Components, the ingestion path from create() to a chart, the data model, and the security
boundaries.
The shape of the platform
┌──────────────────────────┐
│ Your application │
│ trail.init(...) │ auto-instrumentation · @trace · guard · prompts
└───────────┬──────────────┘
│ OTLP/HTTP + REST (X-Public-Key, X-Secret-Key)
▼
┌──────────────────────────┐
│ TrailAI Server │ /api/sdk/v1 · /api/client/v1 · /api/admin/v1
└───────────┬──────────────┘
▼
┌────────────┐ ┌──────────────────────────┐
│ PostgreSQL │ ◀──── │ Web Client (Next.js) │
└────────────┘ └──────────────────────────┘
The one rule to internalise
Everything is scoped to a project. Traces, prompts, guardrails, vault secrets, and API keys never cross a project boundary — even inside the same organization. When a page looks empty, check the project switcher before you check anything else.