OpenCode-Mem0
An OpenCode plugin that gives coding agents persistent memory using a local SQLite and usearch vector database, auto-capturing facts from conversations and exposing search, profile and list operations as an agent tool, with no cloud service required.
OpenCode-Mem0 adds persistent memory to the OpenCode coding-agent editor through a plugin that stores everything in a local SQLite database with the usearch vector extension; no cloud service is required and the plugin stays inert until explicitly activated. Memories are captured automatically from conversations by default, using a configurable memory provider (OpenAI, Anthropic or Google Gemini chat or embedding models) to extract what is worth remembering, or the plugin can reuse OpenCode's own main model and provider instead of a separate key.
A memory tool is exposed to the OpenCode agent with modes to add, search (hybrid vector plus full-text), read or write a user profile, and list recent memories, though the README notes most users will not need to call it directly since auto-capture and the web UI cover typical use. The plugin updates itself with a single command that also clears OpenCode's plugin cache.
It requires Bun 1.0 or later on Linux and macOS, or Node.js 20 or later on any platform including Windows.