This repository has been archived as it was a proof of concept for context testing. The actively maintained project is: devalexanderdaza/ai-vector-memories.
For ongoing development, contributions, or usage, please refer to the new repository.
Local-first memory plugin for OpenCode with automatic activation and Node.js runtime guards.
npm install @ruvector/opencode-memoryFor full local vector search, also install the optional peer dependency:
npm install @ruvector/coreAlternative package managers:
pnpm add @ruvector/opencode-memory @ruvector/core
# or
yarn add @ruvector/opencode-memory @ruvector/coreOn the next OpenCode session, the plugin can activate automatically using default settings (no manual bootstrap).
This package requires Node.js >=22.0.0.
If an older version is used, activation returns an actionable message:
ruvector-memory requires Node.js >=22.0.0. Current: {version}. Please upgrade: https://nodejs.org
import { activatePlugin, deactivatePlugin } from "@ruvector/opencode-memory";Optional configuration file path:
.opencode/ruvector_memory_config.yaml
Example:
db_path: .opencode/custom.db
cache_size: 1024
log_level: debug
preload_top_memories: 8See BUILD.md for scripts and contributor workflow.