🛡️ DeepCloak
Local-first research with explicit fetch decisions and evidence.
A CLI and MCP wrapper around local-deep-research and CloakBrowser. It retries selected failed fetches in a browser and records the result. Success depends on the source and its access controls.
Quickstart · How it works · Use from an agent (MCP) · Why we built it · Changelog
▶ Live demo — deepcloak.vercel.app · ▶ Watch on YouTube
The problem
You ask a research tool a question. Some sources sit behind a Bot Wall, such as a Cloudflare or DataDome challenge. A tool that gets a 403 may drop those pages and hand you a thinner report without saying what it missed.
What DeepCloak does
DeepCloak makes those decisions visible. When a plain fetch hits a Bot Wall, it Escalates that URL to a Stealth Fetch in a browser. It re-checks what comes back, and records a Bypass only if the page is no longer a challenge. Every report ends with the count, and every URL gets an Evidence Record saying what happened, including failures and skips. Success depends on the source and its access controls.
It's a thin, local-first orchestrator over two great projects: local-deep-research (the research loop) and CloakBrowser (the stealth browser). Use it as a CLI, an MCP server, or a Claude skill. MIT.
🌑 Why we built this
More writing now sits behind a bot check, and research agents can miss it without saying so. A report that silently skips sources is wrong in a way you can't see.
DeepCloak's stance is simple: a research tool should show its evidence. It honors robots.txt by default, identifies itself on plain requests, attempts a Stealth Fetch only when one is needed, and prints an Evidence Record of the result. The process runs locally; search engines receive queries, source websites receive requests, and a configured cloud LLM receives research context. Choose a local LLM when that context must stay on the machine.
✨ Why it's different
| Without an evidence trail | DeepCloak | |
|---|---|---|
| Reads the open web | ✅ | ✅ |
| A page behind a Bot Wall | often dropped silently | retried in a browser, result recorded |
| Tells you which sources were walled, skipped or failed | ❌ | ✅ Evidence Record |
| Local-first (no API key required) | ✅ | ✅ |
| Fast on open pages | — | ✅ plain-first, stealth only when needed |
Recorded run. The clip above is an unedited screen recording of
deepcloak0.1.0 with a local LLM (Qwen) + SearXNG, no API key. In that run it reported 8 Cloudflare/Turnstile Bypasses. It predates the current re-check, and results vary by run and by source. Full clip:docs/media/demo-real.mp4; raw session:docs/media/demo.cast. No other per-vendor success is claimed here.
🚀 Quickstart
pip install deepcloak
deepcloak setup # one-time: downloads the stealth browser
export OPENAI_API_KEY=... # or ANTHROPIC_API_KEY / GEMINI_API_KEY — or --provider ollama
deepcloak "How do websites detect bots?" --depth detailed --out report.md
You get a cited report.md, plus a report.md.evidence.json sidecar. When a Stealth Fetch succeeded, the report ends with a 🛡️ Bypassed N bot-walled sources section.
🧠 How it works
search (DuckDuckGo, no setup) ─▶ candidate URLs
│
▼ for each page:
plain fetch ─▶ Bot Wall detected? ──no──▶ use it (fast)
│ yes
▼
Escalate ─▶ Stealth Fetch (CloakBrowser) ─▶ Bypass
│
▼
research loop (local-deep-research) ─▶ cited report + Evidence Records
Stealth is heavy, so DeepCloak tries a cheap plain fetch first and only launches the browser when it detects a Bot Wall (--stealth auto, the default). Use --depth detailed/report to fetch full pages.
🤖 Connect it to your agent (MCP)
DeepCloak runs as a stdio MCP server exposing deep_research(query, depth, provider, model), quick_summary(query, provider, model), get_evidence(run_id), and list_models(provider).
Claude Code — add to your project's .mcp.json (an example ships in this repo):
{ "mcpServers": { "deepcloak": { "command": "deepcloak", "args": ["mcp"] } } }
Codex — add to ~/.codex/config.toml:
[mcp_servers.deepcloak]
command = "deepcloak"
args = ["mcp"]
Then your agent can call deep_research and read bot-walled sources directly. Prefer a slash-style skill? Drop skill/SKILL.md into ~/.claude/skills/deepcloak/.
⚙️ Configuration
| Flag | Default | Notes |
|---|---|---|
--depth |
detailed |
quick / detailed / report |
--engine |
duckduckgo |
searxng / auto |
--stealth |
auto |
always / off |
--provider / --model |
auto-detected | OPENAI_API_KEY → ANTHROPIC_API_KEY → GEMINI_API_KEY → OPENROUTER_API_KEY; or ollama / lmstudio / llamacpp / openai-endpoint (--base-url) |
--ignore-robots |
off | fetch even when robots.txt disallows it; recorded in each Evidence Record |
--allow-private-urls |
off | allow localhost and private network addresses (blocked by default) |
--proxy |
— | SOCKS5 for the Stealth Fetch |
--json |
off | print the full result (report + Evidence Records + settings) as JSON |
Picking a model: list what a provider offers with deepcloak models --provider openrouter (works for every provider; local servers via --base-url), then pass --model <id>. With several credentials in your environment and a real terminal, DeepCloak simply asks. Settings persist in ~/.config/deepcloak/config.toml (override with $DEEPCLOAK_CONFIG); precedence: CLI flags > environment > config file.
Run history: finished runs are saved to ~/.local/share/deepcloak/runs/ — browse with deepcloak runs, replay a report with deepcloak show <id> (--json for the full record).
⚠️ Responsible use
DeepCloak can retry a blocked page in a stealth browser. You are responsible for having the right to access whatever you fetch. robots.txt is honored by default, and --ignore-robots overrides it (ADR-0003). Plain requests identify themselves as DeepCloak; the browser retry does not. Don't use it to violate sites' terms or the law.
🗺️ Roadmap
- Fewer false verdicts in Bot Wall detection and the Bypass re-check
- More search backends beyond DuckDuckGo / SearXNG
- Cache fetched pages across runs
- Richer Evidence Record export (HTML / JSON schema)
Ideas welcome — start a Discussion or open a feature request.
🛠️ Built on
local-deep-research (MIT) + CloakBrowser (MIT), via pip — no vendored code. Domain glossary in CONTEXT.md; design decisions in docs/adr/; contributing guide in CONTRIBUTING.md.
📄 License
If DeepCloak's evidence helped your research, drop a ⭐. It helps others find it.
Built and maintained by Sanghyeon Baek (백상현 · @Mrbaeksang) · baeksang.dev · contact@baeksang.dev
Metadata
Release files for deepcloak 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deepcloak-0.2.0.tar.gz | 32.5 kB | With provenance | Details for deepcloak-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deepcloak-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for deepcloak-0.2.0-py3-none-any.whl |
Total release size: 71.7 kB
Release files / deepcloak-0.2.0.tar.gz
| Download URL | deepcloak-0.2.0.tar.gz |
|---|---|
| Size | 32.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9def778971d8c6f703c69da1c8dcf5bd761aa10ce9a01aa7b9d447ba67b54ab
|
|
BLAKE2b-256 checksum How to use checksums |
ec9fed1a4d5a501f0510daeeec2339ebbbb054c992a54a45c1fbebbf80e600ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / deepcloak-0.2.0-py3-none-any.whl
| Download URL | deepcloak-0.2.0-py3-none-any.whl |
|---|---|
| Size | 39.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f381c09bc6eb0999c2698a9e53ac88378cf0ed4c89d438965b6b7c2cce442b4f
|
|
BLAKE2b-256 checksum How to use checksums |
8f64b380cb8fcf8239484cb4233fec603e45abb581c405f126bf51048430f7eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logSecurity for deepcloak 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for deepcloak-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.