email-connector is fully open source and self-hostable. Running your own instance means your credentials and email data never leave your infrastructure.
32-byte hex key for AES-256-GCM credential encryption
Yes
PORT
HTTP port (default: 3000)
No
HOST
Bind address (default: 0.0.0.0)
No
OAUTH_CLIENT_ID
OAuth client ID
For Claude connector only
OAUTH_CLIENT_SECRET
OAuth client secret
For Claude connector only
OAUTH_BASE_URL
Public base URL of your deployment
For Claude connector only
The OAUTH_* variables are only required if you’re registering your self-hosted instance as a Claude connector. For local / Claude Code usage, only CREDENTIAL_ENCRYPTION_KEY is needed.
Store this key securely. If you lose it, stored credentials become unrecoverable. We recommend storing it in your deployment platform’s secrets manager.