How and Why To Run Your Own Metasearch Engine
I was a happy Kagi customer for years. But when they made changes to their account system, I had to leave in a hurry. This is where I went.I completely stopped using any of the major search engines in 2021, and I never looked back. The Big three, often called GBY (Google, Bing, and Yandex) were serving me increasingly poorly as time went on, and I became more and more uncomfortable with the stranglehold they were having on the web. I was lured in by the promise of Kagi: an ad free search experience, where you pay, and thus you are the customer, instead of the product sold to advertisers.
Unfortunately, by 2026, the dream had soured. It all came to a head when Kagi released an upgrade to their account system that required email address verification and two factor, even for people using login with apple. This was super annoying, but I would have gone along with it, if Kagi had actually been able to deliver the verification code to my email. They couldn't, though. Not in junk, not anywhere. And I was completely locked out of search on all of my devices. While Kagi support responded several hours later, search is far too critical for me to be willing to rely on a service that wants to do two factor via email, and can't actually deliver the emails in question. This was the straw that broke the camels back, and I canceled all of my API keys, and my Kagi Ultimate account on the spot. I was already unhappy that they were moving into launching an email service called kagimail. I have my email through iCloud, and I'm not trusting Kagi with it. Similarly, they offer an AI assistant. But I use Hermes, and the assistant they offer is nowhere near as good. And while they've been busy creating all these new offerings, the search experience has languished. They showed no improvements or progress on building their own search index, remaining mostly a consumer of other search engine's results. I was happy to pay $25 a month for search. But Kagi is, to be blunt, no longer building search.
So I started to look around for other options, and quickly discovered SearXNG. Just like Kagi, SearXNG is a search engine that gets all of its results from other search engines. But unlike Kagi, you can host it yourself, and fully control what engines it uses and how it ranks them. Unfortunately, it's set up more as a privacy tool than anything. This means instances are public by default, and it does HTML scraping rather than using API keys. My use case is getting the best possible search results, without advertising, and personalizing them to my specific needs. To make that happen, I have to run SearXNG over my VPN, I had to write a bunch of custom sources, add some custom plugins, and collect and manage a bunch of API keys. As well, the accessibility of SearXNG is not perfect. I've filed some issues, and we'll see what comes of that. But if you're curious, this is what I have so far. The sourcecode for all of the custom bits is here.
Nogon
The first thing I did was set up a copy of Nogon. Nogon is a program that can automatically index and save every document you visit in your browser (Firefox or Chrome) with a browser extension, show the archive, and quickly search the results. I also set it up to crawl links I save to my linkblog, and a bunch of my personal notes and documentation. Then I created a plugin to allow my SearxNG to search Nogon and return those results with everything else. This gives me a personalized, always fresh index of the content I care about. If I'm trying to find that article from four years ago, or that thing I clicked and forgot to save last month, all I have to do is a regular search. As you can imagine, this is super heavy on storage, memory, and bandwidth. I run it on a server in my basement, not the data center. It's cheaper, and it ensures the crawls happen from my residential IP, so are mixed in with all of my other browser traffic. SearXNG talks to it over the VPN.
Hindsight
Hindsight is my self-hosted AI memory layer. Hermes uses it, Claude Code uses it, Codex uses it. If an AI tool can't use it, I won't run that tool. This means that hindsight has quickly become a rich tapestry of everything about me, every project I'm working on, and every decision I've made. So I added a plugin to surface Hindsight memories right at the top of SearXNG. Now when I search for something, I can quickly get any discussions I've previously had about that thing, facts about it I've already discovered, decisions I've already made, and so on. This turns my search engine from just a document repository and search interface into a living store of everything happening in my online life.
Iceshrimp and Lemmy
I run rblind.com, as well as my own fediverse server at fed.interfree.ca. Because they're servers related to my interests, and contain a lot of my own activity, searches on them often return results of interest to me. So I added a searxng plugin to search them by default. This way, I surface results from my online communities and conversations right alongside everything else.
Results From Around The Web
While all of the above were working wonderfully, the big three search engines have quickly gotten good at detecting and blocking SearXNG, and stopping it from scraping results. As my particular use-case isn't privacy focused, I'm happy to pay for and use API keys. Other than for Brave, though, SearXNG doesn't have good support for providing API keys out of the box. On my GitHub linked above, you'll also find the search engine plugins I use to do paid searches on:
- serper: the best and cheapest way to get access to Google Search results.
- Tavily: an AI focused search engine that also returns results that work fine for humans.
- Linkup: another AI search engine. The most expensive of the lot.
- querit: The third of the major new AI search engines.
- You: A personalized search engine that uses several other indexes.
Kagi would also fit well into that list. But I can't get into my Kagi account, because they can't deliver two factor codes. So I can't create or pay for API keys. Oh well.
After getting pay as you go API keys from all of the above, plus Brave, I expect I'll be paying about $60 per year for search. It's a much larger maintenance headache, but it's also cheaper than the $25 a month I paid for Kagi, with results that are more personalized to me, higher quality, and cover more of the web. I'm not sure it's the tradeoff I would have picked. But it was the tradeoff I was forced into. And now no single company controls my search results, so that's also a win. Perhaps some day I'll be able to get away from using Google and Bing results entirely.
On the fediverse
Participate in the discussion: reply to this post on the fediverse.
Comments
Likes
Reposts
On Bluesky
Participate in the discussion: reply to this post on Bluesky.
Comments
Likes
Reposts
Webmentions