- Implicit (hooks) — automatically recalls context before each prompt and captures conversations incrementally during the session.
- Explicit (skills) — lets you or the agent save, search, and manage memories on demand.
Install the Plugin
- Copies hook and skill scripts to
~/.codex/supermemory/ - Enables
codex_hooksin~/.codex/config.toml - Registers
UserPromptSubmit(recall) andStop(flush) hooks in~/.codex/hooks.json - Installs explicit memory skills under
~/.codex/skills/
Authenticate
Browser auth is preferred. Start Codex CLI — on your first prompt a browser window opens to authenticate with Supermemory. Alternatively:- Use
$supermemory-login//supermemory-logininside Codex - Or set an API key from API Keys:
- macOS / Linux (zsh)
- macOS / Linux (bash)
- Windows (PowerShell)
How It Works
Once installed, the plugin runs on every Codex session:- Incremental capture — Memories are saved every N turns (default: 3) so mid-session context is available for later prompts in the same session.
- Privacy — Content wrapped in
<private>...</private>is redacted before storage.
Memory Scopes
Override tags in
~/.codex/supermemory.json if needed:
SUPERMEMORY_ISOLATE_WORKTREES=true to keep each worktree isolated.
Explicit Memory Skills
Example prompts:
Verify Installation
Uninstall
Configuration
Create~/.codex/supermemory.json to override defaults:
Logging
Next Steps
GitHub Repository
Source code, issues, and detailed README.
Claude Code Plugin
Memory plugin for Claude Code.