Put your AI agent
on a token diet
One MCP server gives Claude, Cursor and Windsurf a leaner way to work: compress long context before it is read, open any web page as clean Markdown instead of raw HTML, and shrink JSON into TOON. Code, numbers and facts stay intact.
Your assistant installs the MCP and shows you how to get a free key in 5 seconds.
MCP for your assistant · 1-line gateway for OpenAI & Anthropic SDKs · REST API · free during beta
claude mcp add agentready -e AGENTREADY_API_KEY=ak_your_key -- npx -y agentready-cloud-mcpExample: a 67-token prompt is squeezed to 30 tokens by AgentReady, the model answers in 58 tokens instead of 195, and the cost per 1,000 requests drops from $3.13 to $1.10.
Three tools.
Inside the assistant you already use.
Add one MCP server and your assistant can compress, read and shrink on its own. Ask it to “read this URL”, “compress this log” or “shrink this JSON”, or let it reach for the tools when context gets heavy.
tokencut_compressCompress before it reads
Long prompts, logs, docs and chat history lose the filler (greetings, hedges, repetition) before they reach the model. Code, URLs and numbers are never touched.
url_to_markdownRead the web as Markdown
Your agent opens a page and gets the article, not the navigation, ads and scripts. The tool AgentReady users rely on most for big savings.
json_shrinkJSON → TOON
API responses and tool outputs become TOON: a header plus CSV-like rows instead of repeating every key on every object. Same data, far fewer tokens.
Change one line.
Pay less on every call.
Run the gateway on your own machine or server and point the OpenAI or Anthropic SDK at it. Only the message text goes to AgentReady to be compressed; the call to your provider leaves from your infrastructure with your own key, so your key and the model's answers never reach us. Streaming and tools work as before.
Prefer zero setup? A hosted gateway is available too: docs.
# 1. run it where your app runs (self-hosted, MIT)
AGENTREADY_API_KEY=ak_your_key npx -y agentready-cloud-gateway
# 2. change one line
from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:8787/openai/v1")
# OPENAI_API_KEY stays on your machine
# response header x-agentready-tokens-saved: 662Builders said it.
We kept shipping.
Real comments from AgentReady's Product Hunt launch (#9 of the day) and its Show HN thread, word for word.
“If this were capable of running locally… I think it would be much easier to adopt.”
nateb2022, Hacker News
✓Self-hosted gateway: npx agentready-cloud-gateway. Your provider key and the answers stay on your machine.
“If it was self-hostable, so that I can ensure it is only able to reach the LLM providers…”
nevon, Hacker News
✓It is. The gateway calls OpenAI / Anthropic from your infrastructure; only message text goes out for compression.
“Can you see what was trimmed from prompt for visibility?”
Daniele Packard, Product Hunt
✓Every response reports tokens before and after; the dashboard shows a savings receipt.
“Are you thinking of somehow compressing the output tokens as well?”
Purushotam Kumar, Product Hunt
✓The output lever (lite · caveman · ultra) makes the model answer tersely.
Two levers.
One bill that shrinks.
You pay for every token you send and every token the model writes back. AgentReady trims both, in one call that sits before your existing LLM request.
Prompt diet
Greetings, sign-offs, “could you please”, hedges, filler, articles and web boilerplate go. Your intent, data and code stay. No LLM involved, so it takes milliseconds.
Measured on sample prompts, level “caveman”. Your mix will vary.
Caveman answers
Output tokens cost 4 to 5 times more than input on most models. One short rule makes the model skip “Great question!”, recaps and filler, and answer with just the substance.
Answer terse like caveman: no articles, filler, pleasantries, hedging. Fragments OK. Keep code, commands, numbers, names, URLs, errors exact; code, JSON and requested formats complete.
Paste anything.
Watch it lose weight.
This runs the real AgentReady engine, the same one behind /v1/compress. Nothing you type here is stored.
…
We can't call your LLM from here (your key stays yours), so the answer side is shown in the examples above.
Squeezed,
not mangled.
Caveman talk is for the prose around your data, never the data. Everything a program or a person would need to act on is locked before the squeeze and restored after it.
Hey! Could you please review this function? I think there might be a bug, it does not handle the empty list case. ```python def avg(xs): return sum(xs) / len(xs) ```I don't want you to change the function name. Thanks!
Code blocks
Byte-for-byte, indentation included.
def avg(xs):
return sum(xs) / len(xs)Errors & stack traces
Quoted verbatim, never paraphrased.
TypeError: Cannot read properties of undefined (reading 'price')
Numbers, units, dates
Prices, versions, IDs, measurements.
$129 · 3.4 kg · 1200W · #48213 · 2025-01-01
URLs & paths
Links and file paths pass through.
https://api.acme.dev/v2 · src/app/page.tsx
Negations
“not”, “never”, “no” always survive.
doesn't · never · no · must not
Quotes & formats
Quoted text stays. JSON stays JSON.
"Do not cancel the order"
Two minutes.
Zero code with MCP.
Add the MCP server to your assistant, point your SDK at the gateway, or call the REST API yourself. Keep your model and your key either way.
- 1Get a keyFree, 30 seconds, no card.
- 2Install the MCPOne command in Claude Code, one JSON block in Cursor.
- 3Or change one lineGateway base_url for the OpenAI and Anthropic SDKs.
# Claude Code
claude mcp add agentready -e AGENTREADY_API_KEY=ak_your_key -- npx -y agentready-cloud-mcp
# Cursor, Claude Desktop, Windsurf: add to your MCP config
{
"mcpServers": {
"agentready": {
"command": "npx",
"args": ["-y", "agentready-cloud-mcp"],
"env": { "AGENTREADY_API_KEY": "ak_your_key" }
}
}
}What would you keep?
Plug in your monthly LLM bill. The defaults are deliberately conservative, move them to match your traffic.
It costs nothing.
It saves a lot.
AgentReady is in open beta. Every feature is free with no usage caps while we tune the engine with real traffic.
- Unlimited /v1/compress calls during beta
- Caveman input level + lite / caveman / ultra output
- Dashboard with tokens and money saved
- Python, Node.js and MCP integrations
- Web → Markdown, sitemap and LLMO tools
- No credit card
After the beta: a generous free tier and simple usage plans. Early users keep their perks. Need it on-prem? Email us.
Questions,
answered short.
The output rule removes style, not content: greetings, recaps, hedges, filler. Facts, steps, code and numbers are explicitly kept, and anything you ask for in a specific format (JSON, a table, a full email) comes back complete. If your end users need polished prose, use output "lite", or leave output off and only squeeze the input.
No. You call /v1/compress, get messages back and call your model yourself with your own key. AgentReady never proxies your LLM traffic.
/v1/compress records token counts for your dashboard, not message text. The playground on this page stores nothing. Runs you make in the dashboard playground keep a short snippet in your own history so you can review them.
Any chat model: OpenAI, Anthropic, Google Gemini, Mistral, Llama, local models. For Anthropic-style requests send provider: "anthropic" (or your system prompt as "system") and the output rule is returned in "system" instead of a system message.
The engine is rule-based, not another LLM, so processing takes milliseconds plus one network round-trip. Shorter answers also finish streaming sooner, so end-to-end latency often goes down.
Wrap the call in a short timeout and fall back to your original messages, as the snippets above do. Your app keeps working, it just costs what it cost before.
Yes. Squeezing happens before your LLM call and only touches text content, so streaming, tools, function calling and images pass through as they are.
Stop paying
for fluff.
Key in 30 seconds. First squeezed request in two minutes. Free while in beta.