AI Models & Credentials
AI Models & Credentials
AI configuration has two parts:
- Models are what hosted agents run, for example
openai/gpt-5. - Credentials are optional saved BYOK keys. Use them when you want a model call billed to your own provider account.
If you pass a model string, BCTRL uses managed inference. If you pass a model object with auth.credential, BCTRL uses your saved credential. Inline auth.apiKey is also supported for one-off BYOK calls.
List models
Model ids are provider-prefixed, such as openai/gpt-5, anthropic/claude-sonnet-4-6, and google/gemini-2.5-flash.
Create a credential
Set test: true to validate the key before saving. API keys are encrypted at rest and are never returned in responses.
List, read, update
Test and delete
Use in an agent
Use a managed model by passing a string:
Use a saved BYOK credential by passing a model object:
Next
- Hosted agents - choose models for agents
- Invocations - the underlying call
- Vault - other secrets, stored separately

