swarmstate¶
Drop-in state backend for LangGraph, CrewAI & custom agent loops - Rust core, framework-agnostic, built for production.
pip install swarmstate
uv add swarmstate
Where swarmstate sits, and what the Rust core costs. Every number is reproducible - see Benchmarks.
No state lock-in¶
A framework-agnostic store with a stable, language-neutral (msgpack) format. Migrate between frameworks without losing accumulated state.
Fast checkpointing¶
A Rust core with fast serialization, O(1) immutable snapshots and incremental diffs. The GIL is released on the hot paths.
Deterministic routing¶
Rule-based "which agent is next" decisions resolved natively in Rust - no LLM tokens spent on transitions you can express as rules.
swarmstate does not compete with visible agent frameworks; it acts as low-level
infrastructure, much like engines such as DuckDB, ClickHouse, Arrow, or Polars can sit
underneath data applications without replacing them.
See the Guide to get started, or the API reference for the full surface.
Citing¶
If you use swarmstate in academic work, please cite it. GitHub's "Cite this
repository" button (from
CITATION.cff)
produces ready-made APA and BibTeX entries. To cite the archived software release, use
its Zenodo DOI (10.5281/zenodo.22067264) — it always resolves to the latest
version: