pflow settings command group manages pflow configuration stored in ~/.pflow/settings.json. This includes API keys, environment variables, and node filtering.
Your commands. These are setup commands that you run directly - not your agent. API keys and security settings should always be configured by you, never by an AI agent.
Commands
| Command | Description |
|---|---|
init | Initialize settings with defaults |
show | Display current settings |
set-env | Set an environment variable |
unset-env | Remove an environment variable |
list-env | List all environment variables |
allow | Add an allow pattern |
deny | Add a deny pattern |
remove | Remove a pattern |
check | Check if a node is allowed |
reset | Reset to defaults |
llm show | Show LLM model settings |
llm set-default | Set default model for all features |
llm set-discovery | Set model for discovery commands |
llm set-filtering | Set model for smart filtering |
llm unset | Remove an LLM model setting |
registry output-mode | Set registry run output display mode |
pflow settings init
Initialize settings file with defaults.~/.pflow/settings.json with default configuration. Prompts for confirmation if the file already exists.
Default settings:
pflow settings show
Display current settings with sensitive values masked.Sensitive values (API keys, tokens, secrets) are automatically masked. Use
pflow settings list-env --show-values to see full values.pflow settings set-env
Set an environment variable for pflow workflows.KEY- Environment variable nameVALUE- Environment variable value
llm keys set anthropic instead.
pflow settings unset-env
Remove an environment variable.KEY- Environment variable name to remove
pflow settings list-env
List all configured environment variables.--show-values- Display full unmasked values (use with caution)
pflow settings allow
Add an allow pattern for node filtering.PATTERN- Glob-style pattern for nodes to allow
*matches any characters?matches single character[seq]matches any character in seq
pflow settings deny
Add a deny pattern for node filtering.PATTERN- Glob-style pattern for nodes to deny
Deny patterns take precedence over allow patterns.
pflow settings remove
Remove a pattern from allow or deny list.PATTERN- Pattern to remove
--allow- Remove from allow list (default)--deny- Remove from deny list
pflow settings check
Check if a node would be included based on current settings.NODE_NAME- Node name to check
pflow settings reset
Reset settings to defaults.LLM model settings
These commands let you override which models pflow uses for its internal features. By default, pflow auto-detects based on your configured API keys - these are optional.pflow settings llm show
Display LLM model settings with resolution status.pflow settings llm set-default
Override the auto-detected model for all pflow LLM usage.MODEL- Model identifier (e.g.,gpt-5.2,anthropic/claude-sonnet-4-5,gemini-3-flash-preview)
- LLM nodes in workflows (when no model specified in params)
- Discovery commands (when
discovery_modelnot set) - Smart filtering (when
filtering_modelnot set)
pflow settings llm set-discovery
Set the model for discovery commands (pflow registry discover, pflow workflow discover).
MODEL- Model identifier
pflow settings llm set-filtering
Set the model for smart field filtering (used whensmart output mode filters large API responses).
MODEL- Model identifier
pflow settings llm unset
Remove an LLM model setting, reverting to auto-detection.SETTING- Which setting to remove:default,discovery,filtering, orall
Model resolution order
pflow uses the same resolution order for all LLM usage (discovery, filtering, and workflow LLM nodes):- Explicit setting (workflow params or feature-specific setting)
default_modelfrom settingsllmlibrary default (llm models default)- Auto-detect from API keys
- Error with setup instructions
| Provider | Default model |
|---|---|
| Anthropic | anthropic/claude-sonnet-4-5 |
gemini/gemini-3-flash-preview | |
| OpenAI | gpt-5.2 |
Most users just need an API key configured. pflow auto-detects the appropriate model. Use these commands only to override the auto-detected model.
Registry settings
Configure howpflow registry run displays output.
pflow settings registry output-mode
Show or set the output display mode forpflow registry run.
MODE(optional) - One ofsmart,structure, orfull. If omitted, shows current mode.
| Mode | Description |
|---|---|
smart (default) | Shows template paths with values. Uses LLM to filter large outputs (>30 fields) to relevant fields. |
structure | Shows template paths only (no values). No filtering - shows all fields. Fast, no LLM overhead. |
full | Shows all fields with full values, no truncation or filtering. |
How node filtering works
Node filtering uses allow and deny patterns evaluated in this order:- Test nodes - Hidden by default (enable with
PFLOW_INCLUDE_TEST_NODES=true) - Deny patterns - Block matching nodes (highest precedence)
- Allow patterns - Include matching nodes
- Default - Include if
*in allow list
Environment variable precedence
When workflows need parameters, pflow looks in this order:- CLI parameters (
key=valuearguments) - Settings environment variables (
pflow settings set-env) - Workflow defaults
- Error if required and not found
Sensitive parameter detection
These keys are automatically masked in output:password,passwd,pwdtoken,api_token,access_token,auth_tokenapi_key,apikey,api-keysecret,client_secret,secret_keyprivate_key,ssh_key
File locations
| Path | Purpose |
|---|---|
~/.pflow/settings.json | Settings file |
Related
- CLI overview - Main pflow command
- Configuration reference - All configuration options
- Quickstart - Initial setup including API keys

