Getting Started¶
This guide creates a new PyFlue project, runs a prompt, and explains the files that are generated.
Requirements¶
- Python 3.11 or newer
uvorpip- A model provider key if you run a real model
PyFlue depends on DeepAgents 0.5.6, which requires Python 3.11 or newer.
Install¶
Add PyFlue to a project with uv:
Or install it with pip:
Optional extras:
Create a Project¶
The command creates:
Run a Prompt¶
By default, PyFlue uses:
harness = "deepagents"sandbox = "virtual"- session id
default - read-only sandbox policy
Enable writes and shell execution explicitly:
pyflue run \
--prompt "Inspect the project and write a short report to report.txt" \
--allow-write \
--allow-shell
Use a Named Session¶
pyflue run --session issue-123 --prompt "Inspect the failure"
pyflue run --session issue-123 --prompt "Suggest the smallest fix"
Session history is stored under .pyflue/sessions.
Project Configuration¶
pyflue.toml controls the default agent settings:
[agent]
model = "openai:gpt-5.5"
harness = "deepagents"
sandbox = "virtual"
skills_dir = ".agents/skills"
state_dir = ".pyflue/sessions"
allowed_commands = ["git", "pytest"]
typed_retries = 3
Useful Commands¶
| Command | Purpose |
|---|---|
pyflue init |
Create a PyFlue project. |
pyflue run |
Run one prompt. |
pyflue run --stream |
Print normalized stream events. |
pyflue skill new |
Create a Markdown skill. |
pyflue dev |
Start the local webhook server and dashboard. |
pyflue build |
Generate deployment files. |
pyflue deploy |
Generate files and run a supported provider CLI when available. |
Run The Dev Server¶
Open the dashboard:
Call the default file-based agent: