explaingit

diegosouzapw/omniglyph

Analysis updated 2026-05-18

38TypeScriptAudience · developerComplexity · 3/5LicenseSetup · easy

TLDR

A local proxy that compresses bulky AI context into dense images to cut Claude API costs by 59 to 70 percent.

Mindmap

mindmap
  root((OmniGlyph))
    What it does
      Compresses context
      Renders as PNG
      Cuts AI bill
    Tech stack
      TypeScript
      CLI
      Cloudflare Workers
    Use cases
      Claude Code proxy
      Reduce token cost
      Stretch usage limits
    Audience
      Developers
      AI power users
    Safety
      Fail closed gate
      Benchmark receipts

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Reduce your Claude API bill by converting large system prompts and tool docs into dense PNG images.

USE CASE 2

Run a local proxy in front of Claude Code to shrink token usage without changing your workflow.

USE CASE 3

Stretch subscription usage limits further since usage is counted in tokens.

USE CASE 4

Test which AI models can accurately read dense image based context using the built in benchmark harness.

What is it built with?

TypeScriptCLICloudflare WorkersNode.js

How does it compare?

diegosouzapw/omniglyphdjdeveloperr/nativescript-expojavlonbek1233/-bento-grid
Stars383838
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasymoderateeasy
Complexity3/54/51/5
Audiencedeveloperdevelopervibe coder

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

OmniGlyph is a tool that helps reduce the cost of using AI models like Claude when working with large amounts of text context. The core idea is simple: instead of sending big chunks of text, such as system prompts, tool documentation, or old conversation history, to the AI as plain text, OmniGlyph turns that text into dense image files, specifically PNG pages. Since AI providers often charge for images based on their size rather than the amount of text inside them, this trick can cut your bill significantly. The project's own measurements show a 59 to 70 percent reduction in end to end cost. OmniGlyph works as a local proxy that sits between your computer and the AI provider. It rewrites bulky parts of your requests into these compressed image pages before anything leaves your machine, so nothing extra is sent elsewhere. The project aims for exact billing math rather than rough guesses, meaning it calculates the real formula each provider uses for image tokens and only converts to an image when doing so actually saves money. Not every AI model can read these dense images accurately. The project includes a fail closed gate, so if a model cannot reliably read the compressed renders, it blocks the conversion rather than risking silent errors or made up answers. According to the README, Claude Fable 5 reads these images with 100 percent accuracy in testing, while some other models such as GPT-5.5 and Gemini 2.5-flash struggle or fail entirely and were blocked by the gate. The project is written mostly in TypeScript and is available as a CLI, a proxy, and a Cloudflare Workers deployment. It is part of a larger project family called OmniRoute, and its documentation has been translated into 42 languages. To get started, users can run it directly with npx and point their Claude Code setup at the local proxy address. This project would mainly interest developers and technical users who already work with AI coding assistants and want to reduce their token costs, particularly people running long coding sessions with large context windows.

Copy-paste prompts

Prompt 1
Show me how to run npx omniglyph and point Claude Code at the local proxy using ANTHROPIC_BASE_URL.
Prompt 2
Explain how OmniGlyph converts text context into PNG images to reduce token costs.
Prompt 3
Help me understand the fail closed gate in OmniGlyph and why some models are blocked from using it.
Prompt 4
Walk me through the billing math OmniGlyph uses to decide when converting text to an image actually saves money.

Frequently asked questions

What is omniglyph?

A local proxy that compresses bulky AI context into dense images to cut Claude API costs by 59 to 70 percent.

What language is omniglyph written in?

Mainly TypeScript. The stack also includes TypeScript, CLI, Cloudflare Workers.

What license does omniglyph use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is omniglyph to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is omniglyph for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.