Skip to content
Proyek

Tentang

Pengambilan, pencarian, dan crawling web untuk agen AI. Dibangun dari awal dengan Rust. Tanpa kunci atau akun. AGPL v3.

AI dan pembelajaran mesin

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
+27
dalam 15 hari
+112
dalam 1 bulan
Pembaruan tertunda

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

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 by default. Real client profiles, learned routes, and embedded V8 handle the fetch, and search never needs a model download or a browser. When a site answers the local engine with nothing but a wall or an empty shell, one owned Bladebro browser renders that page once and the result is judged exactly like any other read — a rendered challenge page is still a wall. donsetch browser off keeps the local engine as the whole system.

See it in action

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

https://github.com/user-attachments/assets/8762aaec-8553-4ebb-8a2a-0eb56bc3adf4

Start here

1. Install

npm install -g donsetch
donsetch setup

The first donsetch command downloads a SHA256-verified release binary (including the native Bladebro tier-2 companion) and opens the interactive agent setup UI. No install scripts to approve and no Rust toolchain needed. Linux, macOS, and Windows are supported.

Platform / Agent Install or connect
Interactive Agent Setup (all supported agents) donsetch setup (or donsetch settings server)
Hermes Agent (~/.hermes/config.yaml) donsetch setup connect hermes
OpenCode (~/.config/opencode/opencode.json) donsetch setup connect opencode
Oh My Pi (omp) (~/.omp/agent/mcp.json) donsetch setup connect omp
Pi (native extension) pi install npm:donsetch (or donsetch setup connect pi)
Claude Code (CLI) (~/.claude.json) donsetch setup connect claude-code
Claude Desktop (App) (macOS / Windows incl. Store MSIX / Linux) donsetch setup connect claude-desktop
Codex (CLI & Desktop App) (~/.codex/config.toml) donsetch setup connect codex
DeepSeek Harness (native plugin) dsh plugin --profile web add github:dondai44423/donsetch-dsh
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

Automatic setup (recommended)

Run donsetch setup in your terminal to open the interactive setup UI: pick your AI agent with arrow keys and press Enter to review and confirm changes before anything is written (Space does nothing, customized entries show an old/new diff and what would be lost, identical entries are a no-op, and every existing file is backed up to <name>.donsetch-backup-<timestamp> first), or press t to run a live MCP handshake self-test.

Or connect in a single non-interactive command (works on Linux, macOS, and Windows):

donsetch setup connect hermes          # Hermes Agent (~/.hermes/config.yaml)
donsetch setup connect opencode        # OpenCode (auto-detects v1 / v2 opencode.json)
donsetch setup connect omp             # Oh My Pi (~/.omp/agent/mcp.json)
donsetch setup connect pi              # Pi (native extension)
donsetch setup connect claude-code     # Claude Code CLI (~/.claude.json)
donsetch setup connect claude-desktop  # Claude Desktop app (incl. Windows Store MSIX)
donsetch setup connect codex           # Codex CLI & Desktop app (~/.codex/config.toml)
donsetch setup connect cursor          # Cursor (~/.cursor/mcp.json)
donsetch setup connect all             # Auto-connect every detected agent on this machine

Useful flags: --replace / --force (overwrite a customized existing donsetch entry — without this, differing entries are left untouched with a full old/new diff and non-zero exit), --project (write workspace-local config instead of global), --npx (use npx -y donsetch with no global install), --dry-run (preview before writing), donsetch setup remove <agent> (clean uninstall with backup), donsetch setup status (see what is detected and connected), and donsetch setup test (verify live JSON-RPC handshake and all 4 tools). Restart your agent after connecting.

(donsetch mcp always starts the MCP server daemon — never the config editor. When started directly in a terminal, it prints a one-line hint pointing to donsetch setup on stderr and keeps serving on stdio.)

Manual setup (any MCP client)

Prefer to edit your config by hand or using another MCP host? Run donsetch setup snippet [agent] to print a ready-to-paste block with your binary's exact path, or paste one of the blocks below and restart your client:

Standard MCP JSON (Claude Code, Claude Desktop, Oh My Pi, Cursor, VS Code, Windsurf, .mcp.json):

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

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

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

OpenCode (~/.config/opencode/opencode.json):

{
  "mcp": {
    "servers": {
      "donsetch": {
        "type": "local",
        "command": ["donsetch", "mcp", "--supervised"]
      }
    }
  }
}

Codex CLI & Desktop App (~/.codex/config.toml):

[mcp_servers.donsetch]
command = "donsetch"
args = ["mcp", "--supervised"]

--supervised restarts the stdio daemon automatically after a crash. On macOS/Windows desktop apps whose GUI PATH does not include npm/Homebrew bin folders, donsetch setup pins the binary's full path automatically (or pass "command": "npx", "args": ["-y", "donsetch", "mcp", "--supervised"]).

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 →

When the local engine honestly cannot read a page — a challenge it cannot mint, a shell that never hydrates — tier 2 renders that one page in an owned Bladebro browser and feeds the resulting DOM through the same extractor, wall detector and content contract. The browser never gets the final word: a rendered challenge page is still a wall, and a short rendered page is content. The rendered page is then kept with its age, so the next read of that URL costs milliseconds instead of another browser; and what the render proves — the browser's cookie jar, the page's own request contract — is kept only where a local read proves it again, so a site that needed one render stops needing it. A host whose renders never carry content stops being escalated at all. Your agent sees one tool either way — the answer says which transport served it (browser:lane0, browser:cache) and carries the escalation trace.

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:[email protected]: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 page answers only a real browser Tier 2 renders it once in the bundled native Bladebro browser (installed automatically with DonSeTch), judges the DOM like any other read, and keeps the page with its age so the next read is cheap. donsetch browser off disables it.
A human challenge remains A named wall. donsetch runs no local hCaptcha, reCAPTCHA, Turnstile, or press-and-hold solver; the browser lane is a real browser and may clear a one-click check on its own, and a page that still shows a wall is reported as one. 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, or jump straight to a tab with donsetch settings browser, donsetch settings proxies, etc.) to configure and manage 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 (slow-network sequential mode, wave size, timeouts, keyless sources, SearXNG, plus one-click Reset Search Engine Health & Backoff), Fetch (PDF, OCR threads/idle unload, DNS, plus Clear Fetch Page Cache keeping cookies), 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, and Reset Burned Proxy & Direct Health), Browser (live Browser Controls & Lanes — warm/stop lanes, install Bladebro, bulk resets — plus Learned Hosts showing per-host cookies, replay contracts, cached renders, and a 3-choice selective reset menu, alongside tier-2/Chromium/CDP/TLS knobs), Server (one-click MCP agent connect, 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. Scriptable CLI equivalents remain available for agents and automation.
donsetch settings [tab]                       # Open the interactive terminal Settings TUI (e.g. `donsetch settings browser`).
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 browser manage                      # Open the interactive Browser TUI (lanes, learned hosts, cookies, selective reset).
donsetch browser status                      # Tier 2: the switch, the lanes, and what renders learned.
donsetch browser install                     # Install or refresh the native Bladebro companion (--force).
donsetch browser off                         # Never start a browser for a fetch (on by default).
donsetch browser harvest off                 # Speed-only mode: skip background state harvest (auto by default).
donsetch browser warm                        # Start a lane now, so the next escalation is fast.
donsetch browser reset [host]                # Reset browser state (prompts safely on TTY; flags: --contracts, --keep-cookies, --yes, -i).
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 [email protected] 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

Jelajahi proyek terkait

Memuat…