On this page
AI PROVIDERS · OVERVIEW
Set up AI providers for your personas
An AI provider connection brings together an account, a model, and a place to run your agents. Save the connection once, then assign it to the personas that should use it.
Before you start
Open the workspace where you want to work. Have access to the provider account you plan to connect. If this is your first setup, follow Connect your first AI provider for the complete walkthrough.
What you’re saving
- Credentials: the account connection, API key, or other sign-in details used to access the provider.
- Model: the model used for your personas’ work. Some providers also offer reasoning or thinking choices.
- AI Agent Location: where PersonaStack runs the agent. This can be a hosted location or your own connected Kubernetes cluster.
The provider name identifies this saved configuration. A name such as Planning AI is easier to recognize in Persona Settings than a name that only says “New provider.”
1. Add a connection
- Open AI Providers in the sidebar.
- Choose + Add AI Provider, or Create AI Provider when the directory is empty.
- Choose the provider and give the connection a name.
- Complete its credentials, model, and location fields.
- Use the save action shown on the page.
The directory shows each saved connection’s model, location, status, and number of dependent personas. Open a card to change its settings or read a connection problem.
2. Assign it to a persona
- Open the persona from Agent Personas.
- Open its AI Provider picker.
- Choose the saved connection and wait for the save confirmation.
- Use the Chat with button labeled with the persona’s name to send a small task.
You can switch providers while the persona is working. Once you confirm any requested changes, Persona Settings shows the new provider. The current run finishes with its original provider and its reply stays in the conversation. The next time an agent starts, it uses the latest saved provider.
Switching providers at the same location keeps your saved working files. Before switching to another location, review the working disk guidance.
Several personas can use the same provider connection. Before changing its model, credentials, or location, check the Used by list at the top of its settings page. Those personas share the configuration you are editing.
Edits to an existing provider save without testing the connection. Changes apply the next time each dependent persona starts a new worker. Current work keeps its existing settings. A successful save does not confirm that the provider is ready.
If an assignment fails, read the reason shown beside the picker. Correct any named validation problem. If the settings changed elsewhere, review the current selection before trying again. When the message asks you to refresh, reload Persona Settings and select the provider again. A permission error needs access to the current workspace. Change provider credentials only when the error identifies a sign-in or credential problem.
If removing a provider reports that the setting was saved but stopping the previous worker could not be confirmed, the provider selection has been saved. Refresh Persona Settings and use Stop PersonaStack Run before trying again.
When a provider needs attention
Read the reason beside the connection status. An expired credential, unavailable model, and exhausted provider quota need different fixes. Open Details when more information is available.
A green provider status reflects successful model access. It does not confirm that every dependent persona’s agent is ready. A persona can show Restarting agent or Status unavailable while that provider remains connected. Follow the persona’s runtime recovery guidance for those states. Change credentials only when the error identifies a provider sign-in problem.
An accepted chat can wait for an agent restart within its original startup deadline. Do not resend queued work or switch providers to bypass the wait. Read agent restart recovery if startup or shutdown remains unavailable.
The selected model is temporarily at capacity. means the provider could not serve that model at that time. The affected run or reply shows a static error, and the provider can show that failure as disconnected. Try again later or choose another available model. Check the latest run status and task results before repeating work.
You can start another task while a provider is disconnected. When a retry starts, its status changes to Trying to start and keeps the previous error for reference. A successful model response clears the error and marks the provider connected. A new provider failure shows the current error. The failed run stays in Run Logs.
Choose your next step
- Connect or repair credentialsUse the sign-in method offered by your provider.
- Choose a modelLoad the available choices and set reasoning or thinking options.
- Choose an agent locationDecide where the agent runs and reaches your services.
Need a hand? Contact the PersonaStack team.