Docs/Reference/Environment Variables
Reference

Environment Variables

Environment variables Flowly reads at startup, with their defaults. Most users never need these β€” config.json covers the common cases.

Flowly is configured mainly through ~/.flowly/config.json. The environment variables below override specific behaviors and are handy for wrapper scripts, CI, and headless setups.

Profiles & home

VariableDefaultWhat it does
FLOWLY_HOME~/.flowlyThe profile/home directory β€” where config, sessions, credentials, skills, and databases live.
FLOWLY_PROFILEdefaultProfile name, for wrapper scripts. Resolution order: -p flag β†’ FLOWLY_PROFILE β†’ ~/.flowly/active_profile β†’ default.

Sandbox & execution

VariableDefaultWhat it does
FLOWLY_SANDBOXonSet to 0 / false / off / no to disable the OS sandbox (macOS sandbox-exec / Linux bwrap).
FLOWLY_SANDBOX_WRAPPEDβ€”Internal recursion guard set when re-execing under the sandbox. Do not set this yourself.
FLOWLY_CWDβ€”Override the runtime working directory for shell/exec and Codex.
FLOWLY_BASH_PATHβ€”Path to the bash binary used for command execution.

Agent & LLM

VariableDefaultWhat it does
FLOWLY_LLM_TIMEOUT_SECONDS120Timeout for a non-streaming LLM call.
FLOWLY_LLM_STREAM_TIMEOUT_SECONDS120Timeout for a streaming LLM call.
FLOWLY_CLAUDE_CACHE_TTL1hTTL for the Anthropic prompt cache (Claude models).

Cron

VariableDefaultWhat it does
FLOWLY_CRON_TIMEOUT600Per-job watchdog timeout, in seconds.
FLOWLY_CRON_RETENTION_DAYS30How long per-run output archives are kept.

Media

Generated media (image generation, etc.) is written to <FLOWLY_HOME>/media. The gateway prunes it at start so it can't fill the disk; recent files are kept so chat-history re-fetch still works.

VariableDefaultWhat it does
FLOWLY_MEDIA_RETENTION_DAYS30Delete generated media older than this many days at gateway start. -1 disables the age cap.
FLOWLY_MEDIA_MAX_SIZE_MB500If <FLOWLY_HOME>/media is still larger than this, delete the oldest files until under cap. 0 disables the size cap.

Skills & plugins

VariableDefaultWhat it does
FLOWLY_HUB_REGISTRYhttps://useflowlyapp.comSkill hub registry base URL.
FLOWLY_ENABLE_PROJECT_PLUGINSoffSet to 1 to load project-local plugins from the working directory.

Provider & account

VariableDefaultWhat it does
FLOWLY_API_BASEhttps://useflowlyapp.comBase URL for the hosted Flowly API / relay.
FLOWLY_SERVER_IDβ€”Relay server id (set during flowly login).
FLOWLY_USER_AGENTFlowlyBot/1.0HTTP User-Agent for outbound requests.
FLOWLY_XAI_OAUTH_MODELgrok-4.20-reasoningModel used with an xAI OAuth subscription.
FLOWLY_X_SEARCH_MODELgrok-4.20-reasoningModel used by the x_search tool.
FLOWLY_AUTH_DEBUGoffSet to 1 for verbose auth logging.
CODEX_HOME~/.codexState directory for the Codex CLI subprocess (Codex runtime).

Tool credentials

These let tools pick up credentials from the environment instead of config.json:

VariableUsed by
BRAVE_API_KEYweb_search
GROQ_API_KEYVoice STT (Groq Whisper)
TRELLO_API_KEY, TRELLO_TOKENtrello
XAI_API_KEYx_search (fallback when no OAuth subscription)
XAI_BASE_URLx_search (overrides the xAI API base URL)
GITHUB_TOKENGitHub MCP server (from the catalog)
EDITOROpening the TUI draft with Ctrl+E

TUI

VariableDefaultWhat it does
FLOWLY_TUI_THEMEflowlyDefault TUI theme.
FLOWLY_BROWSER_PLAN_ENABLED1Toggles the browser_plan tool.
FLOWLY_BROWSER_PLAN_PERSISTβ€”Controls browser-plan persistence.

Install script

Read only by the install script (install.sh / install.ps1), not by the running agent. They tune the git-checkout install; see Installation.

VariableDefaultWhat it does
FLOWLY_REPO_URLGitHub repoGit remote the installer clones.
FLOWLY_BRANCHmainBranch to track (and that flowly update pulls).
FLOWLY_SRC~/.local/share/flowly/repoWhere the checkout is cloned.
FLOWLY_VENV~/.local/share/flowly/venvWhere the virtualenv is built (kept outside the checkout).
FLOWLY_PYTHON3.12Python version uv provisions for the venv.
FLOWLY_SKIP_SYSTEM_DEPS0Skip the optional ffmpeg / ripgrep install.
FLOWLY_SKIP_BOOTSTRAP0Skip first-run onboarding.
FLOWLY_NO_PATH_UPDATE0Don't edit shell profiles for PATH.