Skip to content
NewMinniCode is out now, in beta.Get MinniCode→
Minni Labs
DemoEvidenceService
Products
Products
  • MinniMemoryMCPFlagship, free on npmMemory for your AI agentSplits your agent’s memory into a small always-on part and files that load only when a task needs them.
  • MinniCodeBetaLow-cost, open-model coding agentA low-cost, open-model coding agent for the terminal. Reads, edits, tests and opens pull requests.
  • MinniTunerComing soon for WindowsComing soon for WindowsAn agent that tunes how your Windows PC uses its CPU, GPU and RAM.
DocsMinniMemoryMCP docsInstall it, the commands, undoMinniCode docsInstall it, pick a model, the commands
See it workDemoThe full tour in one videoHow it worksEach product, step by step
Resources
LearnGuidesCut token usageOpen-LLM agentsFAQnpm package
CompanyAboutContactSupportPrivacyTermsData handlingSecurity
AWSAWSStartups program

Guides

Low-token coding agents: what makes one cheap to run

A coding agent pays for every token it sends the model, on every turn: its own instructions, your memory files, the tool list, the conversation and the files it read. A low-token agent keeps that pile small and stable. It keeps its own instructions short, loads memory only when a task needs it, and leaves a prefix the provider can cache, so the same model does the same work for fewer tokens.

Updated 2026-11-27

Where a coding agent’s tokens go#

Each turn, the agent sends the model everything it needs to answer. Most of it is the same from turn to turn:

  • Its own instructions: the system prompt that tells the model how to edit, when to ask and how to use tools. Some agents ship thousands of words here.
  • Your memory files: CLAUDE.md, AGENTS.md or the agent’s own notes file, loaded whole on every turn.
  • The tool list: every tool’s name, description and schema, including every MCP server you added.
  • The conversation: your messages, the model’s replies and every file and command output it has read, until the agent compacts it.

Only the last part is the work itself. The first three are overhead you pay again on every turn, so they are where a low-token agent saves.

What makes an agent low-token#

ChoiceWhy it saves tokens
Short built-in instructionsLess fixed text before your task on every turn.
Memory that loads on demandA small core loads every turn; the rest loads only when a task asks for it.
A stable prefixProviders cache a prefix that does not change, and a cached read costs a fraction of a fresh one. Text that changes every turn breaks the cache.
Few, focused toolsEvery tool description is sent every turn. Fewer, clearer tools cost less and confuse the model less.
Reading before editing, in small piecesSearching and reading only the lines it needs keeps file contents out of the conversation.
Your choice of modelThe same work on a smaller or open model costs less. A low-token agent makes a smaller model usable because the model’s attention goes to your code, not to the agent’s own text.

How MinniCode does it#

MinniCode is the low-cost, open-model coding agent from Minni Labs, for the terminal. It applies the same memory layout as MinniMemoryMCP to itself.

  • Its own instructions stay short, and the rest of what it knows loads only when a task needs it.
  • Your project’s MINNI.md notes load every turn. When they grow long, /memory apply splits them: a short core stays loaded and the rest loads only when a task needs it.
  • Any model on your own key: NVIDIA or OpenRouter, free ones included, your Claude subscription through Claude Code, or a local model through Ollama or LM Studio. Requests go straight from your computer to the provider.
  • You choose how much it asks: before each edit and command, or in auto mode only before pull requests and merges.

What we measured: on the same tasks, a warm MinniCode session wrote 5,286 tokens to the model’s cache against 8,273 for Claude Code, 36% less. The method is on the evidence page.

install MinniCode
# Windows, in PowerShell
irm https://minniai.com/install | iex

# macOS and Linux
curl -fsSL https://minniai.com/install | sh

Keeping the agent you have#

If you stay on Claude Code or Codex, the memory part of the saving still applies: MinniMemoryMCP splits your memory files the same way. The other levers are in How to reduce Claude Code token usage and How to reduce Codex token usage. Other open-model agents are compared in Open-LLM coding agents compared.

Try MinniMemoryMCP

Free, runs on your computer, and every change can be undone. Two commands install it for Claude Code; the docs cover Codex and the rest.

install it for Claude Code
$ npm i -g minnimemory
$ minnimemory install

More guides

  • How to reduce Claude Code token usage

    Where the tokens go each turn, and eight ways to spend fewer.

    Updated 2026-11-25 · Minni Labs

  • Tools that reduce Claude Code token usage, compared

    Output filters, code indexers, memory tools and usage meters: which tokens each one cuts, and which you need.

    Updated 2026-11-25 · Minni Labs

  • Token optimization for AI agents: memory, body and brain

    Why agents burn tokens, and the three layers where you can cut them without a worse answer.

    Updated 2026-11-27 · Minni Labs

  • An MCP server to reduce token usage in Claude Code and Codex

    How MinniMemoryMCP cuts the memory tokens your agent loads on every turn, and how to install it.

    Updated 2026-11-27 · Minni Labs

  • Context engineering for coding agents: what goes in every turn

    Deciding what your coding agent reads on every turn, what it reads on demand, and what it never needs.

    Updated 2026-11-27 · Minni Labs

  • Prompt caching for coding agents: cache reads, cache writes and what breaks them

    How prompt caching works in a coding agent, why cache reads dominate the bill, and how to keep the cache warm.

    Updated 2026-11-27 · Minni Labs

  • Open-LLM coding agents: OpenCode, Aider, Cline, Goose and MinniCode compared

    Five coding agents that run on open LLMs: where they run, which models, what they ask before they act.

    Updated 2026-11-25 · Minni Labs

  • Claude Code alternatives that run on open LLMs

    When an open-LLM agent is worth the move, when to keep Claude Code, and what comes across with you.

    Updated 2026-11-25 · Minni Labs

  • How to run a coding agent on free, open models

    What a free key gets you, what a local model can do, and where the tokens go.

    Updated 2026-11-25 · Minni Labs

  • Get a free NVIDIA API key for a coding agent

    Where the key comes from, where to keep it, and how to run a coding agent on it.

    Updated 2026-11-07 · Minni Labs

  • Claude Code usage limit reached: what to do, and how to hit it less

    What each limit message means, what to do now, and how to send less every turn.

    Updated 2026-11-16 · Minni Labs

  • CLAUDE.md too long: what Claude Code does with it, and how to split it

    What a long CLAUDE.md costs, the real size limits, and four ways to cut it.

    Updated 2026-11-16 · Minni Labs

  • Claude Code context window keeps filling up: why it compacts, and what to do

    What fills the window, what compaction keeps, and how to compact less often.

    Updated 2026-11-16 · Minni Labs

  • How to reduce Codex token usage

    Where Codex spends tokens, and seven ways to spend fewer.

    Updated 2026-11-16 · Minni Labs

  • Codex usage limits: why they drain and how to use fewer tokens

    How the windows work, how to check what is left, and what uses the allowance up.

    Updated 2026-11-11 · Minni Labs

  • AGENTS.md too large: what Codex cuts off and how to split it

    The 32 KiB cap, how to see which files load, and five ways back under it.

    Updated 2026-11-11 · Minni Labs

  • How to lower a Claude Code or Codex API bill

    What a coding agent bills on an API key, and the levers that move it.

    Updated 2026-11-16 · Minni Labs

  • Why Claude Code sessions get expensive

    Every turn re-sends the whole session. What makes that grow.

    Updated 2026-11-05 · Minni Labs

  • Claude Code memory: CLAUDE.md vs MinniMemoryMCP

    What belongs in CLAUDE.md, and splitting the rest out by hand or with a tool.

    Updated 2026-11-16 · Minni Labs

  • MinniMemoryMCP vs Mem0, Zep, supermemory and Letta

    Four tools add memory to an agent. MinniMemoryMCP cuts what the agent already loads. When each fits.

    Updated 2026-11-16 · Minni Labs

  • How Claude Code remembers across sessions

    What carries over between sessions, what does not, and how to keep it small.

    Updated 2026-11-16 · Minni Labs

  • Where Claude Code keeps its memory

    Every memory path on your machine, what each file is for, and which ones load every turn.

    Updated 2026-11-07 · Minni Labs

  • What a Windows PC optimization agent should and should not touch

    The settings worth changing, the ones that are placebo, and the ones that break things.

    Updated 2026-10-25 · Minni Labs

GuidesMinniMemoryMCPHome
© 2026 Minni Labs. All rights reserved.