docs/cli/wiki.md
openclaw wikiInspect and maintain the memory-wiki vault.
Provided by the bundled memory-wiki plugin.
Related:
Use openclaw wiki when you want a compiled knowledge vault with:
openclaw wiki status
openclaw wiki doctor
openclaw wiki init
openclaw wiki ingest ./notes/alpha.md
openclaw wiki compile
openclaw wiki lint
openclaw wiki search "alpha"
openclaw wiki search "who should I ask about Teams?" --mode route-question
openclaw wiki get entity.alpha --from 1 --lines 80
openclaw wiki apply synthesis "Alpha Summary" \
--body "Short synthesis body" \
--source-id source.alpha
openclaw wiki apply metadata entity.alpha \
--source-id source.alpha \
--status review \
--question "Still active?"
openclaw wiki bridge import
openclaw wiki unsafe-local import
openclaw wiki obsidian status
openclaw wiki obsidian search "alpha"
openclaw wiki obsidian open syntheses/alpha-summary.md
openclaw wiki obsidian command workspace:quick-switcher
openclaw wiki obsidian daily
wiki statusInspect current vault mode, health, and Obsidian CLI availability.
Use this first when you are unsure whether the vault is initialized, bridge mode is healthy, or Obsidian integration is available.
When bridge mode is active and configured to read memory artifacts, this command queries the running Gateway so it sees the same active memory plugin context as agent/runtime memory.
wiki doctorRun wiki health checks and surface configuration or vault problems.
When bridge mode is active and configured to read memory artifacts, this command queries the running Gateway before building the report. Disabled bridge imports and bridge configs that do not read memory artifacts remain local/offline.
Typical issues include:
wiki initCreate the wiki vault layout and starter pages.
This initializes the root structure, including top-level indexes and cache directories.
wiki ingest <path-or-url>Import content into the wiki source layer.
Notes:
ingest.allowUrlIngestwiki compileRebuild indexes, related blocks, dashboards, and compiled digests.
This writes stable machine-facing artifacts under:
.openclaw-wiki/cache/agent-digest.json.openclaw-wiki/cache/claims.jsonlIf render.createDashboards is enabled, compile also refreshes report pages.
wiki lintLint the vault and report:
Run this after meaningful wiki updates.
wiki search <query>Search wiki content.
Behavior depends on config:
search.backend: shared or localsearch.corpus: wiki, memory, or all--mode: auto, find-person, route-question, source-evidence, or
raw-claimUse wiki search when you want wiki-specific ranking or provenance details.
For one broad shared recall pass, prefer openclaw memory search when the
active memory plugin exposes shared search.
Search modes help the agent choose the right surface:
find-person: aliases, handles, socials, canonical IDs, and person pagesroute-question: ask-for/best-used-for hints and relationship contextsource-evidence: source pages and structured evidence fieldsraw-claim: structured claim text with claim/evidence metadataExamples:
openclaw wiki search "bgroux" --mode find-person
openclaw wiki search "who knows Teams rollout?" --mode route-question
openclaw wiki search "maintainer-whois" --mode source-evidence
openclaw wiki search "strong route Teams" --mode raw-claim --json
Text output includes Claim: and Evidence: lines when a result matches a
structured claim. JSON output additionally exposes matchedClaimId,
matchedClaimStatus, matchedClaimConfidence, evidenceKinds, and
evidenceSourceIds for agent-side drilldown.
wiki get <lookup>Read a wiki page by id or relative path.
Examples:
openclaw wiki get entity.alpha
openclaw wiki get syntheses/alpha-summary.md --from 1 --lines 80
wiki applyApply narrow mutations without freeform page surgery.
Supported flows include:
This command exists so the wiki can evolve safely without manually editing managed blocks.
wiki bridge importImport public memory artifacts from the active memory plugin into bridge-backed source pages.
Use this in bridge mode when you want the latest exported memory artifacts
pulled into the wiki vault.
For active bridge artifact reads, the CLI routes the import through Gateway RPC so the import uses the runtime memory plugin context. If bridge imports are disabled or artifact reads are turned off, the command keeps the local/offline zero-import behavior.
wiki unsafe-local importImport from explicitly configured local paths in unsafe-local mode.
This is intentionally experimental and same-machine only.
wiki obsidian ...Obsidian helper commands for vaults running in Obsidian-friendly mode.
Subcommands:
statussearchopencommanddailyThese require the official obsidian CLI on PATH when
obsidian.useOfficialCli is enabled.
wiki search + wiki get when provenance and page identity matter.wiki apply instead of hand-editing managed generated sections.wiki lint before trusting contradictory or low-confidence content.wiki compile after bulk imports or source changes when you want fresh
dashboards and compiled digests immediately.wiki bridge import when bridge mode depends on newly exported memory
artifacts.openclaw wiki behavior is shaped by:
plugins.entries.memory-wiki.config.vaultModeplugins.entries.memory-wiki.config.search.backendplugins.entries.memory-wiki.config.search.corpusplugins.entries.memory-wiki.config.bridge.*plugins.entries.memory-wiki.config.obsidian.*plugins.entries.memory-wiki.config.render.*plugins.entries.memory-wiki.config.context.includeCompiledDigestPromptSee Memory Wiki plugin for the full config model.