{"repo":"firish/webfetch","free":true,"listed":false,"github":"https://github.com/firish/webfetch","clone":"git clone https://github.com/firish/webfetch.git","description":"Own your LLM's web search: a local search->fetch->rank pipeline that replaces hosted web-search tools. Measured: matches hosted accuracy at 66% lower cost and up to 88% fewer tokens, plus a precision-tuned semantic caching with query-dependant TTL that no API offers.","language":"Python","stars":54,"topics":["agents","anthropic","llm","mcp","openai","rag","semantic-cache","web-search","agent-memory","agent-skills"],"license":"MIT","category":"ai-agents","readme_excerpt":"webfetch Web search for LLM agents that you run yourself - up to 8x fewer input tokens and 3x lower cost than hosted web search, at the same accuracy. Hosted web-search tools charge $10 per thousand searches and then bill you again for every token of retrieved content they push into your context window. webfetch replaces them with a local pipeline - multi-engine search, page fetching and extraction, semantic reranking, sentence-level compression - exposed as a web search tool your model calls like any other. And unlike every hosted tool and search API we surveyed, repeated and paraphrased queries are served from a semantic cache for free. (Install with pip install webfetch-llm ; the import name is webfetch .) Jump to: The headline · What you get · Getting started · Check your setup · Full benchmark results · Claude Code · Agent loop · Savings report · How it works · Caveats Same accuracy. A third of the cost. An eighth of the tokens. One agent loop, one model, one judge, 50 SimpleQA questions. The only thing that changes between rows is the search tool: search tool accuracy input tok/query cost/query --- --- --- --- Anthropic hosted web search 96% 17,408 $0.108 webfetch (4-engine fusion) 92% 3,467 $0.035 webfetch (DDG only, $0 in fees) 84% 3,623 $0.026 Swap Opus for gpt-5.6-sol and the same webfetch tool hits 96% - hosted parity - at $0.040/query and 2,156 tokens : an eighth of what the hosted tool pushes into your context. Full results cover every arm we ran. These numbers a","default_branch":null,"files":null,"tree":[],"storefront":"/r/firish","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/firish/webfetch/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}