loading experience

AI

Synthelion

giu 24, 2026

Synthelion compresses prompts before they reach any artificial intelligence model, reducing token usage by up to 70%, decreasing API costs, and speeding up responses. It works with any agent or framework: Claude Code, OpenAI, LangChain, OpenCode, Cursor, and many others.

Synthelion

The universal token compressor that gives your wallet (and your AI Agents) room to breathe


If you develop with LLMs, you know the drama: agent loops that continuously repeat the same context, gigantic JSON files that clog the context window, and those end-of-month API bills that send shivers down your spine.

That's why I decided to launch Synthelion โ€” a universal Token Compressor and Prompt Manager designed to cut token usage by up to 70%, speeding up model responses without losing an ounce of meaning.

And yes, there's a quote I couldn't resist:

"Why use many tokens when few tokens do same job?" โ€” A Neanderthal man (and your wallet).


๐Ÿ”ฅ What is Synthelion and how does it work?


Synthelion interposes itself between your code (or your agent) and the LLM. It analyzes the prompt, removes all superfluous "grammatical packaging" (articles, prepositions, conjunctions), and reduces words to their base form (lemmatization). The AI receives the exact same essential information, but distilled.

The Before and After (Some practical examples)


  1. Prose in Italian (Savings ~52%):
  2. Before: I would like to know if it's possible to receive information about cheap restaurants in Rome, please.
  3. After: know possible receive information cheap restaurant Rome
  4. JSON Array (Savings ~69%):
  5. Before: A classic JSON with repeated keys for each object.
  6. After: It is automatically converted into a clean and lossless Markdown table, which models natively digest with a fraction of the tokens.
  7. HTML Pages, Build Logs, and Git Diffs:
  8. Synthelion integrates an intelligent Content Router: it understands what you are passing to it (code, logs, tables, or text) and applies the perfect compression algorithm for that format.

๐Ÿ› ๏ธ Universal Integration (Zero configuration)


Synthelion was born to be integrated anywhere in 5 minutes:

  1. ๐Ÿ”Œ MCP Protocol: Native support for Claude Code, Cursor, Windsurf, and Claude Desktop. You just need to add a line to the configuration file to give your IDE compression superpowers.
  2. ๐Ÿ OpenAI & LangChain Plugin: Ready-to-use tools to be passed as tools to the OpenAI API or in your ReAct agents on LangGraph.
  3. ๐Ÿ’ป CLI Interface and Python API: You can use it directly from the terminal in Bash pipelines or integrate it into your scripts with pip install synthelion.


๐ŸŒ Sustainability and Numbers at Hand


It's not just a matter of costs (which, on volumes of 10M tokens per day, mean thousands of dollars saved per year), but also of environmental impact.

Synthelion includes an integrated energy estimator: every token saved avoids approximately 0.005 mWh of computing energy and 0.002 mg of COโ‚‚. You can track efficiency directly from your code:

Python


print(f"Energy saved: {result.estimated_energy_saved_mwh:.3f} mWh")
print(f"COโ‚‚ avoided: {result.estimated_co2_saved_mg:.3f} mg")


๐Ÿ“ฆ Where to start?


The project is open-source, supports more than 50 languages out-of-the-box (automatically detected), and does not require any AI model to run locally. It is the natural evolution of a previous C# project of mine (Caveman), redesigned from scratch for the Python and AI Agents ecosystem.

  1. ๐Ÿ PyPI: pip install synthelion
  2. ๐Ÿ› ๏ธ GitHub Repository: francescopaolopassaro/synthelion


Technologies
python
Resources
GitHub NuGet MIT