Practical overview
When it fits
Use it when an OpenCode coding agent needs durable project context beyond an individual session, especially when keeping the vector database embedded and local is useful.
Who it is for
- OpenCode users who want coding context or project decisions to persist between sessions.
- Developers building or configuring OpenCode plugins and agent-memory workflows.
Documented uses
- Add, search and list project memories for an OpenCode coding agent.
- Retrieve relevant stored context across sessions, for one project or all projects.
- Browse and manage stored memories through the local web interface.
- Export, import or migrate memory data using the plugin’s documented operations.
Requirements & limits
The README recommends Bun and a standard OpenCode plugin environment. The default local embedding model downloads on first use and needs internet access then. Linux, Windows and Apple Silicon Mac are listed as CI-tested; Intel Mac (darwin/x64) is explicitly unsupported.
- Automatic memory extraction and profile learning require an AI provider that supports structured or tool-call output; search, add and list work without that configuration.
- Local embeddings use CPU and do not require a GPU; the default model uses about 0.5–2 GB RAM while loaded, according to the README.
- The web UI defaults to 127.0.0.1:4747. Non-loopback binding requires an API token.
- Vector retrieval uses exact cosine search, with optional keyword hybrid ranking when a query string is provided.
- The repository identifies the project as MIT-licensed and written in TypeScript.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Add OpenCode Memory to OpenCode
Register the plugin in OpenCode’s configuration so it can provide persistent memory to coding-agent sessions.
Before you start
- OpenCode v1 or v2 with its standard plugin environment.
- For source-checkout installation, Bun and the project dependencies.
Steps
For OpenCode v2, add "opencode-mem@latest" to the native "plugins" list.
For OpenCode v1, add "opencode-mem@latest" to the "plugin" list in ~/.config/opencode/opencode.json.
For a local checkout, run bun install && bun run build, then point the plugin list to the absolute package-root directory.
Expected outcome
OpenCode is configured to load OpenCode Memory; the plugin can then store and retrieve persistent memories.
Guide limitations
- The README recommends Bun.
- Intel Mac (darwin/x64) is not supported.
- The default local embedding model needs internet access on first use to download.
Compare options for AI coding assistance
These projects document a common task and share a project role. This is a source-based comparison, not an execution benchmark or a guarantee of interchangeability.
| Project | Documented purpose | Platform | Access and requirements |
|---|---|---|---|
| OpenCode Memory | Add, search and list project memories for an OpenCode coding agent. | CLI, Self-hosted | The README recommends Bun and a standard OpenCode plugin environment. The default local embedding model downloads on first use and needs internet access then. Linux, Windows and Apple Silicon Mac are listed as CI-tested; Intel Mac (darwin/x64) is explicitly unsupported. |
| Mainline | Retrieve relevant repository context before an agent makes a non-trivial edit. | CLI, Self-hosted | The core is described as open source, free and intended for local repository use. The pricing page says hosted layers are only planned. The documented primary workflow uses a local CLI and repository protocol and does not require an account. |
| cass-memory | Retrieve relevant rules and historical examples before a coding task. | Linux, macOS, Windows | The README lists Linux, macOS and Windows, with installation instructions for Homebrew, Scoop and a Linux/macOS script. It identifies Bun as the runtime and labels the project alpha. |
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 22 October 2026
- Original website title
- tickernelz/opencode-mem · Official homepage title · retained in its source language

