Tools & Releases

Open-Source Proxy Pxpipe Cuts Claude Code Token Costs by 60%

A new local proxy tool called pxpipe reduces Claude Code token usage by converting bulky text and code context into images before sending them to the model.

ATAI Tools Worth News Desk · News DeskJuly 3, 20262 min read✓ Independently fact-checked
The quick version
  • The open-source local proxy pxpipe converts dense text context, including system prompts and tool documentation, into PNG images to bypass high text-token charges.
  • According to the project’s GitHub repository, dense content like code and JSON packs approximately 3.1 characters per image token, compared to about 1 character per text token.
  • The technique is highly workload-dependent and targets bulky, repetitive parts of requests, such as historical logs and system instructions, while leaving small requests untouched.

A new open-source local proxy tool called pxpipe can reduce Claude Code input token usage by up to 60% by rendering bulky text context into images. According to the project’s GitHub repository, developed under the username teamchong, the tool exploits a pricing gap in how multimodal LLMs charge for visual data versus raw text. By converting dense text like system prompts, tool documentation, and older conversation history into PNG images before they leave the user’s machine, developers can bypass standard text-token limits.

How does pxpipe reduce API costs?

The core mechanism of pxpipe relies on the fixed token cost of images, which is determined solely by pixel dimensions rather than the volume of data contained within the image. On real Claude Code traffic, dense content such as code, JSON payloads, and tool outputs can pack roughly 3.1 characters per image token, compared to a standard ratio of about 1 character per text token. The local proxy automatically intercepts outbound requests, identifies the bulkiest portions of the prompt, and rewrites them into highly compact PNG images for the LLM to process visually via optical character recognition (OCR).

What are the limitations of converting code to images?

The developers behind pxpipe note that the token savings are highly workload-dependent. Because image token costs are fixed by resolution, the proxy is designed to ignore sparse or small requests where raw text remains more economical. It specifically targets repetitive, dense context blocks that do not change frequently. While this visual approach works well for modern multimodal models, developers looking to optimize their development setups can compare this with other platforms in our guide to the best AI coding tools to see which environments offer the most native efficiency.

Is pxpipe compatible with all development workflows?

Currently, pxpipe is distributed as an open-source project under the MIT license on GitHub. It operates locally as a proxy server, meaning it does not send data to third-party endpoints other than the target model provider. However, because it relies on the model’s ability to accurately read text from rendered images, users may experience minor variations in how reliably the model interprets highly complex, nested code structures compared to native text input.

60%Potential reduction in Claude Code input tokens using pxpipe

Frequently asked questions

How does pxpipe save money on Claude Code API fees?

It converts dense text context, such as tool documentation and history, into compact PNG images. Because multimodal models charge for images based on pixel dimensions rather than character counts, dense text in image form can pack 3.1 characters per token compared to just 1 character per token in raw text format.

Does pxpipe work on all types of Claude API requests?

No. The savings are highly workload-dependent. The tool is designed to target dense, bulky text blocks like system prompts and long histories, while leaving small or sparse requests untouched because raw text is more cost-effective for shorter inputs.

Is pxpipe a secure tool to use locally?

Yes, pxpipe operates as a local proxy on your machine, intercepting and rewriting requests before they are sent to the model provider, and the underlying code is open-source under the MIT license.

Our tested pick

Check out our complete hands-on review of the best AI coding tools to find the most cost-effective solution for your development pipeline.

Best AI Coding Tools (2026): 7 Tested & Ranked →

Source: Hacker News. Published July 3, 2026.

AT
AI Tools Worth News Desk
News Desk · AI Tools Worth

The AITW News Desk tracks model releases and AI product launches daily. Every story is fact-checked against its primary source before publishing and edited by Ali Zayed — and always links back to the original source.

AI Tools Worth is independent and unsponsored. Some linked guides contain affiliate links — they never change our verdicts.

THE 5-MINUTE AI BRIEF
Know which AI tools are actually worth it — in one weekly email

Hands-on verdicts, real price changes and the launches that matter. No hype, no spam — unsubscribe anytime.

Free forever. We never share your email. By the AI Tools Worth editorial team.
THE 5-MINUTE AI BRIEF
Weekly verdicts on AI tools worth paying for — free, no hype