The web, for AI agents. v5: a new fetch engine. No browser in the fetch path: a wall is answered by the right client identity, the site's own challenge program run in-process, or the site's own public interface. What changed.
Why Β· Demo Β· Sponsors Β· Install Β· Quickstart Β· The 4 tools Β· Fetch Β· Search Β· PDF Β· Stealth Β· Compare Β· Limits Β· CLI
DonSeTch gives any AI agent full web research from a single local process: fetch, search, crawl, screenshot. Four tools, zero API keys, zero accounts, Rust, one binary. Fetching launches no browser (no Playwright, no Selenium, no headless Chrome): pages are read as a real client would read them, at curl's cost, and the tool surface stays small enough to fit an agent's context.
Works with every MCP client (Claude Code, Cursor, OpenCode, Pi, Hermes) and as a standalone CLI.
π€ Use Bright Data? Support DonSeTch. Their proxy, SERP and Web Unlocker products come through this partner link and part of it comes back to keep DonSeTch free. You pay nothing extra: https://get.brightdata.com/ivqwoicrrlbr Bright Data plugs into the tool itself: the
bdSERP provider, the Web Unlocker (opt-in) and theunlockerkey type. Bright Data setup guide: zones, API token, HTML/JSON and troubleshooting.
| What it does | |
|---|---|
| π‘οΈ Real clients, whole | Eight client identities: Chrome (Linux, Windows, Android), Firefox, Safari, an Android app (OkHttp) and a plain client. Each carries one real profile's TLS, HTTP/2 settings, header order and client hints as a whole. The Chrome identities match real Chrome's JA4 and Akamai HTTP/2 fingerprint exactly. Chosen per site, never patched per field. |
| βοΈ Challenges, in one process | When a wall needs the page's own program, it runs in an embedded V8 against a small, bounded host, on the same identity, and the credential it mints is spent by that identity. AWS WAF passes cold in 2-5 s. No browser, no layout, no rendering. |
| π§ Self-improving fetch | Remembers which identity each site accepts, what each bot-wall vendor lets through, which route answered, and how far each site's cache headers can be trusted. Measured: first-try content on a hard corpus went from 13/28 to 26/28 once learned, with 40% fewer requests. |
| π― Read only what you need | must_contain answers "is X on this page?" per term with counts, sections and excerpts, in a few hundred characters. focus returns the passages that answer a question, best first. toc then section reads one part. Every view searches the whole page, PDFs and site adapters included. |
| π§Ύ Honest outcomes | Every read says what it is: content, or a wall with its vendor and what it asks for (a login, a human, a program). A probe on a partly read page says unverified, never a false "not found". |
| π Keyless search | 10+ backends in parallel, fused by cross-engine consensus and lexical evidence over the answer set. No keys, $0 forever. BYOK optional. |
| π Pixel-fusion PDF | Glyphs and rendered pixels come from the same content stream and are fused deterministically, with a per-region trust audit. Scanned PDFs auto-OCR. |
| 𧬠Built from scratch | Own fetch engine, extraction engine, PDF parser, search aggregator and crawl engine. |
| πͺΆ ~2k tool schema | All four tools: 2,042 tokens (o200k_base, compact tools/list JSON). |
π©Ί doctor |
One command sweeps config, search health, egress, TLS, browser, DNS, captive portal, secret-store permissions, and fixes what is mechanically fixable. |
donsetch-demo.mp4
(30-second walkthrough: search, bot-wall bypass, crawl)
pidemo_upload.mp4
(Pi agent session: live research with DonSeTch as a native extension)
Proxy-Seller: private residential, mobile (4G/5G/LTE), ISP, and datacenter IPv4/IPv6 proxies with HTTP(S) and SOCKS5 support, 47M+ residential IPs in 220+ locations, precise country/city/ISP targeting, 99.7% uptime, and 24/7 support. Promo code DON15 takes 15% off.
Want your name or logo here? Sponsorship tiers.
DonSeTch is free and open source, and stays that way. Sponsorship pays for the time it takes to keep shipping.
| Tier | Price | What you get |
|---|---|---|
| π₯ Bronze | $10/mo | Name + link in Our Sponsors |
| π₯ Silver | $25/mo | Small logo + link in Our Sponsors |
| π₯ Gold | $49/mo | Large logo + link, pinned at the top of Our Sponsors |
If your product is part of this space (proxy platforms, search infrastructure, BYO providers, anything a DonSeTch user would plug in), Gold goes one step further: fit natively inside DonSeTch and you get the placement plus an official integration shipped in the binary itself.
How to sponsor. Email bhandaribishesh879@gmail.com, or use the β₯ Sponsor button on this repo. GitHub Sponsors payouts aren't available in my region yet, so email is the reliable route: write me, I'll share my PayPal, and we go through the steps. One-time sponsorships are welcome at any amount.
Prepay to lock your rate. You can pay for any number of months in one go at today's price, and that rate is fixed for the whole term, so 6 months of Gold at today's $49/mo is $294, and a later increase (even to $150/mo) never touches it. Price changes only ever apply to sponsorships started after them.
npm, any platform (recommended):
npm install -g donsetchDownloads the prebuilt binary for your platform from GitHub Releases with SHA256 verification. No build tools needed.
Homebrew (macOS/Linux):
brew tap dondai44423/donsetch && brew install donsetchPi agent (native extension):
pi install npm:donsetchRegisters the tools as native pi tools, spawns the binary at session start, self-updates with pi update --extensions.
DeepSeek Harness (dsh, first-class plugin):
dsh plugin --profile web add github:dondai44423/donsetch-dshOne line and every dsh agent gets fetch, search and crawl as native donsetch_* tools, no mcp__ names and no manual MCP config: the plugin downloads the verified binary for your platform, registers the tools in-process, auto-updates with DonSeTch releases, and picks up donsetch keys add changes live. See the donsetch-dsh repo for the config reference.
Homebrew and dsh auto-track published releases.
Verify the install:
donsetch doctor # grouped health checks, including a browser launch for screenshots
donsetch doctor --deep # adds live egress, provider and captive-portal probes
donsetch doctor --fix # repairs mechanical problems automatically
donsetch doctor --json # appends machine-readable check results
donsetch doctor --mcp # detects clients and prints absolute-path registration blocksInstall notes and troubleshooting
- Linux prebuilts: glibc >= 2.35 (Ubuntu 22.04 LTS and newer). The bundled ONNX lib keeps its own 2.27 floor, so OCR works on all of those.
- pnpm or bun: approve the build script (
pnpm approve-builds, or the bun equivalent), then reinstall. If scripts were blocked,npx donsetchinvokes the self-healing shim. --ignore-scripts: postinstall is intentionally skipped. Runnode node_modules/donsetch/install.js, ornpx donsetchto download the binary when network is available.- System-wide npm installs: a root-owned npm prefix (
/usr/local/lib/node_modules) cannot receive the binary when you run as a normal user. donsetch falls back to an existing binary onPATHor in~/.cargo/bin;DONSETCH_BINARY=/path/to/donsetchpoints at one explicitly. Keep the package copy withnpm config set prefix ~/.npm-global && npm install -g donsetch. - Proxy: set
HTTPS_PROXY(orhttps_proxy,HTTP_PROXY,http_proxy) to an HTTP CONNECT proxy. - Release mirror: set
DONSETCH_RELEASES_BASEto a mirror holding<tag>/<asset>paths. - Windows: the installer needs
tar, included since Windows 10 1803. - Windows ARM64: the x64 build runs under emulation, no native asset needed.
- musl/Alpine: published Linux binaries are glibc. Build from source on musl.
- First OCR run downloads a model (~37MB, cached forever). Search downloads nothing: it carries no model, no embeddings and no ONNX; its ranking is BM25+, RM3 and a linear ranker with compiled-in weights.
Build from source
| Dependency | Why | Linux | macOS | Windows |
|---|---|---|---|---|
| Rust | toolchain | rustup |
rustup |
rustup |
| Go | BoringSSL build | apt install golang-go |
brew install go |
winget install GoLang.Go |
| NASM | BoringSSL asm | apt install nasm |
brew install nasm |
choco install nasm |
| CMake | BoringSSL build | apt install cmake |
brew install cmake |
winget install cmake |
| Clang | bindgen | apt install clang libclang-dev |
bundled | choco install llvm |
| LLD | PDFium link | none: the Rust toolchain's own rust-lld is used (a system ld.lld must be LLVM 20+) |
not needed | not needed |
The challenge engine embeds V8 through deno_core. The build downloads a prebuilt V8 static library for your target; on an offline box, point RUSTY_V8_ARCHIVE at a downloaded copy.
git clone https://github.com/dondai44423/donsetch.git
cd donsetch
cargo build --release --features ocr,httpFirst build compiles BoringSSL and links V8 (a few minutes), cached after. Chromium is optional and never fetches pages: it serves web_screenshot only. DonSeTch auto-discovers system Chromium, Playwright's cached builds, or Edge on Windows.
PDFium's static archives use CREL (compact relocation) sections. A linker that does not know them, GNU ld before 2.44 and any lld before LLVM 20 (Ubuntu 22.04 and 24.04 ship bfd 2.38/2.42 and lld 14/18), skips them without an error and the link succeeds, but every relocation in those objects is left unapplied: the binary then calls a null constructor and dies with SIGSEGV before main. build.rs therefore links with the toolchain's own rust-lld (as new as rustc's LLVM, nothing to install) and falls back to an ld.lld of LLVM 20 or later on PATH. Do not force an older lld through RUSTFLAGS.
sudo apt-get install -y cmake build-essential pkg-config libclang-dev clang nasm golang-go
cargo build --releaseThe same recipe covers the prebuilt baseline: every asset from v3.4.5+ is built on Ubuntu 22.04 and runs there directly.
Feature set: default is [] (fetch, search, crawl, PDF). ocr pulls in ONNX Runtime, http enables the HTTP MCP transport. npm prebuilts ship both on linux-x64, macOS-arm64, macOS-x64 and Windows-x64; linux-arm64 is core-only, because the aarch64 ONNX runtime deadlocks in its loader. On macOS, OCR needs macOS 13.4 or newer (the minimum of the Microsoft-signed ONNX dylib that ships beside the binary).
Browser
The browser serves screenshots, never page reads. DonSeTch drives an installed Chromium-family browser (Chromium, Chrome, or Edge on Windows) and downloads none: screenshots run it headless in a throwaway profile.
browser.chromium_path picks the binary; the legacy DONGHOST_CHROME sets the same value. Without it, DonSeTch takes the first executable among the usual install locations, Playwright's browser caches (including browser.playwright_path or PLAYWRIGHT_BROWSERS_PATH) and PATH.
[browser]
chromium_path = "/path/to/chrome"The same from the environment: DONSETCH_BROWSER__CHROMIUM_PATH=/path/to/chrome donsetch doctor.
MCP server (for any agent). Register and go:
{
"mcpServers": {
"donsetch": {
"command": "donsetch",
"args": ["mcp", "--supervised"]
}
}
}--supervised is the crash-only daemon: a panic is a blip, the daemon restarts itself, the session survives. Without a global install, use "command": "npx", "args": ["donsetch", "mcp"].
HTTP transport instead of stdio: donsetch mcp --http --port 8765, clients connect to http://localhost:8765/mcp. Sessions, cancellation, /health, token auth via DONSETCH_HTTP_TOKEN and per-request timeouts are documented in donsetch mcp --help. A request that carries a browser Origin is refused unless the page is on loopback or CORS mode (DONSETCH_HTTP_CORS, which requires the token) is on, and a server bound to loopback answers only to loopback Host names on its own port, so a web page cannot drive it and a DNS-rebound name cannot read from it.
CLI (for humans and scripts). Same engine, thin adapter:
donsetch fetch https://example.com/pricing --must-contain "free tier" --must-contain '/\$\d+/'
donsetch fetch https://docs.python.org/3/library/asyncio-task.html --focus "cancel a task"
donsetch search "rust async patterns" --intent code
donsetch crawl https://docs.python.org --mode map --topic asyncioMCP results and client bridges
By default, every client receives evidence and actionable state together in
content: a leading [meta] {JSON} line followed by source markdown. This
also works for unknown wrappers and OpenCode's generic cli handshake.
structuredContent is omitted so a bridge cannot select metadata and drop
the document. PNG captures remain image content blocks; diagnostics stay in
_meta. The same contract applies over stdio and HTTP.
Raw MCP returns a result object with a content array. Some agent bridges
flatten its text blocks into a string. Handle both at the integration boundary:
const text = typeof result === "string"
? result
: result.content.filter(block => block.type === "text")
.map(block => block.text).join("\n\n");
const end = text.indexOf("\n");
if (!text.startsWith("[meta] ") || end < 0) throw new Error("Missing result state");
const state = JSON.parse(text.slice(7, end));
const markdown = text.slice(end + 1).trimStart();
// Inspect state.ok, content_ok, next_offset, resume or next_action.For integrations that deliberately consume both surfaces, [mcp] text_only = false restores the split result for unrecognized clients. Known clients that
drop one surface retain compatibility folding. From the environment, set
DONSETCH_MCP__TEXT_ONLY=false. The default requires no client-specific
configuration. donsetch status --json reports the configured mode and its
source under status.mcp; doctor and human status show the same posture.
The mode is the default for an unknown client: recognized clients can still
require compatibility folding after their MCP handshake.
| Tool | What it does |
|---|---|
π web_fetch |
Any URL as clean markdown, or only the part that answers: must_contain probes, focus passages, toc β section. Walls answered in-process, never by a browser. PDFs with OCR and per-page confidence, site adapters, page memory, batches of up to 12. |
π web_search |
Keyless multi-engine search: 10+ backends, consensus plus lexical evidence over the answer set, query-aware official-source placement. Ranked URLs and snippets, never a scraped article dump. |
π·οΈ web_crawl |
Best-first same-domain crawl. Sitemap plus frontier, focus ranking, elastic pacing, resume tokens, honest stop reasons. |
πΈ web_screenshot |
Rendered PNG of any URL through DonSeTch's browser. URL goes through the usual safety guards. CLI twin: donsetch screenshot URL [--out PATH]. |
Tool schemas: donsetch tools (same JSON as MCP tools/list). Every failure is structured: a stable code (wall.challenge, guard.ssrf, deadline.hit, network.dnsβ¦), an errorKind (permanent, transient, walled), and a next_action line, so agents branch on codes instead of parsing prose. The model surface carries evidence and the state that changes the next action; transport telemetry (fetch, quality, escalation trace, timings, engines) stays under _meta, for example _meta["com.donsetch/fetch-debug"].
One request, as a real client, at curl's cost: about half a second median on defended corpora, 47 ms on a trivial origin (curl: 46 ms). No browser is launched to read a page. When a site walls the request, DonSeTch answers the wall the way the site asks, and when nothing passes it says which wall it met instead of returning a guess.
How a read goes:
- Cache. A stored copy is served only as far as it has been earned: a repeat read sends the conditional request Chrome sends, and the server's 304 is the proof. A page is served from its declared lifetime (capped at 60 s) only after the last check found it unchanged; a site whose validators lie is distrusted for a week.
- Spend. One request as the identity this site accepted before, with that identity's own cookies, paced per site.
- Classify. Content, or a wall named by its vendor (Cloudflare, AWS WAF, DataDome, PerimeterX, Akamai) and its ask: a different client, the page's program, a human, or a login. Vendors are read from their own headers before any body.
- Answer the wall. Move to the identities that vendor has let through; follow a native hand-off (Akamai's
bm-verify); run the page's challenge program in-process (below); or ask the site's own public interface (Reddit's feed, the Stack Exchange API, crates.io's API and others), which comes back astransport: data. - Remember. The identity that answered, the vendor's verdict, the route and the cookies persist, so the next read of that site starts in the right place (self-improving fetch).
Measured from a home IP, cold, on a hard corpus of 28 defended sites Γ 2 rounds: 42/56 content through DonSeTch, 22/56 for curl.
Every view is computed over the whole extracted page (up to 8 MiB), whatever the source: HTML, PDF, a site adapter, a feed or plain text. Only the view is returned.
| Option | What comes back |
|---|---|
must_contain |
Is it on the page? One term or up to 8: a phrase (case, spacing, quote and dash style and markdown emphasis ignored) or a /regex/. Per term: found Γcount, the sections it occurs in and short excerpts, or not found with a near-miss hint ("its words all appear in Β§s4, not as one phrase"). Amounts match by value in the page's spelling: 15M finds EUR 15 000 000, $1.5bn finds US$1,500 million, 3% finds 3 percent. Verdict match, partial, no_match, or unverified when part of the page was not read, so absence is never claimed without proof. With section, it searches only that part. |
focus |
The passages that answer a question, best first, each under its section path (Β§s21 Β· Syntax and features βΊ Ownership and references βΊ Lifetimes): paragraphs, list items, table rows with their header row, code. A figure in the query (15M, 3%) is found by value, as must_contain finds it. Names the query words the page does not contain. A miss returns the outline, never the whole page. 12-language BM25: CJK unigrams and bigrams, stopwords, stemming, accent folding. |
toc |
The heading outline with sN ids and sizes, no body. |
section |
One part by sN id or heading text, subsections included. A miss returns the outline. |
max_chars, offset |
Length cap (16,000 by default; the batch total for a URL array, 48,000 by default). A cut-off response carries next_offset; a paginated article names its next part as next_page. |
since_last |
Re-check against your previous read: one unchanged line, or only the changed sections. |
links |
Keep links. true or "urls": [text](https://...) with the real address, to cite, check or follow it. "handles": compact [text](L-handle) references, about half the tokens; pass a handle as url to follow it. Off by default: link text only (~30% fewer tokens). |
image_text |
OCR the first four content images into an image text section that every view searches. |
deadline_ms |
Hard time limit: a deadline error on expiry, never a hang. Real MCP cancellation and progress notifications. |
$ donsetch fetch https://doc.rust-lang.org/std/vec/struct.Vec.html --must-contain with_capacity --must-contain amortized
# Vec in std::vec - Rust
https://doc.rust-lang.org/std/vec/struct.Vec.html
must_contain: MATCH 2/2
+ "with_capacity" Γ27 in Β§s3, Β§s6, Β§s7, Β§s12, Β§s14, Β§s15, +17 more
β¦]); // The following is equivalent, but potentially slower: let mut vec = Vec::with_capacity(5); vec.resize(5, 0); assert_eq!(vec, [0, 0, 0, 0, 0]); ``` For more informatiβ¦
β¦reallocate, which can be slow. For this reason, it is recommended to use `Vec::with_capacity` whenever possible to specify how big the vector is expected to get. ## Β§Guaraβ¦
+ "amortized" Γ4 in Β§s7, Β§s37, Β§s41, Β§s607
β¦nstant growth factor. Whatever strategy is used will of course guarantee *O*(1) amortized `push`. It is guaranteed, in order to respect the intentions of the programmerβ¦
β¦2]; vec.push(3); assert_eq!(vec, [1, 2, 3]); ``` ##### Β§Time complexity Takes amortized *O*(1) time. If the vectorβs length would exceed its capacity after the push, *β¦
A reading ladder (approximate costs): search, then must_contain for a yes/no with evidence (100-250 tokens), focus for the answer (a few hundred to a few thousand), or toc (a few hundred) then section for a complete read of one part. The page itself is the last resort. Contradictory options (must_contain with focus, toc with focus, since_last with a view) are refused before anything is fetched, with a fetch.args error that says why.
Extraction (DonSift): HTML bytes in, agent-native markdown out. Typed blocks with heading breadcrumbs; link farms, wiki junk and duplicates dropped; links off unless asked for. Pages are classified Article / Listing / Forum / Docs / Table / Page with a 0-1 quality score.
- Domain adapters: Reddit, npm/PyPI/crates.io/Go/RubyGems, GitHub, Stack Exchange, YouTube videos, Wikipedia and docs sites are restructured from each site's own keyless surfaces. Labeled
via=adapter:β¦, kill-switchable. Every view applies to them. - Page memory: every read is fingerprinted, so a re-read reports
changedwith section-level diffs, andsince_lastcollapses a re-check to one line (~30 tokens). - API/JSON endpoints:
.jsonURLs and JSON responses come back as structured data. - Batches: pass up to 12 URLs; they are read in parallel with the same view, and successful siblings stay available beside individual error rows.
read_status names what was returned: content (the whole page), partial (cut off, or a known subset), probe (a must_contain answer), focus, section, outline, unchanged, or thin (a suspected empty shell). Failures use walled, notfound or error. content_complete says whether you have the whole page. next_offset is a character offset into the rendered markdown, not a page number.
Walls are answers, not errors to retry. A wall comes back fast with its kind: wall.challenge (naming the vendor), wall.captcha, wall.auth (a login: fetch carries no session), wall.paywall, wall.blocked, wall.empty_shell, with a next_action line. Classified failures return normally with ok:false; protocol errors remain JSON-RPC errors.
Time and freshness (observed). Median read 0.5-0.6 s on defended corpora; an AWS WAF first contact 2-5 s, then cookie-carried; guards are instant. Dead URLs return the live failure directly; a readable URL path may supply a suggested_query for locating a moved copy. changed and since_last compare stored history: they are not a live revalidation.
Stack Exchange question reads (Stack Overflow and every network site) use the public question API with answers and comments; an empty, failed or incompatible API response falls back to the website, and service-declared backoff is honored. Fetch keeps its direct-IP default even with a configured proxy pool; search and crawl keep their pool routing.
web_screenshot returns the inline PNG and a private local path containing the same bytes; remote clients should use the inline image because the path belongs to the server host.
Optional unlocker (opt-in). When a local fetch hits a hard wall, it falls back to Bright Data Web Unlocker once, if a key is configured (donsetch keys add unlocker "<token>::<Web Unlocker zone>"). It returns HTML into the normal extraction pipeline; a challenge or empty shell remains a failed fetch. donsetch doctor --deep checks token access, zone name and product type for free. Successful responses are cached locally (URL and render-mode keyed, sliding 6h TTL, 200 entries). The daily cap counts every API attempt, including retries, and a timed-out paid request is not replayed automatically. Settings live in [bypass]: donsetch config show. See the setup guide. DonSeTch works without it.
Walls, measured (home IP, 2026-11)
| Protection | Sites | Result |
|---|---|---|
| AWS WAF, all three shapes | IMDb, Booking, Trustpilot | β the challenge program runs in-process, cold 2-5 s, then cookie-carried |
| Akamai Bot Manager | Amazon | β
native bm-verify hand-off, ~1.5 s first contact |
| Cloudflare managed challenge | Glassdoor, Indeed, npm, Medium, Product Hunt | β content through the identity Cloudflare lets through; the challenge program itself runs but does not pass yet |
| App shells and walled fronts and listings | Reddit, Stack Exchange, crates.io, 4chan, Twitch, NYT, WSJ | β
the site's own feed or API (transport: data); an article, question or thread is read as its own page |
| PerimeterX press-and-hold | Bloomberg, Zillow | |
| DataDome captcha | Etsy, Yelp | β declared: it asks a human |
| Interactive captchas | hCaptcha / reCAPTCHA / Turnstile | β declared without a key (with an unlocker key: β ) |
| Login walls | x.com, gated docs | β declared as wall.auth: fetch carries no session yet |
From a datacenter IP (what a VPS user has) the same corpus answers about half as often: the egress class decides many walls, which is why donsetch proxy exists.
Same-domain, best-first. Two phases: sitemap discovery (cheap URL inventory), then a Governor-paced frontier walk with extraction per page.
- Modes:
full(map + content),map(URL inventory only),content(BFS from the seed, no sitemap). - Focus-ranked frontier:
focus="query"ranks pages by BM25 relevance over link text and URL path, and crawls only matches. No semantic matching before fetch: a link sharing no token with the query is never enqueued. - Adaptive pacing: the Governor paces per (host, lane). 429/503 back off on host signals, host-declared waits (
Retry-After, robotsCrawl-delay) are honored in full, and everything self-inferred caps at ~7s. Zero artificial dwell on the fetch path: stealth through truth, never time. - Crawl-shape: frontier pops get a seeded reader-like jitter so repeated crawls never replay one identical, score-eager order into server logs. Ordering only, payloads untouched. Kill switch:
DONSETCH_NO_CRAWL_SHAPE=1. - Resume tokens: a stopped crawl resumes in one call, valid 30 minutes, survives restarts.
- Near-duplicate detection: title plus first 200 chars, hashed.
- Budgets:
per_page_maxandmax_total_charshonor positive character limits down to 1, including concurrent workers.deadline_saccepts 1-600 seconds and bounds discovery, page reads and extraction. A sliced page carriesnext_offset; useweb_fetchwith that offset to continue it. - Inventory:
map_limitcontrols returned URLs (default 120, up to 50,000).inventory.complete=falsediscloses output caps, unavailable sitemaps and discovery safety bounds (100,000 URLs, 32 sitemap reads). A map derived from seed-page links cannot establish site-wide completeness. Narrowfocus/include_pathsfor large sites. - Change tracking:
since_last=truerechecks sources, then suppresses unchanged pages using per-URL fingerprints from earlier fetches or crawls. Pagination does not prevent recording a full-source fingerprint; partial output never becomes full baseline text. - Focus receipts: page state records whether passages were omitted and the block counts. Dataset JSON Lines use
dataset_version:2, adding the per-row focus receipt. - Honest stop reasons:
FrontierEmpty,MaxPages,CharBudget,DepthLimit,Deadline,ThrottledOut,Cancelled,InventoryLimit. A drained frontier is complete only when the requested evidence was obtained without failures or excluded pages. - Cross-process politeness: one host-pace store shared by every crawler on the box, so two runs against one site do not double the rate.
Crawl caps apply to each page's rendered markdown and the aggregate page
content. Headers and inventory metadata are separate. A capped page carries
next_offset and content_complete: false; it never becomes a full-content
history baseline. Full crawl output summarizes the unfetched inventory;
structured map retains the URLs. Map mode reports mode: "map", discovered,
and InventoryComplete when finished, without an empty content-page array.
Map is sitemap-backed when the site has one; without a sitemap it falls
back to the seed page's links.
Continue a stopped crawl using resume alone; a new crawl requires url.
No API key, no account. Keyless engines and first-party interfaces run in parallel on your machine inside one time budget, then merge, dedupe and rank. A source's answer is classified before it can rank: a page that is off the query, a bot wall or an empty result earns nothing.
- Backends: Google search elements, Bing, DuckDuckGo, Yahoo and Brave, plus first-party sources (GitHub, Wikipedia in the query's own language, HN, OpenAlex, arXiv, Europe PMC, StackExchange, MDN) and a news program for news queries or a recent window ("this week", "yesterday"): the Bing News wire, a mesh of publisher feeds and GDELT, every item dated and inside the window.
- Package names answered by their registry:
npm zod,cargo serde_json,pip scikit-learnask crates.io, npm or PyPI directly (one request, no engine fan-out) and return the registry record with the project's own documentation, homepage and source repository. A bare name (tokio) or a language word with a name (rust serde) is answered by the registry only when the package is widely used, becauserust ownershiporpython decoratorsis a question about the language, not about a small package that happens to share the word. A code query that names a package (rust reqwest http client) asks the registry too, so the official documentation leads instead of a tutorial. - Native Google, browser-free: the default Google source reads the public search-element bootstrap and structured results through the existing Rust transport. It uses its own short-lived token on the same network route, without executing scripts or downloading a model. A refusal rests the source. The legacy mobile adapter remains a research helper; see request and refusal handling. Availability depends on Google and your network.
- No model in the search path. Ranking is BM25+ over the answer set, RM3 expansion from the results themselves, and a linear ranker whose weights are trained offline and compiled in. It orders code, how-to and shopping queries, the kinds where it beat the engines' vote on bench queries it never trained on; every other query keeps the vote (
donsetch search --explain <query>prints each result's features and what each one added). A first search downloads nothing, and no ONNX session is opened: OCR is the only ONNX consumer. - Consensus: a URL several independent indexes return gets a boost. Independence is measured, not assumed: sources whose top results overlap are counted as one index, and the graph is learned and persisted, so a source that changes supplier is re-measured. The compact surface shows
Β· N indexeswhen more than one index returned a result. - Learned engine health: per-engine trust and chronic-failure quarantine survive restarts, so dead engines get benched instead of burning fan-out slots on every query. A source that publishes a rate limit (Stack Exchange's daily quota, any
429) is rested until it lapses, not marked as failing. - Source health you can read:
donsetch search --sourcesshows every source as verified, suspect or benched until a time, with its measured index family.donsetch search doctor(also--doctor) runs eight canary queries whose answers are owned by first-party interfaces (arXiv, crates.io, npm, Wikipedia, GitHub, Europe PMC) through the real search path, and judges each general source on whether it returns what the owner returned. A canary whose owner does not confirm that run is dropped, so a broken oracle never convicts a source. - Query evidence: named entities, versions, years and exact identifiers contribute to ranking. Search constraints are enforced before the vote; a non-Latin query prefers evidence in its script, and Han-only text receives no guessed English market. A foreign-script fallback carries low confidence.
- Honest reporting:
confidencereports high, medium or low retrieval confidence from source independence, agreement, query coverage and junk; it does not certify the pages' claims.degradedmarks limited independence or a high junk ratio. Only high-confidence merged answers are cached, and replay reportscache_age_ms. A census line names every source that answered and what each other source said (403,late,off-query,rate-limited:N), so an empty or thin result says why. - Answer text from Stack Overflow: the native API returns question records and their answers in one request. Snippets quote an accepted answer when available, otherwise a non-negative-scored answer; unanswered questions retain their metadata. Source-published waits apply even when the current response succeeds.
- Evidence, not teasers: each result's snippet is the sentence, across all sources that returned it, that best covers your query, cut at a sentence boundary: up to 320 characters for the top three, 180 for the rest, sharing a 1,600-byte snippet budget across the answer. Readable Unicode paths avoid spending context on percent-encoded letters; destinations and reserved URL escapes are preserved. Actual token use also depends on URLs, titles and language.
read: N(max 3) fetches the top N pages inside the same deadline and shows the passage of each page that answers the query, markedpage:; automatic repair reads top-three stubs and a procedural result or excerpt promising instructions, with one independent publisher as a fallback when needed. One procedural read can overlap the remaining index requests when an unreserved request slot is available; its excerpt is used only if that URL survives the final ranking. All automatic reads use the remaining time inside a 2.2-second native-call envelope and the existing three-page/request allowance. Page passages preserve code line breaks, list steps and table column headers, and source dates stay attached to evidence. Read pages are warm for the follow-up fetch when prewarming is enabled. - Query compiler:
site:,filetype:andintitle:are sent only to engines that honor them, and SERP instant answers are extracted with their source URLs.
Measure keyless quality with donsetch search-bench --set all --cold --out run.json.
The corpus separates tuning from held-out queries and reports answering-page rank, whether
expected phrases appear in snippets, empty answers, forbidden matches, and latency by query
shape. Actual answer accuracy requires the separate blinded evidence review.
python3 bench/headtohead.py --help runs the same fixed queries against provider APIs;
results from different corpora or judging methods are not directly comparable.
Search reports requested_results, returned_results, and underfilled
when engines cannot supply the requested count. source_type identifies video, community, paper, reference,
publisher, official, institutional, and general web sources from known hosts.
It does not certify a page's claims or assign trust to lookalike domains.
Paid providers add rate limits and premium sources on top of the keyless chain.
donsetch keys add tavily tvly-... # Tavily
donsetch keys add exa sk-exa-... # Exa (stackable)
donsetch keys add serper ... # Serper.dev
donsetch keys add serpapi ... # SerpApi
donsetch keys add serpbase sb-... # SerpBase Google SERP (100 free searches)
donsetch keys add bravesearch ... # Brave Search API
donsetch keys add tinyfish sk-... # TinyFish (free tier)
donsetch keys add parallel nKil3... # Parallel AI (fast mode)
donsetch keys add bd "<token>::<SERP zone>" # Bright Data SERP
donsetch keys add unlocker "<token>::<Unlocker zone>" # Bright Data Web Unlocker
donsetch keys default local # dispatch order: keyless first- Stack keys per provider: two Exa keys are one 3,000-credit pool.
donsetch keys export/importmoves the store. - Automatic fallback to keyless when a provider errors or runs dry, per-key rate-limit cooldown and depletion tracking.
- The native adapter list is deliberately short, only the biggest services get one. Everything else belongs in the plugin system below, wired by you, running in the same chain.
- Bright Data SERP, Web Unlocker and the proxy/data products are available at get.brightdata.com (affiliate link).
Not natively supported is not the same as unsupported. Register any executable that answers a small stdin/stdout JSON contract and DonSeTch treats it like any other provider: default chain, fallback, attribution. Any language works.
donsetch keys add plugin searxng --cmd 'python3 ~/searxng-adapter.py' --testRequest on stdin, response on stdout:
{"format":1,"query":"rust async","max_results":8,"intent":"web","deadline_ms":30000}
{"format":1,"results":[{"title":"...","url":"https://...","snippet":"...","score":0.9}]}Errors: exit non-zero with a message on stderr, or answer {"format":1,"error":"...","retryable":true,"error_kind":"rate_limited"}. error_kind is optional and says what actually went wrong: invalid_key, credit_depleted, rate_limited, server_error, network_error. Report one of the first three and the plugin is parked the way a native key in that state is parked, rate-limited for a 60s cooldown then retried, invalid or depleted until you re-register it with keys add plugin, and keys list shows which. Leave the field out and nothing changes: retryable alone still only picks between retrying this search elsewhere and reporting the failure. Constraints that keep it reliable: hard timeout (default 30s, --timeout to change), 8 MiB stdout cap, direct exec with no shell, killed on cancellation, and a malformed response degrades gracefully down the fallback chain. Keys belong in the adapter's own environment, never in DonSeTch config.
PDFs are detected by Content-Type or %PDF magic and parsed through a custom PDFium FFI. No external PDF library, no Python subprocess.
Glyphs and rendered pixels come from the same content stream, so they are already aligned. Pixels tell the truth about structure, glyphs tell the truth about text, and the fusion is deterministic: no hallucination.
| Mechanism | What it does |
|---|---|
| Pixel-fusion rule extraction | Tables and borders detected on the rendered bitmap. A rule line is a fact, not a hypothesis. |
| Span detection by ink continuity | A cell spans a separator iff the separator has no ink under it. Deterministic colspan/rowspan. |
| Trust audit + arbitration | The glyph stream is authoritative unless there are zero glyphs plus pixels (a scan) or 30%+ PUA garbage. Corrupt regions get OCR'd even when neighbors read fine. |
| Orientation canonicalization | Vertical and rotated text run one pipeline, with coordinate frames rotated. |
| Confidence honesty | Verbatim glyphs, or OCR with per-line confidence and [uncertain: β¦] markers below threshold. |
| Forms as data | AcroForm widgets become name/type/value triples. |
Tier B, lazy: OCR through the PP-OCR cascade (En β Zh β Deva) for scans and broken ToUnicode pages.
Battle test results
40-document corpus, zero garbage output, 6-14x faster than the Python alternatives, 120/120 fuzz clean.
| Document type | Result |
|---|---|
| Academic papers | β clean text, math symbols recovered |
| Scanned documents | β OCR'd, confidence-scored |
| Tax forms | β forms as data |
| Multi-column layouts | β reading order preserved |
| Encrypted or corrupt PDFs | β honest flag with the reason |
| Nepali UDHR (broken ToUnicode) | β 10,542 chars at 86% confidence (pymupdf: 28) |
A site decides before it serves content on two things: who is asking (TLS and HTTP/2 shape, header set and order, client hints, pacing) and what they already hold (cookies, clearance). DonSeTch carries both. A fingerprint is never assembled field by field: each identity is one real client's profile, carried whole, and the identity is chosen per site.
| Identity | Profile |
|---|---|
plain |
A plain HTTP client: the cheapest first ask |
chrome-local |
Chrome 156 on Linux, captured from a real browser |
chrome |
Chrome 156 on Linux (wire measured against the reference browser) |
chrome-win |
Chrome on Windows |
chrome-android |
Chrome on Android |
firefox |
Firefox 151 |
safari |
Safari 26.4 on macOS |
okhttp |
OkHttp 5, the client inside Android apps |
Verified against the real browsers
Each identity is fingerprinted and diffed against the browser it claims to be. The Chrome identities reproduce real Chrome exactly: JA4 t13d1517h2_8daaf6152771_cb7bf5808d99, the same Akamai HTTP/2 fingerprint, the same 17 headers in the same order. Chrome permutes its ClientHello extension order per connection, and so do they, so JA3 varies as the real browser's does. An identity that does not match is removed, not relabelled: a curl identity was dropped because it was the native stack with a curl user-agent, a claim no detector would believe.
What is not in the bytes:
| Behavior | Why it matters |
|---|---|
| Cookies per site and identity | A jar per (host, identity), with expiry. Cookies never cross hosts or identities, and a clearance is never spent by a different client class: a fingerprint mismatch burns the request and looks like a wall. |
| Conditional revalidation | A repeat read sends If-None-Match / If-Modified-Since in Chrome's order. A 304 is what a returning browser gets. |
| Pacing | At least 900 ms between reads of one site and 250 ms between attempts. A burst is a signature even when every request is perfect. |
| One client per read | A page is read as one identity with its own jar: no background requests in another client's name, which would contradict the one that read the page. |
| The OS's trust store | The bundled Mozilla roots plus the OS store and SSL_CERT_FILE / SSL_CERT_DIR, as Chrome trusts the OS: an enterprise inspection root installed the OS's way works, and so does a bundle named in [tls] cert_file / cert_dir. The ClientHello does not change. |
No browser fetches content, and no browser earns state for a fetch. A wall that needs the page's own program gets it run inside the fetch process, by an embedded V8, against a small bounded host. The credential the site issues is spent by the identity whose request minted it.
| Step | What happens | Cost |
|---|---|---|
| 1. Read | The identity's request comes back as a challenge page, named by its vendor | one request |
| 2. Run | V8 runs the page's scripts in document order with its own inline bootstrap, fetching each script as the same identity. The host is a minimal DOM, the browser surfaces those programs read, and WebCrypto on BoringSSL. Nothing is laid out or rendered. | AWS WAF's 690 KB bundle compiles in ~9 ms; the mint is network-bound |
| 3. Spend | The same identity sends the credential and re-classifies the answer. A credential the origin refuses is a failed mint, reported as the wall it is. | one request |
| 4. Reuse | The credential is kept for its learned lifetime and re-minted once when refused; mints are capped and backed off per site. | none |
Measured cold from a home IP, no state: all three AWS WAF shapes (IMDb, Booking, Trustpilot) reach content in 2-5 s, then ride their cookie. Cloudflare's managed challenge is run and does not pass yet, so identity is spent first: the identity Cloudflare lets through answers every Cloudflare site in the corpus.
Hostile pages end bounded and named: an endless loop stops at the 10 s wall clock, a heap bomb in 0.15 s, a 1 GB buffer is refused, a WebAssembly loop stops in 18 ms. Memory is checked on Linux, Windows and macOS; one engine runs at a time, and its memory exists only while a mint runs.
Every read is an action and an observation. Deterministic state, no ML, all local: one compact file under the cache directory (<cache>/v5/state.json), with cached pages beside it.
| It learns | So that |
|---|---|
| Which identity each site accepts | The next read starts there. It stays until it fails; scores halve after 32 attempts, so a site that changed is believed. |
| What each bot-wall vendor lets through | Learned across sites over a measured seed: a new site behind a known vendor starts with the identities that vendor passes. |
| The route that answered | A site whose public interface answered is asked there first. |
| Published limits | A 429 with x-ratelimit-reset becomes a cooldown: the next read answers in ~150 ms naming the wait owed, instead of getting blocked. |
| Minted credentials | Reused for their learned lifetime, re-minted once when refused. |
| How far each site's cache headers can be trusted | Validators are audited by occasional full reads; a site whose validators lie is re-read in full for 7 days, and a page that changes inside its declared lifetime is always re-checked. |
Measured with persisted state on a hard corpus of 28 defended sites: first-try content 13/28 cold β 26/28 learned, requests per round 48 β 29, median 1.1 s β 0.63-0.85 s. On a friendly corpus of 17 sites: 10/17 β 15-16/17.
The state is bounded (4,096 sites, least recently used go first with their cookies and credentials) and written by merging into the file under a lock, so processes sharing it keep each other's learning. Search engine trust, domain quality priors and crawl pacing ladders learn the same way. Receipts in donsetch status and donsetch doctor --improve; DONSEEK_NO_DISK_STATE=1 keeps all of it in memory.
Every layer in Rust.
| Component | What | Where |
|---|---|---|
| π‘οΈ Fetch core | The fetch engine: client identities, learned state, page cache, wall classification, the site's own interfaces, the in-process V8 challenge engine | core/ |
| π DonSift | HTML β markdown, block model, 12-language BM25, the page views (must_contain, focus, toc, section) |
src/extract/ |
| π DonSeek | Keyless multi-engine search, RRF + BM25+ + consensus + a compiled linear ranker | src/search/ |
| π·οΈ DonTread | Crawl engine, sitemap, focus frontier, Governor pacing, resume tokens | src/crawl/ |
| π DonSheet | PDF extraction, PDFium FFI, pixel-truth fusion, OCR cascade, forms | src/pdf/ |
| πΈ Browser | Screenshots only, headless and throwaway; never a page read | src/browser/ |
| π MCP daemon | stdio + HTTP servers, JSON-RPC 2.0, four tools, crash-only supervisor | src/mcp/ |
1,900+ tests. Zero clippy warnings: cargo clippy --all-targets --features ocr -- -Dwarnings is the law, and CI runs the full matrix on Linux, macOS and Windows.
Every runtime knob lives in one typed config (src/config.rs), layered, later wins:
- Compiled defaults. A bare
donsetch mcpstays the law: zero config needed. - Legacy env vars (the pre-v4 names,
DONSETCH_NO_CRAWL_SHAPEsay). Honored exactly as before, reported as deprecated bydoctor. donsetch.tomlat<config-dir>/donsetch/donsetch.toml, or anywhere viaDONSETCH_CONFIG=/path/file.toml. Unknown keys and bad values are hard errors naming the file.DONSETCH_NO_CONFIG_FILE=1skips the file layer (setting both is an error).- New env names:
DONSETCH_<SECTION>__<KEY>, soDONSETCH_FETCH__PDF_MAX_MB=25.
Sections: transport, mcp, paths, state, proxy, tls, persona, cli, fetch, bypass, search, browser, debug, rules.
[fetch]
pdf_max_mb = 100
dns_cache_ttl_secs = 30 # seconds a resolved name is reused in-process, 0 disables
[bypass]
max_daily = 100Booleans take true/false, enums take their listed spellings.
donsetch config showprints every knob with its value and its origin (default, legacy, file, env).donsetch config show --markdownprints the full reference table, one row per knob.donsetch config show --legacymaps every old env name to its config key.donsetch doctorwarns about the legacy vars active in your shell, mapped to their keys.
Some sites treat any automated traffic as hostile, however well it is disguised. The block lands on your IP, sometimes on your whole network, outlasts the session that caused it, and also locks you out in your own browser. A note in the agent's instructions file ("never fetch site X") helps only if the model reads it and obeys it every time, and one forgotten turn is enough to get banned. Pick the right tool covers which task shapes draw these blocks. Local rules enforce your answer inside DonSeTch, whatever the model decides.
Per-host rules in donsetch.toml can refuse a URL before any request, handing the agent your own instructions in place of the page. DonSeTch ships none; the table is empty until you write one.
[rules.url."example.org"] # the host and every subdomain, http and https
action = "deny"
reason = "ip_ban" # error code policy.denied.ip_ban
message = "do not fetch this site with curl, scripts or another HTTP client: it bans our IP for automated access. Find file elsewhere, or ask the human operator to download it"web_fetch, web_crawl and web_screenshot then refuse that site, redirects and cached copies included, and the agent reads message as its Next action:, so lead with what to do instead, and say why when the reason rules out workarounds. The most specific matching rule wins in full: a narrower allow rule also cancels a broader deny. donsetch rules test <url> shows which rule a URL gets and why, offline.
Rules are a guardrail, not a security boundary: no MCP argument can switch them off, but an agent with a shell can run donsetch fetch --ignore-rules, set DONSETCH_RULES__MODE=off, or edit donsetch.toml. Pattern grammar, load errors, precedence, what the agent sees and the known limits: local rules.
Thin adapter over the same engine the MCP server uses.
| Command | What it does |
|---|---|
donsetch fetch <url> |
Fetch as clean markdown (--must-contain, --focus, --toc, --section, --max-chars, --since-last, --json) |
donsetch search <query> |
Search, keyless + BYOK (--intent, --max-results; --explain shows why each result ranks where it does) |
donsetch crawl <url> |
Crawl (--mode map|full|content, --topic, --max-pages) |
donsetch screenshot <url> |
Render to PNG (--out) |
donsetch mcp |
MCP server (stdio, or --http --port N) |
donsetch doctor |
Health check and auto-fix (--deep, --json, --fix) |
donsetch status |
Version, keys, proxies, cache, health overview (--json for scripts and agents) |
donsetch keys |
BYOK providers and plugins (add, list, default, export) |
donsetch proxy |
Proxy management (add, list, check, test, import, export, remove, clear, fetch on|off, crawl on|off) |
donsetch config |
show, --markdown, --legacy |
donsetch rules test <url> |
Explain what the local rules do with a URL, offline |
donsetch tools |
Tool schemas as JSON, same as MCP tools/list |
donsetch update / rollback |
Self-update from GitHub Releases, and revert |
Every management command validates its flags: an unknown one is refused with the nearest known match and exits 1. A usage error is never a silent run. The proxy help and its empty-pool state carry one labelled sponsor line (Proxy-Seller); DONSETCH_NO_SPONSOR=1 removes it, and it never appears in --json, proxy export, or any MCP result or tool definition.
Adding a proxy is one command. Nothing else is required.
donsetch proxy add socks5://user:pass@1.2.3.4:1080 # validated, probed, then saved
donsetch proxy list # what is configured (credentials masked)
donsetch proxy check # live probe: latency + real exit IP- Formats:
http://host:port(HTTP CONNECT, credentials optional asuser:pass@),socks5://host:portand itssocks5h://alias (SOCKS5 sends the target as a name, so the proxy resolves DNS and your resolver never sees the host). A barehost:portis HTTP CONNECT. Anything else is refused with the reason. In every form, credentials are percent-encoded as in any URL:p%40ssis the passwordp@ss, and a literal%is%25. - Many at once:
donsetch proxy add url1 url2 url3, or a whole file withdonsetch proxy import proxies.txt(one URL per line,#comments) βdonsetch proxy exportwrites that file back out.--no-checkskips the probe when you are adding hundreds. - Try before you add:
donsetch proxy test <url>probes one proxy without saving it. - Where they live:
donsetch proxy addappends<cache-dir>/proxies.txt(mode 0600, credentials included).DONSEEK_PROXIES="url1,url2"in the environment and[proxy] pool = ["url1", "url2"]indonsetch.tomlare the other two doors; all three merge, and an environment/config entry replaces a file entry with the samehost:port. The pool is read at startup, so restart the MCP server to pick up a change. - Removing:
donsetch proxy remove 1(the indexproxy listprints, orhost:port) anddonsetch proxy clear. - Checking is a tunnel, not a TCP handshake: the probe connects through the proxy to
api.ipify.organd prints the exit IP, so a proxy that accepts the connection and then cannot carry traffic is reported dead.donsetch statusshows the count,donsetch doctorshows every lane and its health.
A proxy you configure is a proxy that sees your traffic, so nothing uses one by accident.
| Tool | Default | Off switch |
|---|---|---|
web_search |
always rotates the pool: one lane per engine, sticky per host, so a fan-out search does not hit nine engines from one IP | β |
web_crawl |
each host starts on the direct lane; its later requests spread across the pool lanes as their pacing allows, and a host that blocks or throttles direct moves off it | donsetch proxy crawl off |
web_fetch |
your own IP | donsetch proxy fetch on |
donsetch proxy fetch on makes web_fetch sticky to a pool lane per host, rotating on 429/407/dead/timeout. A one-shot read does not need a shared exit, which is why fetch is opt-in while search and crawl are not.
Crawl is where the first request decides things: a host that bans on contact has already seen your own IP before a lane can take over. When a site must never see your address at all, keep it off entirely with a local rule rather than leaning on the pool.
Set the environment and every fetch follows the curl convention:
HTTPS_PROXY/HTTP_PROXY/ALL_PROXY(any case) route fetches through that proxy, andNO_PROXYexempts hosts (suffix match,*,host:port, CIDR).DONSETCH_NO_ENV_PROXY=1disables the convention entirely.[proxy] http/https/allindonsetch.tomldo the same thing without environment variables.- A configured proxy is a promise: if it cannot be dialled the fetch fails and says so, instead of quietly leaving on your own IP. Same for a pool lane: a dead lane is benched, not replaced by a direct read of a host it was carrying.
- In an intercepting network (a TLS-terminating middlebox), trust its root the OS's way, or with
SSL_CERT_FILE/SSL_CERT_DIRas with curl: both are added to the bundled roots. The handshake stays the identity's own.donsetch doctorreports the whole posture. - The challenge engine leaves through the same proxy as the read it is answering.
The fetcher never signs in and never carries a session. A page behind a login
(x.com, gated docs, internal tools) comes back as a declared wall.auth with its
vendor and ask β not as content, and never with a cookie a browser harvested. That
is the design, not a gap: the fetch layer answers who is asking with a coherent
anonymous client, which is a different problem from who you are.
Authenticated browser work belongs to a real browser driver, not to this fetcher: a
persistent Chrome profile with its own cookie state (bladebro is one), not a
credential store inside donsetch. This fetch path opens no headed browser and
stores no credentials. If you need a signed-in page, drive it there and hand the
text back.
web_screenshot is the one browser use that stays: headless, throwaway profile, no
cookies, one PNG.
docker build -t donsetch-mcp .
docker compose up -d # loopback-only by defaultMulti-stage build, non-root user, optional Chrome, resource limits in the compose file. An opt-in http profile serves the HTTP transport with a healthcheck, and docker compose stop gives its in-flight requests a 45s grace period to drain.
DonSeTch is a rapid-fire research tool: search, read, verify. A search, a fetch or two, a docs page, one PDF. Its speed is the point, and that speed is its stealth for one-shot reads.
It is NOT built for tasks where an agent "works through" a defended site the way a person would:
- Bulk document harvesting: discovering and downloading many PDFs from one repository in a single run.
- Long sessions against one site: page after page, at machine speed, same IP, no human pauses.
- Mass extraction: mirroring a file library, collecting a dataset, systematic downloads.
DonSeTch will probably work on those, and nothing stops it. But every request fires hundreds of times faster than a human, and a defended site reads that pattern itself as a bot, not just the fingerprint. The realistic risk is an IP-level block, sometimes on your whole network mid-run. When that happens it is the task shape, not a fetch-layer failure: the same page fetched once, as a research read, is fine.
For that other shape of work, use Bladebro: a real browser doing what a human does, page by page, download by download, at a human's pace. Slower than DonSeTch by design, because over a long session against a defended site, looking human beats being fast.
Rule of thumb: one-shot research = DonSeTch. Working a defended site like a person to collect things = Bladebro.
| Surprise | Why |
|---|---|
| First build takes a few minutes | BoringSSL compiles from source and V8 is downloaded and linked, cached after. Go is a build dependency too: BoringSSL's build system is Go-based. |
| v5 is a new engine | Every push runs the full suite on Linux and the core suite on Windows; macOS arm64 and x64 run the smoke set, and linux-arm64 runs the fetch engine's suite and the smoke set. Report anything that regressed from v4. |
| A login wall is an answer | web_fetch carries no session in v5: a signed-in page returns wall.auth. |
| OCR is not in the default build | ONNX Runtime is heavy and optional: --features ocr. Prebuilts ship it on linux-x64, macOS-arm64, macOS-x64 and Windows-x64. |
| First OCR use downloads a model | ~37MB, cached forever. Search downloads nothing. |
| Captchas need an unlocker key | hCaptcha, reCAPTCHA, Turnstile and press-and-hold walls ask a human; they are not solved locally, by design. With donsetch keys add unlocker <key>[::zone] they come through rendered; without one you get a clear honest error, never a hang. |
| robots.txt is ON for crawl | respect_robots=true for crawl. fetch does not check robots. |
| Keyless search rate-limits without a proxy | It hits engines from your IP. Set DONSEEK_PROXIES for heavy use. |
| Rerank in a CPU-limited container | Auto-clamped to cgroup parallelism on Linux, DONSEEK_RERANK_THREADS to override. |
| It cannot | Why |
|---|---|
| Solve interactive captchas locally | hCaptcha, reCAPTCHA, Turnstile: an honest dead end, no solving service by design. |
| Render a page | Nothing is laid out or painted in the fetch path. A page whose content exists only after rendering, with no interface behind it, is reported as a shell. |
| Search with every engine down | An error with per-engine status. Honest, never fake. |
| Replace a human working a defended site | See "Pick the right tool" above. |
The honest summary: nothing else in this space combines browser-free challenge handling, real client identities, keyless search, PDF pixel-fusion and local-only operation in one binary.
| DonSeTch | Hound | Crawl4AI | Jina Reader | Firecrawl | |
|---|---|---|---|---|---|
| Language | Rust, one binary | Python | Python | Python (API) | TypeScript |
| TLS fingerprint | 8 whole client profiles, chosen per site | curl-impersonate | requests | their servers | their servers |
| JS challenges | site's own program in embedded V8, no browser | browser fetches all | browser fetches all | their servers | their servers |
| Search | keyless, 10+ engines, local ranking | keyed | no | yes | no |
| Crawl | yes, resume tokens | yes | yes | no | cloud only |
| PDF + OCR | pixel-fusion + PP-OCR | yes | partial | yes | cloud, paid |
| Self-improving routing | yes, local state | no | no | no | no |
| Runs locally, no account | yes | yes | yes | no | self-host or paid |
| MCP server | first-class | yes | community | yes | build it |
| Tool schema | ~2.0k tokens | ~2.7k | varies | n/a | varies |
| License | AGPL v3 | MIT | Apache 2.0 | proprietary | MIT |
Against Firecrawl, head to head, same tasks, live (last run on v4; not re-run since the fetch-engine swap). Firecrawl is a paid cloud API, DonSeTch is free, local and keyless:
- Fetch: Wikipedia comes back 16x smaller (16KB against 267KB). An arXiv PDF is 22x faster and 4.4x smaller (1.4s/16KB against 32.6s/71KB). Reddit: Firecrawl refuses the site, DonSeTch returns the real feed.
- Crawl: 2.5x faster on the same docs target (18.7s against 47.6s), with
--topicranking the frontier instead of firehosing, and an honest small failure when the topic has no match instead of verbose unrelated content. - Search: Firecrawl is genuinely faster (1-2s against 5-7s) and leans mainstream authority. DonSeTch leans technical specificity, matched or beat it on exact GitHub issues, and costs far fewer tokens per query.
PRs welcome, see CONTRIBUTING.md. Before submitting: just check, just t <scope> for the area you touched, and just lint (clippy with -Dwarnings). CI runs the full matrix on three platforms. AGPL v3: all contributions land under the same license.
Copyright (c) 2026 Bishesh Bhandari. AGPL-3.0, see LICENSE.





