In short.
OpenCode Memory (opencode-mem) is a plugin for developers who use the OpenCode AI coding agent; it gives the agent a lasting memory of project decisions, past work and your preferences across coding sessions. Its automatic memories depend on a compatible AI provider and can contain mistakes. The README describes embedded Turso storage, CPU or remote embeddings, relevant-memory injection, a local management interface and optional Markdown files as the primary store. Local storage does not determine where AI requests go: capture, profile generation and remote embeddings use their configured providers. Default cleanup can delete memories not updated within 30 days, while credential redaction covers specific paths rather than every input. Nothing was executed; retrieval quality, reliability, security and operating costs remain unverified.
Researched and written by an AI model and checked by a second AI model. How it works
The scope is the complete supplied README.md from [https://github.com/tickernelz/opencode-mem/blob/main/README.md], fixed to revision 040b27f4ee1fef18f2d8e9b9e3bdc15bf61a9660, plus its accompanying LICENSE notice. Linked documentation, translations, source implementation, dependencies, model files, package archives and external services are outside this scope. No behavior was executed or independently verified, including installation, capture, recall, redaction, encryption, cleanup, concurrency and migration.
The overview
Identity
OpenCode Memory, published as opencode-mem, extends the OpenCode coding assistant with persistent project memories and a separate user profile shared across projects. It is an installed plugin with a companion terminal interface integration and a web interface that runs by default at [http://127.0.0.1:4747] and can be turned off with webServerEnabled: false.
The README documents integration paths for OpenCode v1 and v2. Support for arbitrary coding assistants outside OpenCode is not established. The repository is [https://github.com/tickernelz/opencode-mem], and the documentation address is [https://opencode-mem.zhafron.my.id/docs/].
Assessment
The plugin is a plausible fit for repeated work on the same codebase, where architecture decisions, failed approaches and recurring bug patterns would otherwise need to be explained again. Its combination of automatic extraction, relevant-memory retrieval and editable storage addresses that continuity problem directly.
The expected benefit follows from the documented design; no measured improvement in coding accuracy, task completion or time saved is supplied. Users must also manage provider compatibility, retained conversation material and memory deletion settings. Persistent storage should not be interpreted as permanent retention or reliable factual recall.
Users
Developers who revisit projects across many OpenCode sessions are the clearest audience. Beginners can browse and edit remembered information through the web interface, but initial setup still involves configuration files, an embedding backend and, for automatic capture, a compatible AI provider.
Experienced developers get project and cross-project scopes, export and import tools, embedding controls and a project-root marker for sharing memory across nested repositories. Work requiring sensitive context to remain on one machine needs a separate assessment of every configured provider route; a local database alone does not establish that property.
Capabilities
Automatic capture summarizes technical work after a session becomes idle. Later sessions can receive relevant memories and learned preferences without an explicit request to remember something. Manual tools support adding, searching, listing, forgetting, exporting, importing and migrating memories. Manual search, add and list still work without a configured capture provider.
The web interface provides project memories, a user profile, a skill library, a Markdown vault view and health statistics. Enabled shared skills can be exposed through OpenCode v2's native skill mechanism. Optional update-on-capture can revise or supersede memories, while optional dreaming consolidation can merge related entries or flag contradictions. Both features are disabled by default; manual dreaming remains available when its scheduled background run is disabled.
Using it
Requirements
The README recommends Bun and the standard OpenCode plugin environment. Persistence uses the native @tursodatabase/database dependency. It reports CI coverage on Linux, Windows and Apple Silicon macOS 15 and 26, and explicitly excludes Intel Macs. Remote embeddings do not establish an Intel Mac solution because the documented database dependency also lacks the required native binding.
Local embeddings run on CPU through @huggingface/transformers and ONNX; no GPU is required, and the README states there is no MLX backend. The README estimates approximately 0.5–2 GB of RAM while a local model is loaded, with model caches often occupying hundreds of megabytes to approximately 1–2 GB per model. These are documentation estimates, not measured results here. First use requires internet access to download the default model.
Automatic capture and profile learning require a reachable provider compatible with the plugin's structured-output handling. The README generally specifies structured or tool-call output and describes a special text-JSON path for authenticated Anthropic use. Compatibility with a particular provider, proxy or model is not guaranteed by its name alone.
Mechanism
When a session becomes idle, the capture provider converts conversation material and bounded tool outcomes into a technical summary. Tool evidence is limited to 2 KiB per result, 16 KiB overall and up to 32 calls. Generated summaries are limited to 8 KiB, with up to eight 64-byte tags. These excerpts cannot establish everything that happened, and the summarizing model can misinterpret them.
An embedding model converts memory text into numerical vectors used for similarity search. Turso stores F32_BLOB vectors and ranks them using exact cosine distance, with optional keyword hybrid ranking when a query string is available. The README explicitly distinguishes this from approximate vector indexing and notes that the dependency does not provide FTS5.
Default automatic recall searches for relevant memories on each authored user turn, normally injects up to three, and excludes memories captured in the current session. On OpenCode v2, automatic memory enters system context rather than the authored user prompt. If semantic recall fails, the plugin can fall back to recent entries; a successful relevant search with no eligible matches remains empty. Retrieval scores express ranking, not factual confidence.
Setup
For OpenCode v2, the documented configuration is {"plugins":["opencode-mem@latest"]}. OpenCode v1 uses the singular plugin key in ~/.config/opencode/opencode.json. On Windows, the documented directory is %USERPROFILE%\.config\opencode, rather than AppData. A CLI-only terminal interface connected to a remote server needs the separate opencode-mem/tui registration described in the README.
Plugin settings live in ~/.config/opencode/opencode-mem.jsonc. Select an embedding backend, then configure opencodeProvider and opencodeModel for automatic capture. The documented inherit option follows the session model but still requires opencodeProvider as the normal configuration gate. A separately configured manual API can serve as another capture route or fallback.
The default web interface is [http://127.0.0.1:4747]. Non-loopback binding requires an API token according to the README, which separately offers HTTP Basic Auth. Package auto-updating is enabled by default for @latest or version ranges; pinned package versions are excluded from that mechanism.
Example
For a project that actually uses microservices, the README illustrates immediate storage with memory({ mode: "add", content: "Project uses microservices architecture" }) and retrieval with memory({ mode: "search", query: "architecture decisions" }). Adding scope: "all-projects" broadens a search beyond the current project.
In automatic use, a developer could discuss an architecture decision during normal work and later inspect whether capture preserved the decision and its caveats. This illustrates the intended workflow, not an observed result. A remembered decision should still be checked against the current code and project documentation before it guides a change.
Assessment & evidence
Limitations
Credential redaction is best effort and protects particular memory-copy paths. It does not scrub OpenCode's original conversation, main-model requests or tool traffic, and it can miss arbitrary passwords, encoded or custom credentials and secrets split between messages. Historical records are not retroactively cleaned. Imports, web/API additions, Markdown reconciliation, migrations and profile or dreaming generation are outside the stated capture/add guarantee.
Retention has several independent boundaries. Default cleanup deletes old prompts and memories not updated within 30 days, while preserving pinned memories. Deleting an OpenCode session does not delete pending capture evidence or already captured memories. Pending evidence has a documented 24-hour expiry, but logical deletion is not secure erasure from database or WAL backups. The README also describes request/response history with a seven-day default expiry; this does not establish an external provider's own retention policy.
Shared database access has platform constraints. macOS and Linux use experimental multiprocess WAL support; Windows permits only one owning OpenCode session. The README warns that a foreign SQLite writer can make the WAL index stale and silently lose Turso's next write. Legacy migration must not run against multiple OpenCode instances, and its wall-clock-based lock leases have documented clock-change caveats.
Optional encryption covers local Turso shards, with key loss making encrypted databases inaccessible. Protection of every auxiliary file, Markdown note and provider record is not established. Export files are plaintext JSON and can contain memory content, user names and email addresses, repository URLs and absolute project paths. Fully private entries, user profiles and prompt history are omitted. Exact vector search performance, retrieval accuracy and behavior at large memory counts are also unknown.
Reasoning
The design trades repeated manual context entry for additional AI requests, retained data and possible errors in summarization or retrieval. An inspectable timeline, editable memories and export facilities provide ways to manage those tradeoffs, but none establishes that a remembered statement is correct.
Stable requirements belong in always-available project instructions because retrieved memories can be absent, outdated or removed. Automatic capture is more appropriate for evolving context such as decisions and failed approaches. Optional rewriting and consolidation add another interpretation step, so their usefulness depends on preserving caveats and checking important changes.
Alternatives
The README distinguishes memory from AGENTS.md and skills. AGENTS.md or static documentation suits stable rules that should always be available; skills suit reusable procedures loaded on demand. These can complement the plugin without depending on similarity search to surface mandatory instructions.
Within the plugin, manual memory operations offer an alternative to automatic extraction. Markdown mode makes plain files the primary store and Turso a rebuildable search index, although reconciliation can delete indexed entries whose files are missing from an otherwise healthy vault. The README names opencode-supermemory as inspiration at [https://github.com/supermemoryai/opencode-supermemory], but supplies no comparative evidence about its quality, privacy or cost.
Evidence
The technical account comes from README.md at revision 040b27f4ee1fef18f2d8e9b9e3bdc15bf61a9660: [https://raw.githubusercontent.com/tickernelz/opencode-mem/040b27f4ee1fef18f2d8e9b9e3bdc15bf61a9660/README.md]. Its original source address is [https://github.com/tickernelz/opencode-mem/blob/main/README.md]. The accompanying license is [https://raw.githubusercontent.com/tickernelz/opencode-mem/040b27f4ee1fef18f2d8e9b9e3bdc15bf61a9660/LICENSE].
The README supplies installation guidance, configuration defaults and detailed behavioral claims. Implementation files, package contents, test logs and independent measurements are not included. Its CI and recovery claims therefore remain documentation claims. No installation, provider request, migration, redaction exercise or runtime test was performed.
Access & freshness
Costs
No plugin subscription price, provider rate or measured operating bill is supplied. The MIT license permits use without a license fee requirement, but total operating cost is unknown. Automatic capture, profile learning and optional consolidation make AI requests; remote embeddings add another service whose charges depend on the chosen provider.
Fallbacks and retries can add requests, and injected memories add text to the coding model's context. Local embeddings instead consume CPU time, RAM, storage and initial download bandwidth. No monthly usage estimate, cost comparison or demonstrated savings is available.
Rights
The accompanying MIT license names Zhafron Adani Kautsar as the 2025 copyright holder. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions. The software is supplied without warranty.
The README also identifies the project as MIT licensed. These notices support redistribution of the captured README with its accompanying notice. They do not establish the separate terms governing downloaded embedding models, third-party dependencies or AI provider services.
Freshness
The documentation snapshot was captured on 14 November 2026 at 12:06:46.972 UTC, at revision 040b27f4ee1fef18f2d8e9b9e3bdc15bf61a9660. That timestamp establishes the snapshot date, not the software's release date.
No package release is established as the exact match for this revision. The current npm version, compatibility with later OpenCode releases and continued accuracy of provider-specific instructions are unknown. Because @latest installations can receive updates, an installed copy may differ from this documented snapshot.
Actions
First confirm a supported operating system and the configuration format for your OpenCode generation. Choose local or remote embeddings deliberately and keep the model, dimensions, pooling and prefixes consistent; changing them can require re-embedding existing memories.
Configure the capture provider and any fallback explicitly, checking where conversation context will be sent and how usage is charged. Inspect a few known project decisions in the stored memories before relying on automatic recall. Adjust the 30-day cleanup policy or pin entries that need longer retention.
Keep the management interface on loopback unless remote access is intentional and its authentication is configured. Export or back up memories before backend changes and migrations. Store export files like other sensitive backups and delete them when no longer needed. Leave optional rewriting and consolidation disabled until their behavior fits your needs, and preserve essential project rules in static instructions.
