kimi-memory
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@kimi-memoryremember that I prefer pnpm and strict TypeScript across all projects"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
kimi-memory
A local-first memory layer for the Kimi Code assistant. It gives the assistant persistent recall across your projects — your preferences, facts about the work you do, and the focus of what you were doing last — all stored on your own computer, never uploaded to a service you didn't choose.
What it does
The assistant normally forgets everything between conversations. With this plugin installed, the assistant remembers:
Your preferences and habits, no matter which project you're working in
Decisions and conventions for the project you have open
What you were last working on, so the next conversation can pick up the thread
The full conversation history of every session, indexed and searchable
Everything stays on your machine. The plugin writes to local files in a folder the Kimi Code runtime owns; you can read them, back them up, or delete them whenever you want.
Related MCP server: Locus
Highlights
Local-first. Your memories live in local files inside Kimi's data folder. Nothing leaves your machine unless you turn on the optional helper model for finding related memories.
Cross-project preferences. A fact about you ("I prefer dark mode", "always run the tests before committing") can be saved once and recalled in every project.
Per-project facts. A decision about one project ("we use tabs in this repo") stays with that project and never bleeds into another.
Focus continuity. Each session saves what you were working on so the next conversation starts with the thread already in hand.
Secret-safe by default. Passwords, API keys, and security tokens are caught at save time and refused — they never land in memory.
Install
From GitHub
In the Kimi Code chat input:
/plugins install https://github.com/cbuntingde/kimi-memoryKimi pulls the source into its managed plugins folder and starts the
plugin on next session. A trust prompt appears because the plugin is
not on the Kimi marketplace — choose the affirmative option, then
reload and verify with /plugins info kimi-memory. No error block
means a clean install.
From a local checkout
cd <path-to-this-repo>
npm installThen in Kimi:
/plugins install <absolute-path-to-this-repo>
/reloadLocal sources are copied into the managed plugin directory; edits to your checkout do not propagate. Reinstall and reload after meaningful changes.
Requirements
Kimi Code with plugin, slash command, and tool support
Node.js 24 or newer
Everyday commands
The most common entry points. You don't need to remember these — the assistant handles them when you ask in plain language.
What you want to do | Command |
List this project's memories |
|
Reflect on the active project |
|
Wipe a re-cloned project's stale memories |
|
Open the companion dashboard in your browser |
|
Check the pipeline (counts, queues, cleanup) |
|
Clean up memory for projects that no longer exist |
|
For everything else, just ask: "remember this decision", "what did we decide about X?", "list memories", "promote this to cross-project". The assistant will use the right tool.
Where your memories live
Each memory row lives in exactly one place. Routes never cross layers, so a per-project question can never accidentally pull in a cross-project memory, and vice versa.
Layer | Location | Lifetime | What goes here |
Cross-project memory |
| Permanent; you curate it | Your preferences, environment facts, reusable procedures |
Project durable memory |
| Permanent; you curate it | Decisions, conventions, and facts about one project |
Project working memory | Same project file, separate table | Transient, current focus | What you are working on right now |
Project session archive | Same project file, separate table | Idempotent transcript | Every conversation, indexed and searchable |
<Kimi data folder> is the $KIMI_CODE_HOME environment variable on
your system. <project> is a stable identifier derived from the
project folder's full path.
Slash commands
Command | What it does |
| List memories across project and cross-project |
| Reflection procedure over the active project; also triggered by phrases like "what should we change?" |
| Clean up memory for projects that no longer exist (dry-run by default) |
| Wipe per-project memories after a re-clone (dry-run by default) |
| Move a project memory to the cross-project store so it shows up everywhere |
| Configure and run the background consolidation pass that merges near-duplicates and prunes stale rows |
| Open the companion dashboard in your browser |
Natural language works too. Phrases such as "remember this decision", "what did we decide?", "list memories", or "promote this to global" invoke the same actions when the assistant understands your intent.
How the assistant saves memories
The assistant has tools to read and write memories, but you do not need to call them by name. Just talk naturally:
State a durable preference about yourself or your environment and the assistant will save it cross-project (for example: "I always prefer dark mode").
State a fact about the project and the assistant will save it for that project (for example: "this repo uses tabs").
Ask "do you remember…?" or "what did we decide…?" and the assistant will search cross-project first, then the active project.
At the end of every conversation, the assistant does one short review of the session and saves any facts that are worth keeping. The review uses the same model Kimi Code is already configured to talk to, and the text it sees is scrubbed before it leaves your machine so credentials pasted in chat never reach the configured provider.
If you do not want that automatic review, set
KIMI_MEMORY_AUTO_EXTRACT=off before the first conversation starts.
Privacy and data handling
Local-first by construction. The plugin never writes into Kimi's session tree. The four files it creates are:
<Kimi data folder>/kimi-memory/<project>/memory.sqlite
<Kimi data folder>/kimi-memory/_global/memory.sqlite
<Kimi data folder>/kimi-memory/_diagnostics/hooks.logThe diagnostic log records automatic actions at one record per line for failures, save issues, and similar warnings. Free-form error messages are cleaned before they land on disk, so absolute paths, host names, and URLs are removed from any third-party string.
Two optional behaviours, each can be turned off:
Helper model for finding related memories. A small model file (~25 MB) downloads the first time you use the plugin and caches locally. Disable with
KIMI_MEMORY_EMBEDDINGS=off.Automatic review at end of conversation. One short model call per session to the provider configured in Kimi's settings. The conversation text included in that call is cleaned before it leaves your machine, so any credentials pasted in chat never reach the provider. Disable with
KIMI_MEMORY_AUTO_EXTRACT=off.
Every memory save is checked against a catalogue of known credential
shapes — passwords, API keys, security tokens, "Authorization: Bearer"
headers, and similar patterns. False positives are preferred to
persisting a real secret. See SECURITY.md for the full policy.
Configuration
All settings are optional; defaults are tuned for everyday use.
Setting | Default | What it does |
| on | Auto-wipe per-project memories when the assistant detects the project was re-cloned. Set to |
| on | Set to |
| on | Set to |
| on | Set to |
| on | Set to |
| on | Set to |
| on | Set to |
| on | Set to |
The full table — including timeouts, strict-mode network guards, and
auto-cleanup switches — lives in AGENTS.md.
Standalone command line
For power users, the same surface is available without starting the
plugin, through the kimi-memory bin entry:
kimi-memory list [--cwd <path>] [--scope project|global|all]
kimi-memory get <memory-id> [--cwd <path>] [--scope project|global]
kimi-memory status [--cwd <path>]
kimi-memory recall <query> [--cwd <path>] [--limit N]
kimi-memory prune [--cwd <path>] [--all-projects] [--apply]
kimi-memory reset-project [--cwd <path>] [--apply]
kimi-memory export [--cwd <path>] [--output <path>]
kimi-memory import [--cwd <path>] [--input <path>]--json emits machine-readable output; -q suppresses per-row
output; --home <dir> overrides the Kimi data folder.
prune --apply removes memory for projects whose folder no longer
exists; reset-project --apply wipes the per-project memories of
the active project. Both default to a dry run that shows what would
change before doing it.
Uninstall and data retention
/plugins remove kimi-memoryremoves the installation record but leaves the managed copy and memory files on disk.Remove the managed copy:
rm -rf "$KIMI_CODE_HOME/plugins/managed/kimi-memory".Wipe every kimi-memory file:
rm -rf "$KIMI_CODE_HOME/kimi-memory/".For cleanup of just the projects that no longer exist, use
/kimi-memory:prune(ormemory_prunewithscope: "all-projects"). Dry-run by default; passapply: trueto delete. The cross-project database and the active project's database are always preserved.
License
MIT — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Persistent AI memory shared across Claude, ChatGPT, coding agents, and compatible MCP clients.
Persistent memory for AI assistants. Save once; recall from Claude, ChatGPT, or any MCP client.
Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides persistent, local-first AI memory across sessions via MCP tools for storing, searching, and retrieving context from past interactions.1MIT
- AlicenseNot gradedqualityBmaintenanceLocal persistent memory for AI coding tools. Stores project context and conversation recall locally via MCP.1114MIT
- AlicenseNot gradedqualityBmaintenanceProvides a persistent, local-first memory for coding agents over MCP, enabling automatic recall and recording of past work, failures, and decisions to reduce repetition and token usage.MIT
- AlicenseNot gradedqualityAmaintenanceProvides persistent memory for AI coding agents via MCP, enabling agents to store and semantically recall facts, events, and lessons across sessions, all running locally without cloud dependencies.Apache 2.0
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cbuntingde/kimi-memory'
If you have feedback or need assistance with the MCP directory API, please join our Discord server