Skip to content

Environment Variables

All variables can be set in a .env file at the repository root or passed directly to the process.

VariableDefaultDescription
OPENMOTOKO_PASSWORD(required)Login password
OPENMOTOKO_PORT3457API server port
OPENMOTOKO_HOST0.0.0.0Server bind address
OPENMOTOKO_DB_PATH./data/openmotoko.dbSQLite database file path
OPENMOTOKO_SESSION_SECRET(auto)Session encryption key
OPENMOTOKO_CORS_ORIGINhttp://localhost:5173Allowed CORS origin
OPENMOTOKO_BIND(gateway default)Override gateway bind
OPENMOTOKO_HMAC_SECRETopenmotoko-default-hmac-keyHMAC key for action log integrity
OPENMOTOKO_API_URLhttp://localhost:3457CLI base URL
NODE_ENVdevelopmentdevelopment or production
LOG_LEVELinfoFastify log level
DOMAIN(none)Public domain for the instance
VariableDescription
ANTHROPIC_API_KEYAnthropic (Claude) API key
OPENAI_API_KEYOpenAI API key
GOOGLE_AI_API_KEYGoogle AI (Gemini) API key
OLLAMA_HOSTOllama server URL (default http://localhost:11434)
GENERIC_LLM_BASE_URLBase URL for a generic OpenAI-compatible provider
GENERIC_LLM_API_KEYAPI key for the generic provider
GENERIC_LLM_NAMEDisplay name for the generic provider
GENERIC_LLM_PROVIDER_IDProvider identifier for routing
VariableDescription
TELEGRAM_BOT_TOKENBot token from @BotFather
VariableDescription
DISCORD_BOT_TOKENBot token from Discord Developer Portal
VariableDescription
WHATSAPP_SESSION_PATHSession data directory (default ./data/whatsapp)
VariableDescription
SLACK_BOT_TOKENBot token (xoxb-...)
SLACK_APP_TOKENApp token (xapp-...)
VariableDescription
SIGNAL_CLI_PATHPath to signal-cli binary
SIGNAL_PHONE_NUMBERRegistered phone number
VariableDescription
BLUEBUBBLES_URLBlueBubbles server URL
BLUEBUBBLES_PASSWORDBlueBubbles server password
VariableDescription
GOOGLE_CHAT_CREDENTIALS_PATHPath to service account JSON
VariableDescription
TEAMS_APP_IDTeams app ID
TEAMS_APP_PASSWORDTeams app password
VariableDescription
MATRIX_HOMESERVERHomeserver URL
MATRIX_USERBot user ID
MATRIX_PASSWORDBot password
VariableDescription
MATTERMOST_URLServer URL
MATTERMOST_TOKENBot access token
VariableDescription
FEISHU_APP_IDApp ID
FEISHU_APP_SECRETApp secret
VariableDescription
LINE_CHANNEL_TOKENChannel access token
LINE_CHANNEL_SECRETChannel secret
VariableDescription
IRC_SERVERServer hostname
IRC_PORTServer port (default 6697)
IRC_NICKBot nickname
IRC_CHANNELChannel to join
VariableDescription
GMAIL_SERVICE_ACCOUNT_KEYGoogle service account JSON key
GMAIL_PUBSUB_TOPICPub/Sub topic name
GMAIL_PUBSUB_SUBSCRIPTIONPub/Sub subscription name
GMAIL_TARGET_CONVERSATION_IDTarget conversation for incoming mail
VariableDescription
SMTP_HOSTSMTP server hostname
SMTP_PORTSMTP port
SMTP_SECUREUse TLS (true/false)
SMTP_USERSMTP username
SMTP_PASSSMTP password
SMTP_FROMFrom address
IMAP_HOSTIMAP server hostname
IMAP_PORTIMAP port
IMAP_SECUREUse TLS
IMAP_USERIMAP username
IMAP_PASSIMAP password
VariableDescription
GITHUB_TOKENPersonal access token
VariableDefaultDescription
TAILSCALE_SERVE_ENABLEDfalseEnable Tailscale Serve proxy
TAILSCALE_AUTH_ENABLEDfalseEnable Tailscale identity auth
TAILSCALE_ENABLEDfalseEnable Tailscale auth plugin
TAILSCALE_TRUSTED_PROXIES127.0.0.1,::1Trusted proxy addresses
VariableDefaultDescription
REGISTRY_PORT3458Registry server port
REGISTRY_HOST0.0.0.0Registry bind address
REGISTRY_API_KEY(none)API key for publishing
REGISTRY_DB_PATH(none)Registry SQLite path
REGISTRY_CORS_ORIGIN(none)Allowed CORS origin