Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Forward Claude Code conversations—including sessions, prompts, and tool calls—as hierarchical traces to Braintrust for observability and debugging.
npx claudepluginhub braintrustdata/braintrust-claude-plugin --plugin trace-claude-codeA Claude Code plugin marketplace for Braintrust integration - LLM evaluation, logging, observability, and session tracing.
BRAINTRUST_API_KEY exported in your environmentAdd the marketplace:
claude plugin marketplace add braintrustdata/braintrust-claude-plugin
Then install the plugins you need:
Enables AI agents to use Braintrust for LLM evaluation, logging, and observability.
claude plugin install braintrust@braintrust-claude-plugin
Automatically traces Claude Code conversations to Braintrust. Captures sessions, conversation turns, and tool calls as hierarchical traces.
claude plugin install trace-claude-code@braintrust-claude-plugin
# run the setup script to confgure tracing
$HOME/.claude/plugins/marketplaces/braintrust-claude-plugin/plugins/trace-claude-code/setup.sh
Traces are sent to the claude-code project by default.
Instead of running setup.sh, you can manually edit ~/.claude/settings.json or your project's .claude/settings.local.json:
{
"env": {
"TRACE_TO_BRAINTRUST": "true",
"BRAINTRUST_CC_PROJECT": "project-name-to-send-cc-traces-to",
"BRAINTRUST_API_KEY": "sk-yourkey",
"BRAINTRUST_DEBUG": "false"
}
}
You can attach a Claude Code session to an existing Braintrust trace by passing CC_PARENT_SPAN_ID:
claude --settings '{"env":{"CC_PARENT_SPAN_ID":"your-parent-span-id"}}' -p "task"
If the parent span is not the trace root, also pass CC_ROOT_SPAN_ID:
claude --settings '{"env":{"CC_PARENT_SPAN_ID":"parent-span-id","CC_ROOT_SPAN_ID":"root-span-id"}}' -p "task"
The Claude Code session and all its turns/tools will appear as children of your parent span in Braintrust.
To attach claude code to an experiment's trace, specify CC_EXPERIMENT_ID as well:
claude --settings '{"env":{"CC_PARENT_SPAN_ID":"parent-span-id","CC_ROOT_SPAN_ID":"root-span-id", "CC_EXPERIMENT_ID":"the-experiment-id"}}' -p "task"
Matches all tools
Hooks run on every tool call, not just specific ones
Share bugs, ideas, or general feedback.
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Enables AI agents to use Braintrust for LLM evaluation, logging, and observability. Provides correct API usage, working examples, and helper scripts for common operations.
Traces Claude Code conversations to LangSmith, including subagent and tool executions
LLM observability tooling for agent development and Claude Code
Automatic tracing of Claude Code sessions to Arize AX or Phoenix with OpenInference spans. Supports 9 hooks for comprehensive observability.
Observability platform for Claude Code and Agent SDK — monitor, debug, and control AI coding agents
OpenLit telemetry for Claude Code: sessions, tool calls, edit decisions, and cost rollups.
Enables AI agents to use Braintrust for LLM evaluation, logging, and observability. Provides correct API usage, working examples, and helper scripts for common operations.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claim