openclaw-aionis-memory
v0.1.1
Published
OpenClaw memory plugin powered by Aionis standalone or hosted API
Maintainers
Readme
OpenClaw Aionis Memory Plugin
Independent OpenClaw memory plugin that uses Aionis as the memory and policy backend.
This project is intentionally separate from the Aionis core repository so it can evolve independently.
What it does
- Auto-recall on
before_agent_startviaPOST /v1/memory/context/assemble - Auto-capture on
agent_endviaPOST /v1/memory/write - Auto policy feedback on successful turns via
POST /v1/memory/tools/feedback - Policy loop calls:
POST /v1/memory/tools/selectPOST /v1/memory/tools/feedback
- Manual tools available in agent runtime:
aionis_memory_searchaionis_memory_storeaionis_memory_contextaionis_policy_selectaionis_policy_feedback
10-second mem0 comparison
mem0: auto recall/capture (conversation memory)aionis: auto recall/capture + layered context + policy loopaionis: local auditable chain (commit_id/decision_id)
30-second setup
openclaw plugins install openclaw-aionis-memory && \
openclaw aionis-memory bootstrap && \
openclaw aionis-memory selfcheck --scope clawbot:selfcheckQuick start (local standalone)
- Start local Aionis standalone:
./bootstrap-local-standalone.shIf 3001 is occupied, the script auto-falls back to 3002-3010.
You can also force a port manually:
AIONIS_PORT=3002 ./bootstrap-local-standalone.shOptional: set a dedicated Docker volume name (recommended when running multiple standalone containers):
AIONIS_DATA_VOLUME=aionis-local-data ./bootstrap-local-standalone.shThis script writes the generated API key to:
~/.openclaw/plugins/aionis/aionis.env~/.openclaw/plugins/aionis/clawbot.env
- Build plugin:
npm install
npm run build- Install into OpenClaw from local path:
openclaw plugins install /Users/lucio/Desktop/aionis-openclaw-pluginOr install from a packaged tarball:
npm run -s release:tgz
openclaw plugins install ./artifacts/openclaw-aionis-memory-0.1.0.tgz- Configure plugin automatically (no manual JSON editing):
openclaw aionis-memory bootstrapIf 3001 is occupied:
openclaw aionis-memory bootstrap --port 3002Manual JSON equivalent:
{
"plugins": {
"entries": {
"openclaw-aionis-memory": {
"enabled": true,
"config": {
"baseUrl": "http://127.0.0.1:3001",
"apiKey": "<your-memory-api-key>",
"tenantId": "default",
"scopeMode": "project",
"scopePrefix": "clawbot",
"preset": "compact",
"autoRecall": true,
"autoCapture": true,
"autoPolicyFeedback": true
}
}
}
}
}Config keys
baseUrl: Aionis API base URLapiKey: API key sent asx-api-keytenantId: tenant idscope: default scopescopeMode:fixed,session, orprojectscopePrefix: prefix used for session/project derived scopespreset:compact(default),policy-first, orcustomautoRecall: inject memory context before each turnautoCapture: store dialogue summary after successful turnautoPolicyFeedback: writetools/feedbackafter successful turn and emit policy update logsincludeShadow: include shadow rules in policy callsstrictTools: strict mode fortools/selectrecallLimit: default limit for recall/contextcaptureMessageLimit: max recent messages capturedcontextCharBudget: clip injected context sizedebug: verbose plugin logs
Presets
compact(default): lower token budget, lower recall fan-out.policy-first: larger context and stricter routing defaults for tool stability.custom: disable preset defaults and use explicit numeric settings.
Notes
- This plugin targets Aionis endpoints with
/v1/memory/*paths. - If you see
404 Route ... not found, checkbaseUrland Aionis version. - If you see
400 invalid_request, verify payload shape and required fields. - On auto feedback, logs include:
policy switch reducedorpolicy switch detectedrule confidence updated (updated_rules=...)
Release flow
npm run -s release:preflight
npm run -s release:tgzFull checklist: RELEASE_CHECKLIST.md
User-facing full setup flow: USAGE_FULL.md
