# Codex Memory with SuperLocalMemory (MCP)

Give Codex persistent, local memory: run slm connect codex, then slm codex install for skills and hooks. Shared with Claude Code and Cursor.

Source: https://www.superlocalmemory.com/integrations/codex

Integration

# Codex Memory with SuperLocalMemory.

Connect SuperLocalMemory to Codex over MCP, with skills, sub-agents and lifecycle hooks, and keep one local memory shared with your other agents.

AGPL v3MCPLifecycle hooks

Quick Start

## Install, connect, verify.

SuperLocalMemory gives Codex one memory it shares with your other agents. It is the same memory [Claude Code](https://www.superlocalmemory.com/integrations/claude-code) and Cursor use, so a decision saved in one session can be recalled in another. The [Claude Code memory guide](https://qualixar.com/learn/guides/claude-code-memory) explains the idea; [SuperLocalMemory on Qualixar](https://qualixar.com/products/superlocalmemory) is the product overview.

1

### Install and set up

Follow the [install page](https://www.superlocalmemory.com/install), then run setup. Mode A keeps everything on your machine.

terminal

```
npm install -g superlocalmemory
slm setup
```

2

### Connect Codex

`slm connect codex` adds the MCP server to your Codex config. `slm codex install` then adds the skills, sub-agents and lifecycle hooks. Add `--dry-run` to either to preview what would be written.

terminal

```
slm connect codex
slm codex install
```

Codex can also install it as a plugin from the same marketplace:

terminal

```
codex plugin marketplace add qualixar/superlocalmemory --ref main
codex plugin add superlocalmemory-codex@qualixar
```

3

### Verify

Restart Codex and review the new hooks with `/hooks`. Check what is installed with `slm codex status`, then run a remember and recall round trip.

terminal

```
slm codex status
slm doctor
```

What Codex gets

## Memory, skills and hooks.

MCP

### The memory tools

Remember, recall and the rest of SLM’s tools, in the Codex tool list. Where a client cannot load the MCP server, `slm tool list` reaches the same tools from a shell.

Skills and agents

### 16 skills, 4 agents

The same skills and agents every host gets, plus `/slm-loop`, so Codex knows how to recall, remember and run bounded loops.

Hooks

### Lifecycle hooks

Hooks run at session start and around tool use. They fail open: a hook problem never blocks Codex. A per-prompt hook asks memory only when the prompt needs it.

Storage

## What is stored, and where.

Memories live in a local database on your computer. Nothing about them is sent to a server unless you turn on an optional feature that says so. Credentials in saved text are replaced with a typed placeholder before storage, and each memory records which agent wrote it.

In the database

### Your memories

Text you or an agent saves, with its agent, time and origin. `slm why FACT_ID` shows where one came from.

In your Codex config

### The MCP server entry

`slm connect codex` writes it; `slm codex remove` removes only what SLM installed.

Not stored

### The agent rules

The agent rules are not written for you. Append them to your own `AGENTS.md` if you want them.

Common Questions

## Questions about Codex memory.

Yes, when both are connected to the same SLM profile. Every write records which agent made it.

Refresh Codex’s copy of the marketplace first with `codex plugin marketplace upgrade qualixar`, then run `codex plugin add superlocalmemory-codex@qualixar`. `slm doctor` prints these commands when the plugin is older than SLM.

Yes. See the [import page](https://www.superlocalmemory.com/import): preview, run in the background, and undo the whole run.

Get started

Install SuperLocalMemory, connect Codex with one command, then verify the memory round trip before relying on it.

[Install SuperLocalMemory](https://www.superlocalmemory.com/install)[All plugins](https://www.superlocalmemory.com/plugins)

[SuperLocalMemory on Qualixar](https://qualixar.com/products/superlocalmemory) · [Claude Code memory guide](https://qualixar.com/learn/guides/claude-code-memory) · [SLM films](https://qualixar.com/watch) · [Varun Pratap Bhardwaj](https://www.varunpratap.com)
