~/.pflow/. This page covers the settings file structure, environment variables, node filtering, and file locations.
Settings file
pflow stores user configuration in~/.pflow/settings.json. View current settings with:
Structure
Fields
Commands
LLM model configuration
pflow uses LLMs for discovery features, smart filtering, and the LLM node in workflows. Set up an API key, and pflow auto-detects which model to use.API key setup
Override the model (optional)
To use a specific model instead of auto-detection:Resolution order
pflow auto-detects a model based on your configured API keys. To override this or see the full resolution order and default models, see LLM model settings.Environment variables
API keys
Store API keys in the settings file for security (automatically chmod 600):API keys stored via
pflow settings set-env are used automatically for workflow inputs and discovery features. Your agent can’t set these for security reasons.- CLI parameters (
--param key=value) - Settings file (
~/.pflow/settings.json→env) - System environment variables
pflow configuration variables
Trace configuration
Control trace file verbosity:Node filtering
Control which nodes are available using allow/deny patterns.Pattern syntax
pflow uses glob-style patterns (fnmatch):Evaluation order
- Deny patterns - If matched, node is excluded
- Allow patterns - If matched, node is included
- Default - Included only if
*is in allow list
Commands
Examples
Block shell access:File locations
pflow stores all data in~/.pflow/:
What’s safe to delete
MCP server configuration
MCP servers are configured in~/.pflow/mcp-servers.json. See Adding MCP servers for details.
The file uses the standard MCP configuration format:
${VAR}) are resolved from:
- System environment variables
- pflow settings (
pflow settings set-env)

