{"repo":"alxsuv/pino","free":true,"listed":false,"github":"https://github.com/alxsuv/pino","clone":"git clone https://github.com/alxsuv/pino.git","description":"Anthropic API reverse proxy with prompt-cache injection and request body transforms","language":"JavaScript","stars":54,"topics":["anthropic","claude","claude-code","cost-optimization","developer-tools","llm-ops","nodejs","prompt-caching","reverse-proxy","zero-dependencies"],"license":"MIT","category":"networking-infra","readme_excerpt":"Pino proxy A tiny local proxy to inspect, cache, and reshape Anthropic API requests. See exactly what your Claude client ships — then cache and trim what it leaves on the table. Zero runtime dependencies, no build step, no SaaS. A 500-line local reverse proxy in front of api.anthropic.com . A tiny local HTTP reverse proxy in front of api.anthropic.com . It forwards everything to upstream untouched except /v1/messages requests, where it optionally: - Logs raw request/response bodies so you can see precisely what Claude Code (or any client) sends — tool schemas, system blocks, cache breakpoints, TTLs. This observability is how every optimization below was found, and it's the proxy's most durable use. - Auto-injects prompt-cache breakpoints on the chunks the client leaves uncached — the tools catalog (still shipped with zero breakpoints) and the static reminders block in messages[0] . - Normalizes cache TTL to 1h on stable content and reclaims breakpoint slots the client wastes on tiny blocks. - Reshapes the request body via a user-supplied transform(body) hook — drop unused tools, strip ANSI escapes, override the model, rewrite system text. Origin story Pino started with exactly one job. Claude Code was shipping a large tool catalog ( 25–29 schemas, 15k tokens at its peak) uncached on every turn , so Pino injected a single prompt-cache breakpoint and turned that re-shipped block into a 0.1× cache read instead of a 1× re-bill — up to 90% off on that chunk. That was the whole pit","default_branch":null,"files":null,"tree":[],"storefront":"/r/alxsuv","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alxsuv/pino/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."}