Skip to main content

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)

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
  • Public Agent with 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, then publish to PyPI with .github/workflows/publish-pypi.yml.

Source Of Truth

Project decisions live in AGENTS.md. Implementation follows that document.

Metadata

Release files for orchflow 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orchflow 0.1.0
File Size Uploaded
orchflow-0.1.0.tar.gz 148.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for orchflow 0.1.0
File Interpreter ABI Platform
orchflow-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 159.2 kB

Release files / orchflow-0.1.0.tar.gz

Download URL orchflow-0.1.0.tar.gz
Size 148.1 kB
Tags Source
SHA-256 checksum
How to use checksums
57eda9a17e5b8161e09765e34aa8cd32f2faea078e2c565bd57be733aabdaf28
BLAKE2b-256 checksum
How to use checksums
80ecde89ae9c0dceea96e33c74fc782a75cfac274a66473f10ca4d11eff0faf5
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 3, 2026.

Transparency log

Release files / orchflow-0.1.0-py3-none-any.whl

Download URL orchflow-0.1.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe409811b39f05203d98e8fe84c98885d9a44ffb86be9191681e1d0c3a57ae42
BLAKE2b-256 checksum
How to use checksums
9cee251a987c59703c6554ccdfab2a78414bcaa039880604dcd1ae8bde8a52d0
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 3, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page