Skip to content
dondai44423Public

About

Web fetch, search, and crawl for AI agents. Built from scratch in Rust. No keys, no accounts. AGPL v3.

Topics

Resources

Contributing

Security policy

Stars

1.2k stars

Watchers

4 watching

Forks

Latest commit

 

History

1,486 Commits

Folders and files

Repository files navigation

DonSeTch — The web. On your terms. A pipe-smoking don against a red and black city skyline.

DonSeTch

The web tools your agent needs.
Search, fetch, crawl, and screenshot. One local Rust binary. No required API keys or accounts.

Latest release CI status Monthly npm downloads GitHub stars

Sponsor DonSeTch — see tiers and payment details

Demo · Install · Tools · Settings · Design · Comparison · Proxies · Limits · Docs · Sponsor

Find a source, read the useful part, follow a link, check a claim. DonSeTch gives agents that web loop over MCP or from your terminal, with about 2,000 tokens of tool schemas.

Page reads launch no browser. Real client profiles, learned routes, and embedded V8 handle the fetch. Chromium is used separately for screenshots. Search needs no model download.

See it in action

A 54-second demo of an agent searching the web and reading sources with DonSeTch in OpenCode.

donsetch-demo.mp4

Start here

1. Install

npm install -g donsetch
donsetch doctor

The first donsetch command downloads a SHA256-verified release binary. No install scripts to approve and no Rust toolchain needed. Linux, macOS, and Windows are supported.

Platform / Agent Install or connect
Pi (native extension) pi install npm:donsetch
DeepSeek Harness (native plugin) dsh plugin --profile web add github:dondai44423/donsetch-dsh
Hermes (~/.hermes/config.yaml) Add donsetch under mcp_servers below (or run donsetch doctor --mcp)
Homebrew (macOS / Linux) brew tap dondai44423/donsetch && brew install donsetch
Docker (GHCR, amd64/arm64) docker run -i --rm --init ghcr.io/dondai44423/donsetch:latest

Pi and DeepSeek Harness register native tools directly. For source builds, platform matrix, Docker HTTP mode, or installer troubleshooting, see the setup guide.

2. Connect your agent

Add this to your MCP client's server configuration (Claude Code, Cursor, OpenCode, .mcp.json), then restart the client:

{
  "mcpServers": {
    "donsetch": {
      "command": "donsetch",
      "args": ["mcp", "--supervised"]
    }
  }
}

For Hermes (~/.hermes/config.yaml):

mcp_servers:
  donsetch:
    command: donsetch
    args: ["mcp", "--supervised"]
    transport: stdio

Configuration formats vary; donsetch doctor --mcp detects installed clients (including Claude Desktop, OpenCode, and Hermes) and prints ready-to-paste blocks using the binary's absolute path. --supervised restarts the stdio daemon after a crash.

Need an HTTP endpoint? Run donsetch mcp --http --port 8765 and connect to http://localhost:8765/mcp. HTTP setup and authentication →

3. Try it

# Find sources.
donsetch search "rust async cancellation" --intent code

# Read the passages that answer.
donsetch fetch https://docs.python.org/3/library/asyncio-task.html \
  --focus "cancel a task"

# Map a documentation site.
donsetch crawl https://docs.python.org/3/ --mode map --topic asyncio

# Configure everything interactively (toggles, sliders, keys, proxies, rules).
donsetch settings

The CLI and MCP tools use the same engine. No account setup sits between install and first use.

Worth keeping in your toolkit? Star the repo. It helps other agent builders find it.

Four tools. One process.

Four noir illustrations: a retrieved document, a magnifying glass and globe, a connected street map, and a bellows camera.

Tool Use it for Useful controls
web_fetch Pages, PDFs, YouTube videos, structured site records, or up to 12 URLs at once must_contain, focus, toc, section, transcript, since_last
web_search Ranked sources and evidence snippets, keyless by default intent, lang, max_results, read
web_crawl A site model, a plan, or a bounded crawl with a digest and resumable job mode, focus, max_pages, job, handle
web_screenshot A rendered PNG through an installed Chromium-family browser full_page, wait_ms, deadline_ms

Your agent chooses what to read next. DonSeTch supplies the tools.

Note

What to expect from keyless local search: Public search engines rate-limit aggressively, so some engines will go into cooldown or fail temporarily after use and need time to recover. Don't expect every engine to work without issues on every run—that's normal. Because DonSeTch spreads queries across multiple engines and routes around cooled-down ones, local search still produces usable results most of the time, which is enough for nearly all day-to-day work. If you run heavy, continuous research sessions, every local engine can end up rate-limited or in cooldown at once; for that workload, configure an optional search provider / self-hosted SearXNG or a proxy pool (both available in donsetch settings).

Read less. Keep the evidence.

Every view works over the extracted source, including PDFs and site adapters. You choose what comes back:

Question Option Response
“Does this page mention it?” must_contain Counts, sections, and excerpts for up to eight phrases or regexes.
“Where is the answer?” focus Relevant passages, best first, with their section paths.
“What's in this document?” toc Headings and section IDs, without the body.
“Read that part.” section One section and its subsections.
“What changed?” since_last Changes against your stored previous read, or unchanged.
“Read the video transcript.” transcript Opt-in YouTube captions (true or lang code); off by default to save tokens, searchable by focus and must_contain.
“Keep going.” offset Continue at the returned next_offset.
donsetch fetch https://doc.rust-lang.org/std/vec/struct.Vec.html \
  --must-contain with_capacity --must-contain amortized

Amounts match by value: 15M can find EUR 15 000 000. An unread portion makes an absence check unverified; it does not become a false “not found.” Use --links when you need citation URLs.

Fetch views, search options, crawl budgets, and result formats →

Under the hood

Fetch flow: check cache, make a request with a coherent identity, classify the response, use a native interface or bounded V8 when needed, verify content, and remember successful routes. Mined requests replay over HTTP on later visits. Screenshots use a separate browser path.

Open the route map at full size →

The client stays consistent. TLS, HTTP/2, headers, hints, and cookies belong to one identity. A clearance is spent by the identity that earned it. Successful identities and routes are learned per site.

JavaScript runs when it has a job. A challenge can mint clearance in V8. An application shell can run its own program against a data-only DOM. Nothing is laid out or painted. When a successful content run reveals a reusable data request, the fetcher stores that request and replays it over HTTP on later encounters. A broken replay is discarded and re-learned.

Search ranks evidence. Sources are selected by query type, merged by measured index independence, and ranked with BM25+, RM3, and a compiled linear model for the query types where it won validation. No LLM, embeddings, or model download.

PDFs use text and pixels together. PDFium supplies glyphs and rendered pixels from the same document. DonSeTch uses both to recover reading order, tables, and forms. Scans and corrupt text regions can use optional OCR, with uncertainty marked.

Architecture, cache behavior, local state, and source map →

Measured, with the conditions attached

Recorded fetch run · 15 Nov 2026 Content Median
Cold · 28 defended targets × 2 rounds · up to 3 attempts 49/56 · curl 21/56 1.18 s
Learned state · same 28 targets × 3 rounds · no page cache · 3 s deadline 69/84 0.98 s

These are home-IP measurements, not a promise for every site or network. The cold run paired curl in the same window. The learned run is a different protocol, not a controlled speed comparison. Neither run used the new program/replay transport.

Method, failures, and the separate live-web field test →

DonSeTch vs. Firecrawl Cloud

DonSeTch came out ahead on fetching and focused crawling in this test. Firecrawl had better search relevance. I asked an AI agent to use both MCP servers on real tasks on 16 November 2026, inspect the returned content, and write up what happened.

The opponent was Firecrawl's paid, hosted cloud service, accessed with an API key. I tried its free, open-source self-hosted version internally first; DonSeTch was far ahead in those runs, so I chose cloud for a closer contest. I didn't publish the self-hosted results. The linked report covers the cloud session only.

Task DonSeTch Firecrawl Cloud Result in this session
Fetch · 12 targets 0.83 s median on the 10 targets both read; faster on 9/10 2.00 s on those same targets DonSeTch gave faster reads, cleaner code on the tested Pydantic page, and structured PDF tables. Both returned content on 11/12 in the original core-tool test.
Focused crawl · 4 runs 9.49 s median; 19 pages selected around the requested topics 19.60 s; 26 pages, including navigation and feeds DonSeTch found the HTTPX async and uv Python-version material Firecrawl missed, with 7 fewer page fetches. Firecrawl returned 6–22× as many characters across the four runs.
Search · 9 queries 1.71 s median over 8 timed pairs; faster on 8/8 3.19 s over those pairs The agent preferred Firecrawl's results on 6 queries, DonSeTch's on 1, with 2 ties.

Reading less is part of the design. DonSeTch lets the agent choose an excerpt, section or full read, and expand when needed. Crawl digests give it relevant passages and pN handles for the stored pages. In these tasks, that meant less irrelevant reading and better page selection.

DonSeTch kinda got its ass beat on search relevance. It surfaced a stale Intel CEO snippet and weaker exact-error/product results. You can use a search API alongside the local reading tools—Tavily offers a free allowance; setup is below. BYOK search wasn't tested here.

Specific issues remain: Firecrawl read G2 through a Cloudflare wall and was faster on IMDb; DonSeTch's crawl digest flattened code on two sites. This was a small, hand-picked session with uncontrolled caches and different output views. The comparison doc includes every rated case, the environment, tools and settings.

Reddit update: Firecrawl Alexandria returned Reddit data in a follow-up, giving Firecrawl + Alexandria the practical-access edge in these checks. DonSeTch still read it in one 1.2 s call, versus ~6–8 s across six discovery/read calls. Follow-up and workflow details →

Full comparison: results, examples and methodology →

Proxies without the guesswork

You don't need one to start. A proxy is useful when an engine rate-limits your IP or a site treats your network differently.

# Add one proxy. Use your own host and credentials.
donsetch proxy add 'socks5://user:pass@proxy.example:1080'

# Verify the tunnel, exit IP, and latency.
donsetch proxy check
donsetch proxy list

Restart the MCP server after changing the pool. The important part is what uses it:

Tool Default with a configured pool Change it
Search Uses pool lanes for engine requests Automatic
Crawl Starts direct; later reads can spread across pool lanes donsetch proxy crawl off disables pool use
Fetch Uses your own IP donsetch proxy fetch on enables the pool

“Direct” here means outside the pool. A configured HTTPS_PROXY, HTTP_PROXY, or ALL_PROXY can still route that request. A failed configured proxy is reported; it does not silently fall back to your IP.

Crawl contacts the seed directly before pool lanes take over. To keep a site entirely out of scope, use a local deny rule.

HTTP/SOCKS5 formats, imports, credentials, environment proxies, and troubleshooting →

Optional keys

The default tools work without keys. Bring your own when you want an additional search provider or a paid fetch fallback.

donsetch keys add tavily 'YOUR_KEY'
donsetch keys add exa 'YOUR_KEY'
donsetch keys default local           # Keyless first; paid search as fallback.

To use a provider for search first, run donsetch keys default tavily (or your chosen provider), then restart MCP. Search queries go to that service; fetch and crawl keep their local engine. An explicit search lang uses the keyless path instead. The comparison above tested keyless search only.

Native search providers: Tavily, Exa, Serper, SerpApi, SerpBase, Brave Search, TinyFish, Parallel, Bright Data, and direct HTTP self-hosted SearXNG / Degoog (search.searxng_url / DONSETCH_SEARCH__SEARXNG_URL). Other providers can use the executable plugin interface.

Bright Data uses separate zones for SERP search and Web Unlocker:

donsetch keys add bd 'YOUR_TOKEN::YOUR_SERP_ZONE'
donsetch keys add unlocker 'YOUR_TOKEN::YOUR_UNLOCKER_ZONE'

Unlocker runs after a local wall, only with a configured key. Attempts can cost money and are capped per day. Zone setup, costs, and troubleshooting →

Know the limits

Situation What happens
A page requires login wall.auth. No sign-in, imported browser cookies, or stored login credentials.
A human challenge remains A named wall. No local hCaptcha, reCAPTCHA, Turnstile, or press-and-hold solver. An optional Unlocker may help.
Content needs layout or canvas The fetch stays a declared shell if the program cannot produce readable content. Use a screenshot for pixels.
A read hits its size or time limit Partial content or a named failure, with continuation information when available.
Local search engines rate-limit or cool down Remaining healthy engines still cover most everyday queries; heavy research bursts can cool down every local engine at once, requiring an optional search provider or proxy pool. No invented results.
You repeatedly harvest a defended site Pacing helps; IP bans can still happen. This tool is for research, not bulk collection.

For signed-in browsing or long, human-paced sessions, use a real browser driver such as Bladebro.

Local processing still makes requests to the sites you ask for. Optional providers and proxies receive the traffic you route through them. Security policy →

Configuration and upkeep

Interactive Settings Control Center

Run donsetch settings (alias donsetch setting) to configure every part of DonSeTch in an interactive terminal UI — no memorizing CLI flags or TOML keys:

  • 8 tabbed views (1–8 / Tab) with live cross-tab search (/): Search (including slow-network sequential mode, wave size, timeouts, keyless sources, SearXNG), Fetch (PDF, OCR threads/idle unload, DNS), Providers (add/remove/reset BYOK keys, switch default provider, register custom search plugins), Proxies (routing toggles, add/remove pool proxies, live latency/exit-IP probe), Browser (Chromium, external CDP, Unlocker bypass, TLS), Server (MCP/HTTP/auth), Rules (add/toggle/delete host rules + live URL tester), and Presets (one-click Slow / High-RTT Network, Low-Memory MCP, Classic Web Engines Only, Balanced Default).
  • Every write validates against the full config schema before atomically updating donsetch.toml (preserving your comments) with 0600 permissions.
donsetch settings                            # Open the interactive terminal Settings UI.
donsetch settings preset slow-network        # One-command slow-link preset (sequential + 15s timeout).
donsetch settings set search.sequential true # Scriptable update for agents & automation.
donsetch settings list --modified            # Inspect non-default settings (--json supported).
donsetch config show                         # Values and where each layer came from.
donsetch doctor --deep                       # Live network, browser, and provider checks.
donsetch status                              # Version, keys, proxies, and cache.
donsetch update                              # Update from GitHub Releases.
donsetch rollback                            # Restore the previous version.

Settings live in donsetch.toml. Precedence: defaults → legacy environment → config file → DONSETCH_<SECTION>__<KEY>. Unknown keys and invalid values fail clearly.

Config paths, browser setup, Docker, HTTP transport, and troubleshooting →

Documentation

Guide What's inside
Setup Install choices, platform matrix, MCP, HTTP, Docker, config, and repairs.
Tools Reading views, search, crawling, screenshots, BYOK plugins, and result contracts.
Proxies Pool routing, environment proxies, credential formats, and diagnostics.
Architecture Fetch, search, extraction, PDF, state, and the code behind them.
Measurements Benchmark conditions and the live-web field report.
Firecrawl Cloud comparison Fetch, crawl and search results, examples, environment, and methodology.
Local rules Refuse a host before fetching and give the agent your instructions.
Bright Data Optional SERP and Web Unlocker setup.
Contributing Development loop, tests, PRs, and releases.

Support the project

The DonSeTch don: top hat, pinstripe suit, pipe, and network smoke.
Good tools take work. Help keep this one independent.

If DonSeTch earns a place in your agent's toolkit, give it a star, share a useful example, or report a reproducible bug. Code and documentation contributions are welcome.

Support DonSeTch on Ko-fi

Sponsorship

DonSeTch is free and open source. Sponsorship funds maintenance, testing, and releases. Top-of-README placement is capped at 5 active slots so every sponsor stays visible.

Option Price What's included
Sponsor $99/month Linked banner and short description near the top of the README.
Integration Partner $599 upfront, then $99/month (month 4+) Everything in Sponsor for your first 3 months, one scoped native BYOK integration (built, tested, doctor-checked, and documented with you), plus 1 optional contextual CLI mention where relevant.

Prepay to lock the current rate against future price rises: 6 months for $495 (1 month free) or 12 months for $990 (2 months free).

Policy & how native integrations work

  1. Free scope check first: email your product, API docs, and proposed integration before paying anything. Scope is agreed in writing first. If the integration is not a fit, you can still take a standard $99/month Sponsor slot.
  2. Product boundaries: every native integration is opt-in BYOK only and plugs into an existing DonSeTch slot (search provider, walled-fetch fallback, or proxy setup). Default keyless behavior never degrades, no sponsor is routed to by default, and no fifth tool is added.
  3. Clean output & editorial independence: sponsors never appear in MCP tool responses, --json output, or tool schemas. Any human-facing CLI mention is clearly labelled Sponsor:, dim, and removable with DONSETCH_NO_SPONSOR=1. Sponsorship buys visibility and agreed integration work — never biased benchmarks or exclusivity against other BYOK providers.
  4. Delivery & active maintenance: standard scoped integrations ship within an agreed window (typically 1–2 weeks after payment and sandbox/test credentials are provided); larger custom architectures are quoted separately. Sponsors provide a modest test API key so the integration stays verified across releases while sponsorship is active.
  5. Fair lifecycle: when a sponsorship ends, README banners and CLI mentions come down at the end of the paid term. Working integrations stay in DonSeTch for users; if an unsponsored integration later breaks due to upstream API changes or becomes a maintenance burden, it may be deprecated or removed after a heads-up.
  6. Billing & refunds: monthly or prepaid billing via PayPal (GitHub Sponsors payouts are not available in my region yet). The upfront Integration Partner fee is non-refundable once agreed implementation starts.

How to sponsor

Email bhandaribishesh879@gmail.com with your product URL, banner (if you have one), and whether you want a Sponsor slot or an Integration Partner scope check. I'll confirm slot availability and share PayPal details.

One-time support is welcome at any amount through Ko-fi. Using Bright Data? This partner link supports DonSeTch at no extra cost to you.


Built by Dondai and contributors.
AGPL-3.0-only · Changelog · Security · Issues

About

Web fetch, search, and crawl for AI agents. Built from scratch in Rust. No keys, no accounts. AGPL v3.

Topics

Resources

Contributing

Security policy

Stars

1.2k stars

Watchers

4 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages