Managing Connections
Create and manage AI provider connections in the Umbraco backoffice.
Connections store the credentials needed to communicate with AI providers. Manage them through the backoffice UI.
Viewing Connections
Navigate to the AI section > Connections.
The connection list shows all configured connections.
Click a connection to view or edit its details.

Creating a Connection
Click Create Connection in the Connections section.
Fill in the required fields:
Name
Display name for the connection
Alias
Unique identifier (used in code)
Provider
Select from installed providers
Configure provider-specific settings (varies by provider).
Click Save.


OpenAI Provider Settings
When using the OpenAI provider:
API Key
Your OpenAI API key
Yes
Organization ID
Organization ID (if applicable)
No
Base URL
Override the default OpenAI endpoint (for proxies or compatible providers)
No
Using Configuration References
Instead of storing API keys directly in the database, use configuration references:
Add your API key to
appsettings.jsonunder theUmbraco:AI:Secretssection:
In the connection settings, enter
$Umbraco:AI:Secrets:OpenAIApiKeyas the API Key value.
The $ prefix tells Umbraco.AI to resolve the value from configuration at runtime. References resolve from the Umbraco:AI:Secrets and Umbraco:AI:Variables sections by default - see Configuration References for details.
Editing a Connection
Click on the connection in the list.
Modify the desired fields.
Click Save.
Deleting a Connection
Open the connection you want to delete.
Click Delete in the actions menu.
Confirm the deletion.
Enabling and Disabling Connections
Use the Active toggle to enable or disable a connection:
Active - Connection is available for use.
Inactive - Connection is disabled; profiles using it will fail.
This is useful for:
Temporarily disabling a connection without deleting it
Rotating API keys (create new connection, disable old one)
Testing failover scenarios
Best Practices
Use descriptive names - "OpenAI Production" is better than "Connection 1".
Use configuration references - Keep API keys out of the database.
Create separate connections per environment - Don't share production keys in development.
Use meaningful aliases - They're used in code and should be readable.
Related
Managing Profiles - Create profiles using connections
Connections Concept - Deeper explanation of connections
Last updated
Was this helpful?