Stateous
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
Metadata
Release files for stateous 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stateous-0.2.1.tar.gz | 304.3 kB | With provenance | Details for stateous-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stateous-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for stateous-0.2.1-py3-none-any.whl |
Total release size: 442.4 kB
Release files / stateous-0.2.1.tar.gz
| Download URL | stateous-0.2.1.tar.gz |
|---|---|
| Size | 304.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc615a722e7f72bdb0bf63252fdc8059822f694e77510efda4aab8163080f57e
|
|
BLAKE2b-256 checksum How to use checksums |
d8994502b6da94c589a9326e4a4c8329054eac579d777c7d0ff433f6323e3d4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logRelease files / stateous-0.2.1-py3-none-any.whl
| Download URL | stateous-0.2.1-py3-none-any.whl |
|---|---|
| Size | 138.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf2a0ebf28b13f0a8eb5ed37e624f2ffcb5d2a78b649f028486b4fe0e0a31cf6
|
|
BLAKE2b-256 checksum How to use checksums |
e9a549f9710a0905ab518dcdc6c84c009a015a3d7a7072e58b291c5a2183eb1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logSecurity for stateous 0.2.1
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for stateous-0.2.1.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 Oct 17, 2026.
Transparency logA 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.