Skip to content
FossShelf
Home / Categories / For AI Engineers

pxpipe

Reduce token usage by converting text to images

Replaces Tokenade, The Token Company

7.86K starsMITlast commit 13 Nov 2026
Screenshot of pxpipe

Who it's for

Developers

Save costs on API usage by reducing token counts in requests.

Not using Claude Code.

Data Scientists

Efficiently manage large datasets by converting outputs to images.

Working with small datasets.

The problem

The project helps solve the problem of high token usage in Claude Code by converting bulky text context into images, thus reducing costs.

How it works

Token Efficiency

Reduces token usage significantly by converting text to images.

Local Proxy

Operates as a local proxy to handle requests efficiently.

Image Rendering

Converts bulky text into compact PNG images for better processing.

Features

  • Token Efficiency
  • Local Proxy
  • Image Rendering

How to install

npx pxpipe-proxy

Recommended for this setup

Strengths

  • Cost Savings: Can lead to a ~59–70% reduction in end-to-end billing.
  • High Efficiency: Handles dense content effectively, improving processing speed.

Trade-offs

  • Lossy Compression: Exact values in dense imaged content may not be preserved.
  • Limited to Dense Content: Best suited for token-dense content; may not save on sparse prose.

Tech stack

Languages
TypeScript, JavaScript, Dockerfile, Python, Shell
Frameworks
—
Databases
—
Tooling
esbuild

FAQ

Is the headline end-to-end, or only on the requests you touched?

End-to-end, the whole bill is considered.

What does it actually compress?

It compresses large tool_result bodies, older collapsed history, and static cacheable system prompts.

How is the math measured?

Both sides of the same request are measured simultaneously.

Similar tools

More in AI Engineers