On this page
AI PROVIDERS · CONNECT
Connect or repair provider credentials
Use the credential fields on the provider’s settings page. The connection method depends on the provider and the account you want PersonaStack to use.
Before you start
Open AI Providers and select the connection. For a new connection, start with + Add AI Provider. Check the workspace and connection name before entering credentials.
1. Use the offered connection method
- OpenAI: setup offers Use ChatGPT / Codex subscription and Use OpenAI API key. Choose Sign In to OpenAI for a subscription connection. Enter the displayed one-time code when OpenAI asks. A spinner below the instruction means approval is pending. Enter a project API key for the API-key option.
- Anthropic: choose Anthropic API key or Claude Code. The Claude Code option asks for the token returned by
claude setup-token. - Google: enter a Gemini API key from Google AI Studio.
- xAI: use the xAI API-key option or complete the Google Vertex fields shown for that connection method.
- OpenRouter: choose Connect OpenRouter to authorize the connection. Use an API key offers manual entry.
- Vultr: enter the Vultr API key requested by the form.
- OpenAI Compatible: enter the endpoint and its API key. Configure cluster routing if the endpoint needs it.
- Ollama: enter a server URL reachable from your selected Kubernetes location. Use the optional auth headers only when your server requires them.
Enter keys and tokens in these credential fields. Keep them out of persona instructions and chat messages.
For Google, the Gemini API project controls model access and quota. Gemini 4 Neon requests require a paid Gemini API project. Google AI Pro or Ultra access in the Gemini app uses a separate allowance. If the model appears in PersonaStack but a task fails with a quota or billing error, check the project that issued the key in Google AI Studio.
2. Finish the connection
- Complete the credential fields for your selected method.
- For a new connection, follow the sign-in or validation steps shown on the page. On a saved connection, use an explicit validation action only if you want to test it.
- Open the model dropdown and choose an available model.
- Complete AI Agent Location.
- Save the provider and read the result beside the form.
Saved secret fields may show Configured (paste to replace) or a masked value. Follow the field’s instructions to keep the existing credential. You do not need to paste the key again just to change a model.
When editing an existing provider, you can save without testing the credential or connection first. Saved changes apply the next time a dependent persona starts a new worker. Current work keeps its existing settings. A successful save is not a successful connection test. New-provider setup and explicit validation actions still follow the checks shown on the page.
3. Repair an existing connection
Start with the status message. A provider can show disconnected after a provider error, even when its saved credentials have not changed. You can start another task without repairing the connection. When that retry starts, its status changes to Trying to start and retains the previous error. A successful model response clears the error. A new provider failure shows its current error.
For a saved OpenAI subscription connection, open Configuration and choose Reconnect beside the authentication method.
- Choose Copy to copy the one-time code.
- Choose Open OpenAI and enter the code when OpenAI asks.
- Return to PersonaStack and wait for Reconnected.
Choose Cancel to stop the attempt or Get new code if the code expires. Reconnecting saves the credential and keeps unsaved model and location edits available for review.
For a saved OpenAI API-key connection, use its key field to replace the stored key. Choose Validate to test it explicitly.
For OpenRouter, use Reconnect OpenRouter. For a rejected API key or token, replace it in the corresponding credential field and save. Missing credentials, invalid configuration, and access restrictions still prevent a request when the page identifies them.
If the error names billing, usage, or model access, changing the credential alone may not help. Address the named issue in the provider account, then return to PersonaStack and try the task again.
Next
Once the credentials are accepted, choose the model and reasoning settings. For a private endpoint, also review agent locations and routing.
Need a hand? Contact the PersonaStack team.