Skip to content

AI assistant · Claude Code

Long-term memory for Claude Code

Connect Alexein and Claude Code searches your memory before it answers, and saves what you decide together, in every project and every session after this one.

What it does for Claude Code

Claude Code knows the repository in front of it. It doesn’t know what your team settled in Slack last week, which reviewer wants what, or the convention you explained in yesterday’s session. With Alexein connected, it searches your memory before it asks you, guesses or picks a default, and it saves what you tell it as you go.

The memory is yours, not Claude Code’s. What it saves is there in Cursor, Codex, claude.ai and ChatGPT once you connect them, and what your connected apps deliver, such as GitHub, Slack or Linear, is there for Claude Code.

Set it up

  1. In Claude Code, add Alexein’s marketplace: /plugin marketplace add Alexein-AI/claude-plugins.
  2. Install the plugin with /plugin install alexein@alexein and choose Install for you (user scope), so it is there in every project. Its options are optional: keep them as they are.
  3. Start a new session. Your browser opens once: sign in to Alexein and select Allow. From your next message, Claude Code uses your memory by itself. There is no key to copy.
  4. Run /mcp, choose alexein and select Authenticate, for the memory tools. Sign in, keep Read and save, and select Allow.
  5. Ask “What do you remember about me?” Claude Code calls memory_search.

The plugin puts a short note on using memory in front of Claude Code at the start of every session; its hooks need Python 3. Rather not use a plugin? This adds the server alone, and you sign in the same way, but Claude Code then uses your memory only when it decides to:

Terminal
claude mcp add --transport http --scope user alexein \
  https://api.alexein.ai/v1/mcp

Every step, and a key for scripts and CI, is in the Claude Code setup guide.

What you can ask

  • “Which retry policy did we agree on for the payments service?” It searches memory before choosing a default, and answers from what was decided, not from a guess.
  • “Remember: we use pnpm in this repo, never npm.” Saved with memory_add. The next session already has it.
  • “What’s still open on my plate?” With GitHub or Linear connected, memory_pending lists the issues and pull requests still waiting, with how long each has waited.
  • “Write the PR description the way I usually do.” memory_how_they_work shows how you write in each place, so the draft reads like yours.

Sessions, saved

Once it is signed in, the plugin looks up your memory for each session’s first message, and saves your sessions: what you ask and Claude Code’s replies, with the names of files changed and commands run, never their contents. Turn Save sessions to memory off to keep only the lookup.

Shared with a team

Add the server with --scope project, or put it in .mcp.json, and everyone who works in the repository gets it. Each person signs in to their own Alexein account the first time, so each reaches their own memory, never a colleague’s.

Questions about Claude Code

Claude Code reads instruction files such as CLAUDE.md at the start of a session. Alexein adds a memory it searches when a question needs it and saves to as it works, across every project, and shared with your other AI tools.

No. Claude Code signs in to Alexein in your browser. A personal key is only for scripts and CI, where nobody is there to sign in.

No. Each person signs in as themselves and reaches only their own memory, even when the server is shared through .mcp.json.

On nine coding tasks whose answers live in Slack, GitHub, email and meetings, Claude Code with Alexein made the right change first time in 78% of runs, against 15% alone.

Give Claude Code a memory.

Sign up for My memory, install the plugin, and the next session starts from what you’ve already told it.