openclaw - 💡(How to fix) Fix Bug: sqlite-vec missing from plugin-runtime-deps — memory indexing completely broken [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#76097Fetched 2026-05-03 04:42:26
View on GitHub
Comments
2
Participants
3
Timeline
7
Reactions
2
Timeline (top)
commented ×2cross-referenced ×2closed ×1labeled ×1

Description sqlite-vec is not declared in plugin-runtime-deps/package.json, so npm install never installs it. This causes the memory vector indexing to fail silently.

Root Cause

CopyVector: unavailable Indexed: 0/31 files · 0 chunks Root Cause sqlite-vec is missing from plugin-runtime-deps/package.json dependencies. The dynamic import('sqlite-vec') fails because the module simply doesn't exist. This is not an ESM/CJS compatibility issue — installing it manually works immediately:

RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

Yes

Summary

Description sqlite-vec is not declared in plugin-runtime-deps/package.json, so npm install never installs it. This causes the memory vector indexing to fail silently.

Steps to reproduce

Symptoms Gateway log:

Copyimport('sqlite-vec') 失败 Memory page in ClawPanel:

CopyVector: unavailable Indexed: 0/31 files · 0 chunks Root Cause sqlite-vec is missing from plugin-runtime-deps/package.json dependencies. The dynamic import('sqlite-vec') fails because the module simply doesn't exist. This is not an ESM/CJS compatibility issue — installing it manually works immediately:

powershellCopycd "$env:APPDATA\npm\node_modules\openclaw\plugin-runtime-deps" npm install [email protected]

restart Gateway → Vector: available, indexing works

Fix Add to plugin-runtime-deps/package.json:

jsonCopy"sqlite-vec": "0.1.7" Impact Affects all platforms (Windows/macOS/Linux) Memory context indexing is completely non-functional Manual fix gets overwritten on next OpenClaw update Environment OS: Windows 11 x86_64 Node.js: v24.14.1 OpenClaw: 2026.4.27 Embedding: Ollama + mxbai-embed-large

Expected behavior

Symptoms Gateway log:

Copyimport('sqlite-vec') 失败 Memory page in ClawPanel:

CopyVector: unavailable Indexed: 0/31 files · 0 chunks Root Cause sqlite-vec is missing from plugin-runtime-deps/package.json dependencies. The dynamic import('sqlite-vec') fails because the module simply doesn't exist. This is not an ESM/CJS compatibility issue — installing it manually works immediately:

powershellCopycd "$env:APPDATA\npm\node_modules\openclaw\plugin-runtime-deps" npm install [email protected]

restart Gateway → Vector: available, indexing works

Fix Add to plugin-runtime-deps/package.json:

jsonCopy"sqlite-vec": "0.1.7" Impact Affects all platforms (Windows/macOS/Linux) Memory context indexing is completely non-functional Manual fix gets overwritten on next OpenClaw update Environment OS: Windows 11 x86_64 Node.js: v24.14.1 OpenClaw: 2026.4.27 Embedding: Ollama + mxbai-embed-large

Actual behavior

Symptoms Gateway log:

Copyimport('sqlite-vec') 失败 Memory page in ClawPanel:

CopyVector: unavailable Indexed: 0/31 files · 0 chunks Root Cause sqlite-vec is missing from plugin-runtime-deps/package.json dependencies. The dynamic import('sqlite-vec') fails because the module simply doesn't exist. This is not an ESM/CJS compatibility issue — installing it manually works immediately:

powershellCopycd "$env:APPDATA\npm\node_modules\openclaw\plugin-runtime-deps" npm install [email protected]

restart Gateway → Vector: available, indexing works

Fix Add to plugin-runtime-deps/package.json:

jsonCopy"sqlite-vec": "0.1.7" Impact Affects all platforms (Windows/macOS/Linux) Memory context indexing is completely non-functional Manual fix gets overwritten on next OpenClaw update Environment OS: Windows 11 x86_64 Node.js: v24.14.1 OpenClaw: 2026.4.27 Embedding: Ollama + mxbai-embed-large

OpenClaw version

2026.4.27

Operating system

Windows 11

Install method

npm

Model

MiMo-v2.5-pro

Provider / routing chain

openclaw

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

Add "sqlite-vec": "0.1.7" to plugin-runtime-deps/package.json to fix the memory vector indexing issue.

Guidance

  • The root cause is that sqlite-vec is missing from plugin-runtime-deps/package.json dependencies, causing the dynamic import to fail.
  • To verify the fix, check the Gateway log for the import('sqlite-vec') failure message and the Memory page in ClawPanel for the "Vector: unavailable" message.
  • After adding the dependency, restart the Gateway to ensure the fix takes effect.
  • Note that manual installation of sqlite-vec using npm install [email protected] also works, but this fix will be overwritten on the next OpenClaw update.

Example

No code snippet is necessary, as the fix involves adding a dependency to package.json.

Notes

This fix should apply to all platforms (Windows, macOS, Linux) and affects the memory context indexing functionality.

Recommendation

Apply the workaround by adding the sqlite-vec dependency to plugin-runtime-deps/package.json, as this is a straightforward fix that addresses the root cause of the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Symptoms Gateway log:

Copyimport('sqlite-vec') 失败 Memory page in ClawPanel:

CopyVector: unavailable Indexed: 0/31 files · 0 chunks Root Cause sqlite-vec is missing from plugin-runtime-deps/package.json dependencies. The dynamic import('sqlite-vec') fails because the module simply doesn't exist. This is not an ESM/CJS compatibility issue — installing it manually works immediately:

powershellCopycd "$env:APPDATA\npm\node_modules\openclaw\plugin-runtime-deps" npm install [email protected]

restart Gateway → Vector: available, indexing works

Fix Add to plugin-runtime-deps/package.json:

jsonCopy"sqlite-vec": "0.1.7" Impact Affects all platforms (Windows/macOS/Linux) Memory context indexing is completely non-functional Manual fix gets overwritten on next OpenClaw update Environment OS: Windows 11 x86_64 Node.js: v24.14.1 OpenClaw: 2026.4.27 Embedding: Ollama + mxbai-embed-large

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Bug: sqlite-vec missing from plugin-runtime-deps — memory indexing completely broken [2 comments, 3 participants]