Integrations: connect
integrations_connectConnect to an API-key provider, prompting for the key if omitted, storing it encrypted, and creating a project-wide or user-scoped connection you can test.
Instructions
Connect to a provider with an API key (prompts for the key if not given). Only for providers whose auth type is api_key (see integrations_get); OAuth providers fail here and need integrations_oauth_configure. Stores the key encrypted on the server and creates a project-wide connection, or a private one with user_connection, printing its id. Pass the key in api_key, then check the connection with integrations_test.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Friendly name for this connection (default: "<provider> connection") | |
| api_key | No | API key for the provider. If omitted, you'll be prompted (input is hidden). | |
| provider | Yes | Provider key (e.g. claude, openai) | |
| user_connection | No | Make this a user-scoped connection (only the current user sees it). Default: tenant-wide. |