@sweetsophia/openclaw-noosphere-memory
v1.10.0
Published
OpenClaw plugin for Noosphere: agent memory tools, Noosphere recall, draft memory saving, and automatic prompt-time memory injection.
Readme
Noosphere Memory for OpenClaw
OpenClaw plugin for Noosphere memory over HTTP. It provides explicit memory tools, optional prompt-time auto-recall, and an optional shared memory corpus supplement.
Install
Use OpenClaw's plugin installer:
openclaw plugins install npm:@sweetsophia/openclaw-noosphere-memoryFor the full local Noosphere + OpenClaw setup, use the repository installer:
curl -fsSL https://raw.githubusercontent.com/SweetSophia/noosphere/master/install-openclaw.sh | bashConfiguration
Store API keys outside repository files. The plugin accepts a default API key and per-agent keys:
{
plugins: {
entries: {
"noosphere-memory": {
enabled: true,
config: {
baseUrl: "http://127.0.0.1:6578",
apiKey: { source: "file", provider: "noosphere-memory", id: "/apiKey" },
autoRecall: true,
autoProviders: ["noosphere"],
maxInjectedMemories: 10,
maxInjectedTokens: 1000,
recallInjectionPosition: "system-prepend",
autoRecallTimeoutMs: 5000
},
hooks: {
allowPromptInjection: true
}
}
}
}
}For multi-agent installs, prefer environment variables:
NOOSPHERE_API_KEY_CYLENA=noo_...
NOOSPHERE_API_KEY_SHODAN=noo_...The plugin resolves keys in this order:
NOOSPHERE_API_KEY_<AGENT_ID>config.apiKeys[agentId]- default
config.apiKey/OPENCLAW_NOOSPHERE_API_KEY/NOOSPHERE_API_KEY
Use OPENCLAW_NOOSPHERE_* for OpenClaw-wide defaults on machines that also run
Opencode, Kilo Code, or Hermes. The generic NOOSPHERE_* variables remain
compatibility fallbacks.
Tools
noosphere_recallsearches durable memory.noosphere_getretrieves one memory result by canonical ref or provider/id.noosphere_savecreates a draft memory candidate.noosphere_article_createcreates a curated wiki article.noosphere_topicslists visible topics for the caller's scopes.noosphere_topic_createcreates a topic or subtopic. It requires an ADMIN Noosphere API key because topic taxonomy changes affect every caller.noosphere_statuschecks health/status. Full memory status requires ADMIN.
Scoped API keys can only assign scopes they already have. When a scoped key saves
without restrictedTags, Noosphere defaults the saved content to that key's
allowed scopes.
A narrow key is a READ or WRITE key whose allowedScopes contain only the agent,
project, or corpus segment that should be visible to that caller. Avoid using an
ADMIN key or a key with * scope for routine agent recall/save operations.
Auto-Recall
Set autoRecall: true and hooks.allowPromptInjection: true to enable
before_prompt_build recall injection. The plugin config is the local enable
gate: Noosphere DB settings can further disable or tune auto-recall, but cannot
turn it on when the plugin config has autoRecall: false.
Auto-recall resolves the API key per agent for each hook invocation. This keeps prompt-time recall within the same scope boundaries as explicit tool calls.
Corpus Supplement
The shared memory corpus supplement is disabled by default because some OpenClaw hosts do not provide per-agent identity to corpus calls. To intentionally use the default API key for shared corpus access, set:
{
config: {
allowDefaultCorpusSupplement: true
}
}Use a narrow default key if you enable this. The default corpus key should be READ-only when the shared corpus is used for search only, and its scopes should exclude private agent/project memory that other agents must not see.
Release Tags
Package releases use package-specific tag prefixes so independent packages do not trigger each other's publish jobs:
v-openclaw-1.5.7publishes@sweetsophia/openclaw-noosphere-memoryv-opencode-0.1.0publishes@sweetsophia/opencode-noosphere-memory
New plugin packages should add their own v-{package}-* tag prefix in CI before
they are published.
