Set up your API key
pflow uses an LLM for discovery — finding the right workflows and nodes without your agent needing to load everything into context. You can use any provider supported by Simon Willison’s llm.pflow auto-detects your provider and selects a default model (Claude Sonnet 4.5 for Anthropic, Gemini 3 Flash for Google, GPT-5.2 for OpenAI).
Choose a specific model (optional)
Choose a specific model (optional)
What the model is used for
What the model is used for
This is pflow’s LLM configuration, separate from whatever LLM your agent uses:
- Discovery commands -
pflow registry discoverandpflow workflow discoveruse LLM to find relevant nodes and workflows - LLM nodes - workflows that include an LLM node for text processing
- Smart filtering - automatic field selection for large API responses
Your agent creates workflows using its own LLM (Claude Code uses Claude, Cursor uses its models, etc.). pflow’s model configuration is only for pflow’s internal features.
When is it required?
When is it required?
Set up an LLM if you’re using MCP servers. MCP tool descriptions can consume a third of your agent’s context before any work starts — discovery is how pflow avoids that.For basic usage without MCP servers or testing pflow, the configuration is optional.
Connect pflow to your AI agent
Your AI agent can use pflow in two ways:Option 1: CLI access (easiest)If your agent has terminal access (Claude Code, Cursor, Windsurf), instruct it to run:This gives the agent everything it needs to discover existing workflows, run them, or build new ones.Option 2: MCP serverAdd pflow to your AI tool’s MCP config (Claude Desktop, Cursor, etc.):See AI tool integration for detailed setup instructions for each tool.
What your agent can do with pflow
Once connected, your agent can:- Discover workflows:
pflow workflow discover "what I want to do" - Run workflows:
pflow my-workflow param1=value1 - List workflows:
pflow workflow list - Discover nodes:
pflow registry discover "capability I need" - Build new workflows: Following
pflow instructions create
Next steps
AI tool integration
Set up Claude Desktop, Cursor, or other AI tools
Add MCP servers
Expand pflow capabilities with external tools
Troubleshooting
Command not found: pflow
Command not found: pflow
Make sure the install location is in your PATH:Then restart your terminal.
Python version error
Python version error
pflow requires Python 3.10+. Check your version:If you need to upgrade, use pyenv or your system package manager.

