cheap-eyes
Summary: cheap-eyes is an MCP server that hands reading-by-meaning over large text to a cheap model, then mechanically checks every quote and line reference against the source so the agent gets a short, verifiable answer.
Run reading jobs (
eyes_run) in five modes:extract(verbatim lines),draft(cited markdown notes/summaries),edits(JSON line edits, never applied),schema(fill a JSON schema with refs and quotes), andgrep(regex matching windows, no model, $0).Read text you can't afford to load — logs, archives, long documents, web pages — from absolute paths, globs inside
read_roots, orhttp(s)URLs fetched by the server; supports text, HTML, PDF, DOCX/DOC, RTF, PPTX/PPT, ODT/ODP, EPUB, FB2, EML/MSG and attachments.Filter before spending: narrow by log timestamp window (
since/until/timezone), line range (#L100-L400), grep windows,max_tokenscaps, anddry_runto build the request without calling the model.Get checked answers: every quoted line and reference is compared with the source, with bad/uncited items flagged, so invented lines are caught (though completeness is not proven).
Retrieve stored results (
eyes_result): page through output, grep it, inspect the check report, read the exact source text the model saw, or cancel a running job — all free.Run asynchronously (
async) and poll for results, and export results to a path under your write roots.Track cost and models (
eyes_stats): today's and all-time spend, budget remaining, OpenRouter key limit, per-alias model table, and suggestions for cheap Zero Data Retention models.Safely delegate: model has no tools, secrets are masked before leaving the machine, only ZDR providers are used, reads are confined to
read_rootswith sensitive files refused, and spending is capped bydaily_budget_usd.
cheap-eyes
Cheap eyes for an expensive agent.
An AI agent's context is expensive. When it reads a big log, a long doc, a web page or a whole code tree, it burns that context on lines it mostly doesn't need. cheap-eyes is an MCP server that hands the reading to a cheap model. It then checks every line of that model's answer against the source, so the agent gets back a short answer it can trust.
What it looks like
A real header from the server (trimmed), with a stubbed model answer. The agent asked for every ERROR line after 08:10 in an app log, plus the traceback that follows it:
eyes_run result: 2026-09-26_152246-extract-889090
model: alias fast -> qwen/qwen3.6-35b-a3b (used: qwen/qwen3.6-35b-a3b)
tokens in 412 / out 96; cost $0.000080; 2 ms
check (extract): refs ok 4 / bad 1 — ok 4, ok~ 0, partial 0, not-in-input 0
L9 [bad] text differs from the source line
--- untrusted model output ---
L3| 2026-09-20 08:14:09.031 ERROR [sync] upload failed: timeout after 30 s
L4| 2026-09-20 08:14:09.032 Traceback (most recent call last):
L6| TimeoutError: timed out
L8| 2026-09-20 08:15:31.550 ERROR [sync] upload failed: HTTP 503 from api.example.com
L9| 2026-09-20 08:16:00.000 ERROR [sync] retry 2/3 failed
--- end ---The model quoted five lines. In the real log, line 9 says INFO [sync] retry 2/3 ok,
so the model made up an error. The check compared each quote with the source line and
flagged L9 as bad. The agent sees that before it relies on the answer.
Related MCP server: token-save-mcp
Why you can trust the answer
The model has no tools. It can't open files, browse or call anything. It sees only the numbered lines cheap-eyes chose to send.
Secrets are masked before anything leaves your machine. Passwords, tokens and keys become
[token],[key]and so on, in the files and in the task.Only Zero Data Retention providers. Those are providers that don't store your prompts. cheap-eyes talks only to OpenRouter and asks for them on every call.
Every quote and line reference is checked mechanically against the lines that were sent. Wrong values and uncited claims are flagged.
What the check does not prove: that the answer is complete or relevant. It proves what was quoted is real, not that nothing was missed.
Requirements
An OpenRouter account with credits. cheap-eyes calls models through your OpenRouter key;
cheap-eyes initcan create one through a browser sign-in. Give the key a spending limit on openrouter.ai: that is the real ceiling.A proxy, only where OpenRouter refuses your network. OpenRouter answers HTTP 403 to some regions; then the calls need a proxy in another region (
init, the extension and the Home Assistant app ask for it).A TLS reverse proxy, only for claude.ai. claude.ai reaches servers on the internet only, so it needs the HTTP mode behind your own TLS proxy. Claude Code, Claude Desktop and other local clients need nothing of the kind.
Runtime | Node.js ≥ 22.17 (Claude Desktop runs the extension on its own Node.js), or Docker, or Home Assistant OS / Supervised |
Architecture (Home Assistant app, Docker image) | amd64, aarch64 |
Network | outbound HTTPS to |
Disk | about 56 MB installed, 33 MB of it |
Installation
No settings file, no model ids, no token to make by hand: the server picks and pins its models on the first job, and the HTTP mode generates its own token.
Claude Code. Run this in a terminal and answer the questions:
npx -y cheap-eyes initIt checks the network (and asks for a proxy where needed), signs you in to OpenRouter
in the browser or takes a key, picks the models and runs claude mcp add for you. Then
ask: "Use eyes_run to list every TODO in the markdown files of this project, with the
line it's on."
Claude Desktop. Download cheap-eyes-<version>.mcpb from the
latest release and open it with
Claude Desktop. Its settings ask for the OpenRouter key, at least one folder to read
(the form cannot be saved without one) and a Proxy field, to leave empty unless
OpenRouter refuses your network.
Home Assistant. Add this repository, install cheap-eyes, set openrouter_key,
start it, and copy the connector path from the log (or the token from the
Configuration tab):
Or by hand: Settings → Apps → App Store → ⋮ → Repositories → + Add, paste
https://github.com/st412m/cheap-eyes. Home Assistant called apps add-ons before
2026.2. Options: app documentation.
Docker. ghcr.io/st412m/cheap-eyes serves the HTTP mode on port 3400; the key goes
in the environment, folders are mounted under /input, and the log shows the connector
path once:
docker run -d --name cheap-eyes -p 127.0.0.1:3400:3400 -e CHEAP_EYES_OPENROUTER_KEY=<OPENROUTER_KEY> -v cheap-eyes-data:/data -v /home/me/notes:/input/notes:ro ghcr.io/st412m/cheap-eyes:0.3.0compose.example.yaml is the same for Compose.
Other MCP clients. A stdio server started as npx -y cheap-eyes <folder>... with
CHEAP_EYES_OPENROUTER_KEY in its environment; npx -y cheap-eyes init --client other
prints the JSON block.
claude.ai. Honestly: it needs the HTTP mode (cheap-eyes serve --http, the Docker
image or the Home Assistant app) behind your own reverse proxy that terminates TLS, and
then https://<host>/private_<token>/mcp as a custom connector (see
Connecting to claude.ai).
Every way in detail, the HTTP mode and the proxy: installation.
Configuration
Everything works without a file. A stdio server reads the project folder (refused when
it is the home folder or a drive root), the models are picked on the first job, the
daily budget is $1. For the rest, cheap-eyes set writes the settings file:
npx -y cheap-eyes set read_roots /home/me/notes /home/me/logs
npx -y cheap-eyes set daily_budget_usd 2
npx -y cheap-eyes check-configcheck-config prints every value in force and where it came from (the file, an
environment variable, the arguments, a default). The key goes in the env var
CHEAP_EYES_OPENROUTER_KEY, never in a file. Every field, variable and file location:
configuration.
Connecting to claude.ai
Run the HTTP server (or the Home Assistant app) and publish it through a reverse proxy that terminates TLS. The endpoint is:
https://<your-host>/private_<your-token>/mcpAdd it in claude.ai → Settings → Connectors → Add custom connector. A wrong path gets a bare 404, and there is no OAuth by design. See security.
Using it
You talk to your agent as usual. It calls cheap-eyes when a job fits. Pick the mode by what you want back:
extract when you need exact lines: errors in a log, a config value, every mention of something. Invented lines are flagged.
draft when you want notes or a summary. Every line must cite its source lines. Values that aren't in those lines, and lines with no citation, are flagged.
edits when you want fixes proposed. You get JSON edits whose old text is checked against the file. cheap-eyes never applies them.
schema when you want fields filled: a JSON schema in, the same JSON out with a line ref and a verbatim quote for every value. Conflicting values are reported, not resolved.
grep when you know the exact pattern: matching windows, no model, $0.
Files can be text, HTML, PDF (with a text layer), Word (DOCX, DOC), RTF, PowerPoint
(PPTX, PPT), OpenDocument text and presentations (ODT, ODP), EPUB, FB2 and mail (EML,
MSG, attachments included), or an http(s) URL that the server fetches itself.
Spreadsheets and scans are refused with the reason. Refs name the page, slide, chapter
or attachment of a line: L40 (slide 3), L12 (attachment: offer.pdf, p.2)
(formats).
Prompts you might type (the files must lie inside your read_roots):
"Use eyes_run to pull every ERROR from /var/log/app/app.log since 08:00 today, with the tracebacks."
"Have cheap-eyes draft a summary of /home/me/notes/deploy.md: versions, ports, backup times."
"Use eyes_run in edits mode to fix the dead links in /home/me/notes/*.md."
"Use eyes_run in schema mode on /home/me/docs/tender.pdf: customer, maximum price, deadline, and the list of items with quantities."
What each check catches and misses: checks.
When to use cheap-eyes and when grep
cheap-eyes pays off for reading by meaning over large text: logs, archives, long documents, web pages, "everything about X", chronologies. For exact lookups — a key, which blocks contain X, a list by a field, a value in a table — and for files under about 30 KB, grep, a ranged read or code is cheaper and more reliable. That is why spreadsheets are not read at all.
On a benchmark of 2026-09-30 with independent ground truth:
An 887 KB log archive, task "everything about power": recall 96 %, precision 100 %, $0.08, about 12k tokens of the agent's context instead of about 227k for reading it whole.
A structural task over Home Assistant automations ("who sends to Telegram"): precision 41 % with a green check. The check catches invented lines, not wrongly chosen ones.
A snippet for CLAUDE.md or your Claude settings:
Reading by meaning over large text (logs, archives, long documents, web pages, "everything about X") → cheap-eyes eyes_run (extract/draft; fields → schema). Exact values, structure, small files (< ~30 KB) → grep / ranged read (no model: eyes_run mode grep). Verify any value from cheap-eyes against the source (eyes_result source) before relying on it.To compare models on your own documents, run
cheap-eyes bench.
Tools
eyes_run— does the job and returns a short, checked header.eyes_result— reads a stored result: pages, grep, the check report, the source text the model was given; cancels a running job.eyes_stats— spend today and all time, your key's status; on request, the model table.
Inputs and outputs: tools.
Models and cost
No model id is written in code. When you name none, the server picks them on the first
job: it takes the cheapest Zero Data Retention models your account allows within a
price cap (in $1 / out $4 per 1M tokens unless you set one), gives each a built-in test
job, and pins the two that pass first. That proves a model works here, not that it
reads best: the cheapest model that passes wins, and free variants are not picked.
To choose by quality, compare models on your own documents with
cheap-eyes bench, then
name one:
cheap-eyes models --candidates
cheap-eyes set models.fast <id>
cheap-eyes set defaults.extract fastmodels --candidates lists cheap Zero Data Retention models and shows how well each
model in use passed its checks on your own jobs. If your OpenRouter account's
Guardrails don't allow a model, cheap-eyes skips it and marks it blocked by account.
Allow it at openrouter.ai → Guardrails if you want it used.
With cheap models a job costs fractions of a cent. Your key's own daily limit on
OpenRouter is the real ceiling. On top of that, daily_budget_usd (default $1 a day)
stops calls before they would go over. More:
models and spending.
Limitations
The check proves quotes are real, not that the answer is complete. A relevant line the model skipped is not flagged.
No OCR. Scanned PDFs are refused with the reason; layout and images are lost in extraction.
No spreadsheets. Excel and OpenDocument spreadsheets are refused: questions about a table are exact lookups, which grep or code answers and a model reading the table as text gets wrong.
Size caps. A text file (or the text extracted from a document) over 2 MB is refused, never truncated; a document over 50 MB and a URL over 10 MB likewise; a job is capped at 5 MB after filtering and 200 files.
No reduce pass for
draft. With several chunks, each chunk's notes come back under their own header.The hook covers Claude Code's
Readtool only. Shell commands are not intercepted.
Troubleshooting
OpenRouter answers 403 "Access denied by security policy". OpenRouter refuses some regions; route the calls through a proxy. The refusal names where to set it in your setup.
Every tool call answers with a settings error. The server started in its setup state because a setting cannot be used; the message names the setting and the fix.
No model passes the pick. The refusal names each tried id and why; allow more models at openrouter.ai → Guardrails, raise the price cap, or name a model with
cheap-eyes set models.<alias> <id>.A model is
blocked by account. Allow it at openrouter.ai → Guardrails, or put another id in the alias.The client shows old tools after an update. Refresh the connector's tool list and start a new chat.
More: troubleshooting.
Security
The model gets no tools; everything it returns is framed as untrusted output.
Only files inside
read_rootsare read, after resolving symlinks;.env*, keys,secrets.yaml, databases and.gitare always refused.Secrets are masked before anything leaves the machine; model calls go only to
openrouter.ai, with Zero Data Retention required.URLs in a job are fetched by the server with private and local addresses refused, also against DNS rebinding.
The server writes nowhere outside its own state folder unless you opt into export.
A stdio server reads the project folder by default, never the home folder or a drive root.
In HTTP mode the token works as a password. It needs at least 32 characters; a generated one is printed once and by
cheap-eyes token, never in request logs, errors or results. Put TLS in front. Request bodies over 1 MiB are refused.
More: security.
Links
Documentation — installation, configuration, tools, checks, models and spending, results, security, hook, formats, bench, troubleshooting, internals
Prior art
Both MIT-licensed; cheap-eyes is written from scratch (see NOTICE).
BardyLaw/claude-worker-delegation — the server reads files by path, short preview, usage log, daily budget, PreToolUse hook. cheap-eyes adds what it lacked: a
realpathpath guard, refusal instead of silent truncation, masking, line numbers and checking the output.aashahin/claude-opencode-delegate — async task registry, compact status header.
License
MIT — by st412m.
Available Tools
3 toolseyes_resultRead job resultAIdempotent
Read an eyes_run result by the id from its header: pages, grep, check report, the source text to verify a quote; cancel: true aborts a running job. No model call, free.
Inputs: id (required), full, grep, check, +4 more.
eyes_runRun cheap reading jobA
Hand reading by meaning over large text (logs, archives, long documents, web pages) to a cheap model; quotes and line refs come back checked against the source. For exact values, structure or files under ~30 KB use mode grep ($0) or your own file tools. Each call is a paid job within daily_budget_usd; full result via eyes_result.
Inputs: mode (required), files (required), grep, task, +8 more.
eyes_statsUsage and modelsARead-onlyIdempotent
Spend today and all-time, budget left, OpenRouter key limit; models: true adds the model table. Check it before a large job or when eyes_run hits the budget. Free.
Inputs: models, candidates.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools map cleanly to the async job lifecycle: submit a paid job (eyes_run), fetch its output for free by id (eyes_result), and check budget/spend (eyes_stats). There is no overlapping purpose, and descriptions explicitly state when to prefer each (e.g., use grep mode instead of eyes_run for small exact lookups).
All tools use a consistent snake_case eyes_<verb/noun> prefix, with verb-like names (run, result, stats) that clearly identify the sub-resource. No mixed conventions or casing.
Three tools is lean but each earns its place in the submit/poll/monitor pattern. It is slightly thin — a listing/cleanup tool could exist — but the scope (a single job-based reading service) justifies the minimal surface.
Submission, retrieval, cancellation (via cancel: true), and budget monitoring are all covered, so the core workflow has no dead ends. Minor gaps: no way to list recent/outstanding job ids, so an agent must have retained the id from the run response.
Maintenance
Related MCP Connectors
Exact source text, not summaries: check citations and quotes in one call; read pages and PDFs.
Checks RAG citations against their sources (CrossSource method), plus claim checks. Read-only, free.
Read pages, PDFs, tables, screenshots; research and fact-check with verified quotes. Pay per call.
Extract, ask, compare and parse PDFs/images with source evidence. OAuth sign-in or API keys.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to analyze large codebases and document collections by consulting large context window models (up to 2M tokens) via OpenRouter when files exceed the current agent's context limits.578 PyPI296MIT
- AlicenseNot gradedqualityBmaintenanceDelegates large file reads to a cheap worker model so coding agents avoid consuming context, with optional hook enforcement and per-call token savings.MIT
- AlicenseAqualityCmaintenanceEnables any AI coding agent to search huge codebases cheaply by sending symptom-based locate, classify, and typed decision questions to OpenRouter decision models, which return ranked file:line locations, confidence scores, and the relevant code instead of the whole repository. It supports model selection, context-aware chunking, and fallbacks so agents can pinpoint bugs or filter files for a fraction of a cent.42MIT
- AlicenseAqualityBmaintenanceEnables coding agents to delegate the reading of large files, folders, and long logs to local models, returning short answers whose every claim is backed by a quote verified word for word in the source with its real file:line. Everything runs on the user's own hardware, so no file content ever leaves the machine.3MIT