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
git clone https://github.com/fkiene/llmtrimTools (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
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