StateJar docs

OpenClaw

The openclaw-statejar plugin takes OpenClaw's memory slot. It recalls the memory each turn needs, captures your messages with secrets removed, and answers OpenClaw's own memory tools from StateJar.

What it does

StateJar takes OpenClaw's memory slot (plugins.slots.memory).

The plugin is openclaw-statejar on npm, open source (MIT) in statejar-integrations.

Install

You need OpenClaw 2026.10.5 or later, with Node 24.16 or later.

openclaw plugins install openclaw-statejar
openclaw statejar init

init does three things, and never writes your key to OpenClaw's config:

Set it up

Make a developer key on the API keys page and put it in the environment the Gateway runs in:

export STATEJAR_API_KEY="sj_live_…"        # macOS, Linux
setx STATEJAR_API_KEY "sj_live_…"          # Windows: a new terminal picks it up

The other options live in plugins.entries.statejar.config (openclaw config set …):

OptionDefaultWhat it does
scopeopenclawThe scope in your account the plugin reads and writes. A new scope builds on your newest memory.
autoRecalltrueAdd the memory each turn needs, as one audited query per turn.
autoCapturetrueQueue your messages and send them in batches.
apiUrlhttps://api.statejar.com/api/v1The REST API the plugin calls.

If STATEJAR_API_KEY is empty, the plugin uses the key that statejar login (the statejar package on PyPI) keeps.

Check it works

  1. openclaw plugins inspect statejar --runtime --json shows the plugin loaded, kind: memory, with its four tools.
  2. openclaw statejar status shows the scope, what is queued, and the last batch's status (202 when accepted).
  3. Tell your agent "I'm Kavya, I live in Bengaluru and my laptop budget is 80000 rupees."
  4. In a new session, ask "what is my laptop budget?". The answer uses the budget, and openclaw statejar search what is my budget prints the memory with its handle.

What it sends

Troubleshooting

This page as Markdown: /docs/openclaw.md