Setup
- Prompt
- Wizard
In your project directory, give this prompt to your coding agent:This sets up access to Braintrust, then uses a coding agent to inspect your project, install the Braintrust SDK, and configure tracing.No coding agent installed? Install and instrument manually.
Verify tracing
Run your app and make an AI call. A trace will show up in your Logs within seconds. Click into any trace to see the complete input and output, token counts, latency, cost, model configuration, and metadata.If traces appear in Braintrust, you’ve successfully set up tracing.
Troubleshoot
Not seeing traces in the UI?
Not seeing traces in the UI?
- Verify
BRAINTRUST_API_KEYis set and starts withsk-(echo $BRAINTRUST_API_KEY). - Check that the project name in your code matches the project in the UI.
- Check your console for errors. Common causes are an invalid API key, network connectivity, or a firewall blocking
api.braintrust.dev.
SDK-specific issues?
SDK-specific issues?
Need help?
Need help?
- Join our Discord
- Email us at support@braintrust.dev
- Use the Loop agent in the Braintrust UI
Next steps
- Explore the full Braintrust workflow
- Go deeper with tracing:
- Explore integrations with AI providers, SDKs, and developer tools
- Trace application logic for application logic
- Capture user feedback like thumbs up/down
- Analyze logs for patterns and issues