Integration authentication

How connectors sign in to outside services — OAuth, API keys, and connection strings — and how to keep those credentials safe.

On this page

Every connector needs a way to prove to the outside service who you are. This page explains the three common ways and how to rotate secrets safely. It is for anyone choosing or maintaining credentials for a connector.

In all cases the credentials live in a connection, stored in the Vault. A connector uses them through the active config profile on its MCP instance. Never paste secrets into a workflow graph or a script.

Which method does my connector use?

MethodTypical connectorsWhat you do
OAuth sign-inGoogle connectors (Gmail, Drive, Sheets, Calendar, and others)Sign in and approve permissions
Meta sign-in or access tokenWhatsAppUse Connect with Meta, or paste an access token
API key or tokenResend, GitHub, Shopify, Notion, ClickUp, Exa, ActiveCampaign, and many moreCreate a key in the service, then paste it into a connection
Connection stringDatabase connectors such as Postgres, MySQL, MongoDB, and RedisPaste the connection string or credentials the connector asks for

Each connector page lists the exact fields it needs.

OAuth sign-in (Google)

OAuth lets you approve access without sharing your password. AgentRuntime keeps the tokens and refreshes them for you.

  1. Open Connections and click Sign in with Google.
  2. Enter a Display name and pick the Google services you need.
  3. Click Continue to Google, sign in, and approve the permissions.

The permissions you approve decide which tools work. To add a service later, open the account and click Update permissions. If access is revoked or expires, open the account and click Reconnect.

Other services that offer OAuth sign-in appear under Accounts when you click Add from template, with a Connect button.

WhatsApp

WhatsApp can use Meta's signup (Connect with Meta) or pasted keys (Paste API keys: access token, WhatsApp Business Account ID, and optionally a phone number ID). See the WhatsApp connector.

API keys and personal access tokens

API keys are the most common method for developer tools, email providers, and search services.

  1. Create a key in the outside service

    Give it the fewest permissions that still let your workflow work.

  2. Save it as a connection

    On Connections, click Add from template (or New custom connection), paste the key, and click Save.

  3. Attach it to the instance

    On the instance's Instance config page, choose the connection in the profile you use for workflows.

Rotate a key safely

  1. Create the new key in the outside service. Keep the old one active for now.
  2. In AgentRuntime, open the connection, click Rotate, enter the new key, and click Save to Vault.
  3. Click Test, then run a small workflow to confirm it works.
  4. Revoke the old key in the outside service.
Warning

If you revoke the old key before updating the connection, tool calls in active runs fail. Update the connection first.

Database connection strings

Database connectors use a connection string or similar credentials. Good habits:

  • Create a database user with read-only access when the workflow only reads data.
  • Use separate connections for test and production databases.

Signing in to AgentRuntime itself

Connector credentials are separate from how you sign in to AgentRuntime:

MethodUsed for
Console sign-inUsing the web Console
Personal access token (PAT)Scripts, CI, and the API
Webhook signatureExternal systems that start workflows through an inbound webhook

See API authentication for PATs.

Common problems

ProblemWhat to do
A tool fails with 401 or 403The key may be wrong, expired, or missing permissions. Click Rotate to enter a new one.
A Google connector stops workingOpen the Google account and click Reconnect.
The connector cannot find credentialsCheck that the instance's active profile uses the connection.
Edit this pageagentruntime-io/agentruntime-docs