Providers are configured by administrators in the Cake Agents settings UI and made available to user sessions.Documentation Index
Fetch the complete documentation index at: https://docs.cake.ai/llms.txt
Use this file to discover all available pages before exploring further.
What You Configure
Providers define which OpenCode providers and models Cake Agents can use for session execution. They typically include:- provider identity
- display name
- base URL or endpoint
- authentication details such as API keys or auth headers
- the list of models users may select
How Cake Uses Providers
When a session starts, Cake builds the OpenCode configuration for that session from the providers currently configured in the control plane. That means:- providers are managed centrally
- sessions use the approved provider definitions
- users can only pick from models that admins have configured
Configure Providers in the UI
- Sign in to Cake Agents as an administrator.
- Open
Settings. - Navigate to
Providers. - Add or edit the provider JSON configuration.
- Enter the provider details you want to expose.
- Add any required secrets such as API keys or authorization headers.
- Define the models that users should be able to select.
- Save the provider configuration.
- Create a test session and verify the expected models appear in the model picker.
Recommended Workflow
- Decide which provider backends you want to expose.
- Start from the provider format documented by OpenCode.
- Add only the models you intend users to access.
- Save the configuration in
Settings > Providers. - Verify that new sessions can start successfully.
Example Configurations
Anthropic example:- the top-level key is the provider ID
modelsdefines the models users can choose fromnpmselects the OpenCode provider packageoptionscontains provider-specific configuration such as the API key
%%SECRET%% placeholder in the UI when editing an existing saved secret value.
If your settings UI supports separate secret fields, prefer storing API keys and auth headers as secrets rather than inline JSON.
Operational Notes
- Treat provider credentials as environment-scoped secrets.
- Limit the available models to the set you want users to rely on.
- Review provider settings whenever endpoint URLs, auth material, or model names change.
- Test session creation after any provider change.