Statewave Documentation

June 25, 2026 ยท View on GitHub

CI License: Apache-2.0

Statewave is the open-source memory runtime for AI agents. It compiles raw events into ranked, token-bounded context bundles with full provenance โ€” so your AI stops forgetting across sessions. Self-hosted on Postgres, no vendor lock-in.

This repo contains the architecture docs, product specs, API contracts, and development coordination for the Statewave workspace.

This repo contains no production runtime code.

๐Ÿ“‹ Issues & feature requests: statewave/issues (centralized tracker)

Install

Fastest โ€” one line to a running server:

# macOS / Linux
npx @statewavedev/statewave
# or
curl -fsSL https://www.statewave.ai/install | sh
# Windows (PowerShell)
irm https://www.statewave.ai/install.ps1 | iex

Prefer to run it yourself? The Getting Started guide walks through the manual git clone + docker compose up -d path in about 5 minutes.

๐ŸŽฏ Try it

The interactive comparison demo is embedded directly in the website at statewave.ai โ€” open the chat widget to see two identical AI agents answer side by side, one stateless and one backed by Statewave.

Got a question about Statewave? Ask Statewave Support โ†’ โ€” a docs-grounded agent that answers from this very docs corpus and cites the pages it used (read-only; built on the docs memory pack).

Contents

Community

GitHub Discussions live on the core repo: statewave/discussions.

ADRs

Ecosystem

ProjectDescription
ServerCore server โ€” API, domain model, DB, compilation, search
Python SDKpip install statewave โ€” sync + async client
TypeScript SDKnpm install @statewavedev/sdk โ€” fetch-based client
Connectors@statewavedev/connectors-* โ€” GitHub, Markdown/docs, MCP server, modular packages
DocsThis repo โ€” architecture, specs, ADRs (no runtime code)
ExamplesRunnable examples, evals, benchmarks
Website + demoMarketing website + embedded comparison demo (statewave.ai)
AdminOperator console โ€” system health, jobs, usage (read-only)

Current status

v1.3.0 โ€” hybrid retrieval (pgvector + Postgres BM25, on by default with a hybrid=false opt-out) and compile-pipeline recall improvements (dedup/reconcile), plus provider-aware LLM key routing. The /v1/* API contract and governance surfaces (HMAC-signed receipts, receipt-driven replay, per-memory sensitivity labels + declarative YAML policy, opt-in detector-suggested labels, per-region data residency) remain stable, as do the v1.2 additions (dynamic settings endpoint for topology-agnostic hot-reload, a production-readiness probe, SSRF + DNS-rebinding protection on the webhook URL probe, LIKE metachar escaping in admin search, and six admin inspection endpoints). Both SDKs ship alongside: statewave (PyPI) v1.2.0 adds per-call timeout overrides and CancelledError propagation; @statewavedev/sdk (npm) v1.2.0 adds AbortSignal support on all HTTP methods. See roadmap and CHANGELOG.