2024-02-27 13:48:26 +08:00
# Specify your API Key selection method, currently supporting `random` and `turn`.
# API_KEY_SELECT_MODE=random
2025-11-27 20:10:40 +08:00
# #######################################
# ########## Security Settings ###########
# #######################################
2025-08-29 05:14:04 -04:00
# Control Content Security Policy headers
# Set to '1' to enable X-Frame-Options and Content-Security-Policy headers
# Default is '0' (enabled)
# ENABLED_CSP=1
2023-11-08 10:32:34 +08:00
2025-11-11 19:39:36 +08:00
# SSRF Protection Settings
# Set to '1' to allow connections to private IP addresses (disable SSRF protection)
# WARNING: Only enable this in trusted environments
# Default is '0' (SSRF protection enabled)
# SSRF_ALLOW_PRIVATE_IP_ADDRESS=0
# Whitelist of allowed private IP addresses (comma-separated)
# Only takes effect when SSRF_ALLOW_PRIVATE_IP_ADDRESS is '0'
# Example: Allow specific internal servers while keeping SSRF protection
# SSRF_ALLOW_IP_ADDRESS_LIST=192.168.1.100,10.0.0.50
2026-01-23 23:57:08 +08:00
# #######################################
# ########### Redis Settings ############
# #######################################
2025-11-28 11:35:35 +08:00
# Connection string for self-hosted Redis (Docker/K8s/managed). Use container hostname when running via docker-compose.
# REDIS_URL=redis://localhost:6379
# Optional database index.
# REDIS_DATABASE=0
# Optional authentication for managed Redis.
# REDIS_USERNAME=default
# REDIS_PASSWORD=yourpassword
# Set to '1' to enforce TLS when connecting to managed Redis or rediss:// endpoints.
# REDIS_TLS=0
# Namespace prefix for cache/queue keys.
# REDIS_PREFIX=lobechat
2026-01-23 23:57:08 +08:00
# #######################################
# ######### AI Provider Service #########
# #######################################
2023-11-08 10:32:34 +08:00
2025-11-27 20:10:40 +08:00
# ## OpenAI ###
2024-04-11 14:00:01 +08:00
2023-11-08 10:32:34 +08:00
# you openai api key
OPENAI_API_KEY = sk-xxxxxxxxx
# use a proxy to connect to the OpenAI API
# OPENAI_PROXY_URL=https://api.openai.com/v1
2024-04-09 01:39:39 +08:00
# add your custom model name, multi model separate by comma. for example gpt-3.5-1106,gpt-4-1106
2024-04-11 14:00:01 +08:00
# OPENAI_MODEL_LIST=gpt-3.5-turbo
2024-04-09 01:39:39 +08:00
2025-11-27 20:10:40 +08:00
# ## Azure OpenAI ###
2024-04-11 14:00:01 +08:00
# you can learn azure OpenAI Service on https://learn.microsoft.com/en-us/azure/ai-services/openai/overview
2023-11-08 10:32:34 +08:00
# use Azure OpenAI Service by uncomment the following line
# The API key you applied for on the Azure OpenAI account page, which can be found in the "Keys and Endpoints" section.
# AZURE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# The endpoint you applied for on the Azure OpenAI account page, which can be found in the "Keys and Endpoints" section.
2024-04-11 14:00:01 +08:00
# AZURE_ENDPOINT=https://docs-test-001.openai.azure.com
2023-11-08 10:32:34 +08:00
# Azure's API version, follows the YYYY-MM-DD format
2025-03-02 21:58:57 +08:00
# AZURE_API_VERSION=2024-10-21
2023-11-08 10:32:34 +08:00
2025-11-27 20:10:40 +08:00
# ## Anthropic Service ####
2024-02-05 12:59:48 +08:00
2024-04-11 14:00:01 +08:00
# ANTHROPIC_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2024-02-06 16:03:38 +08:00
2024-04-11 14:00:01 +08:00
# use a proxy to connect to the Anthropic API
# ANTHROPIC_PROXY_URL=https://api.anthropic.com
2024-02-06 16:03:38 +08:00
2026-05-21 02:20:29 +08:00
# Anthropic SDK client timeout in milliseconds
# ANTHROPIC_CLIENT_TIMEOUT=295000
2025-11-27 20:10:40 +08:00
# ## Google AI ####
2024-02-05 12:59:48 +08:00
2024-04-11 14:00:01 +08:00
# GOOGLE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2024-02-05 12:59:48 +08:00
2025-11-27 20:10:40 +08:00
# ## AWS Bedrock ###
2024-04-11 14:00:01 +08:00
# AWS_REGION=us-east-1
# AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxx
# AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2025-11-27 20:10:40 +08:00
# ## Ollama AI ####
2024-02-14 00:01:32 +08:00
# You can use ollama to get and run LLM locally, learn more about it via https://github.com/ollama/ollama
2024-04-11 14:00:01 +08:00
2024-02-14 00:01:32 +08:00
# The local/remote ollama service url
2024-04-24 13:38:10 +08:00
# OLLAMA_PROXY_URL=http://127.0.0.1:11434
2024-02-14 00:01:32 +08:00
2024-04-11 14:00:01 +08:00
# OLLAMA_MODEL_LIST=your_ollama_model_names
2025-11-27 20:10:40 +08:00
# ## OpenRouter Service ###
2024-04-11 14:00:01 +08:00
# OPENROUTER_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# OPENROUTER_MODEL_LIST=model1,model2,model3
2025-11-27 20:10:40 +08:00
# ## Mistral AI ###
2024-03-07 11:03:03 +08:00
2024-03-15 23:54:29 +08:00
# MISTRAL_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2024-03-07 11:03:03 +08:00
2025-11-27 20:10:40 +08:00
# ## Perplexity Service ###
2024-03-05 23:23:58 +08:00
2024-03-15 23:54:29 +08:00
# PERPLEXITY_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2024-03-05 23:23:58 +08:00
2025-11-27 20:10:40 +08:00
# ## Groq Service ####
2024-03-05 23:23:58 +08:00
2024-04-11 14:00:01 +08:00
# GROQ_API_KEY=gsk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2024-03-15 23:54:29 +08:00
2025-11-27 20:10:40 +08:00
# ### 01.AI Service ####
2024-03-15 23:54:29 +08:00
2024-04-11 14:00:01 +08:00
# ZEROONE_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2024-03-05 23:23:58 +08:00
2025-11-27 20:10:40 +08:00
# ## TogetherAI Service ###
2024-03-16 21:17:37 +08:00
2024-04-11 14:00:01 +08:00
# TOGETHERAI_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2024-03-16 21:17:37 +08:00
2025-11-27 20:10:40 +08:00
# ## ZhiPu AI ###
2024-03-25 19:56:38 +08:00
2024-04-11 14:00:01 +08:00
# ZHIPU_API_KEY=xxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxx
2024-03-25 19:56:38 +08:00
2025-11-27 20:10:40 +08:00
# ## Moonshot AI ####
2024-04-11 14:00:01 +08:00
# MOONSHOT_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2024-03-29 16:00:40 +07:00
2026-04-20 21:06:40 +08:00
# ## Kimi Code Plan ####
# KIMICODINGPLAN_PROXY_URL=https://api.kimi.com/coding
# KIMICODINGPLAN_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2025-11-27 20:10:40 +08:00
# ## Minimax AI ####
2024-04-29 10:57:48 +08:00
# MINIMAX_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2024-03-29 16:00:40 +07:00
2025-11-27 20:10:40 +08:00
# ## DeepSeek AI ####
2024-05-14 10:53:08 +08:00
2025-02-04 22:20:15 +08:00
# DEEPSEEK_PROXY_URL=https://api.deepseek.com/v1
2024-05-14 10:53:08 +08:00
# DEEPSEEK_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2025-11-27 20:10:40 +08:00
# ## Qiniu AI ####
2025-05-15 11:08:49 +08:00
# QINIU_PROXY_URL=https://api.qnaigc.com/v1
# QINIU_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2025-11-27 20:10:40 +08:00
# ## Qwen AI ####
2024-06-04 11:38:56 +08:00
# QWEN_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2025-11-27 20:10:40 +08:00
# ## Cloudflare Workers AI ####
2024-11-12 01:21:16 +08:00
# CLOUDFLARE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# CLOUDFLARE_BASE_URL_OR_ACCOUNT_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2025-11-27 20:10:40 +08:00
# ## SiliconCloud AI ####
2024-08-14 10:36:04 +08:00
# SILICONCLOUD_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2025-11-27 20:10:40 +08:00
# ## TencentCloud AI ####
2025-02-12 22:27:52 +08:00
# TENCENT_CLOUD_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2025-03-03 17:23:28 +08:00
2025-11-27 20:10:40 +08:00
# ## PPIO ####
2025-03-03 17:23:28 +08:00
# PPIO_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2025-03-21 17:45:59 +08:00
2025-11-27 20:10:40 +08:00
# ## INFINI-AI ###
2025-03-21 17:45:59 +08:00
# INFINIAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2025-02-12 22:27:52 +08:00
2025-11-27 20:10:40 +08:00
# ## 302.AI ###
2025-08-05 15:50:13 +08:00
# AI302_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2025-11-27 20:10:40 +08:00
# ## ModelScope ###
2025-08-01 09:52:11 +08:00
# MODELSCOPE_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2025-11-27 20:10:40 +08:00
# ## AiHubMix ###
2025-08-01 09:52:11 +08:00
# AIHUBMIX_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2025-11-27 20:10:40 +08:00
# ## BFL ###
2025-08-26 17:26:45 +08:00
# BFL_API_KEY=bfl-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2025-11-27 20:10:40 +08:00
# ## FAL ###
2025-08-26 17:26:45 +08:00
# FAL_API_KEY=fal-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2025-11-27 20:10:40 +08:00
# #######################################
# ######## AI Image Settings ############
# #######################################
2025-10-12 23:56:17 +08:00
# Default image generation count (range: 1-20, default: 4)
# AI_IMAGE_DEFAULT_IMAGE_NUM=4
2025-11-27 20:10:40 +08:00
# ## Nebius ###
2025-09-01 09:38:59 +08:00
# NEBIUS_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2025-08-01 09:52:11 +08:00
2025-11-27 20:10:40 +08:00
# ## NewAPI Service ###
2025-09-06 11:30:12 +08:00
# NEWAPI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# NEWAPI_PROXY_URL=https://your-newapi-server.com
2025-11-27 20:10:40 +08:00
# ## Vercel AI Gateway ###
2025-09-16 16:49:54 +08:00
# VERCELAIGATEWAY_API_KEY=your_vercel_ai_gateway_api_key
2025-11-27 20:10:40 +08:00
# #######################################
# ########### Market Service ############
# #######################################
2023-11-08 10:32:34 +08:00
# The LobeChat agents market index url
# AGENTS_INDEX_URL=https://chat-agents.lobehub.com
2026-06-07 12:18:39 +08:00
# #######################################
# ######### Cloud Sandbox Service #######
# #######################################
# Sandbox provider for built-in code execution, shell, file operations, and export.
# Supported values: market, onlyboxes
# SANDBOX_PROVIDER=market
# Required when SANDBOX_PROVIDER=onlyboxes. Base URL of the Onlyboxes console API, without /api/v1.
# ONLYBOXES_BASE_URL=https://onlyboxes.example.com
# Required when SANDBOX_PROVIDER=onlyboxes. Must match Onlyboxes CONSOLE_JIT_SIGNING_KEY.
# ONLYBOXES_JIT_SIGNING_KEY=onlyboxes-jit-signing-secret
# Optional JIT token issuer. Defaults to APP_URL.
# ONLYBOXES_JIT_ISSUER=https://lobehub.example.com
# Optional JIT token TTL in seconds.
# ONLYBOXES_JIT_TTL_SEC=1800
# Optional terminal session lease in seconds for the Onlyboxes provider.
# ONLYBOXES_LEASE_TTL_SEC=900
2025-11-27 20:10:40 +08:00
# #######################################
# ########### Plugin Service ############
# #######################################
2023-12-27 20:43:03 +08:00
# The LobeChat plugins store index url
# PLUGINS_INDEX_URL=https://chat-plugins.lobehub.com
# set the plugin settings
# the format is `plugin-identifier:key1=value1;key2=value2`, multiple settings fields are separated by semicolons `;`, multiple plugin settings are separated by commas `,`.
# PLUGIN_SETTINGS=search-engine:SERPAPI_API_KEY=xxxxx
2024-06-18 21:00:17 +08:00
2025-11-27 20:10:40 +08:00
# #######################################
# ###### Doc / Changelog Service ########
# #######################################
2024-12-26 11:02:47 +08:00
# Use in Changelog / Document service cdn url prefix
# DOC_S3_PUBLIC_DOMAIN=https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Use in dev cdn workflow
# DOC_S3_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# DOC_S3_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2026-02-28 00:01:01 +08:00
# #######################################
# ### Mobile SPA S3 Workflow ############
# #######################################
# Used by `bun run workflow:mobile-spa` to build mobile SPA, upload assets to S3, and generate template
# MOBILE_S3_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# MOBILE_S3_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# MOBILE_S3_BUCKET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# MOBILE_S3_ENDPOINT=https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# MOBILE_S3_REGION=auto
# MOBILE_S3_PUBLIC_DOMAIN=https://cdn.example.com
# MOBILE_S3_KEY_PREFIX=mobile/latest # optional, S3 key path prefix
2024-06-18 21:00:17 +08:00
2025-11-27 20:10:40 +08:00
# #######################################
# #### S3 Object Storage Service ########
# #######################################
2024-06-18 21:00:17 +08:00
# S3 keys
2024-12-26 11:02:47 +08:00
# S3_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# S3_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2024-06-18 21:00:17 +08:00
# Bucket name
2024-12-26 11:02:47 +08:00
# S3_BUCKET=lobechat
2024-06-18 21:00:17 +08:00
# Bucket request endpoint
2024-12-26 11:02:47 +08:00
# S3_ENDPOINT=https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx.r2.cloudflarestorage.com
2024-06-18 21:00:17 +08:00
# Bucket region, such as us-west-1, generally not needed to add
# but some service providers may require configuration
# S3_REGION=us-west-1
2025-11-27 20:10:40 +08:00
# #######################################
# ########### Auth Service ##############
# #######################################
2024-06-18 21:00:17 +08:00
2025-11-27 20:10:40 +08:00
# Auth Secret (use `openssl rand -base64 32` to generate)
# AUTH_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Require email verification before allowing users to sign in (default: false)
# Set to '1' to force users to verify their email before signing in
2026-01-23 23:57:08 +08:00
# AUTH_EMAIL_VERIFICATION=0
2025-11-27 20:10:40 +08:00
# SSO Providers Configuration (for Better-Auth)
# Comma-separated list of enabled OAuth providers
# Supported providers: auth0, authelia, authentik, casdoor, cloudflare-zero-trust, cognito, generic-oidc, github, google, keycloak, logto, microsoft, microsoft-entra-id, okta, zitadel
# Example: AUTH_SSO_PROVIDERS=google,github,auth0,microsoft-entra-id
# AUTH_SSO_PROVIDERS=
2026-01-23 23:57:08 +08:00
# Email whitelist for registration (comma-separated)
# Supports full email (user@example.com) or domain (example.com)
# Leave empty to allow all emails
# AUTH_ALLOWED_EMAILS=example.com,admin@other.com
2026-01-31 18:25:22 +08:00
# Disable email/password authentication (SSO-only mode)
# Set to '1' to disable email/password sign-in and registration, only allowing SSO login
# AUTH_DISABLE_EMAIL_PASSWORD=0
2025-11-27 20:10:40 +08:00
# Google OAuth Configuration (for Better-Auth)
# Get credentials from: https://console.cloud.google.com/apis/credentials
# Authorized redirect URIs:
# - Development: http://localhost:3210/api/auth/callback/google
# - Production: https://yourdomain.com/api/auth/callback/google
# GOOGLE_CLIENT_ID=xxxxx.apps.googleusercontent.com
# GOOGLE_CLIENT_SECRET=GOCSPX-xxxxxxxxxxxxxxxxxxxx
# GitHub OAuth Configuration (for Better-Auth)
# Get credentials from: https://github.com/settings/developers
# Create a new OAuth App with:
# Authorized callback URL:
# - Development: http://localhost:3210/api/auth/callback/github
# - Production: https://yourdomain.com/api/auth/callback/github
# GITHUB_CLIENT_ID=Ov23xxxxxxxxxxxxx
# GITHUB_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# AWS Cognito OAuth Configuration (for Better-Auth)
# Get credentials from: https://console.aws.amazon.com/cognito
# Setup steps:
# 1. Create a User Pool with App Client
# 2. Configure Hosted UI domain
# 3. Enable "Authorization code grant" OAuth flow
# 4. Set OAuth scopes: openid, profile, email
# Authorized callback URL:
# - Development: http://localhost:3210/api/auth/callback/cognito
# - Production: https://yourdomain.com/api/auth/callback/cognito
# COGNITO_CLIENT_ID=xxxxxxxxxxxxxxxxxxxxx
# COGNITO_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# COGNITO_DOMAIN=your-app.auth.us-east-1.amazoncognito.com
# COGNITO_REGION=us-east-1
# COGNITO_USERPOOL_ID=us-east-1_xxxxxxxxx
# Microsoft OAuth Configuration (for Better-Auth)
# Get credentials from: https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade
# Create a new App Registration in Microsoft Entra ID (Azure AD)
# Authorized redirect URL:
# - Development: http://localhost:3210/api/auth/callback/microsoft
# - Production: https://yourdomain.com/api/auth/callback/microsoft
# MICROSOFT_CLIENT_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
# MICROSOFT_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# #######################################
# ########## Email Service ##############
# #######################################
# SMTP Server Configuration (required for email verification with Better-Auth)
# SMTP server hostname (e.g., smtp.gmail.com, smtp.office365.com)
# SMTP_HOST=smtp.example.com
# SMTP server port (usually 587 for TLS, or 465 for SSL)
# SMTP_PORT=587
# Use secure connection (set to 'true' for port 465, 'false' for port 587)
# SMTP_SECURE=false
# SMTP authentication username (usually your email address)
# SMTP_USER=your-email@example.com
# SMTP authentication password (use app-specific password for Gmail)
# SMTP_PASS=your-password-or-app-specific-password
2026-01-23 23:57:08 +08:00
# Sender email address (optional, defaults to SMTP_USER)
# Required for AWS SES where SMTP_USER is not a valid email address
# SMTP_FROM=noreply@example.com
2025-11-27 20:10:40 +08:00
# #######################################
# ######### Server Database #############
# #######################################
2024-06-18 21:00:17 +08:00
# Postgres database URL
2024-12-26 11:02:47 +08:00
# DATABASE_URL=postgres://username:password@host:port/database
2024-06-18 21:00:17 +08:00
2026-06-04 12:34:23 +08:00
# Optional: server-side timeout (in milliseconds) for a single SQL statement.
# When set, Postgres aborts any statement/idle transaction exceeding it, so a stuck
# query can't block indefinitely. Leave unset to keep Postgres' default of no timeout.
# DATABASE_STATEMENT_TIMEOUT=300000
2024-06-18 21:00:17 +08:00
# use `openssl rand -base64 32` to generate a key for the encryption of the database
2025-03-02 21:58:57 +08:00
# we use this key to encrypt the user api key and proxy url
2025-11-27 20:10:40 +08:00
# KEY_VAULTS_SECRET=xxxxx/xxxxxxxxxxxxxx=
2025-01-15 11:17:20 +08:00
# Specify the Embedding model and Reranker model(unImplemented)
# DEFAULT_FILES_CONFIG="embedding_model=openai/embedding-text-3-small,reranker_model=cohere/rerank-english-v3.0,query_mode=full_text"
2025-07-08 12:48:31 +08:00
2026-02-21 01:15:14 +08:00
# Embedding batch size for processing (default: 50)
# EMBEDDING_BATCH_SIZE=50
# Embedding concurrency for parallel processing (default: 10)
# EMBEDDING_CONCURRENCY=10
2025-11-27 20:10:40 +08:00
# #######################################
# ######### MCP Service Config ##########
# #######################################
2025-07-08 12:48:31 +08:00
# MCP tool call timeout (milliseconds)
# MCP_TOOL_TIMEOUT=60000
2025-12-05 14:43:22 +08:00
# #######################################
# ######### Klavis Service ##############
# #######################################
# Klavis API Key for accessing Strata hosted MCP servers
# Get your API key from: https://klavis.io
# IMPORTANT: This key is stored server-side only and NEVER exposed to the client
# When this key is set, Klavis integration will be automatically enabled
# KLAVIS_API_KEY=your_klavis_api_key_here
2026-04-13 01:27:54 +08:00
# #######################################
# #### Message Gateway (IM Integration) ##
# #######################################
2026-04-14 22:10:17 +08:00
# External message-gateway for unified IM platform connection management.
# Set ENABLED=1 to activate. To migrate away, remove ENABLED first (keep URL/TOKEN)
# so LobeHub can automatically disconnect leftover gateway connections.
# MESSAGE_GATEWAY_ENABLED=1
2026-04-13 01:27:54 +08:00
# MESSAGE_GATEWAY_URL=https://message-gateway.lobehub.com
# MESSAGE_GATEWAY_SERVICE_TOKEN=your_service_token_here
2026-05-08 16:27:16 +07:00
# #######################################
# ########### Messenger Bot #############
# #######################################
# LobeHub-operated bots that users link their account to once and then chat
# with any of their agents from. Credentials (Telegram / Slack / Discord) are
# now managed in dc-center → Agent → System Bots and stored in the
# `system_bot_providers` table. See docs/development/messenger/managed-by-dc-center.md.
#
# Webhook URLs are registered against APP_URL:
# Telegram: <APP_URL>/api/agent/messenger/webhooks/telegram
# Slack: <APP_URL>/api/agent/messenger/webhooks/slack
# Discord: <APP_URL>/api/agent/messenger/webhooks/discord
#
# For local dev with bot platforms, point APP_URL at your tunnel
# (ngrok / cloudflared) so platforms can reach your machine.
# Verify-im link token TTL in seconds (default 1800 = 30 min)
# LOBE_LINK_TOKEN_TTL_SECONDS=1800