crosmos-save skill for explicit notes.
Use this plugin when you want Codex to remember project decisions, preferences, and prior work without manually calling memory tools. If you only need callable memory tools, use MCP instead.
Prerequisites
- OpenAI Codex CLI
- Node.js 18 or later
- A Crosmos API key from the Crosmos Console
- At least one Crosmos memory space
csk_ prefix. The installer can save your key to ~/.crosmos/credentials.json, or you can set CROSMOS_API_KEY before installing.
Install
crosmos-save skill.
After installing, open Codex and run:
Verify
/hooks in Codex and confirm the hooks are approved.
How it works
The plugin uses Codex lifecycle hooks and the Crosmos SDK. Memory failures do not block your Codex session.
The installed
crosmos-save skill lets you ask Codex to save a specific note:
What gets installed
The installer backs up existing files before it changes them. It does not edit
~/.codex/config.toml.
Configuration
Configure the plugin with environment variables or~/.codex/crosmos.json. Environment variables override the config file.
Example config file:
spaceId nor spaceName is set, the plugin resolves the first available memory space and caches its ID in ~/.codex/crosmos.json.
Troubleshooting
Hooks are not running
Open Codex and run:~/.codex/config.toml, remove this setting:
No API key is configured
SetCROSMOS_API_KEY or rerun the installer:
No memory space is available
Create a memory space in the Crosmos Console, then rerun:CROSMOS_SPACE_ID or CROSMOS_SPACE_NAME.
CODEX_HOME points somewhere else
By default, the installer writes to ~/.codex. If CODEX_HOME is set, the installer stops before writing unless you pass --force.
--force only when you intentionally want to install into that Codex home.
Debug hook behavior
Enable debug logging:/tmp/crosmos-codex-<session>.log.
Uninstall
~/.codex/crosmos.json. Existing memories in Crosmos are preserved.
Next steps
MCP
Connect Crosmos memory tools to AI clients.
Memory tools
See the callable memory tool schemas.