- MondayLet’s use email-link sign-in only.
- TuesdayLet’s use email-link sign-in only.
- WednesdayLet’s use email-link sign-in only.
- ThursdayLet’s use email-link sign-in only.

Give Claude Code and Codex memory that stays on your computer.
CPersona is memory for AI agents (an MCP server) that runs on your own computer. It keeps what you decided in a conversation, and why, so your agent can recall it in the next one. It uses no generative AI to save or to search.
Without a record, every session starts over.
Monday’s decision, recalled on Thursday.
Monday
Let’s use email-link sign-in only.
Kept in memory on your computer
Thursday
Build the sign-in screen.
From memoryMonday: Let’s use email-link sign-in only.
On it: email-link sign-in,
as decided Monday.
Illustration only, not output from a real session.
The AI is handed about a seventh of the tokens.
Compared with a system whose accuracy is within one run’s sampling error. The system that answers more questions uses 2.3 times the tokens.
What is a token?
A token is the unit an AI reads text in. In English a word is about one or two tokens; in Japanese a character is about one.
Each time the AI answers, it reads everything it was handed. The fewer tokens it is handed, the less it costs where you pay by the token, the sooner it answers, and the more room is left in the amount it can read at once.
The figures here count the tokens of memory handed to the AI to answer one question.
Recall from 100,000 memories
0.84 s
How much is that?
About 40 copies of the complete works of Shakespeare, or about 1,160 copies of Hamlet.
How long would a person take to read it all? … Longer than six months, most likely. CPersona took 0.84 seconds.
Counted with the same tokenizer on the Project Gutenberg texts: about 1.45 million tokens for the complete works and 48,500 for Hamlet. At 250 words a minute, eight hours a day, the reading would take about ten months.
Median of 25 questions on a low-power PC with an Intel N150 and nothing else heavy running, with the query embedded on the same machine. Two registered runs gave 0.80 s and 0.84 s; the longest question took 1.37 s. Measured on the change released in CPersona 2.6.7, with the jina-v5-nano embedding model. Read the record
What do you use AI for?
CPersona is memory for AI agents. It carries what you decided in one conversation into the next.
Start with one prompt
All you need is Claude Code or Codex. The prompt asks your AI agent to set CPersona up, to show you each step first, and to wait for your approval before it runs commands, installs anything or changes files. Free and open source (MIT).
Read the prompt
Help me set up CPersona for [Claude Code or Codex]. First read the official CPersona setup guide: https://cloto-dev.github.io/CPersona/getting-started/ Start by checking only this client's MCP configuration and tell me whether CPersona is already configured. Treat configuration as sensitive: do not reveal tokens, keys, or other secret values. Do not read unrelated project files. Do not change or remove any existing memory database, memory file, client setting, or MCP server. Explain the exact setup steps you recommend, including commands, packages or model downloads, files to be edited, and where data will be stored. Wait for my explicit approval before running commands, installing or downloading anything, or changing files or settings. If a step would overwrite or alter existing data or configuration, stop and ask me first. If the plan must change, explain why and ask again. After I approve the proposed steps, make only those changes. Help me verify the connection and test a saved design decision in a fresh session. Do not claim setup succeeded unless the documented checks pass.
Rather follow the steps yourself? The setup guide has them for Claude Code and for Codex.
Questions people ask first
- Doesn't the AI remember things on its own?
- Only what it is handed. A new conversation starts from the instructions and files it is given, such as CLAUDE.md or AGENTS.md. What they load is read in every conversation, so it has to stay short, and a decision left out of it is gone. CPersona saves decisions as you make them and hands the agent only the few that fit the question.
- What does CPersona do?
- While you work, it saves the decisions you make and the reasons behind them. In a later conversation the agent looks them up and answers with the words you saved, so you can see where an answer came from.
- How is that different from keeping notes in a file?
- A notes file loaded into every conversation is read in full each time, and it keeps growing. CPersona looks up only the few records that fit the question, so the agent reads less. See the measurements
- Where do my records go?
- Into a file on your own computer. CPersona sends nothing to an online memory service, and saving or finding a record uses no generative AI. What the agent recalls becomes part of the conversation, like anything else you show it.
- Does it cost anything?
- No. CPersona is free, open-source software under the MIT license. Your AI agent's own plan is separate.
- Do I need to know programming?
- You need an AI coding agent such as Claude Code or Codex. The setup prompt asks the agent to set CPersona up for you: copy the prompt, paste it in, then read the steps the agent proposes and approve them.
What is stored, and how recall works
Memories live in a local SQLite database, and CPersona calls no generative model. The reconstruct tool returns what it recalls with quotes from the stored records, so you can check the source behind an answer.
A compatible embedding server is recommended for vector search. Without one, CPersona falls back to keyword and full-text search and reports that recall is degraded. Different wording can make a saved memory harder to find. See embedding setup and fallback.
Finding a decision in a later session depends on it having been saved, and on both sessions using the same database and agent_id. A saved record is not guaranteed to appear for every question. The setup guide shows how to check recall across sessions.