@ontos-ai/knowhere-claw
v0.2.3
Published
OpenClaw plugin for Knowhere-powered document ingestion and automatic grounding.
Readme
Knowhere for OpenClaw
Knowhere is an OpenClaw plugin that parses documents and URLs with Knowhere, stores the extracted result package in OpenClaw state, and gives agents a browse-first toolset for grounded document work.
Quick mental model:
- Install the plugin
- Restart the Gateway
- Configure
plugins.entries."knowhere-claw".config - Ask an agent to read, search, or compare a document
- Let the bundled
knowhereandknowhere_memoryskills steer the agent toward the right tools
Where It Runs
This plugin runs inside the OpenClaw Gateway process.
If your agents talk to a remote Gateway, install and configure the plugin on the machine running that Gateway, then restart that Gateway.
What You Get
- Ingest local files or document URLs with Knowhere
- Store parsed result packages inside OpenClaw-managed state
- Preview document structure, search chunks, and inspect raw result files
- Reuse stored documents across
session,agent, orglobalscope - Ship bundled
knowhereandknowhere_memoryskills so agents prefer this toolchain for document-heavy tasks and knowledge-base lookups
Install
openclaw plugins install @ontos-ai/knowhere-clawRestart the Gateway afterwards.
Config
Set config under plugins.entries."knowhere-claw".config:
{
plugins: {
entries: {
"knowhere-claw": {
enabled: true,
config: {
// apiKey is optional
},
},
},
},
}Config notes:
apiKey: optional Knowhere API key. If omitted, the plugin falls back toKNOWHERE_API_KEYand any API key previously stored withknowhere_set_api_key.- If no API key is available when the agent first needs Knowhere, the plugin
guides the user to the Knowhere API key page at
https://knowhereto.ai/api-keys. baseUrl: optional Knowhere API base URL. Falls back toKNOWHERE_BASE_URLand defaults tohttps://api.knowhereto.ai.storageDir: optional directory for persisted parsed documents. By default, the plugin stores data under the OpenClaw state directory forknowhere-claw.scopeMode: document sharing boundary. Supported values aresession,agent, andglobal. If omitted, the plugin defaults tosession.pollIntervalMs,pollTimeoutMs,requestTimeoutMs,uploadTimeoutMs: optional tuning for job polling, API calls, and large uploads.- An explicit
storageDirsuch as/home/<user>/.openclaw/plugin-state/knowheremakes stored result packages easier to inspect, back up, or clean up.
How OpenClaw Uses It
Once the plugin is enabled, you can ask an OpenClaw agent to:
- summarize a local document
- read a document URL
- find a table or section in a previously ingested document
- compare a new document with documents already stored in scope
The bundled knowhere skill teaches agents to use the knowhere_* tools
instead of raw file reads when document parsing matters.
The bundled knowhere_memory skill teaches agents to treat previously parsed
Knowhere content as a knowledge base when users ask to search their materials,
look something up, or summarize what data they already have.
If you use skill filters or allowlists in OpenClaw, keep the bundled
knowhere and knowhere_memory skills enabled or the tools will load without
their intended usage guidance.
If your agent runtime uses a tool allowlist, include knowhere_* so agents can
actually call the plugin tools.
Scope And Storage
scopeMode controls who can reuse parsed documents:
session: only the current session can reuse the stored documentsagent: all conversations for the same agent can reuse themglobal: all agents on the same Gateway can reuse them
Within each scope, the plugin keeps:
- an
index.jsoncache of stored document summaries - per-document metadata and browse indexes
- the extracted Knowhere result package under
result/
Common Workflow
- Provide a file path or URL to the agent.
- The agent ingests it into Knowhere. By default this starts parsing asynchronously and returns a job ID; when the current turn needs the parsed result immediately, the agent can call
knowhere_ingest_documentwithblockUntilComplete: true. - Follow-up questions reuse stored results from the current scope.
- When needed, the agent can preview structure, search chunks, read raw result files, or clear stored documents.
Troubleshooting
- Missing API key:
apiKeyconfig is optional. You can setplugins.entries."knowhere-claw".config.apiKey, exportKNOWHERE_API_KEY, or let the plugin guide the user tohttps://knowhereto.ai/api-keysand store the key withknowhere_set_api_key. - Documents are not shared between conversations: change
scopeModefromsessiontoagentorglobal. - The plugin is enabled but agents do not reach for Knowhere: check that the
bundled
knowhereskill is not filtered out. - Large documents time out: increase
pollTimeoutMsoruploadTimeoutMs.
Developer Docs
Contributor-oriented architecture, workflow, and packaging notes live in
DEVELOPMENT.md at the repository root.
Release-process details for maintainers live in
docs/release-workflow.md.
