Coordinators install account management (Refresh profile, Unlink Google account
and reconnect) through their normal schema path: a SQLite coordinator installs it at
startup, and a Cloudflare D1 deployment applies numbered migrations 0045 to 0047
(auth schema stages).
An older local authority schema still uses the explicit auth-schema cutover:
codemem coordinator schema upgrade-auth --db-path coordinator.sqlite.
Unlink confirms once in the Viewer and uses the existing authorized device without
Google sign-in. Link, relink and profile refresh still require Google verification.
The code is still there. The reasoning usually isn’t.
codemem is persistent coding memory across sessions, machines, and teammates for OpenCode, Claude Code, Codex, and the Pi coding agent. It captures decisions, dead ends, and repository-specific traps, then automatically brings relevant context into later prompts.
Automatic context injection — relevant memories reach the agent without asking it to search; unchanged memories already in OpenCode context are not repeated
Optional sync and sharing — peer-to-peer sync carries selected project memory across machines; share project knowledge with a teammate or Team when it helps
Local-first storage — memories live in SQLite on your machine; observer processing uses your configured model provider and can incur costs or consume plan usage
Automatic injection for OpenCode 1 and 2 — the plugin injects context into every prompt, no manual steps; the OpenCode 2 integration is beta
Claude Code plugin support — install from the codemem marketplace source
Multi-agent — OpenCode, Claude Code, Codex, and pi share one project-scoped store
Pi coding agent — session capture, automatic recall, and 15 native memory tools including memory_session_search, which the codemem MCP server also exposes; no MCP required for Pi
Built-in viewer — browse memories, sessions, and observer output in a local web UI
Remote MCP access — advanced single-user self-hosting can expose an OAuth-protected Streamable HTTP MCP endpoint to configured remote clients; keep the localhost viewer private (guide)
Team/add-device recipient invitations support a read-only CLI review:
codemem coordinator invitation accept '<invite>' --review --json. Inspect the access
details, then accept with --reviewed-onboarding-digest '<digest>' using the same
device profile and device name. Review requires an initialized device and matching keys;
it does not accept the invitation or change local state. See the
recipient invitation guide.
Prerequisites: Node.js 24.15+ and npm (or pnpm). Native database support
covers macOS x64/arm64, Linux x64/arm64 (glibc 2.34+ or musl), and Windows x64.
32-bit targets, including Linux armv7, are not supported.
Linux: set ONNXRUNTIME_NODE_INSTALL=skip in your shell and the environment that launches OpenCode, Claude Code, Codex, or Pi before the first package install. This avoids downloading the unused ONNX Runtime GPU provider while keeping CPU inference. Setup-managed npx launchers cannot set it themselves.
OpenCode
Codemem requires OpenCode 1.18.29 or newer. One installed
@codemem/opencode-plugin package serves both host generations: OpenCode 1 calls
its server() entrypoint and OpenCode 2 calls its setup() entrypoint. OpenCode 2
support is validated against the exact stable @opencode/[email protected] and
@opencode/[email protected] releases; Codemem labels its OpenCode 2 integration
beta until it has shipped through a full release cycle.