One memory layout, two ways in:
use the agent built on it, or add it to the agent you use.

Your memory
AGENTS.md, MEMORY.md
All of it re-read every turn
AlwaysOnMemory
every turn
What every task needs
OnDemandMemory
when a task asks
Read only when asked

Trusted By Engineers At:

  • + many startups
Use oursBeta

The low-cost, open-model coding agent. Any model on your own key: NVIDIA, OpenRouter, your Claude subscription or a local model. MinniMemory interface built in.

8,2735,286-36%tokens written to the model’s cache in a warm session, Claude Code against MinniCode on the same tasks

$ irm https://minniai.com/install | iex
Or keep your agentFree on npm

Reduce your coding agent’s token usage, in Claude Code and Codex.

Your agent’s memory, split into a small core that loads every turn and files that load only when a task needs them. No lines lost.

$0.47$0.29-37.7%a Claude Code session of 30 questions on our test memory at API rates, before and after MinniMemoryMCP 1.6.0, average of three; measured 15 November 2026

$ npm i -g minnimemory; minnimemory install

Our tools run withClaude CodeCodexNVIDIAOpenRouterOllamaLM Studio

Watch Minni Labs at work.

Our research and our three tools in one video: MinniMemoryMCP, MinniCode and MinniTuner, plus a first look at MinniMemoryAgent, a memory upkeep agent in development. Every number on screen comes from a real run of our tools.

How we measured cheaper Claude Code sessions with MinniMemoryMCP 1.6.0.

Five results, measured, across MinniMemoryMCP and MinniCode.

-37.7%a session's cost, averaged over three Claude Code sessions of the same 30 questions on our test memory, before and after MinniMemoryMCP 1.6.0, at API rates; each session -33.9% to -40.0%; measured 15 November 2026
  • Cache reads4,133,084 to 2,152,150
  • Cache writes134,041 to 96,034
  • Output46,520 to 28,142, -39.5%

Tokens fall further than cost: cache reads are most of the tokens but the cheapest kind, and cache writes, forty times the price of a read, fell least.

4,314,135 → 2,276,582 tokens$0.47 → $0.29 a session81 of 87 correct after, 80 before

Tokens over the run-47.2%Each column is one turn, on average4,314,135 to 2,276,582 tokens, 90 answers a side, 87 of them graded
Memory lookups1789 before, 17 after: times the agent looked in its memory before answering
Lines lost0One square per file16 of 16 files kept every line, undo restores byte for byte (checked on an earlier release, 1.2.1)
MinniCode cache writes-36%5,286 tokens a warm session against 8,273 for Claude Code, same tasks
How we measured

Over 4.3 million tokens of measured work

We gave Claude Sonnet 5.5 the same 30 questions in Claude Code, three sessions a side and 90 answers in all: once with a test memory in the layout Claude Code itself writes, as it was, and once after MinniMemoryMCP 1.6.0 sorted it, with its server and hook on. The run used 4,314,135 tokens before and 2,276,582 after, 47.2% fewer, and a session cost $0.47 before and $0.29 after on average at API rates, 37.7% less (each session 33.9% to 40.0% less). A blind judge found 80 of 87 answers correct before and 81 after.

MinniMemoryMCP 1.6.0, measured 15 November 2026

Fewer trips into memory

In the same run the agent went looking in its memory before answering 89 times before and 17 times after, over the same 87 answers. With the hook on, the one section a question needs is placed in front of the agent before it asks.

MinniMemoryMCP 1.6.0, measured 15 November 2026

MinniCode writes less to the cache than Claude Code

On the same coding tasks, a warm MinniCode session wrote 5,286 tokens to the model's cache against 8,273 for Claude Code, 36% less. Three sessions each on Claude Sonnet, after one uncounted warm-up, every task checked correct.

MinniCode on the claude provider, measured 21 October 2026

Every line kept, every file restored

We compiled a 16-file test memory and the example file that ships with the package. Every line landed somewhere word for word, and undo put every file back byte for byte.

MinniMemoryMCP 1.2.1, measured 9 October 2026

Methods

Session cost: the tokens of every call, priced at Anthropic's published API rates, with the cache reads and writes each call made. Tokens fall further than cost because cache reads are most of the tokens but the cheapest kind, and output, the most expensive kind, fell least. An automatic check tested each answer for the expected fact.

Lookups: every model turn beyond the first in a task, a read or a search before the answer, summed over the three sessions of each side.

Lines lost: the test memory compiled and undone, then every file compared with the original.

Every figure on this site

The evidence page lists each number the site quotes with what it counts, the method, the date and the build.

Read the run line by line

Why Claude Code sessions get expensive walks through this run's token table and what moved.

The MinniMemory Interface: rules for a smaller agent memory.

Our research, written down: how an agent’s memory is split, what it reads every turn, and the rules that keep its answers short. Every result above comes from it. You can apply it two ways today.

Do it yourself

MinniMemoryMCP

Get MinniMemoryMCP
$ npm i -g minnimemory
$ minnimemory install
  • initmaps the memory, previews the split
  • applymakes the split
  • undorestores the originals
  • doctorre-checks it later
Done with you

We apply it to your agent

Book a call
  1. 01Measurewhat your agent is handed each turn
  2. 02Applythe interface to its memory and instructions
  3. 03Reporttokens saved against answer quality

See each tool work.

You see every change and approve it. Pick a tool and watch it work.

MinniMemoryMCP

An MCP server that shrinks what Claude Code and Codex load every turn

  • Cheaper Claude Code sessions on our test memory with 1.6.0, answers held
  • Less for Claude Code to re-read every turn
  • Nothing in your memory is lost
$ npm i -g minnimemory; minnimemory install

Help keep the research running.

MinniMemoryMCP and MinniCode cost nothing to use. We pay for the test runs, the AI calls and the hosting behind them. If our tools saved you time or tokens, you can back the work.

Payments go through Buy Me a Coffee. Support is a gift: it does not buy a product or a license, and it is not tax deductible.

Frequently asked questions

01Do you see my code or my memory files?

MinniMemoryMCP never does. It runs entirely on your computer, sends nothing anywhere, needs no account or API key, and has no AI model inside it. MinniCode sends each request straight from your computer to the provider whose key you gave it (NVIDIA, OpenRouter or Claude) or to a model on your own computer, so our servers never see your code. The chat window on this page is answered by an outside AI provider, and we don't store those messages either.

02Why not just edit the file myself?

You can, and for a short file you should. It gets harder as the file grows: you have to decide which lines your agent needs on every turn, move the rest into separate files without dropping anything, and leave a pointer so the agent knows when to open each one. MinniMemoryMCP does that sorting for you, backs up your originals first, and can re-sort after you edit the file again.

03What if it wrecks my memory files?

It backs up your originals before it writes anything, and one command, undo, puts them back exactly as they were. Inside Claude Code the server itself never writes: apply and undo return the command to run and the list of files it touches, and your agent runs that command through your own approval prompt, so you see every change. Run from the terminal, apply writes the files itself, after the backup.

04What does it cost?

MinniMemoryMCP is free. Install it from npm. MinniCode itself costs nothing; you bring the model key. MinniTuner, an agent that tunes how a Windows PC uses its CPU, GPU and RAM, is coming soon.

05Does MinniCode need a paid API key?

No. MinniCode runs on any model from NVIDIA or OpenRouter with your own key, free ones included, on your Claude subscription through Claude Code, or on a model on your own computer through Ollama or LM Studio. It asks for the key the first time you run it, and requests go straight from your computer to the provider.

06Is Minni AI the same as Minni Labs?

Yes. Minni Labs is the company, and Minni AI is the name our website (minniai.com) and our GitHub organization carry, so you will see both. They are the same team and the same tools: MinniMemoryMCP, MinniCode and MinniTuner.

07Who makes Minni?

Minni was founded by Hamzah Muhammad, a former software engineer at Amazon, with two co-founders: a second engineer also from Amazon, and Reynardo, formerly at Microsoft. Four engineers build it in all. We ran into the same problem in our own work: coding agents re-reading their whole memory every turn, and token bills growing with it. Minni is what we built to fix that, a smaller always-loaded memory with the rest loaded only when needed, and we publish a number only after we have measured it.

Talk to us before it gets expensive.

Tell us how much you spend on your agentic workflows, we'll show you how we can cut down on that bill.

Book a calladmin@minniai.comadmin@minniai.com