Skip to main content
Copy .env.local.example to .env.local and fill in the values below.

Clerk (authentication)

Clerk handles user sign-in, sign-up, and session management.

Convex (database)

Convex stores all application state — sessions, messages, playlists, usage events, subscriptions, influence graphs, and more.
CONVEX_DEPLOYMENT (e.g. dev:your-project-name) is written to .env.local automatically by the Convex CLI during npx convex dev. You do not need to set it manually.

Encryption

Used to encrypt API keys stored in the database.
Generate a secure value with:
Changing ENCRYPTION_KEY after users have saved API keys will make those keys unreadable. Store this value securely and do not rotate it without a migration plan.

Platform AI key

The Anthropic API key Digcrate uses to serve free and Pro users who have not configured their own key (BYOK).
This variable is required for the platform to serve free-tier users. Without it, only BYOK users can run queries. All other users will receive an error when attempting to start a research session.

Admin


Embedded API keys

These keys are embedded in the server and used by the agent’s MCP tools. They are optional — the agent will skip tools that lack a key — but enabling them unlocks more data sources.

Stripe (billing)

Required to enable subscription plans (Free, Pro, Team) and the billing portal.
Stripe is optional. If omitted, all users will be treated as free-tier. Subscription upgrades and the billing portal will not be available.

Auth0 Token Vault (connected services)

Required to enable Spotify, Slack, and Google Docs integrations. Auth0 Token Vault securely manages OAuth tokens on behalf of users — Digcrate never stores raw credentials.
Auth0 Token Vault is optional. Without it, connected services (Spotify, Slack, Google Docs) will not be available to users.

Beta domains

This variable is optional.

Optional: Canny feedback widget

Canny is optional. If omitted, the feedback widget will not appear.