GITHUB HOT REPOS

Save tokens.

Report by The Next New Thing.

Scroll for the report ↓

Free-tier aggregator · one /v1 endpoint

Thirty-four free tiers stacked into one endpoint

ELI5

Give it your free API keys from a pile of different AI providers and it presents them as a single service. A router picks a model for each request and moves to the next provider when one runs out.

View on GitHub →
Stars
25,029
Language
TypeScript
Forks
3,419
GitHub repo card for tashfeenahmed/freellmapi — click to open the repo
Highlights
  • Free tiers add up to real volume

    The project totals roughly 7.4 billion tokens a month across 34 providers and 635 free model endpoints, all behind one OpenAI-compatible URL.

  • Failover and quota tracking are the point

    Keys are stored encrypted, usage is tracked per key so you stay under each free cap, and a rate-limited provider hands off to the next one.

  • The author says personal use only

    The repo describes it as for personal experimentation. Stacking free tiers this way can run against individual providers' own terms.

Star growth over time for tashfeenahmed/freellmapi
How it cuts token burn
  • You stop paying for tokens at all

    Free tiers from 34 providers are stacked behind one OpenAI-compatible endpoint, roughly 7.4 billion tokens a month.

  • Failover keeps you under every cap

    Usage is tracked per key. When one provider rate-limits, the router moves the request to the next one.

  • Keys stay encrypted on your machine

    Self-host with Docker or the desktop app. Keys are stored encrypted locally rather than on someone else's server.

Worth noting
  • Personal experimentation only

    The author's own words. Stacking free tiers can breach a provider's terms, and that risk is yours, not the tool's.

  • Free installs lag by 30 days

    New models reach the free catalog a month after the $19-a-year feed, and free models vanish when providers end their tiers.

Context compression · Claude Code + OpenCode

Compaction that doesn't give your agent amnesia

ELI5

Instead of replacing your whole conversation with one generic recap, it condenses each of the assistant's old turns separately and leaves your own words untouched, so the agent still knows what it did and why.

View on GitHub →
Stars
148
Language
TypeScript
Forks
11
GitHub repo card for aerovato/magic-compact — click to open the repo
Highlights
  • Your messages stay word for word

    Built-in compaction flattens everything into one summary blob. This keeps user messages verbatim and summarizes only the old assistant turns around them.

  • Pruned tool output is still retrievable

    Bulky finished tool calls become a short omission notice with an ID. The agent calls read_omitted_content to pull the original back when it needs it.

  • Development is paused for a successor

    The author paused work in favor of Operator Memory, which will absorb context management. Magic Compact still installs and runs today.

Star growth over time for aerovato/magic-compact
How it cuts token burn
  • Old assistant turns become short summaries

    Each earlier turn is condensed on its own instead of the whole session being replaced by one recap, so the reasoning survives.

  • Bulky tool output is swapped for a notice

    Finished tool calls are replaced with an omission notice. The original is cached and the agent can fetch it back by ID.

  • You run it when you choose

    Compaction happens once, on your command, not in the middle of the loop, so prompt caches are invalidated as little as possible.

Worth noting
  • Development is paused

    The author has moved on to Operator Memory. It still works today, but do not expect fixes or new features here.

  • Claude Code gets the lesser version

    It cannot edit the live session, so it writes a new compacted one you /resume into. The stats command is OpenCode-only.

Compression layer · library, proxy, MCP server

Shrink everything your agent reads before the model sees it

ELI5

Think of it as a filter sitting between your agent and the AI. Logs, files and tool output get squeezed down on your own machine first, so the model gets the same meaning in far fewer tokens.

View on GitHub →
Stars
70,683
Language
Python
Forks
5,424
GitHub repo card for headroomlabs-ai/headroom — click to open the repo
Highlights
  • Four ways to install it

    Use it as a Python or TypeScript library, as a local proxy with no code changes, as an MCP server, or wrap an existing agent with one command.

  • Different squeezers for different content

    A router detects what it is looking at and picks a compressor built for that type: one for JSON, one for source code, one for ordinary prose.

  • Originals stay on your machine

    Compression runs locally and nothing is sent away to be compressed. Full versions are cached so the model can ask for one back.

Star growth over time for headroomlabs-ai/headroom
How it cuts token burn
  • Shrinks input before the model sees it

    Tool output, logs, files and RAG chunks are compressed locally. The README claims about 20% for coding agents, 60-95% for JSON.

  • Picks a compressor per content type

    JSON, source code and prose each get their own squeezer, chosen automatically by a router that detects what it is looking at.

  • Originals are one call away

    Full versions are cached on your machine and the model can pull one back with headroom_retrieve when it needs the detail.

Worth noting
  • The 20% figure is the coding-agent one

    The 60-95% numbers are for JSON. If your context is mostly conversation and code, expect the small end of the range.

  • A lot of surface area

    Library, proxy, wrap, MCP server, cross-agent memory and a learn command. More to configure than the single-purpose tools here.

Text as images · local proxy

It turns your context into pictures to make it cheaper

ELI5

An image costs the same number of tokens no matter how much text is crammed into it. This quietly renders the bulky parts of each request into a dense page of pixels before it leaves your computer.

View on GitHub →
Stars
7,356
Language
TypeScript
Forks
642
GitHub repo card for teamchong/pxpipe — click to open the repo
Highlights
  • Dense text packs about three times tighter

    Code, JSON and tool output fit roughly 3.1 characters per image token against about 1 per text token, measured on real Claude Code traffic.

  • Two commands to try it

    Run the proxy with npx pxpipe-proxy, then point Claude Code at it. A local dashboard shows tokens saved and every conversion side by side.

  • The author says plainly that it is lossy

    Exact hex strings were read 13 of 15 times on one model and 0 of 15 on another, and misses are silent. Recent turns deliberately stay as text.

Star growth over time for teamchong/pxpipe
How it cuts token burn
  • Text becomes images with a fixed price

    An image's token cost depends on its pixel size, not what is in it, so dense text packs about three times tighter.

  • Only the bulky, older parts get imaged

    System prompt, tool docs and old history are rendered to PNG. Recent turns stay as text so the model can still copy exact values.

  • Measured per request, not estimated

    Every conversion is checked against a free count_tokens call and logged, so the savings you see are real ones.

Worth noting
  • It is lossy, and the misses are silent

    Exact hex strings were read 0 of 15 times on one model. IDs, hashes and secrets must stay as text or they get confabulated.

  • Only wins on dense content

    On sparse prose it can cost more than it saves. A profitability gate decides per request, but the win is workload-dependent.

Prompt compression · Python SDK

Change one import line and cut the token bill

ELI5

It helps you spend less on prompts without touching your code. You swap the line that imports OpenAI for its version, and it compresses the parts of each request that can survive being shortened.

View on GitHub →
Stars
316
Language
Python
Forks
3
GitHub repo card for jia-gao/leanctx — click to open the repo
Highlights
  • It sorts text by what it can survive

    Code, stack traces and JSON pass through byte for byte. Documentation, logs and old turns get compressed. That routing is the whole idea.

  • Built on Microsoft's LLMLingua-2

    The compression model runs on your own hardware under an MIT license, so prompts and user data never leave your infrastructure by default.

  • It publishes the accuracy it costs

    On 503 LongBench v2 questions it removed an extra 18.7% of tokens for 1.8 points of accuracy, with per-item records committed to the repo.

Star growth over time for jia-gao/leanctx
How it cuts token burn
  • Only text that can survive it gets compressed

    Code, stack traces, JSON and tool IDs pass through untouched. Docs, logs and old turns go through LLMLingua-2.

  • One import swap

    from leanctx import OpenAI replaces the client with the same interface and compressed requests. No other code changes.

  • Runs on your hardware

    The compression model is local and MIT-licensed, and makes no outbound calls except to the provider you already use.

Worth noting
  • It costs accuracy, and says so

    1.8 points overall on LongBench v2, and 3.9 on the segments it actually compressed. Small, but not zero.

  • First run downloads 1.2 GB

    The LLMLingua-2 weights are big. Without them installed, leanctx quietly falls back to passing everything through.

MCP server · measurement and memory

It blocks the expensive call before your agent makes it

ELI5

When your agent reaches for a huge file it has already read, this refuses the request and hands back only what changed. It also remembers what the agent worked out, so it does not re-derive the same thing next session.

View on GitHub →
Stars
509
Language
JavaScript
Forks
61
GitHub repo card for ooples/token-optimizer-mcp — click to open the repo
Highlights
  • Re-reading a file returns only a diff

    Reads of very large files are denied outright, with the refusal naming the cached replacement. The same applies to Grep, Glob, Edit and shell commands.

  • A per-project knowledge graph

    Findings, decisions and dead ends accumulate as the agent works and come back when it touches the relevant file. No account, no telemetry, no hosted service.

  • It reports its own numbers

    A local dashboard separates verified savings from modeled ones and attributes traffic per client, so Codex, Claude Code and Gemini get separate rows.

Star growth over time for ooples/token-optimizer-mcp
How it cuts token burn
  • Blocks reads it thinks are wasteful

    A Read of a 200 KB file is denied, and the refusal names the cached, diffed replacement. Same for Grep, Glob, cat and grep -r.

  • Re-reads return only what changed

    A file you already read this session comes back as a diff. The README calls this the single biggest win.

  • A knowledge graph replaces re-deriving

    Findings cost about 150 tokens to carry forward versus 5k-50k to work out again next session.

Worth noting
  • It overrides your agent's built-in tools

    Denying Read, Grep and Edit is the whole mechanism. That is a lot of control to hand a plugin, and there is no off switch.

  • Some numbers are modeled, not measured

    The dashboard separates verified from modeled savings honestly, which also means part of the headline is an estimate.

MCP server + hooks · 17 platforms

Keep raw tool output out of the window entirely

ELI5

You can use it to stop tool results from ever landing in the conversation. Big dumps get held outside and indexed, the agent searches them, and only the matching lines come back.

View on GitHub →
Stars
21,300
Language
TypeScript
Forks
1,542
GitHub repo card for mksglu/context-mode — click to open the repo
Highlights
  • Tool output is sandboxed, not pasted

    The project reports 315 KB of raw data becoming 5.4 KB, a 98% reduction, by keeping the bulk outside the context window.

  • Session memory that survives compaction

    File edits, git operations, tasks and errors go into SQLite, then get searched and returned selectively instead of dumped back in.

  • Not an open-source license

    It ships under the Elastic License 2.0, which restricts offering it as a managed service. Fine for your own work, worth reading before commercial use.

Star growth over time for mksglu/context-mode
How it cuts token burn
  • Tool output never enters the window

    Raw data is sandboxed and indexed with full-text search. Only matching lines come back. The README claims a 98% reduction.

  • Memory survives compaction

    Edits, git operations, tasks and errors go into SQLite and return through search instead of being dumped back into context.

  • Enforced with hooks, not suggestions

    Routing rules are applied through MCP plus hooks across 17 platforms, so the agent cannot quietly skip them.

Worth noting
  • Elastic License 2.0

    Free to use, but not open source. You cannot offer it as a managed service. Read the license before commercial use.

  • Unverified corporate logos

    The README's Microsoft, Google and Meta badges link to nothing. Judge it on the code, not the logos.

Agent skill · works with 20 agents

The cheapest tokens are the ones you never write

ELI5

Think of it as a jaded senior developer sitting inside your agent. You ask for a date picker and, instead of installing a library and wrapping it, it reaches for the one browsers already have.

View on GitHub →
Stars
132,037
Language
JavaScript
Forks
7,069
GitHub repo card for DietrichGebert/ponytail — click to open the repo
Highlights
  • It is measured against a real repo

    Twelve feature tickets on a real FastAPI and React codebase, the same agent with and without the skill, scored on the diff it leaves behind.

  • About 54% less code, 22% fewer tokens

    That is the mean across those tasks. It reaches 94% where an agent over-builds and close to zero where the code was already minimal.

  • The author corrected his own numbers

    An earlier benchmark advertised a flat 80-94%. Against a fairer baseline he republished that as the per-task ceiling, not the average.

Star growth over time for DietrichGebert/ponytail
How it cuts token burn
  • Fewer lines written means fewer tokens

    It is a skill, not a proxy. It pushes the agent to reuse what exists instead of building. Less code out, less to read back in.

  • Measured on a real repo

    About 54% less code and 22% fewer tokens across 12 tasks on a FastAPI + React codebase, versus the same agent with no skill.

  • Works with 20 agents

    Installs into Claude Code, Cursor, Codex and others as a skill or plugin. Nothing sits between you and the model.

Worth noting
  • Token savings are the modest part

    54% less code, but only about 22% fewer tokens and 20% cheaper. The real win is code you never maintain.

  • Near zero where code is already lean

    The gains come from stopping over-building. If your agent is already terse, there is little left to cut.

Knowledge graph · /graphify skill

Query your codebase instead of grepping it

ELI5

You can use it to turn a project into a map your agent asks questions of. Instead of opening file after file to work out how two things connect, it traces the path between them.

View on GitHub →
Stars
116,011
Language
Python
Forks
11,260
GitHub repo card for Graphify-Labs/graphify — click to open the repo
Highlights
  • Code is mapped locally, with no model

    Source is parsed into a syntax tree by tree-sitter. It is deterministic and nothing leaves your machine; docs and PDFs get a separate semantic pass.

  • Every edge says where it came from

    Connections are tagged EXTRACTED when they were explicit in the source or INFERRED when graphify worked them out, so you can tell them apart.

  • A graph, not a vector search

    No embeddings and no vector store. You traverse real relationships, trace a path between two things, or ask it to explain one concept.

Star growth over time for Graphify-Labs/graphify
How it cuts token burn
  • Query instead of reading files

    One graph traversal replaces opening ten files to work out how two things connect, which is where a lot of context goes.

  • The code graph is built without a model

    tree-sitter parses the syntax tree locally and deterministically, so mapping the code itself costs zero tokens.

  • Every edge is labelled

    EXTRACTED means it was explicit in the source. INFERRED means graphify worked it out. You can tell which is which.

Worth noting
  • Docs and PDFs do use a model

    Only code is free. The semantic pass for docs, images and video runs through your assistant's model or an API key.

  • There is a company behind it

    Y Combinator S26, with a paid platform in early access. Watch which features stay in the open-source skill.

AI gateway · one local endpoint

One endpoint, hundreds of providers, free tier first

ELI5

Give it your accounts across a lot of AI providers and it becomes one local address your coding tools point at. When a provider runs out or fails, the next one picks the request up.

View on GitHub →
Stars
62,924
Language
TypeScript
Forks
8,792
GitHub repo card for diegosouzapw/OmniRoute — click to open the repo
Highlights
  • Compression stacked on top of routing

    Twelve engines run in order before a request leaves. The default pair is claimed at 78-95% on mixed prompts and tool logs.

  • It flags providers you may want to avoid

    Thirteen entries are marked avoid in its own terms-risk catalog, leaving the decision about a provider's rules to you.

  • Free-tier math is republished, not rounded

    The catalog is re-audited every two weeks and totals move both ways. Its README and GitHub description currently disagree on the provider count.

Star growth over time for diegosouzapw/OmniRoute
How it cuts token burn
  • Twelve compression engines, stacked

    RTK then Caveman by default; LLMLingua-2 and image encoding are opt-in. Claimed 78-95% on mixed prompts and tool logs.

  • Free tiers before paid ones

    Four-tier fallback: subscription, then API key, then cheap, then free. Around 1.47 billion free tokens a month cataloged.

  • One local endpoint for every tool

    Claude Code, Cursor, Codex and Cline all point at localhost:20128 and share the same routing and compression.

Worth noting
  • Thirteen providers marked avoid

    Its own terms-risk catalog flags them. The call on a provider's rules is yours, not the router's.

  • Enormous scope

    356 providers, 19 routing strategies, an 86-command CLI, MCP, A2A and memory. Setup is not a two-minute job.