# πŸ’° Pay-per-Token-Saved β€” Mneme's value-based business model > The honest version. Every number here is **measured** and **signed**, not a marketing estimate. Mneme charges for value it can *prove* it delivered. ## The problem it prices against A company running AI coding agents pays the model vendor **per token**. The expensive part isn't the answer β€” it's the **loop**: an agent re-feeds the model a 2 KB error log + a full diff on every retry, burns hundreds of "thinking" tokens chasing a hallucinated bug, and repeats approaches a past session already proved are dead ends. That waste scales with usage and lands on the API bill. ## What Mneme does (the deterministic, local, measurable process) Mneme runs **locally** and does the cheap deterministic work *before* the tokens leave your machine: | Organ | What it cuts | How it's measured | |---|---|---| | **DISTILL** | a verbose `{error log + diff}` β†’ the minimal causal **brief** (failure line + changed `file:line` + the known fix) | exact char reduction + a labeled β‰ˆchars/4 token estimate, **per call** | | **LOOPGUARD** | a detected **thrash** (same failure repeated) β€” stop retrying, surface the known recovery | objective: same failure-signature β‰₯N with no success between | | **NKL** | a **proven dead-end** approach β€” don't re-walk a trap a past session proved | derived from the absorb ledger; advisory | | **ACGV verify** | a **hallucination** refuted before it's relayed (tokens not spent on a wrong answer) | a signed verdict (IMPOSSIBLE_REFUTE / BLACK_HOLE / …) | Each reduction is a measured `(tokensBefore β†’ tokensAfter)` delta. The **Token Treasury** accumulates them into a **signed, append-only ledger**: ```bash mneme savings # measured input tokens saved + per-source breakdown mneme savings --price-per-1k 0.003 # …as USD at YOUR vendor's input price ``` ``` πŸ’° Token Treasury β€” 405 input tokens saved across 2 events (βˆ’91.2%) 444 β†’ 39 tokens (β‰ˆchars/4 estimate) distill 405 saved Β· 2 events β‰ˆ $0.001 saved at $0.003/1k input tokens (your supplied price) βœ“ signed (verify offline with the NOTARY public key) ``` **It fills itself.** `mneme distill` records each reduction automatically β€” you never log anything. (MCP: `mneme.treasury.report`.) ## Why the number is trustworthy (the honesty contract) - **Measured, not estimated wisdom.** The ledger stores only the before/after deltas the producing organ actually computed. There is no "wisdom score". - **The token figure is a *labeled* β‰ˆchars/4 estimate** β€” a documented heuristic, not a vendor BPE tokenizer. The **ratio** is robust; the absolute is an honest estimate. The **USD** uses a price *you* supply for *your* vendor β€” Mneme never invents a price. - **Input-context only.** Mneme measures the input tokens it deterministically removed. It makes **no** claim about the model's internal chain-of-thought. - **Signed + falsifiable.** The aggregate report carries a NOTARY (Ed25519) receipt; the ledger is append-only. A buyer's finance team can audit the saving offline β€” the whole point of value-based pricing is that the value is *checkable*. - **The math is a monoid** (order-independent, batch-safe), proven over a **1,000,000-case** discrete-math sweep in CI (`probe.treasury.monoid_million_case`), so the totals are correct regardless of how events are batched. ## The pricing tiers | Tier | Who | Price | |---|---|---| | **Free (local)** | individual devs | $0 β€” all local organs + the savings ledger | | **Pro / Team** | teams who want the federation + dashboards | flat per-seat **or** a small % of *measured, signed* tokens saved β€” you pick | | **Enterprise** | orgs running agents at scale | **value-based**: a share of the signed `mneme savings` your fleet actually banked, audited from the ledger | The enterprise model is the differentiator: **Mneme only earns when it provably saved you money.** The more heavily you run agents, the more it saves, the more it earns β€” aligned incentives, with a signed ledger as the invoice's source of truth. β€” the engine: [`docs/COGNITIVE-LAYER.md`](COGNITIVE-LAYER.md) Β· every release: [`../CHANGELOG.md`](../CHANGELOG.md)