Custom AI Provider Key
Strategy Builder Professional can use your personal API key for a supported AI provider. This is also known as bring your own key, or BYOK.
Your provider key is separate from your Strategy Builder Professional password. The key authorizes AI requests and may incur charges under your provider account.
Before you begin
You need:
- An active Strategy Builder Professional user session
- An API key issued by a supported AI provider
- The exact model name you want to use
Open Settings and find Custom AI Provider.
Thinking level
Use Thinking to choose how much reasoning Sai requests for compatible AI tasks:
- None for the fastest response.
- Low for light reasoning.
- High for more thorough reasoning.
- Max for the highest available reasoning effort.
Higher levels can take longer to respond. The selected level is stored in your local Strategy Builder Professional settings. Provider and model support can affect how it is applied.
Add a provider key
- Select the AI provider that issued your key.
- Paste the key into API Key.
- Click Add key.
- Select a model from the returned list, or enter the exact model identifier when a text field is shown.
- Click Save key.
When the provider supports model listing, Add key validates the key by requesting that list. The key is not stored until you select or enter a model and click Save key.
If you change the provider or edit the API key after models are loaded, the pending setup is cleared. Click Add key again to validate the new selection.
Providers without model listing
Some supported providers do not offer a compatible model-list endpoint. For these providers, Add key displays a model text field instead of a list.
Enter the exact provider model identifier and click Save key. Check the provider's documentation for the correct identifier. A display name or marketing name may not work as a model identifier.
Sai stores these settings without making an upstream validation request. An invalid key or model is reported when Strategy Builder Professional first tries to use that provider.
How the key is stored
When you click Save key, Strategy Builder Professional sends the following settings to the Sai service:
- Provider
- API key
- Provider base URL
- Selected model
- API protocol and request path
Sai encrypts the API key at rest. After saving, Sai returns only a masked value, such as sk-a...1234. Strategy Builder Professional does not receive the full stored key again. When a saved key is loaded, the field is disabled and shows only that masked value.
Change the model
- Select another model from the Model list, or edit the model identifier when a text field is shown.
- Click Save model.
Changing the model does not require the full API key. Strategy Builder Professional sends the masked key returned by Sai together with the new model. Sai verifies that the mask matches the stored key, keeps the encrypted credential and provider settings, and updates only the model.
Save model is shown only when the selected model differs from the saved model or when a newly registered key still needs a model.
Remove the provider key
Click the trash button beside API Key to remove the saved provider settings.
Removal deletes the stored provider key and model from Sai. The provider selector and API key field become available again so that you can configure another provider.
Login and session behavior
You must be signed in to add, update, or remove a provider key.
When you are signed out:
- Provider and API Key are disabled.
- Add key is disabled.
- Saved key details are not displayed.
If your login state changes while a provider request is running, the old request is ignored when it completes. This prevents a response from an earlier session from replacing the current settings view.
Errors and troubleshooting
Models do not load
Confirm that:
- The selected provider issued the key.
- The key was copied completely and contains no spaces.
- The provider service is available.
- Your provider account permits access to the model-list API.
For a provider without model listing, enter the exact model identifier manually.
The key is rejected
Create or copy a current API key from the provider account. Do not enter your Strategy Builder Professional password or provider account password.
Save model reports a key error
Reload Settings and try again. The masked value displayed by Strategy Builder Professional must match the key currently stored by Sai. If the stored credential can no longer be read or the mask does not match, remove the provider key and add it again.
A saved model does not work in chat
Model listing confirms that the provider returned the model identifier, but provider permissions and availability can change. Select another available model or verify access in your provider account.
Security recommendations
- Treat an API key like a password.
- Do not share it in messages, screenshots, source code, or support requests.
- Use a dedicated key when the provider supports separate keys per application.
- Set provider spending limits and usage alerts.
- Revoke the key in the provider account if you believe it was exposed.
- Remove the key from Strategy Builder Professional when you no longer use it.