# statewave

> statewave is an open-source agent framework for knowledge and memory. Self-hosted memory runtime giving AI agents persistent, auditable context across sessions. It is available on API, CLI, Self-hosted and Web.

- **Kind:** Agent
- **Pricing:** Open source
- **Platforms:** API, CLI, Self-hosted, Web
- **Website:** https://statewave.ai
- **Repository:** https://github.com/smaramwbc/statewave
- **GitHub stars:** 257
- **License:** Apache-2.0
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-12-01

## About

Statewave records raw events such as chats, tool calls and tickets as append-only episodes, then compiles them into typed memories that keep their source links. When an agent needs context, it requests a ranked bundle capped at a token budget, and that bundle can carry a signed receipt listing which memories shaped the answer.

Everything is organised around subjects such as a user, account, repository or agent, so each customer or project gets its own timeline. Memories can be labelled for sensitivity, and YAML policies can deny or redact them per caller and tenant, with a log-only mode for testing before enforcement.

It runs on your own PostgreSQL with pgvector and exposes a REST API plus Python and TypeScript clients. Teams building support desks, coding assistants or multi-agent systems that must remember prior decisions will find it most relevant. Connectors for GitHub, Slack, Zendesk and others feed events in, and an MCP server lets coding assistants query the memory directly.

## Features

- **Episode ingestion:** Stores raw events per subject in an append-only log that can be recompiled later.
- **Compiled typed memories:** Turns episodes into profile facts, preferences and summaries with confidence scores and validity windows.
- **Token-bounded context bundles:** Returns ranked context sized to a token budget, ready to insert into a prompt.
- **Signed audit receipts:** Records which memories influenced each answer, with HMAC-SHA256 signatures and replay support.
- **Policy and sensitivity labels:** Applies YAML deny or redact rules to memories tagged as personal, financial or secret data.
- **Multi-tenant isolation:** Separates data by tenant header and can pin tenants to a region.
- **Source connectors:** Feeds events from GitHub, Slack, Zendesk, Discord and other tools into memory.

## Good for

- Recognise a returning support customer and pick up open issues from earlier sessions
- Keep architecture decisions and team conventions available to a coding assistant across sessions
- Let several agents share one memory per customer while policies limit what each can see
- Carry user preferences and profile facts into a personal assistant between conversations
- Audit which stored memories an agent relied on when it gave a particular answer

## FAQ

### What license is Statewave released under?

The server and SDKs are licensed under Apache-2.0, which permits use in proprietary and hosted products.

### Where is the data stored?

Episodes and compiled memories are stored in your own PostgreSQL database with pgvector, so you run the infrastructure yourself.

### Does statewave need a GPU?

The API process is CPU-only. A GPU is only needed if you self-host an LLM compiler or embedding model.

### Which LLM providers are supported?

Any provider supported by LiteLLM, which covers over 100 services including OpenAI, Anthropic, Azure, Bedrock and Ollama.

### How is statewave different from a vector database?

Beyond nearest-neighbour search, it adds typed memories, provenance back to source episodes, validity windows, conflict resolution and token-bounded context assembly.

### Is statewave free?

Yes. statewave is open source, so you can use and self-host it for free.

### What are the best alternatives to statewave?

The closest alternatives to statewave are hindsight, OpenViking, memU, GitHub and CheeseDB.

## Where this comes from

- Description: written from the project's README and the project's website.

## Alternatives

- [hindsight](https://ai-powered.com/agents/hindsight-2): hindsight is an open-source agent framework for knowledge and memory.
- [OpenViking](https://ai-powered.com/agents/openviking): OpenViking is an open-source agent for knowledge and memory.
- [memU](https://ai-powered.com/agents/memu): memU is a hosted agent for knowledge and memory.
- [GitHub](https://ai-powered.com/agents/github-13): GitHub is an open-source agent framework for developer tools.
- [CheeseDB](https://ai-powered.com/agents/cheesedb): CheeseDB is an open-source agent framework for databases.
- [GitHub](https://ai-powered.com/agents/github-21): GitHub is a freemium hosted agent for developer tools.
- [vcc-hybrid](https://ai-powered.com/agents/vcc-hybrid): vcc-hybrid is an open-source agent for knowledge and memory.
- [second-brain-agent](https://ai-powered.com/agents/second-brain-agent): second-brain-agent is an open-source agent for knowledge and memory.

---
Source: https://ai-powered.com/agents/statewave
