Skip to main content

Stateous

CI PyPI Python Docs License

Stateous runs a process as a graph of states, and keeps every token of it durable.

You write the graph in Python. A control plane keeps every token and chooses each next state. A supervisor, on any computer, does the work and reports what happened. The supervisor never sees the graph. It knows only which states it serves, and which outcomes each state allows.

Status: alpha. The API can change before version 1.0.

Install

Stateous needs Python 3.12 or newer.

pip install stateous            # or: uv add stateous
pip install "stateous[phd]"     # also PHD, to run agents in routines

The control plane keeps its data in SQLite or in Postgres.

A short example

stateous init workflow orders                               # a starter workflow that compiles
stateous serve orders/build/orders.json                     # the control plane
stateous init supervisor orders/flow.py orders-supervisor   # contract.py and a stub for each state
stateous supervise orders-supervisor                        # runs your routines
stateous token start ORDER-1 '{"title": "first order"}'     # starts a token

Write the routines in orders-supervisor/ before you run supervise. examples/sdlc/ and examples/sdlc-supervisor/ are a larger example.

Stateous has no authentication. Keep a control plane that listens on a wider address behind a VPN or a proxy.

Documentation

The documentation is at stateouslabs.github.io/stateous. It explains the model, then tells you how to do the work, then gives the reference. To run the short example step by step, follow Getting started.

Licence

Apache License 2.0. See LICENSE and NOTICE.

Metadata

Release files for stateous 0.4.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 stateous 0.4.0
File Size Uploaded Provenance Actions
stateous-0.4.0.tar.gz 399.1 kB With provenance Details for stateous-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 582.2 kB

Release files / stateous-0.4.0.tar.gz

Download URL stateous-0.4.0.tar.gz
Size 399.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cd463fbcc8323889f94b70ded223060fe0dc5579225955b7481c734457f762f6
BLAKE2b-256 checksum
How to use checksums
67ce1e6671063cfb69136050bb6ee119c32a62f25121ea6009ec6d17f238262e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

Release files / stateous-0.4.0-py3-none-any.whl

Download URL stateous-0.4.0-py3-none-any.whl
Size 183.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8cb002d296a63bd16e7132fbbbbe1c24051ba117b5213d5f4bcd7ceeb89eb86
BLAKE2b-256 checksum
How to use checksums
3e6a5f693983bb1d1176447297672fc735a1e3f387b0ffcc772fd1cadf981546
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

Security for stateous 0.4.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for stateous-0.4.0.tar.gz

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 Nov 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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