Connector gateway
Configure the bundled connector gateway, including its runtime token, credential encryption, OAuth providers, and catalog filters.
The stack includes a connector gateway that powers Add connectors in Tools & Skills. Out of the box, you can browse the catalog and connect any service that uses an API key, a custom credential, or no authentication. Its console and admin API have no authentication, so the gateway binds to loopback only and isn't exposed outside the Docker host.
On Kubernetes, the Helm chart deploys the gateway with its own persistent volume and reads its encryption key from OPEN_CONNECTOR_ENCRYPTION_KEY in the agentconnect-secrets Secret. The commands below apply to the Docker Compose stack.
Don't set OOMOL_CONNECT_ADMIN_TOKEN. AgentConnect calls the gateway without a bearer token, so setting one prevents the connector catalog from loading.
If you want to require a bearer token on the gateway's action API, set OOMOL_CONNECT_RUNTIME_TOKEN. Both the gateway and the Relay read the same variable, so runtime authentication is either on at both ends or off at both.
Because these are Compose environment variables and docker compose restart reuses the old container environment, recreate both services to apply changes:
docker compose --env-file compose.env up -d --force-recreate open-connector relayEncrypt stored connector credentials
The gateway stores connector credentials and OAuth client secrets in its own SQLite volume, agentconnect_open-connector-data. This store is separate from PostgreSQL, so SECRET_CIPHER and Vault Transit don't cover it. Set a dedicated encryption key before creating your first real connection:
OOMOL_CONNECT_ENCRYPTION_KEY=replace-with-a-stable-random-32-char-secretGenerate the key the same way as the other stack secrets:
openssl rand -hex 32If the stack is already running, recreate the gateway container so it picks up the key:
docker compose --env-file compose.env up -d --force-recreate open-connectorBack up this volume alongside PostgreSQL. docker compose down keeps it, while docker compose down --volumes deletes it along with the database.
OAuth providers
Catalog filtering works per authorization method. Until you configure an OAuth client for a service in the gateway, only its OAuth option is hidden. If the service also supports an API key, custom credentials, or no auth, it still appears in the catalog with those options. Only OAuth-only services are hidden by default.
To enable OAuth for a service, configure its client in the gateway and route the provider's browser redirect to the gateway:
-
Give the gateway a browser-reachable public origin and set it in
compose.env:AGENTCONNECT_PUBLIC_OPEN_CONNECTOR_URL=https://connectors.example.test -
Recreate the gateway so it generates redirect URIs with the new origin. If you leave the old container running, its authorization requests won't match the callback URL you register next:
docker compose --env-file compose.env up -d --force-recreate open-connector -
Expose only
/oauth/callbackon that origin and route it to the gateway. The provider redirects the browser there to finish authorization, and no other path needs to be public. -
Register the OAuth client with the provider using
<origin>/oauth/callbackas the redirect URI. -
Open the local gateway console at http://localhost:3100 and save the client ID and client secret for that service.
The gateway console and its
/apiendpoints have no authentication. Don't expose them on a public origin, or anyone will be able to access your stored connector credentials.
If the gateway runs on a remote host, use SSH port forwarding instead of exposing port 3100:
ssh -L 3100:127.0.0.1:3100 operator@host.exampleNarrow the catalog
| Variable | Default |
|---|---|
OPEN_CONNECTOR_PROVIDER_WHITELIST | Unset (all services allowed) |
OPEN_CONNECTOR_PROVIDER_BLOCKLIST | Services that overlap with AgentConnect's built-in integrations |
Both variables take comma-separated service IDs, and the blocklist is applied after the whitelist. By default, GitHub, Slack, Telegram, Discord, and Lark / Feishu are blocked because AgentConnect already integrates with them directly. Override the blocklist only if you specifically want both paths available.
Only the Control Plane reads these two variables, so recreate it to apply changes:
docker compose --env-file compose.env up -d --force-recreate control-planeHow is this guide?