Install
Cogi in Claude Code
Four steps, about two minutes. Run one command at a time; after each you'll see what to expect.
-
Get the helper, uv
Cogi runs with uv. This installs only the helper, not Cogi yet.
Terminalcurl -LsSf https://astral.sh/uv/install.sh | shAlready have it? If
uv --versionworks, skip this. Otherwise open a new terminal afterwards, so it can be found. -
Install Cogi
Terminalclaude plugin install cogito-mem --marketplace meridian21lab/cogito-memSuccessfully installed plugin: cogito-mem@cogito-mem (scope: user)
Needs Claude Code 2.1.292 or newer (
claude --version); on older versions use the two commands under Prefer to install from inside Claude Code? below.Cogi now remembers in every project. Your memory is called
yourname-hollow; the note that its name is "not yet set" just means that default is used. To pick another name, add--config memory_name=work-hollow.Stay up to date. In Claude Code, open
/plugin, go to Marketplaces, pick cogito-mem and choose Enable auto-update. -
Check it
Start Claude Code (
claude) and type:In Claude Code/mcpplugin:cogito-mem:cogi✔ 2 tools -
Try it
Mention something in passing:
Say to ClaudeLet's call the staging server "acorn".Wipe Claude's short-term memory:
In Claude Code/clearAnd ask:
Say to ClaudeWhat did we call the staging server?Claude answers "acorn": Cogi brought it back.
Now peek into the hollow from a terminal:
Terminalcurl -s localhost:7327/v1/status"state": "ready", and how many messages Cogi keepsFirst time? Cogi downloads its model (310 MB) when it first wakes up, which takes about a minute. Until then the status says
"starting"and Cogi finds things by their exact words only.
Good to know
Bring in your earlier sessions
Cogi starts collecting from now on. To add every Claude Code session you had before, install the
cogito-mem terminal command and run it once:
uv tool install git+https://github.com/meridian21lab/cogito-memcogito-mem capture claude-code --allPrefer to install from inside Claude Code?
Type these one at a time; pasting both at once runs them as one command.
/plugin marketplace add meridian21lab/cogito-mem/plugin install cogito-mem@cogito-memChoose Install for you (user scope), leave the name empty for yourname-hollow,
then run /reload-plugins.
| Scope | Cogi remembers in | Who else is affected |
|---|---|---|
| User (choose this) | every project | no one |
| Project | this repository only | everyone who opens it is asked to install Cogi too |
| Local | this repository only | no one |
Other ways: Codex, Claude Desktop, Docker, Python
One line for every app it finds (Claude Code, Codex, Claude Desktop):
curl -fsSL https://raw.githubusercontent.com/meridian21lab/cogito-mem/main/install.sh | shDocker, then connect Claude Code by URL:
docker run -d --name cogito-mem -p 127.0.0.1:7327:7327 -v cogito-mem:/data ghcr.io/meridian21lab/cogito-memclaude mcp add --transport http cogito-mem http://127.0.0.1:7327/mcpPython: pip install git+https://github.com/meridian21lab/cogito-mem, then see
API & MCP.
Stop Cogi from adding memories to each prompt
Add this to ~/.claude/settings.json. Claude can still search when you ask.
{ "env": { "COGITO_MEM_RECALL": "off" } }Remove Cogi
claude plugin uninstall cogito-mem@cogito-memThat keeps your memories. To erase them too:
rm -rf ~/.cogito-memIf something looks wrong
| You see | Do this |
|---|---|
/mcp shows ✘ next to cogi | Close Claude Code, open a new terminal (so uv is found) and start it again. |
curl: … Connection refused | Cogi wakes up when Claude first saves or searches. Ask Claude anything, then try again. |
"state": "starting" | The model is still downloading. Give it a minute. |
not a valid GitHub owner/repo | Two commands were pasted together. Run one at a time. |
| Anything else | Logs are in ~/.cogito-mem/run/. Tell us. |