RememberStackremember.dev/docs

Quickstart

By the end of this page you will have sent a document to RememberStack, waited for it to be processed, and asked a question that it answers with a fact and the passage behind it.

RememberStack is the open-source memory engine. The client and CLI are available for Python, with the Node.js package built from the same source.

1. Get an endpoint

You need Docker Engine 28.0.0 or later with Compose, and an OpenRouter API key. On an older Docker Engine, turn on API authentication before the first start; see Requirements.

git clone https://github.com/writeitai/remember-stack.git
cd remember-stack
cp .env.example .env
printf 'REMEMBERSTACK_POSTGRES_PASSWORD=%s\nREMEMBERSTACK_MINIO_ACCESS_KEY=%s\nREMEMBERSTACK_MINIO_SECRET_KEY=%s\nREMEMBERSTACK_SELFHOST_DEPLOYMENT_ID=%s\n' \
  "$(openssl rand -hex 32)" "$(openssl rand -hex 12)" "$(openssl rand -hex 32)" \
  "$(openssl rand -hex 16 | sed -E 's/^(.{8})(.{4}).(.{3}).(.{3})(.{12})$/\1-\2-4\3-8\4-\5/')" >> .env
# edit .env: set REMEMBERSTACK_OPENROUTER_API_KEY
docker compose up -d --build

The printf line generates the database password, the object-store credentials and the deployment id; Compose refuses to start without them. --build builds the engine and PostgreSQL images from this checkout, so they match each other, and the first start runs migrations. When docker compose ps shows api as healthy, the endpoint is http://localhost:8000. No token is needed by default, because the API is reachable from this machine only. To open it to others, see Before you expose it.

2. Choose a client

The current release is v0.22.14 (on PyPI).

3. Point the client at your endpoint

export REMEMBER_API_URL=http://localhost:8000

4. Send a document

Save this as standup.md:

# Stand-up, 17 September 2026
 
John said the billing migration moves from June to October, because the
invoice exporter needs a rewrite. Dana agreed and will tell finance.
John owns the invoice exporter.

Send it to your deployment.

uvx remember ingest standup.md \
  --source-kind file --source-ref notes/standup.md \
  --source-modified-at 2026-09-17T09:30:00+00:00

created is true the first time. Send the same bytes again and it is false. Nothing new is stored.

5. Wait until it is processed

Use the version_id from your ingest result in place of VERSION_ID.

uvx remember readiness --wait VERSION_ID

Processing reads, structures and connects the document. It takes minutes. The CLI and SDKs check every 15 seconds for up to 30 minutes by default. See Wait until a document is queryable.

6. Ask

uvx remember query "Who owns the invoice exporter?"

The result is an envelope. Look for:

  • facts: each fact, such as John owns the invoice exporter, with its validity (when it held) and evidence_count;
  • evidence: the claims behind each fact, with the document, the passage and its character positions;
  • negative: set instead of facts when the memory knows nothing about what you asked.

Reading a result explains every field.

Next