This guide installs Codex Native Memory as a local Python package and exposes it to Codex as an MCP server.
- Python 3.11 or newer.
- Codex Desktop or Codex CLI with a working local Codex login.
- Git.
No Claude, Gemini, OpenRouter, or vendor API key is required.
git clone https://github.com/BulbuLbul86/codex-native-memory.git
cd codex-native-memoryFor normal use:
python -m pip install -e .For development:
python -m pip install -e ".[dev]"python -m codex_native_memory doctor
python -m codex_native_memory doctor --jsonThe report shows:
- the memory database path;
- Codex CLI discovery;
- transcript globs;
- MCP wrapper status;
- whether the setup is Codex-only.
Windows PowerShell:
.\scripts\install-for-codex.ps1macOS/Linux:
./scripts/install-for-codex.shRestart Codex after running the installer.
In a Codex thread, ask naturally:
подними память проекта
or:
what did we decide about the memory plugin architecture?
The skill should call memory_bootstrap first, import recent transcripts, and
return a compact project context.
External AI tools are optional. Codex remains the primary coding AI.
Windows helper:
.\scripts\configure-sources.ps1Manual examples:
python -m codex_native_memory sources add claude --type claude --path "$HOME\.claude\**\*.jsonl" --review-enabled
python -m codex_native_memory sources add gemini --type gemini --path "$HOME\.gemini\**\*.jsonl" --review-enabled
python -m codex_native_memory backfill --all-sourcesIf you only use Codex, skip this section.
python -m codex_native_memory bootstrap "current task" --cwd "$PWD" --json
python -m codex_native_memory context "current task" --cwd "$PWD" --json
python -m codex_native_memory search "project decision" --limit 10
python -m codex_native_memory memories --cwd "$PWD"
python -m codex_native_memory remember "Use Russian answers for this project." --cwd "$PWD"These commands are maintenance tools. Day to day, Codex should use the MCP tools for you.