.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow. (showing first 20, more exist in .env.example)
LANGFLOW_CONFIG_DIR
Config directory Directory where files, logs and database will be stored Example: LANGFLOW_CONFIG_DIR=~/.langflow
LANGFLOW_SAVE_DB_IN_CONFIG_DIR
Save database in the config directory Values: true, false If false, the database will be saved in Langflow's root directory This means that…
LANGFLOW_DATABASE_URL
secret
Database URL Postgres example: LANGFLOW_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/langflow # pragma: allowlist secret…
LANGFLOW_ALEMBIC_LOG_TO_STDOUT
Alembic logs path flag. If set to true, Alembic will log to stdout.
LANGFLOW_DATABASE_CONNECTION_RETRY
Database connection retry Values: true, false If true, the database will retry to connect to the database if it fails Example:…
LANGFLOW_LANGCHAIN_CACHE
Cache type
LANGFLOW_HOST
Server host Example: LANGFLOW_HOST=localhost
LANGFLOW_WORKERS
Worker processes Example: LANGFLOW_WORKERS=1
LANGFLOW_PORT
Server port Example: LANGFLOW_PORT=7860
LANGFLOW_LOG_LEVEL
Logging level Example: LANGFLOW_LOG_LEVEL=critical
LANGFLOW_LOG_FILE
Path to the log file Example: LANGFLOW_LOG_FILE=logs/langflow.log
LANGFLOW_LOG_ROTATION
Time/Size for log to rotate Example: LANGFLOW_LOG_ROTATION=‘10 MB’/‘1 day’
LANGFLOW_FRONTEND_PATH
Path to the frontend directory containing build files Example: LANGFLOW_FRONTEND_PATH=/path/to/frontend/build/files
LANGFLOW_OPEN_BROWSER
Whether to open the browser after starting the server Values: true, false Example: LANGFLOW_OPEN_BROWSER=true
LANGFLOW_REMOVE_API_KEYS
secret
Whether to remove API keys from the projects saved in the database Values: true, false Example: LANGFLOW_REMOVE_API_KEYS=false
LANGFLOW_CACHE_TYPE
Whether to use RedisCache or ThreadingInMemoryCache or AsyncInMemoryCache Values: async, memory, redis Example: LANGFLOW_CACHE_TYPE=memory…
LANGFLOW_AUTO_LOGIN
Set LANGFLOW_AUTO_LOGIN to false if you want to disable auto login and use the login form to login. LANGFLOW_SUPERUSER and…
LANGFLOW_ENABLE_SUPERUSER_CLI
SET LANGFLOW_ENABLE_SUPERUSER_CLI to false to disable superuser creation via the CLI
LANGFLOW_SUPERUSER
Superuser username Example: LANGFLOW_SUPERUSER=admin
LANGFLOW_SUPERUSER_PASSWORD
secret
Superuser password Example: LANGFLOW_SUPERUSER_PASSWORD=123456
brew install flyctl && fly launch --from https://github.com/langflow-ai/langflow
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/langflow-ai/langflow
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/langflow-ai/langflow