Applies to:
- Plan -
- Deployment -
Summary
Issue: The Braintrust CLI fails to authenticate via OAuth or API key, with errors likefailed to call oauth token endpoint or invalid peer certificate: UnknownIssuer when running bt auth login or bt setup.
Cause: The CLI defaults to Braintrust hosted endpoints; corporate TLS inspection can also intercept traffic and re-sign certificates with an untrusted CA.
Resolution: Point the CLI at your self-hosted data plane and, if your network intercepts TLS traffic, configure BRAINTRUST_CA_CERT to trust your CA bundle.