StateJar docs

Claude Code

The StateJar plugin for Claude Code recalls the memory each prompt needs, captures your prompts with secrets removed, and adds StateJar's tools and six commands. Install it from the open-source marketplace with two commands.

What it does

The plugin is open source (MIT) in statejar-integrations.

Install

claude plugin marketplace add KING-OF-FLAME/statejar-integrations
claude plugin install statejar@statejar

Or, inside Claude Code: /plugin marketplace add KING-OF-FLAME/statejar-integrations, then /plugin install statejar@statejar.

The hooks need Python 3.8 or later as python3. They use the standard library only.

Set it up

Make a developer key on the API keys page. Then run /plugin configure statejar@statejar in Claude Code, or this from a shell:

echo '{"api_key": "sj_live_…"}' | claude plugin configure statejar@statejar --values-stdin

Claude Code keeps the key in your system's secure credential store. The other options:

OptionDefaultWhat it does
scopeclaude-codeThe scope in your account the plugin reads and writes. A new scope builds on your newest memory.
auto_capturetrueQueue your prompts and send them in batches.
recall_each_prompttrueAdd the memory each prompt needs, as one audited query per prompt.
api_urlhttps://api.statejar.com/api/v1The REST API the hooks call.
mcp_urlhttps://statejar.com/mcpThe MCP server Claude's tools use.

If you already ran statejar login (the statejar package on PyPI), the hooks use that key while the option is empty.

Check it works

  1. claude mcp list shows plugin:statejar:statejar: https://statejar.com/mcp (HTTP) - ✓ Connected.
  2. In a session, say "I'm Kavya, I live in Bengaluru and my laptop budget is 80000 rupees." Then end the session.
  3. In a new session, run /statejar:search what is my budget? or ask about laptops. The answer uses the budget and names the handle it came from.
  4. /statejar:status shows the scope, what is queued, and the last batch's status (202 when accepted).

What it sends

Troubleshooting

This page as Markdown: /docs/claude-code.md