{"library":"opencode-mem","title":"OpenCode Memory Plugin","description":"OpenCode Memory is a persistent memory system for AI coding agents, providing long-term context retention across sessions using local vector database technology. The package, currently at version 2.13.0, receives frequent minor and patch releases, indicating active development. Key differentiators include its local-first approach using SQLite and USearch (with ExactScan fallback), automated user profile learning, a unified memory-prompt timeline, and a full-featured web UI for management. It supports multi-provider AI (OpenAI, Anthropic) and integrates with over 12 local embedding models, offering intelligent prompt-based memory extraction, smart deduplication, and built-in privacy protection. It acts as an OpenCode plugin, meaning its core functionality is exposed to the AI agent runtime, rather than being directly imported into typical application code.","language":"javascript","status":"active","last_verified":"Wed Apr 22","install":{"commands":["npm install opencode-mem"],"cli":null},"imports":["import { memoryPlugin } from 'opencode-mem';","import type { MemoryActionParams } from 'opencode-mem';","import type { MemoryAction } from 'opencode-mem';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"{\n  \"plugin\": [\n    \"opencode-mem\"\n  ]\n}\n// Save the above JSON to ~/.config/opencode/opencode.json to enable the plugin.\n// After OpenCode restarts, your AI agent can interact with memory.\n\n// Example agent interactions (within an OpenCode session):\n// memory({ mode: \"add\", content: \"Project uses microservices architecture\" });\n// memory({ mode: \"search\", query: \"architecture decisions\" });\n// memory({ mode: \"profile\" });\n// memory({ mode: \"list\", limit: 10 });\n\n// You can also configure the plugin in ~/.config/opencode/opencode-mem.jsonc\n// For example, to set an embedding model:\n// {\n//   \"embeddingModel\": \"Xenova/nomic-embed-text-v1\"\n// }\n","lang":"typescript","description":"Demonstrates how to enable the opencode-mem plugin within OpenCode and provides examples of how an AI agent interacts with its memory functions.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}