Open Connector
Self-Hosting

Self-hosting

Run Open Connector in your own environment while preserving the same platform and API model.

Self-hosting is for teams that need to operate Open Connector, the database, encryption keys, and OAuth applications in their own environment. It is not required for the SaaS quick start.

What you operate

ComponentResponsibility
API serverOAuth callbacks, project-key authentication, authenticated tool calls, and API routes
PostgresApplication state and encrypted credential records
Encryption keyCONNECTOR_ENCRYPTION_KEY; losing it makes existing encrypted credentials unrecoverable
Public HTTPS originOAuth callback base and API endpoint for your agents
OAuth applicationsProvider-specific client credentials when you do not use an available managed configuration

The optional console is useful for operating organizations, projects, auth configs, connections, and API keys. Agents still call the project-key-protected API; they do not access the database directly.

Choose the right guide

Production shape

The maintained production deployment uses Cloudflare Workers and Static Assets for sites, a Worker-fronted Node Container for the API, native Queues and Cron for background processing, R2 for blobs, and Neon/Postgres for state. Runtime secrets are scoped to each Cloudflare Worker. CI receives a separate database credential for migrations.

Follow Deploy to Cloudflare for account configuration, secret handling, deployment and verification.

Before production

  • Generate and back up BETTER_AUTH_SECRET and CONNECTOR_ENCRYPTION_KEY securely.
  • Set the server's public URL and CORS origin correctly.
  • Register each provider OAuth callback against the API server's public origin.
  • Run database migrations as part of the deployment process.
  • Verify a project API key, a real connection, and one authenticated tool call from the public endpoint.

A database backup alone cannot decrypt credentials. Protect and recover the encryption key using a real secrets-management process.

On this page