1. Conduid
  2. Agents
  3. Llmtrim
MCP server · Agents

Llmtrim

Local proxy that compresses your LLM API requests so you pay less, with no change to the answers. Trims wasted tokens from prompts, history, tool output, and code before they're sent: -31% input / -74% output, measured live. Any provider, no extra model calls. Also an MCP server and embeddable library (Rust, Python, Ruby, Kotlin, Swift, JS/TS).

74Good

Scored 1 hours ago · breakdown

About Llmtrim

Llmtrim is an MCP server published by fkiene in the Agents category: local proxy that compresses your LLM API requests so you pay less, with no change to the answers. Trims wasted tokens from prompts, history, tool output, and code before they're sent: -31% input / -74% output, measured live. Any provider, no extra model calls. Also an MCP server and embeddable library (Rust, Python, Ruby, Kotlin, Swift, JS/TS). Conduid read 3 tools from its source: llmtrim_compress, llmtrim_compress_text and llmtrim_stats. No package is published for it, so it installs from a source checkout.

The repository has 278 stars and 24 forks, is licensed MPL-2.0, and its last commit was on 1 Dec 2026. The latest release is v0.13.8 (2 Nov 2026): Refresh Rust, tray frontend, and Java build dependencies. It follows v0.13.7 (16 Sep 2026), and the 5 most recent releases go back to v0.13.4 (8 Sep 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include agentic-coding, cost-reduction, devtools, llmops, mitm-proxy and prompt.

Install

From source
git clone https://github.com/fkiene/llmtrim

Tools (3)

llmtrim_compressCompress an LLM request body and report the token savings. Pass the raw request JSON; get back the compressed request in the same shape plus before/after token counts and the per-stage breakdown.
llmtrim_compress_textCompress a single text blob and report the token savings. Use this to shrink one chunk (a tool output, a document) rather than a whole request. The text is wrapped in a minimal request, compressed, and the shrunk text is returned.
llmtrim_statsReport recent savings from the local ledger: tokens trimmed and dollars saved. The same headline figures the `llmtrim status --json` dashboard shows.

Security checks

  • ✓README presentThe repository's README runs to about 4.6K words.
  • ✓License declaredThe repository declares the MPL-2.0 license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionScanned 116 source files and found no eval, dynamic Function or shell execution.

1 check has not been run yet.

Releases

v0.13.8llmtrim 0.13.8 · 2 Nov 2026Changed Refresh Rust, tray frontend, and Java build dependencies. Includes rustls 0.23.46, async-openai 0.42, zstd 0.14, source-map-js 1.2.2, and the Cargo minor/patch updates. Stopword language selection uses the updated dependency's…
v0.13.7llmtrim 0.13.7 · 16 Sep 2026Fixed DeepSeek dollars follow the published list again. `deepseek-flash` replaced `deepseek-v4-flash`, the retired ids still bill at Flash prices, and a cache hit is billed at its own $0.003/1M tier instead of a fraction of the miss rate.…
v0.13.6llmtrim 0.13.6 · 15 Sep 2026Fixed Source-file tool results are no longer windowed. Claude Code `Read` (and equivalent dumps: guttered `cat -n`, TypeScript, Rust, Java) was classified as a log because identifiers such as `Exception` / `Error` / `info` matched anywhere…
v0.13.5llmtrim 0.13.5 · 15 Sep 2026Changed Interceptor replay/fallback no longer pins blocking threads. Secondary upstream POSTs (400/422 replay, `sub` fallback, compact candidates, transport retries) use the same async HTTP stack as the MITM path, with a 600s timeout, so a…
v0.13.4llmtrim 0.13.4 · 8 Sep 2026Added Tool-output passthrough for machine couriers. Long tool results are still windowed by default (head + errors + `llmtrim recall`), which drops a terminal trailer such as `LANE_DELIVERY job=… sha256=…` and breaks attesters that bind…

README

The repository's README runs to about 4.6K words, fetched 13 days ago. The original in the repository is authoritative.

Read full README
Questions

About Llmtrim

How do I install Llmtrim?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Llmtrim safe to use with an AI agent?

Its trust score is 74 out of 100 (good). It passes all 5 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Llmtrim still maintained?

Yes — the latest release is v0.13.8 (2 Nov 2026), and the last commit was 9 hours ago. The repository has 278 stars and 11 open issues.

What tools does Llmtrim provide?

Conduid read 3 tools from the source: llmtrim_compress, llmtrim_compress_text and llmtrim_stats.

What license is Llmtrim released under?

The repository declares the MPL-2.0 license. That applies to the latest release, v0.13.8, as well.