AI Credentials
AI credentials give your workspaces access to LLM providers — OpenAI, Anthropic, Google, or any OpenAI-compatible endpoint. Agents like Stagehand and browser-use use these credentials to reason about pages and execute instructions.
Access via bctrl.aiCredentials.
list()
List all AI credentials in your organization.
Returns AiCredential[]
create(request)
Create a new AI credential.
Returns AiCredential
get(id)
Get a specific credential by ID.
Returns AiCredential
update(id, request)
Update an existing credential.
Returns AiCredential
delete(id)
Delete a credential.
test(id)
Test that a credential can connect to its provider.
Returns AiCredentialTestResponse
Usage with workspaces
Credentials are mounted to workspaces via the ai mount. See Scopes & Inheritance for details.

