MemorySync
Official Plugin

OpenAI Codex + MemorySync

Automatic memory for Codex: hooks inject recalled context and capture every exchange, TOML + bearer env auth.

Overview

Install the MemorySync plugin and Codex remembers: lifecycle hooks inject relevant memories at session start and alongside every prompt (Codex supports additionalContext injection), re-inject after context compaction, and persist every exchange the moment it happens. The MCP server configures through Codex’s TOML with bearer_token_env_var — the documented environment-auth field — with OAuth as the keyless fallback. Every hook exits 0 on every failure, so memory can never break a session. The only memory vendor with working Codex automation on Windows: hooks are dependency-free Node scripts, no bash, no Python installers.

Setup status and requirements

Supported version
memorysync Codex plugin 1.1.0
Last setup review
2026-08-23
Permissions
A MemorySync API key with read and write scopes (or OAuth via codex mcp login).
Limits
Hooks require Codex CLI/IDE (Codex Web runs no hooks or local config — every vendor shares this limit) and Node.js 18+ on PATH. Non-managed hooks need a one-time /hooks trust approval.
Open setup documentation →

Capabilities

Quick Start

# MCP in one command:
codex mcp add memorysync --url https://mcp.memorysync.io/mcp --bearer-token-env-var MEMORYSYNC_API_KEY
# Full plugin (hooks + skills):
codex plugin marketplace add Rafay121/memorysync-plugins
codex plugin add memorysync@memorysync
# then trust the hooks once: /hooks

Use Cases

Codex CLI/IDE sessions that remember decisions across days and repos

Injected context so Codex starts every session already briefed

Per-project conversation history with preferences that follow you

Explore More

Built for production AI systems

Build AI systems that remember

MemorySync provides the infrastructure layer for persistent memory, adaptive retrieval, and enterprise AI intelligence.

Start free. No credit card required.