This page applies to AWS deployments using Terraform module v6.5.2 or later. The Loop runtime is not available on GCP or Azure.
What the runtime provides
Loop does its investigation work in a sandbox, an isolated environment where it reads, searches, and lists trace files directly and runs commands against your data. That is what lets it work through a trace too large to read in one pass, and keep going on a long investigation instead of being bound to a browser session. Threads persist, so users can leave and resume them. The sandbox is also what the rest of Loop is built on. The Debugger uses it to diagnose a single trace, and Loop automations use it to do recurring work on a schedule. See What Loop can do for the full range. On Braintrust-hosted deployments, Braintrust provides the sandbox. Self-hosted deployments provide it themselves by enabling this service. Whenenable_loop_runtime is false, your data plane reports no runtime, and users get the older in-browser Loop instead. The Loop page redirects to the organization home, its sidebar entry is hidden, the trace debugger is unavailable, and Loop-backed automations and Slack requests return an error.
Prerequisite - Before you deploy the Loop runtime in your data plane, contact Braintrust to confirm Loop is enabled for your organization. Until it is, Loop stays unavailable in the Braintrust UI even after the runtime is running.
Enable the runtime
The runtime doesn’t depend onenable_ecs_api, which controls only whether CloudFront routes API traffic to ECS. It works either way, because its URL reaches both the ECS API tasks and the Lambda API handlers.
gateway.braintrust.dev once enable_ecs_api was set. Upgrade to v6.5.2 or later before enabling the runtime if your deployment must keep inference traffic inside your network. See Braintrust Gateway.
Telemetry
On module v6.7.0 and later, the Loop runtime sendsmetrics and traces for its own service to Braintrust’s control plane, in addition to whatever telemetry types your deployment configures. Braintrust uses them to diagnose runtime problems while the service stabilizes, and you can’t turn them off while the runtime is enabled.
These traces cover the runtime’s operation. They don’t include LLM calls, tool calls, or the contents of your traces. If your deployment can’t send this telemetry, leave enable_loop_runtime set to false and contact Braintrust.
Configuration reference
Next steps
- Learn what Loop can do once the runtime is running.
- Review thread and sandbox limits that apply to your users.
- Configure networking and connectivity for the rest of your deployment.