Set up your cortex

memorinth init makes a cortex for your agents and connects Claude Code, Codex, Cursor and Gemini CLI to it in one step. What it asks, and what it changes.

On this page

memorinth init gets your agents a memory in one step. Run it in a new terminal, ideally in the folder you want as your cortex:

$ memorinth init

What it asks

  1. Which folder. This one, or another. The default is ~/Memorinth, or MEMORINTH_CORTEX if you set it. A folder of notes you already have works too: nothing in it changes.
  2. Which agents to connect. It lists the ones installed on this computer: Claude Code, Codex, Cursor and Gemini CLI.
  3. Whether to install the skills and the hooks. Say yes unless you have a reason not to: the hooks give each session its briefing.
  4. Whether to download the models for search and dictation now, rather than when they’re first needed.

What it does

  • Makes the folder a cortex, with memory/, decisions/ and facts/.
  • Makes it the cortex agents use, kept in Memorinth’s settings, so every session finds it.
  • Turns agents on.
  • Connects each agent you picked, as Connect one agent describes.

Without questions

In a script, or to take every default:

$ memorinth init ~/Memorinth -y
Option
<path> The folder to use, instead of asking
-y, --yes Take the defaults without asking
--no-connect Make the cortex but connect no agent

After init

Start a new session in any connected agent. Then check everything with Check with doctor.

Updated