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.

To let your coding agent build a workflow, give it the Stateous skill with stateous install skill DIRECTORY. See Build a workflow with an agent.

Licence

Apache License 2.0. See LICENSE and NOTICE.

Metadata

Release files for stateous 0.5.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.5.0
File Size Uploaded Provenance Actions
stateous-0.5.0.tar.gz 429.1 kB With provenance Details for stateous-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 728.2 kB

Release files / stateous-0.5.0.tar.gz

Download URL stateous-0.5.0.tar.gz
Size 429.1 kB
Tags Source
SHA-256 checksum
How to use checksums
94b68f1be5c7ae05d51dda6004560c644ec03fd4af404c3e3fd1b8dbe47c3fc5
BLAKE2b-256 checksum
How to use checksums
62e0aa00b8a9273bd968ee9e3498a5988c9c0651ce54a9a737aba1d35b8b31f6
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 5, 2026.

Transparency log

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

Download URL stateous-0.5.0-py3-none-any.whl
Size 299.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9ed59c591ae88365b59068b441d4d35ff30230c8c0a17b9b2786c83a3b8cf91
BLAKE2b-256 checksum
How to use checksums
8ad96b62d9ad53182f78c93e6f92920005d14eac2548ba6c20843598391bb08b
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 5, 2026.

Transparency log

Security for stateous 0.5.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.5.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 5, 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