{"repo":"fkiene/llmtrim","free":true,"listed":false,"github":"https://github.com/fkiene/llmtrim","clone":"git clone https://github.com/fkiene/llmtrim.git","description":"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).","language":"Rust","stars":213,"topics":["agentic-coding","ai","anthropic","claude-code","cost-reduction","developer-tools","llm","llmops","mitm-proxy","openai"],"license":"MPL-2.0","category":"ai-agents","readme_excerpt":"llmtrim Local proxy that compresses LLM API traffic so you pay less. Same answers, smaller bill. −31% input · −74% output · −66% round-trip cost · 112 live A/B cases · 5&nbsp;ms/call · no model to load Using Claude Code ? One install also gets you /sub to serve it through CLIProxyAPI. Proxy · CLI · MCP · library (Python · Ruby · Swift · Kotlin · JS/WASM) What it does &bull; Install &bull; Day to day &bull; In action &bull; Works with &bull; Claude Code &bull; Numbers &bull; Config &bull; CLI &amp; library --- What it does You run Claude Code, Codex, Cursor, or your own app. Every turn, the tool sends a large request: system prompt, tools, history, raw command output. You pay for every token of that, including the parts that do not help the model. A 200-line build log with two errors. Tool schemas resent on every call. JSON with hundreds of near-identical rows. That bulk is still billed. llmtrim sits on your machine as a local proxy, trims the waste, and forwards a smaller request. The reply is unchanged. You keep the same tools and answers; you spend less. Compression cannot raise your bill or break a request; worst case is zero savings. Everything runs locally, nothing is sent to us. In action → For Claude Code the same install also wires /sub to route sessions through another subscription. Details → --- Get started That's it. setup starts a local proxy, wires your shell, and enables recoverable tool-output shaping. When Claude Code is present, it also turns on /sub . You do","default_branch":null,"files":null,"tree":[],"storefront":"/r/fkiene","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fkiene/llmtrim/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}