Skip to content
OpenPostDocs
OpenPostDocs

Instance settings reference

Every setting you can change from an environment variable or from Settings, with its default.

Set these as environment variables, or change them as an admin in Settings → Advanced → Configuration. A value saved in Settings overrides the environment variable, and the environment variable overrides the default. Changes apply after a restart.

Every variable also accepts a _FILE suffix that points at a file holding the value, for Docker or Kubernetes secrets: OPENPOST_SMTP_PASSWORD_FILE=/run/secrets/smtp.

Variables that OpenPost needs before it can read its database, such as addresses, secrets, storage, and the database itself, are not listed here. They are in Configuration. Billing settings exist only on the Hosted service.

Accounts and policies

Who can sign up, which policies they accept, and the contact shown to them.

VariableDefaultWhat it does
OPENPOST_DISABLE_REGISTRATIONSOnDisable new registrations. Stop new password and identity-provider registrations once the first account exists. Invitations and existing users are not affected.
OPENPOST_PUBLIC_PROFILES_ENABLEDOnPublic profiles. Allow users to publish username-based profiles with per-field visibility controls.
OPENPOST_LEGAL_ACCEPTANCE_REQUIREDOffRequire legal acceptance. Require users to accept the configured terms and privacy policy versions.
OPENPOST_TERMS_URLNot setTerms URL. Public URL for the terms of service.
OPENPOST_PRIVACY_URLNot setPrivacy URL. Public URL for the privacy policy.
OPENPOST_TERMS_VERSIONNot setTerms version. Version recorded when a user accepts the terms.
OPENPOST_PRIVACY_VERSIONNot setPrivacy version. Version recorded when a user accepts the privacy policy.
OPENPOST_SUPPORT_EMAILNot setSupport email. Contact address shown in account and policy flows.
OPENPOST_UPDATE_CHECK_ENABLEDOnRelease checks. Check for new stable OpenPost releases in Instance settings.

Sign-in

Google sign-in, your OpenID Connect provider, and OAuth clients. See Set up single sign-on for the full setup.

VariableDefaultWhat it does
OPENPOST_OAUTH_DYNAMIC_REGISTRATION_ENABLEDOffOAuth dynamic client registration. Allow external applications to register OAuth clients without operator approval.
OPENPOST_AUTH_GOOGLE_CLIENT_IDNot setGoogle client ID. OAuth client ID for first-party Google sign-in and account linking.
OPENPOST_AUTH_GOOGLE_CLIENT_SECRETNot setGoogle client secret. OAuth client secret for first-party Google sign-in and account linking. Write-only in Settings.
OPENPOST_OIDC_ISSUERNot setOIDC issuer. Issuer URL for the operator-managed OpenID Connect provider.
OPENPOST_OIDC_CLIENT_IDNot setOIDC client ID. Client ID for the operator-managed OpenID Connect provider.
OPENPOST_OIDC_CLIENT_SECRETNot setOIDC client secret. Client secret for the operator-managed OpenID Connect provider. Write-only in Settings.
OPENPOST_OIDC_NAMESingle sign-onOIDC display name. Name shown to users for the operator-managed identity provider.
OPENPOST_OIDC_SCOPESopenid, profile, emailOIDC scopes. Space- or comma-separated OpenID Connect scopes.
OPENPOST_OIDC_JIT_ENABLEDOffOIDC just-in-time users. Allow the OIDC provider to create a user on first sign-in.
OPENPOST_OIDC_BOOTSTRAP_ALLOWLISTNot setOIDC bootstrap subjects. Subject identifiers allowed to bootstrap organization SSO administration.
OPENPOST_SSO_BREAK_GLASS_EMAILSNot setSSO break-glass emails. Accounts that retain direct access if organization SSO is unavailable.
OPENPOST_OIDC_NATIVE_CALLBACK_URLopenpost://oidc/callbackNative OIDC callback. Callback URI used by native OpenPost clients.

Email

How the instance sends sign-in codes and notifications. See Email for each provider.

VariableDefaultWhat it does
OPENPOST_EMAIL_VERIFICATION_REQUIREDOffRequire email verification. Require a six-digit email code before a password account can sign in.
OPENPOST_EMAIL_PROVIDERNot setEmail provider. Delivery service for authentication and user notification messages. One of smtp, resend, cloudflare.
OPENPOST_EMAIL_FROM or OPENPOST_SMTP_FROMNot setFrom address. Sender address used for authentication and notification messages.
OPENPOST_RESEND_API_KEYNot setResend API key. API key used only when Resend is selected. Write-only in Settings.
OPENPOST_CLOUDFLARE_EMAIL_ACCOUNT_IDNot setCloudflare account ID. Cloudflare account that owns the email sending service.
OPENPOST_CLOUDFLARE_EMAIL_API_TOKENNot setCloudflare API token. Scoped token used only for transactional email delivery. Write-only in Settings.
OPENPOST_EMAIL_DELIVERY_WEBHOOK_SECRETNot setEmail delivery webhook secret. Write-only HMAC secret used to authenticate delivery outcome callbacks. Write-only in Settings.
OPENPOST_SMTP_HOSTNot setSMTP host. Hostname of the SMTP server.
OPENPOST_SMTP_PORT587SMTP port. Port used to connect to the SMTP server.
OPENPOST_SMTP_USERNAMENot setSMTP username. Optional SMTP authentication username.
OPENPOST_SMTP_PASSWORDNot setSMTP password. Password used when the SMTP server requires authentication. Write-only in Settings.
OPENPOST_SMTP_TLS_MODEstarttlsSMTP TLS mode. Transport security used for the SMTP connection. One of starttls, tls, none.
OPENPOST_SMTP_SERVER_NAMENot setSMTP TLS server name. Optional TLS server name override used for certificate verification.

Features and AI

Editors, generators, stock media, feedback, telemetry, and the AI models behind them. See AI providers for the keys.

VariableDefaultWhat it does
OPENPOST_IMAGE_EDITOR_ENABLEDOnOpenPost Image Editor. Enable the design workspace and its model assets.
OPENPOST_IMAGE_EDITOR_MODEL_BASE_URL/image-editor-modelsOpenPost Image Editor model path. URL or application path used to load OpenPost Image Editor models.
OPENPOST_MEME_GENERATOR_ENABLEDOnMeme generator. Enable OpenPost's built-in meme templates and local renderer.
FAL_KEYNot setfal API key. Server-only key for Image Editor generation and edits, including request billing access. Write-only in Settings.
OPENPOST_CONTENT_AI_PROVIDERNot setContent AI provider. Exact OpenRouter provider used for post and meme generation.
OPENPOST_CONTENT_AI_REQUIRE_ZDROffContent AI zero retention. Restrict post and meme generation to OpenRouter endpoints with zero data retention.
OPENPOST_WORKFLOW_DECISION_MODELtypesafe/jev-1.13Workflow decision model. OpenRouter Decisions model used for workflow Yes/No branches.
OPENPOST_TEXT_GENERATION_MODELopenai/gpt-6-lunaText generation model. OpenRouter model used to build publication copy from an idea.
OPENPOST_EDITOR_AGENT_MODELgoogle/gemini-3.8-flashEditor assistant model. OpenRouter model used by the paid Hosted image and video editor assistant.
OPENPOST_MEME_GENERATION_MODELopenai/gpt-6-lunaMeme generation model. OpenRouter model used to select templates and write meme captions.
OPENPOST_STOCK_MEDIA_ENABLEDOffStock media search. Enable stock search when at least one provider key is configured.
OPENPOST_PEXELS_API_KEYNot setPexels API key. Optional API key for Pexels stock search. Write-only in Settings.
OPENPOST_UNSPLASH_ACCESS_KEYNot setUnsplash access key. Optional access key for Unsplash stock search. Write-only in Settings.
OPENPOST_PIXABAY_API_KEYNot setPixabay API key. Optional API key for Pixabay stock search. Write-only in Settings.
OPENPOST_FEEDBACK_ENABLEDOffIn-app feedback. Show the feedback action and send submissions to the configured destination.
OPENPOST_FEEDBACK_DESTINATION_URLNot setFeedback destination. Webhook or form endpoint that receives feedback submissions.
OPENPOST_FEEDBACK_RECIPIENTNot setFeedback recipient. Optional recipient identifier sent with feedback submissions.
OPENPOST_FEEDBACK_SUPPORT_URLhttps://github.com/getopenpost/openpost/issues/newSupport link. Fallback URL shown when direct feedback delivery is unavailable.
OPENPOST_TELEMETRY_ENABLEDOffProduct telemetry. Send privacy-limited product events and errors to the configured PostHog project after restart.
OPENPOST_POSTHOG_PROJECT_TOKENNot setPostHog project token. Browser-safe write token for the operator-owned PostHog project.
OPENPOST_POSTHOG_API_HOSTNot setPostHog server endpoint. Direct PostHog ingestion endpoint used by the OpenPost backend.
OPENPOST_POSTHOG_BROWSER_HOSTNot setPostHog browser endpoint. Browser ingestion endpoint or reverse proxy exposed to the OpenPost app.
OPENPOST_POSTHOG_UI_HOSTNot setPostHog UI host. PostHog application URL used by the browser SDK for generated links.
OPENPOST_TELEMETRY_ENVIRONMENTselfhostTelemetry environment. Stable environment label attached to every event, such as production or staging.

Social networks

Per-network switches and API budgets. App credentials for each network are in Social integrations.

VariableDefaultWhat it does
OPENPOST_DISABLE_LINKEDIN_THREAD_REPLIES or LINKEDIN_DISABLE_THREAD_REPLIESOffDisable LinkedIn thread replies. Publish only the first segment of LinkedIn threads.
OPENPOST_LINKEDIN_AUTH_MODEopenidLinkedIn authentication. Use OpenID Connect for self-service apps or the Profile API for an approved Community Management app. One of openid, community_management.
OPENPOST_LINKEDIN_ORGANIZATIONS_ENABLEDOffLinkedIn organizations. Allow publishing through LinkedIn organization pages when the app has permission.
OPENPOST_LINKEDIN_MEMBER_ANALYTICS_ENABLEDOffLinkedIn member analytics. Request r_member_profileAnalytics and r_member_postAnalytics with approved Community Management API access. Initial Development Tier access requires a separate app without other products; approved Standard Tier access can be added to an existing Advertising API app.
OPENPOST_DISABLE_TIKTOK_DISPLAY_APIOffDisable TikTok Display API scopes. Request only the TikTok publishing scopes (user.info.basic, video.publish, video.upload) for apps without Display API approval. Usernames, analytics, and public video ID reconciliation stay unavailable.
OPENPOST_X_MONTHLY_BUDGET_MICROUSD5000000X monthly API budget. Hosted X API budget in millionths of a US dollar.
OPENPOST_X_POST_CREATE_COST_MICROUSD15000X post API cost. Estimated cost of an X post request in millionths of a US dollar.
OPENPOST_X_POST_CREATE_WITH_URL_COST_MICROUSD200000X post-with-URL API cost. Estimated cost of an X post request containing a URL.
OPENPOST_X_ENGAGEMENT_DAILY_READ_BUDGET12X engagement daily read budget. Maximum provider-reaching X engagement read attempts per account and UTC day.
OPENPOST_PROVIDER_USAGE_RETENTION_DAYS180Provider usage retention. Days to keep provider usage and reservation records. Use zero to keep them.

On this page