SaveSlot
by FluxVita
README.md
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/readme-banner-dark.png">
<source media="(prefers-color-scheme: light)" srcset="docs/assets/readme-banner-light.png">
<img alt="SaveSlot" src="docs/assets/readme-banner-light.png">
</picture>
# saveslot
English · [简体中文](README.zh-CN.md)
[](https://github.com/fluxvita/saveslot/actions/workflows/ci.yml)
[](https://www.npmjs.com/package/@fluxvita/saveslot)
[](LICENSE)
[](https://www.npmjs.com/package/@fluxvita/saveslot)
**saveslot is the open-source database all your AI tools share.** Tell one agent you ran 5 km; ask another how far you ran this week. Every value keeps its sources and its history, and the data stays yours.
## Get started
You need macOS or a Linux with glibc, and Node 24.22.1 or later on the 24 line, or 26.12.1 or later. musl distributions such as Alpine, `node:alpine` images included, are not supported yet.
```sh
npm install -g @fluxvita/saveslot
saveslot setup # pick the running template; it adds saveslot to the agents it finds, such as Claude Code and Codex
```
Then tell your agent:
> I ran 5 km this morning in 28 minutes, felt easy.
The first time, Claude Code asks whether the agent may use saveslot's tools; allow it. The run is now on record, with your words as its evidence: ask any connected agent about it, or run `saveslot query health.runs`.
Server mode, other hosts, scripts without a terminal and installing from source: [`docs/guide/11-deployment.md`](docs/guide/11-deployment.md) and [`docs/spec/06-cli.md`](docs/spec/06-cli.md) §3 (which also covers `EACCES` from `npm install -g` on Linux).
## What it is
- **Time is first-class.** saveslot stores the timeline of a thing: what it is now, how it got there, and the evidence behind every step.
- **Agents interpret, saveslot enforces.** The agent turns what you say into structured writes; saveslot only checks, records and executes, deterministically, and calls no model on its core path.
- **All state comes from one append-only log.** Everything else is derived from it, so an export is the log, and replaying it on any backend yields the same state.
```mermaid
flowchart LR
A1["Claude Code"] -- MCP --> S
A2["Codex"] -- MCP --> S
A3["Scripts, connectors"] -- HTTP --> S
P["You"] -- CLI --> S
subgraph S["saveslot"]
direction TB
L["Append-only log:<br/>every write with its evidence"] --> T["Current state:<br/>tables, history, conflicts"]
end
L -- "export" --> E["Your data, as the log"]
```
## How it differs
| | What it keeps | Who reads and writes it | Why a value changed |
|---|---|---|---|
| A conventional database | The current values | The programs you write | Not recorded |
| An agent's built-in memory | Things that were said | That one agent | Not recorded |
| saveslot | The timeline of each thing | All of your agents | Every value carries its sources and its history |
## What it connects to
| Host | How it is added |
|---|---|
| Claude Code | `saveslot setup` adds it |
| Codex | `saveslot setup` adds it |
| Cursor | `saveslot connect cursor` prints the configuration to paste |
| Claude Desktop | `saveslot connect claude-desktop` prints the configuration to paste |
| VS Code (GitHub Copilot Chat, Agent mode) | `saveslot connect vscode` prints the command to run (`code --add-mcp …`) |
Agents reach saveslot over MCP: locally through `saveslot mcp`, and in server mode over remote MCP, where most hosts sign in with OAuth and Cursor uses a token from `saveslot connect http` ([`06-cli.md`](docs/spec/06-cli.md) §3.2). Scripts and connectors use HTTP; people use the `saveslot` command.
## Status
The current version is **0.2**, with a local mode and a server mode (hosted or self-hosted). saveslot is before 1.0: interfaces may change between minor versions. Some parts of the design are not in 0.2 yet; see [what 0.2.0 provides](docs/spec/07-scope-v1.md#7-what-020-provides).
## Documentation
The documents are under `docs/`, in two directories, each with one job. The guide and the specification have two editions, English and Chinese: the Chinese one is under `docs/zh-CN/`, the English one at the same path under `docs/` without `zh-CN/`, and [`docs/README.md`](docs/README.md) lists them. The two editions are aligned in meaning: a change to one changes the other in the same pull request, and a difference between them is a defect, to be reported as an issue.
| Where | What |
|---|---|
| [`docs/guide/`](docs/guide/README.md) | **Guide**: for people meeting saveslot for the first time, read in order. The problem it solves, one example from start to finish, the core concepts, the architecture, why each mechanism is designed the way it is |
| [`docs/spec/`](docs/spec/README.md) | **Specification**: the complete definition of every rule, for implementing and reviewing, looked up as needed. Its contents and reading order are in [`docs/spec/README.md`](docs/spec/README.md) |
Where the guide and the specification differ, the specification holds.
To connect an agent or an application to saveslot, start at the [integration guide](docs/integration/README.md).
## Getting help and contributing
- Questions: [Discussions](https://github.com/fluxvita/saveslot/discussions); bugs and tasks: [Issues](https://github.com/fluxvita/saveslot/issues). See [`SUPPORT.md`](SUPPORT.md).
- Security issues: privately, as [`SECURITY.md`](SECURITY.md) says.
- Contributing: [`CONTRIBUTING.md`](CONTRIBUTING.md). Who decides what: [`GOVERNANCE.md`](GOVERNANCE.md). Everyone follows the [Code of Conduct](CODE_OF_CONDUCT.md).
## Development
Read the [development guide](docs/development.md) first: set up, run the checks, run one test, find where a change belongs, and rehearse a small fix. How the code is organized and why is in [guide chapter 12](docs/guide/12-contributing.md) and [spec `02-architecture.md`](docs/spec/02-architecture.md).
For agents: follow [`AGENTS.md`](AGENTS.md).
## License
[Apache-2.0](LICENSE), for the code and the documents alike. The name and logo are covered by the [trademark policy](TRADEMARKS.md).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues