Skip to content
Authentication
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

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

  1. Complete the credential fields for your selected method.
  2. 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.
  3. Open the model dropdown and choose an available model.
  4. Complete AI Agent Location.
  5. 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.

  1. Choose Copy to copy the one-time code.
  2. Choose Open OpenAI and enter the code when OpenAI asks.
  3. 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.

Search documentation

Type a word or phrase to find a guide.

Documentation