Cmd. /memories
Configure memory use and generation for Codex sessions.
Key takeaways
- Configure memory use and generation for Codex sessions.
- Check the input surface and availability before using the examples below.
Purpose
Configure memory use and generation for Codex sessions.
/memoriesAvailability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Built-in |
| Status | Current reference |
| Aliases | — |
| Documented minimum | Not specified |
| Reviewed against | 2026-09-22 · Codex CLI 0.155.1 |
The installed command menu and account or organization settings determine availability.
Examples
/memoriesWhen to use it
- Disable memory behavior before working with sensitive external context.
- Verify memory settings when a long-running project depends on team preferences.
Choosing related commands
| Command | Difference | Choose It When |
|---|---|---|
/memories | Controls memory use and generation | Long-term context boundaries matter |
/compact | Summarizes the current transcript | You only need to reduce current context |
/clear | Starts fresh visible chat flow | You want a new conversation surface |
Effects and persistence
Manages memory settings for future sessions; it does not erase the current conversation or all previously stored memories.
/memories controls whether Codex uses existing memories and whether new sessions contribute to memory generation.
Cautions
- Treat memories as a convenience layer with explicit privacy rules.
- Be conservative when web, MCP, or browser context is involved.
Official sources
Complete command list · Verification scope · History for this command