Orchflow
Orchflow is a lightweight Python framework for readable multi-agent pipelines. It gives you sequential, parallel, and conditional orchestration without making you model everything as a graph.
from orchflow import Flow, StepContext, step
@step
async def research(input: str, context: StepContext) -> str:
return f"research about {input}"
@step
async def write(input: str, context: StepContext) -> str:
return f"draft based on {context.previous}"
result = await Flow([research, write]).run("agent orchestration")
print(result.output)
Watch the same flow while it runs:
async for event in Flow([research, write]).events("agent orchestration"):
print(event.type, event.step_name)
Why
Plain Python chaining is easy to read but thin on retries, parallelism, and tracing. Heavy graph runtimes are powerful but can feel like too much for simple pipelines. Orchflow aims for the middle: small API, predictable state, useful traces, and offline-testable agent workflows.
Features
- Sequential flows
- Parallel step groups
- Conditional routing
- Retry policies
- Shared run state
- Flat structured traces
- Live flow events with
Flow.events(...) - Public
Agentwith optional LiteLLM support - Offline testing helpers under
orchflow.testing
Install
pip install orchflow
Optional LiteLLM-backed agents:
pip install "orchflow[litellm]"
Development
uv sync --extra dev
uv run pytest
uv run ruff check
uv run ruff format --check
uv run pyright
Publishing
Publish to TestPyPI first with the manual GitHub Actions workflow in
.github/workflows/publish-testpypi.yml. Real PyPI releases are tag-based
through .github/workflows/publish-pypi.yml.
See docs/publishing.md for the full release process.
Source Of Truth
Project decisions live in AGENTS.md. Implementation follows that document.
Metadata
Release files for orchflow 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| orchflow-0.2.0.tar.gz | 153.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| orchflow-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 166.0 kB
Release files / orchflow-0.2.0.tar.gz
| Download URL | orchflow-0.2.0.tar.gz |
|---|---|
| Size | 153.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83c73fb8aaa33aedf525d928b1e80b7daaae54fdec1a52ab307220ad2f6138f8
|
|
BLAKE2b-256 checksum How to use checksums |
367c347c00741a94bab2ed9a37d0a895fe3a4b4e1eebc247fb8c4a854d628102
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 10, 2026.
Transparency logRelease files / orchflow-0.2.0-py3-none-any.whl
| Download URL | orchflow-0.2.0-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d666bdfd6fb483193bf124d379cfecad282a7016735661979d580a86a42b49fa
|
|
BLAKE2b-256 checksum How to use checksums |
fa741328474f7ad757730ab71421f4d7106dbe69c297fa3890228d2dc6b0d334
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 10, 2026.
Transparency log