Installation¶
swarmstate ships prebuilt cp39-abi3 wheels for Linux (x86_64/aarch64),
macOS (x86_64/arm64) and Windows (amd64). One wheel serves Python 3.9+ and no Rust
compiler is required to install.
Optional extras¶
Integrations use lazy imports and are pulled in via extras:
pip install "swarmstate[langgraph]" # LangGraph checkpointer adapter
pip install "swarmstate[crewai]" # CrewAI state/memory adapter
pip install "swarmstate[redis]" # Redis backend (persistent, networked)
pip install "swarmstate[disk]" # SQLite disk backend (persistent, no server)
pip install "swarmstate[postgres]" # Postgres backend (persistent, networked)
pip install "swarmstate[otel]" # OpenTelemetry metrics on checkpoint ops
pip install "swarmstate[all]" # everything above
# with uv
uv add "swarmstate[langgraph]"
uv add "swarmstate[all]"
Requirements¶
| Python | >= 3.9 |
| Platforms | Linux, macOS, Windows |
| Compiler | not required (prebuilt wheels) |
From source (development)¶
Building from source requires a Rust toolchain and maturin: