r/opencodeCLI • • 13d ago • Bravo 1

Completely Free and stealthy Web Research tool for Your agent, 0$, instant setup with the MCP

I've been building DonSeTch: a fully free, open-source MCP server that gives OpenCode web search, fetching, crawling and screenshots, running locally in one Rust binary.

I posted it here around v1 or v2, honestly can't remember which. It's on v5.5.2 now. For the people seeing it for the first time, here's the useful stuff.

Here is the GitHub repo: https://github.com/dondai44423/donsetch

Install, connect, use it

npm install -g donsetch
donsetch doctor --mcp

Add the MCP entry to OpenCode and restart. That's the basic setup. No account, API key, Rust build or search-model download. Fetch, search and crawl don't need a browser installed either.

Fetching, stealth, and learning what works

  • Reddit, Stack Overflow and IMDb returned content in my tests. The Reddit read got 24 posts in about 1.2 seconds; paid Firecrawl Cloud reported that site unsupported in the same comparison.
  • Page reads launch no browser. TLS, headers and cookies stay consistent as one client. Embedded V8 handles challenge or application JavaScript when needed, without layout or painting.
  • It remembers successful routes and client profiles. It can learn an app's content request from a successful JS run and replay it over HTTP on later reads. If that request breaks, it can learn again. That fetch state survives restarts.

Less context spent getting to the answer

  • Ask for the useful bit. Relevant passages, a phrase check, an outline, or one section. The agent can expand into the full text when needed.
  • Four tools, roughly 2,000 tokens of definitions total. Batch-fetch up to 12 URLs. PDFs get the same reading controls, with tables and optional OCR for scans.
  • Crawls follow your topic. A site model and plan pick the pages; the response is a digest with handles to open each stored page fully. Jobs resume, and repeat crawls can skip unchanged pages.

Search works out of the box

Keyless search combines engines and first-party sources. You can also use your own search API key while keeping the local fetching and crawling. Screenshots use an installed Chromium separately.

A quick Firecrawl comparison

I had DS on opencode try both on real tasks. DonSeTch was quicker on 9/10 fetch targets both could read. On HTTPX, it picked the two requested docs pages; Firecrawl read six and still missed the async page.

It did got beat on search relevance, though, its local but its good enough for 90% of the most tasks

I'm not stuffing all that shit into one post. The full comparison with paid Firecrawl Cloud has the cases, timings and setup. Small, hand-picked test.

Feel free to flame me in the comments if i did the comparison with firecrawl the wrong way šŸ˜­šŸ™

If you give it a go, I'd like to hear which pages it still trips over.

323 Upvotes

37 comments sorted by

7

u/rizal72 13d ago edited 13d ago

I use it in OpenCode daily and took a different route, in case it saves someone some context.

I never registered the MCP. Four tools cost about 930 tokens in the first prompt of every session (I measured 4,084 characters less with the server off), and switching a server on mid-session invalidates the prompt cache, so the whole context is read again. The CLI runs the same engine, so I call it from the terminal instead: one line in the global AGENTS.md says try the normal fetch first, and run donsetch fetch <url> when it refuses or a bot check stands in front of it. The tool then shows up exactly when a wall does, and costs nothing until then.

Updates were the other gap. donsetch update has no daemon and no scheduler, and I did not want a cron job for one command, so I wrote a small OpenCode plugin that runs it once a day, on the first prompt after the date changes. Worth knowing if you script it: a major release prints what it changes and asks on stdin, while an unattended run has no stdin, so it exits 0 without installing anything. Passing --yes fixes it.

Not on npm yet, so for now it is copy the folder:
https://github.com/rizal72/opencode-plugins/tree/main/plugins/oc-donsetch

While you are there, take a look at my other plugins: some of them could be very useful ;)

3

u/Opening_Library9560 13d ago edited 13d ago

Niceeee

18

u/SnooMuffins9844 13d ago

Hey u/Opening_Library9560 I work at Firecrawl, nice work on this, a single Rust binary with no API key is a really clean setup.

Just a heads up on the Reddit comparison though, you can get Reddit data through Firecrawl Alexandria, it's one of the sources it covers alongside 100M+ indexed sources and 500+ data providers. Works with any ai agent if you want to try it: firecrawl.dev/plugins

Either way it's cool to see more open source options in this space šŸ™‚

11

u/Opening_Library9560 13d ago edited 13d ago

Yea, my fault

I just set up firecrawl with my api key and just went straight to testing the core features.

EDIT: I used Firecrawl Alexandria in the same test and it did got through reddit, the only issue is that its a bit of hassle which i am not a fan of, took more time, Not as much token efficeint, discovery and all that

But still a good feature overall, Firecrawl Alexandria edges out donsetch's stealth now

I will update my comparisons report

2

u/SnooMuffins9844 12d ago

Fair point on the setup feeling like a hassle, that's really useful feedback and I'll pass it on to the team

4

u/Upset-Ad-8704 11d ago

Can you give a brief overview of how it is accomplishing this? Suppose I want to search google.com for pineapples, a url is generated for https://www.google.com/search?q=pineapples. That is then sent to your servers to execute the search or is it executed locally (if I am selfhosting opencode)?

Generally when scraping the search results, captchas can occur. It says you are not able to bypass these, but it seems like it is working well despite the fact that many search providers do have captchas, so how is that possible?

Also, you mention page reads don't launch a browser. Do you have your own js engine running that allows other js-based rendering to render correctly?

1

u/Opening_Library9560 10d ago

If you are using the Local search in donsetch, You cant just search stuff in google.

You dont even need to, you already have the donsetch web search tool, it has many other search engines, that will give you URLs to fetch.

And As for the captcha question, it dosent occur as much in search engines, but one thing that will happens if you use the local search way too much with no proxies configured.

Your IP will be rate limited temporary, Meaning the search engines wont work for sometime, maybe a few minutes or 1 hour.

But you can add a free api key in the by | donsetch keys add tinsyfish [your key] | that does it, your IP wont be used anymore for the search.

And about not opening a browser, its not that i have my own js engine, its a bit complicated, cant really explain it here clearly

3

u/nirurin 13d ago

Curious how this compares to tinyfish, as another free-tier option

1

u/Opening_Library9560 13d ago

I will compare them both and give you a result

1

u/nirurin 13d ago

That would be great. Trying to optimise my opencode setup as best I can

3

u/Cultured_Alien 12d ago edited 12d ago

Nice, how does it compare to ketch? I don't like mcp and prefer using skills + cli.

2

u/Opening_Library9560 12d ago

Havent compared it to ketch, It should beat it fairly easily tho.

I did test hound against ketch (An older tool of mine which donsetch replaced.

It has a CLI option but i havent added a skill for it, but since you mention it, i will fill up the skill file.

4

u/duck_guts 13d ago

Sorry off topic but what's the cool cursor sleff3ct? Like the "fruit ninja swipe" kinda thing happening. Is that just for the video or something real time?

3

u/anon_e_mouse1 13d ago

in kitty terminal you can do this by adding this to your config-

cursor_trail 4
cursor_trail_decay 0.1 0.4
cursor_trail_start_threshold 2

-2

u/Opening_Library9560 13d ago

I dont really see any cursor effect in the video my guy

2

u/duck_guts 13d ago

This thing, at moments looks like the text cursor is doing cool swoopy swipey animations

1

u/Opening_Library9560 13d ago

ohhh

Oh thats just the some terminal effect, not really a cursor effect, it happens when text are added or removed

3

u/duck_guts 13d ago

Nice ty, I'm a sucker for anything like that. My vram is not quite big enough to run solid locals so I fill it up with funky screen jazz instead.

2

u/Atagor 12d ago

Thanks for sharing!

Does it help with captcha / bot protected pages?

2

u/Opening_Library9560 12d ago

It will help with bot protected sites, i cant claim it will bypass everything, but its far better and faster than the regular fetching tools.

Though if you do get hit with a captcha, there is no way around that as of now

2

u/Atagor 12d ago

Thanks for reply! Yeah I was more interested about captchas

Wondering how big guys like openai are overcoming them...

1

u/Strong-Strike2001 12d ago

having deals

1

u/Opening_Library9560 13d ago

The fetching system used to have the standard tier one and tier two browser escalation, I Hated that shit, the browser was slow as hell and ate up resources when it was being used.

So in v5 i replace the whole stuff with The new fast fetching system, way faster, Near similar stealth, more reliable and just better.

The browser system may have had more stealth on a few sites but the speed and resource tradeoff was not worth it.

I am still Working on the fetching system tho, to make it even more stealthy than it already is

2

u/Least_Bodybuilder216 13d ago

Love the idea! Will try it later, already star it

1

u/Otagamo 13d ago

Very nice.

1

u/CapMonster1 12d ago

the learned request replay is the bit i’m curious about. what triggers relearning if the endpoint still returns 200 but the response is missing fields or stuck on the first page? an outright error seems easier to catch than a request that quietly stops doing what it used to. would be useful to see that recovery case in the comparison.

1

u/BackPackMan8 12d ago

Unfortunately, the free limits run out very quickly these days.

1

u/paulqq 9d ago

nice, since SERP for agents is really hard, how did you do it? serper.dev? or would you layout how you could get SERP for agents and pass cookie and cloudflare checks?

1

u/vate98 7d ago

Thanks!

-5

u/xenstar1 13d ago

You can use Tinyfish, more trustworthy.

8

u/Opening_Library9560 13d ago

It runs locally bruh, whats there to distrust 😭😭