# Connections

> Connect an AI provider to Any2Info before using it in an agent.

Before an AI agent can be used, a connection to an AI provider must be configured. Connections are managed centrally in Data Studio and can be reused by multiple agents.

## Creating a connection

1. Navigate to **Data Studio → Connections**.
2. Click **Add Connection**.
3. Configure the connection:

| Field | Description |
| --- | --- |
| Name | A descriptive name for the connection, for example `openai-api-key`. |
| Level | Determines the scope of the connection. Use **Collection** to make the connection available to all agents within the collection. |
| Type | Select **API headers**. |

## Setting secret values

After creating the connection, the actual secret values (such as API keys) must be set separately. This keeps sensitive information out of the connection definition itself.

1. Navigate to **Data Studio → Connections**.
2. Locate the connection you created.
3. Click the **three-dot menu** next to the connection.
4. Select **Set values**.

A dialog opens showing the configured headers, where you enter the secret values (such as the API key from your [provider](/no-code-platform/ai-studio/providers/)).

## Next steps

Once the connection and its secret values are configured, you can select it when [creating an agent](/no-code-platform/ai-studio/create-agent/).