For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

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

  1. Navigate to the AI section > Connections.

  2. The connection list shows all configured connections.

  3. Click a connection to view or edit its details.

The connections list showing the OpenAI connection with Active status

Creating a Connection

  1. Click Create Connection in the Connections section.

  2. Fill in the required fields:

Field
Description

Name

Display name for the connection

Alias

Unique identifier (used in code)

Provider

Select from installed providers

  1. Configure provider-specific settings (varies by provider).

  2. Click Save.

The Select AI Provider dialog
The Create Connection form with provider settings

OpenAI Provider Settings

When using the OpenAI provider:

Setting
Description
Required

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:

  1. Add your API key to appsettings.json under the Umbraco:AI:Secrets section:

  1. In the connection settings, enter $Umbraco:AI:Secrets:OpenAIApiKey as 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

  1. Click on the connection in the list.

  2. Modify the desired fields.

  3. Click Save.

Deleting a Connection

  1. Open the connection you want to delete.

  2. Click Delete in the actions menu.

  3. 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

  1. Use descriptive names - "OpenAI Production" is better than "Connection 1".

  2. Use configuration references - Keep API keys out of the database.

  3. Create separate connections per environment - Don't share production keys in development.

  4. Use meaningful aliases - They're used in code and should be readable.

Last updated

Was this helpful?