# Braintrust
> Braintrust is the active observability platform for instrumenting, understanding, and improving agents. By actively applying intelligence to agent traces and automatically surfacing the most critical patterns, Braintrust gives teams the visibility to understand how agents behave in production and the tools to improve them.
Braintrust connects the pieces of an AI development loop: production traces, human feedback, test datasets, experiments, quality scores, prompt iteration, model routing, and deployment controls. Teams use it to understand what an AI system did, measure whether the output was good, and improve from real usage instead of ad hoc prompt testing.
## For AI agents
- **Prefer the [`bt` CLI](https://www.braintrust.dev/docs/reference/cli/quickstart)** for running evals, instrumenting code, querying logs, syncing data, and managing functions. Use the [MCP server](https://www.braintrust.dev/docs/integrations/developer-tools/mcp) for reasoning over Braintrust data in conversation, and for capabilities the CLI doesn't cover, such as dashboards, alerts, and authoring evaluators and facets.
- [Complete technical documentation with full content (SDKs, APIs, integrations, guides)](https://www.braintrust.dev/docs/llms-full.txt)
- [Documentation index](https://www.braintrust.dev/docs/llms.txt)
## Product overview
Braintrust is built around a continuous improvement loop:
1. **Instrument** - Capture the steps an AI request takes, including model calls, tool calls, retrieval, errors, cost, and latency.
2. **Observe** - Inspect production traces, search logs, monitor quality, and find recurring issues.
3. **Curate** - Turn real production examples and human feedback into datasets for testing.
4. **Evaluate** - Run the AI system against datasets and score the outputs to compare prompts, models, and code changes.
5. **Deploy** - Ship prompts, functions, and model routes while monitoring their impact in production.
Important terms:
- **Trace**: A recorded path through one AI request, including nested steps such as model calls, tools, and retrieved context.
- **Dataset**: A set of examples used to test an AI application.
- **Eval**: A repeatable test that runs an AI system on a dataset and scores the outputs.
- **Scorer**: A rule, model, or human review step that judges whether an output is good.
- **Loop**: Braintrust's AI agent for investigating project data and creating Braintrust objects.
- **Topics**: A feature that classifies production logs by task, sentiment, issue type, and custom patterns.
- **Gateway**: A unified API for routing model requests through Braintrust to AI providers.
## Start here
- [Get started with Braintrust](https://www.braintrust.dev/docs/index.md): Product overview and first steps
- [Braintrust workflow](https://www.braintrust.dev/docs/workflow.md): How tracing, datasets, evals, and deployment fit together
- [Evals foundations course](https://www.braintrust.dev/foundations): Free course for learning evals, traces, online scoring, and iteration
- [Tracing quickstart](https://www.braintrust.dev/docs/tracing-quickstart.md): Capture your first production trace
- [Evaluation quickstart](https://www.braintrust.dev/docs/evaluation-quickstart.md): Run your first eval in code or the UI
- [Loop](https://www.braintrust.dev/docs/loop/index.md): Braintrust's AI agent. Investigates project data, creates and edits objects with your approval, and runs on a schedule
- [Topics](https://www.braintrust.dev/docs/observe/topics/index.md): Automatically classify logs by task, sentiment, and issues
- [Gateway](https://www.braintrust.dev/docs/deploy/gateway.md): Route model requests through Braintrust
- [Plans and limits](https://www.braintrust.dev/docs/plans-and-limits.md): Plan details, limits, and quotas
- [Pricing](https://www.braintrust.dev/pricing): Pricing for Starter, Pro, and Enterprise
## Learn foundations
- [Why are evals important?](https://www.braintrust.dev/foundations/why-are-evals-important): Why traditional tests are not enough for AI systems
- [What is an eval?](https://www.braintrust.dev/foundations/what-is-an-eval): The dataset, task, and scorer model for evaluation
- [Simple eval using the UI](https://www.braintrust.dev/foundations/build-a-simple-eval-in-braintrust-ui): Build a no-code eval in Braintrust
- [Simple eval using the SDK](https://www.braintrust.dev/foundations/building-a-simple-eval-using-braintrust-sdk): Build an eval in code
- [How to read a trace](https://www.braintrust.dev/foundations/how-to-read-a-trace): Understand trace structure and debug score results
- [Online scoring](https://www.braintrust.dev/foundations/online-scoring): Run quality checks automatically on production logs
- [Analyzing production logs](https://www.braintrust.dev/foundations/analyzing-production-logs): Use Topics to find patterns in real traffic
- [The eval improvement loop](https://www.braintrust.dev/foundations/understanding-the-eval-improvement-loop): Turn production failures into datasets, experiments, fixes, and verified improvements
## Understand AI observability
- [What is AI observability?](https://www.braintrust.dev/blog/what-is-ai-observability): Why AI observability connects traces, evals, and feedback loops
- [What is LLM observability?](https://www.braintrust.dev/articles/llm-observability-guide): Production tracing, evaluation, and monitoring explained
- [What is LLM evaluation?](https://www.braintrust.dev/articles/llm-evaluation-guide): Practical guide to evals, metrics, and regression testing
- [Why traces and evals belong in the same place](https://www.braintrust.dev/blog/traces-and-evals-same-place): How shared trace and eval workflows speed up fixes
- [AI development loops](https://www.braintrust.dev/blog/ai-development-loops): Exploration, evaluation, and data collection as core AI workflows
- [Eval feedback loops](https://www.braintrust.dev/blog/eval-feedback-loops): How production logs become eval data for continuous improvement
- [Automatically discover what matters with Topics](https://www.braintrust.dev/blog/topics): How Topics surfaces user intent, sentiment, issues, and emerging patterns
- [Braintrust is not an eval framework](https://www.braintrust.dev/blog/braintrust-not-eval-framework): Why Braintrust is infrastructure for AI evaluation, not only a library
## Common workflows
- [Instrument your application](https://www.braintrust.dev/docs/instrument/index.md): Start capturing traces from an AI application
- [Trace model calls](https://www.braintrust.dev/docs/instrument/trace-llm-calls.md): Automatically capture supported AI provider and framework calls
- [Observe your application](https://www.braintrust.dev/docs/observe/index.md): View, search, and monitor production traces
- [View logs](https://www.braintrust.dev/docs/observe/view-logs.md): Browse traces and inspect production behavior
- [Review Topics insights](https://www.braintrust.dev/docs/observe/topics/review-insights.md): Explore topic distributions, trends, and sample traces
- [Act on Topics findings](https://www.braintrust.dev/docs/observe/topics/act-on-findings.md): Turn log patterns into datasets, scorers, and review assignments
- [Patterns](https://www.braintrust.dev/docs/observe/patterns/index.md): Let Loop investigate traces on a schedule and record recurring problems with evidence
- [Review and act on patterns](https://www.braintrust.dev/docs/observe/patterns/review.md): Turn a pattern into a scorer, classifier, or coding agent task
- [Create datasets](https://www.braintrust.dev/docs/annotate/datasets/create.md): Build datasets from logs, files, the UI, or APIs
- [Human review](https://www.braintrust.dev/docs/annotate/human-review/index.md): Route traces and examples for structured feedback
- [Run evaluations](https://www.braintrust.dev/docs/evaluate/run-evaluations.md): Create experiments in code, the UI, or continuous integration
- [Compare experiments](https://www.braintrust.dev/docs/evaluate/compare-experiments.md): Identify improvements and regressions across runs
- [Write scorers](https://www.braintrust.dev/docs/evaluate/write-scorers.md): Define quality checks using code, models, or people
- [Online scoring](https://www.braintrust.dev/docs/evaluate/score-online.md): Score production traces automatically
- [Playgrounds](https://www.braintrust.dev/docs/evaluate/playgrounds.md): Try prompts, models, and scorers side by side
- [Deploy prompts](https://www.braintrust.dev/docs/deploy/prompts.md): Version and ship prompts to production
- [Monitor deployments](https://www.braintrust.dev/docs/deploy/monitor.md): Track quality, cost, latency, and errors after release
## Developer resources
Docs pages are available as Markdown by appending `.md` to docs URLs or setting `Accept: text/markdown`.
- [Complete documentation index](https://www.braintrust.dev/docs/llms.txt): Generated index of all Braintrust docs pages
- [Full documentation content](https://www.braintrust.dev/docs/llms-full.txt): Single-file Markdown bundle for docs, guides, references, and recipes
- [OpenAPI 3.0 spec](https://www.braintrust.dev/docs/openapi.yaml): Machine-readable REST API specification
- [API reference](https://www.braintrust.dev/docs/api-reference/index.md): REST API overview
- [SDK hub](https://www.braintrust.dev/docs/sdks/index.md): Install, quickstart, and API references for every language
- [TypeScript SDK](https://www.braintrust.dev/docs/sdks/typescript/versions/latest.md): Latest TypeScript API reference
- [Python SDK](https://www.braintrust.dev/docs/sdks/python/versions/latest.md): Latest Python API reference
- [Go SDK](https://www.braintrust.dev/docs/sdks/go/api-reference.md): Go API reference
- [Java SDK](https://www.braintrust.dev/docs/sdks/java/api-reference.md): Java API reference
- [Ruby SDK](https://www.braintrust.dev/docs/sdks/ruby/api-reference.md): Ruby API reference
- [C# SDK](https://www.braintrust.dev/docs/sdks/csharp/api-reference.md): C#/.NET API reference
- [CLI quickstart](https://www.braintrust.dev/docs/reference/cli/quickstart.md): Install and start using the `bt` command-line tool
- [CLI commands](https://www.braintrust.dev/docs/reference/cli/overview.md): Complete `bt` command reference
- [`bt topics`](https://www.braintrust.dev/docs/reference/cli/topics.md): Manage Topics automations from the command line
- [SQL reference](https://www.braintrust.dev/docs/reference/sql/index.md): Query Braintrust data with SQL
## Integrations
- [Integrations overview](https://www.braintrust.dev/docs/integrations/index.md): Connect Braintrust to providers, frameworks, and tools
- [AI providers overview](https://www.braintrust.dev/docs/integrations/ai-providers/index.md): Configure model provider credentials and routing
- [OpenAI](https://www.braintrust.dev/docs/integrations/ai-providers/openai.md): OpenAI provider configuration and tracing
- [Anthropic](https://www.braintrust.dev/docs/integrations/ai-providers/anthropic.md): Anthropic provider configuration and tracing
- [Google Gemini](https://www.braintrust.dev/docs/integrations/ai-providers/gemini.md): Gemini provider configuration
- [AWS Bedrock](https://www.braintrust.dev/docs/integrations/ai-providers/bedrock.md): Amazon Bedrock model configuration
- [Custom providers](https://www.braintrust.dev/docs/integrations/ai-providers/custom.md): Self-hosted and custom model providers
- [Braintrust MCP](https://www.braintrust.dev/docs/integrations/developer-tools/mcp.md): Connect IDEs and AI coding agents to Braintrust through the Model Context Protocol
- [Codex](https://www.braintrust.dev/docs/integrations/developer-tools/codex.md): Configure Braintrust in OpenAI Codex
- [Vercel AI SDK](https://www.braintrust.dev/docs/integrations/sdk-integrations/vercel.md): Trace Vercel AI SDK calls
- [OpenTelemetry](https://www.braintrust.dev/docs/integrations/sdk-integrations/opentelemetry/send-traces-and-logs.md): Send OpenTelemetry traces to Braintrust
- [LangChain](https://www.braintrust.dev/docs/integrations/sdk-integrations/langchain.md): Trace LangChain JS and Python applications
- [LlamaIndex](https://www.braintrust.dev/docs/integrations/sdk-integrations/llamaindex.md): Trace LlamaIndex applications
## Optional
- [Cookbook index](https://www.braintrust.dev/docs/cookbook/index.md): End-to-end recipes for agents, retrieval, multimodal apps, and prompt iteration
- [Building reliable AI agents](https://www.braintrust.dev/docs/cookbook/recipes/AgentWhileLoop.md): Agent evaluation recipe
- [Using functions to build a retrieval agent](https://www.braintrust.dev/docs/cookbook/recipes/ToolRAG.md): Retrieval-augmented generation with deployed functions
- [Prompt versioning and deployment](https://www.braintrust.dev/docs/cookbook/recipes/PromptVersioning.md): Prompt release workflow
- [Using Loop in AI product development](https://www.braintrust.dev/docs/cookbook/recipes/Loop.md): Loop-assisted iteration recipe
- [Administration overview](https://www.braintrust.dev/docs/admin/index.md): Organization, project, access, billing, and infrastructure settings
- [Access control](https://www.braintrust.dev/docs/admin/access-control/index.md): Permission groups and access rules
- [AI providers](https://www.braintrust.dev/docs/admin/ai-providers.md): Organization-level model provider settings
- [Automations overview](https://www.braintrust.dev/docs/admin/automations/index.md): Alerts, data retention, and export automation
- [Self-hosting Braintrust](https://www.braintrust.dev/docs/admin/self-hosting/index.md): Hybrid deployment overview
- [Security overview](https://www.braintrust.dev/docs/security.md): Security, compliance, encryption, and reporting
- [Knowledge base index](https://www.braintrust.dev/docs/kb/index.md): Troubleshooting and operational documentation
- [Product changelog](https://www.braintrust.dev/docs/changelog.md): Product updates and release notes
- [Use the proxy (deprecated)](https://www.braintrust.dev/docs/deploy/ai-proxy.md): Legacy AI proxy; use the gateway instead
- [App: logs](https://www.braintrust.dev/app/~/logs): Production trace and log viewer
- [App: topics](https://www.braintrust.dev/app/~/topics): Topic clustering and classification view
- [App: datasets](https://www.braintrust.dev/app/~/datasets): Dataset management
- [App: experiments](https://www.braintrust.dev/app/~/experiments): Eval run history and comparison
- [App: playgrounds](https://www.braintrust.dev/app/~/playgrounds): Prompt, model, and scorer iteration
- [App: dashboards](https://www.braintrust.dev/app/~/dashboards): Dashboards for quality, cost, latency, and traffic
- [Articles](https://www.braintrust.dev/articles): Long-form guides on AI quality, observability, and evaluation
- [Blog](https://www.braintrust.dev/blog): Product posts, technical writing, and best practices
- [GitHub: braintrustdata](https://github.com/braintrustdata/): Open-source SDKs and related projects
- [Discord community](https://discord.gg/6G8s47F44X): Community support and discussion
Measured from the saved file
Linked document
UTF-8 text size
14.6 KB14990 bytes
Token count
3523o200k_base encoding
Markdown links
9997 distinct URLs
Fenced code blocks
0149 lines in the file
Size measures the captured UTF-8 text, not compressed transfer size. Tokens are counted with a named tokenizer; other models can count differently. Neither measure establishes context compatibility or answer quality.
Project H1
Braintrust
Opening blockquote
Braintrust is the active observability platform for instrumenting, understanding, and improving agents. By actively applying intelligence to agent traces and automatically surfacing the most critical patterns, Braintrust gives teams the visibility to understand how agents behave in production and the tools to improve them.
Context architecture
How the content is divided
9 H2 sections organize 99 parsed Markdown links. 64 links point to .md or .markdown paths; 2 link occurrences use another hostname. Linked destinations have not been recursively validated.
H2 section
Links
UTF-8 bytes
Tokens
For AI agentsLine 7
4
631
150
Product overviewLine 13
0
1299
282
Start hereLine 33
10
1222
296
Learn foundationsLine 46
8
1157
284
Understand AI observabilityLine 57
8
1243
286
Common workflowsLine 68
17
2301
534
Developer resourcesLine 88
15
1764
445
IntegrationsLine 108
13
1734
427
OptionalLine 124 · Optional
24
2778
666
Nested indexes
1 distinct links point to other llms.txt paths. These are routes to more indexes, not proof their contents were included in this file.
Link counts exclude parsed fenced and inline code and resolve relative destinations against the final endpoint. Section sizes cover the text below each H2 until the next H2.
Embedded material
Code, installation and API examples
Fenced blocks
0 closed
Declared languages
No fenced blocks detected
Package-install commands
0 detected in fenced or inline code
Authentication examples
0 fenced lines match API-key, Authorization, Bearer, OAuth or access-token patterns
HTTP request examples
0 fenced lines match request-method patterns
Authentication links
0 links have authentication-related labels
Embedded example text and links to further documentation are counted separately. A code block does not establish that a sample runs or that an authentication flow succeeds.
Publisher prioritization
The Optional section
1 H2 section named “Optional” contain 24 parsed links. 75 links sit outside those sections. That puts 24.2% of the file’s parsed links under Optional.
The community proposal uses Optional by convention for secondary links that can be skipped for a shorter context. This label does not establish that everything outside it is critical, or that the material inside it is deprecated.
Machine-readable routes
MCP references and configuration text
MCP-related text was detected in the captured file. 2 links have MCP-related labels or paths. 0 fenced lines match mcpServers, mcp_servers or an mcp add command.
A verified text response establishes a companion at the checked URL. It does not prove the bundle contains all product documentation, that generation is automated, or that it fits an assistant’s context window.
Change evidence
What can be said about freshness
This capture establishes a baseline. Update frequency cannot be determined from one observation.
Linked release and migration material
2 links have release, changelog, deprecation or migration terms in their labels or paths. These provide places to investigate product changes separately.
File changes can reveal documentation edits or navigation changes. They do not by themselves measure product release velocity, accuracy, agent adoption or AI visibility.
Counts use a deterministic parser, not a spec-compliance grade. Unusual Markdown and indented code can fall outside its recognized patterns. See the llms.txt proposal and tokenizer implementation.