teamchong/pxpipe
cut Claude Code token usage by rendering text context as images observed · 2026-08-28
Health v2 · maintenance only
80/100
- Activity 99
- Release rhythm 98
- Longevity 7
Flags: young
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 2
- age_days: 105
- days_rel: 13
- days_push: 7
- n_releases_24m: 8
Adoption not part of the score
7280 stars · 634 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
pxpipe is a local TypeScript proxy that reduces Claude Code input token usage by rewriting bulky text context (system prompts, tool docs, history) into compact PNG images before requests leave the machine. It exploits the fixed token cost of images by pixel dimensions to pack ~3.1 chars per image-token versus ~1 char per text-token, cutting end-to-end bills by roughly 59-70%.
Use cases
- reduce Claude Code API token costs
- fit more context into an LLM context window
- lower bills when using Claude Code on large codebases
- proxy Anthropic API requests through a local token optimizer
- track per-request token savings with a dashboard
- render dense code and JSON context as images for vision models
When to choose
- you use Claude Code heavily and want to cut input token costs
- you need to fit large system prompts or tool output into a limited context window
- you want a local, MIT-licensed proxy with no data leaving your machine
- you want measurable per-request token savings via a dashboard and events log
When to avoid
- your model or provider lacks a vision/image input channel
- your workload involves tasks where image-rendered text degrades model accuracy
- you need guaranteed exact text fidelity for critical instructions
- you use non-Anthropic APIs incompatible with the proxy's request rewriting
Facets
cli-tool · maturity active
llm-inference proxy developer-tools image-processing developer-tools large-language-models cli cross-platform windows claude-code token-optimization llm-proxy cost-reduction vision-context png-rendering anthropic-api command-line ai-agents nodejs macos linux
1 source
- readme: https://github.com/teamchong/pxpipe · fetched 2026-08-28 · cd733db4ec9a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| teamchong/pxpipe | main | 80 |
For agents
markdown · JSON · MCP: product_card(name="teamchong/pxpipe")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem