Skip to main content

stealthmaven

A real Chromium for scraping and AI agents whose timezone, languages and WebRTC match its proxy exit.
by NodeMaven

python license NodeMaven residential proxies

Use · Command line · AI agents (MCP) · CDP

Built on patchright; you get an ordinary Playwright BrowserContext back. Works with any proxy that takes a session id in its username, and with NodeMaven's gateway out of the box.

Early release: the API may still change between minor versions.

Install

pip install stealthmaven
python -m patchright install chromium

Use

from stealthmaven import launch

# NodeMaven: NODEMAVEN_LOGIN and NODEMAVEN_PASSWORD in the environment
with launch(country="de") as browser:
    page = browser.new_page()
    page.goto("https://example.com")
    print(browser.identity.timezone, browser.identity.languages)

Any other provider takes a proxy URL with {session} where its session id goes, as proxy= or in STEALTHMAVEN_PROXY:

launch(proxy="http://user-session-{session}:pass@gate.example.com:7000")

Characters such as #, /, ? or @ in the password must be percent-encoded. With no proxy configured at all, the browser uses this machine's own address and launch() says so with a NoProxyWarning. NodeMaven session ids start with stealthmaven, so the traffic can be told apart on the account.

Before the browser starts, stealthmaven asks the exit where it is (ipinfo.io, through the proxy; IPINFO_TOKEN is sent if set), then sets:

  • the timezone to the exit's;
  • the languages to the country's usual one, then English (de-DE, de, en-US, en), in navigator.languages and Accept-Language;
  • WebRTC to proxied traffic only, so pages never see the machine's address;
  • the geolocation the browser reports, if a page is given permission.

timezone= and locale= override the exit. profile="name" keeps the browser profile and its exit's session between runs.

On a machine without a desktop - a server, a Windows service, or headless=True - Chrome would see a screen with no taskbar (or 800x600 when headless). There stealthmaven runs Chrome's own headless mode with a 1920x1080 screen, a taskbar-sized work area and a window that fills it. "Headless" is taken out of the User-Agent everywhere - pages, workers and service workers - while the client hints stay the browser's own. On a desktop the real screen is left alone. screen=(1600, 900) gives that screen on any machine - and with it the headless mode, so no window - and screen=None turns this off.

engine="camoufox" (Firefox, pip install "stealthmaven[camoufox]" and python -m camoufox fetch) uses the same proxy, lookup, timezone and languages; Camoufox builds the rest of its fingerprint itself; its WebRTC candidates carry the exit's address. It gets past more commercial anti-bot services than Chromium on patchright - Kasada among them - so use it where the default engine is refused.

The proxy is reached through a local relay that counts traffic (browser.traffic()) and refuses Chrome's own background downloads, which would otherwise be billed as proxy traffic. The relay, like the CDP port below, listens on 127.0.0.1 without a password: other programs on this machine can use it while the browser runs. A lookup needs an http:// proxy; with https:// or socks5:// pass lookup=False with timezone= and locale=.

Command line

stealthmaven open https://example.com --country us
stealthmaven check --country us       # what public bot detectors say
stealthmaven serve --country us       # a browser other tools connect to over CDP
stealthmaven exit --country us        # where the exit is, no browser
stealthmaven profiles

open without a URL shows a start page with the identity the browser was given and links to the bot detectors; it is local and makes no requests.

--proxy puts the URL, password included, in the process list and the shell history; STEALTHMAVEN_PROXY keeps it out of both.

check opens a browser with the identity. On a page it serves itself from 127.0.0.1 it reads the User-Agent in a page, a worker and a service worker, the client hints, the Accept-Language header against navigator.languages, and whether WebRTC offers any candidate outside the proxy. Then it compares the timezone, languages, screen and WebRTC candidates with the exit and reads deviceandbrowserinfo.com, BrowserScan, CreepJS and bot.sannysoft.com. It prints one line per check, never an address, and exits with 1 if any check failed (--json for scripts):

workers                ok      no Headless in page, worker or service worker
client hints           ok      platformVersion 10.0.0, 2 brands
accept-language        ok      header matches navigator.languages
webrtc policy          ok      no candidate outside the proxy
timezone               ok      Europe/Berlin, exit Europe/Berlin
languages              ok      de-DE,de,en-US,en
webrtc                 ok      no other address
screen                 ok      1920x1080, work area 1920x1040
user agent             ok      no Headless
deviceandbrowserinfo   ok      human
browserscan            ok      normal
creepjs headless       ok      0%
creepjs like-headless  info    25% (a desktop Chrome reads 19-25%)
sannysoft              ok      58 rows, none failed

AI agents (MCP)

stealthmaven mcp is a Model Context Protocol server that drives one browser with the identity: open_page, snapshot (the page's accessibility tree with element refs), click, type, press, scroll, back, extract_text, screenshot, identity and new_identity.

Over stdio, for Claude Code, Claude Desktop, Cursor and other local clients:

{"command": "stealthmaven", "args": ["mcp", "--country", "us"],
 "env": {"NODEMAVEN_LOGIN": "...", "NODEMAVEN_PASSWORD": "..."}}
claude mcp add stealthmaven -- stealthmaven mcp --country us

Over Streamable HTTP, for clients that connect to a URL:

stealthmaven mcp --http --country us      # http://127.0.0.1:8931/mcp

It listens on 127.0.0.1 only and refuses requests whose Host or Origin is not this machine, so a web page cannot reach it through your browser. To expose it through a tunnel, set a token and name the tunnel's host; clients then send Authorization: Bearer <token>:

export STEALTHMAVEN_MCP_TOKEN="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')"
stealthmaven mcp --http --allow-host your-tunnel.example.com

Without the token anyone who finds the URL drives the browser through your proxy, so --allow-host refuses to start without one. On 127.0.0.1 alone the token is optional, and without it any program on this machine can connect; the server keeps one session, and a new initialize replaces it. Set the token to keep the browser to your client.

Other tools over CDP

stealthmaven serve (or launch(cdp_port=0)) starts the browser with the identity and prints a Chrome DevTools endpoint on 127.0.0.1:

stealthmaven serve --country us
# http://127.0.0.1:54321
from patchright.sync_api import sync_playwright

with sync_playwright() as p:
    browser = p.chromium.connect_over_cdp("http://127.0.0.1:54321")
    page = browser.contexts[0].new_page()

The client that connects decides how visible the automation is: patchright's connect_over_cdp keeps it hidden, while stock Playwright and Puppeteer announce themselves over CDP in ways detectors such as deviceandbrowserinfo.com read. Tools built on them can still drive the browser.

License

MIT. stealthmaven is made by NodeMaven, which sells residential and mobile proxies; it works with any provider.

Metadata

Release files for stealthmaven 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stealthmaven 0.1.0
File Size Uploaded Provenance Actions
stealthmaven-0.1.0.tar.gz 67.2 kB With provenance Details for stealthmaven-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stealthmaven 0.1.0
File Interpreter ABI Platform Actions
stealthmaven-0.1.0-py3-none-any.whl Python 3 none any Details for stealthmaven-0.1.0-py3-none-any.whl

Total release size: 118.9 kB

Release files / stealthmaven-0.1.0.tar.gz

Download URL stealthmaven-0.1.0.tar.gz
Size 67.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0749643f73e082a9e058d938f9881d7fee877d4cf1b65b53d65bd165c4f28e71
BLAKE2b-256 checksum
How to use checksums
8c0e3b02a3d3d6c3dec1aa0c2eb68da63077b88f47fc66588f65261836f976c8
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 Dec 1, 2026.

Transparency log

Release files / stealthmaven-0.1.0-py3-none-any.whl

Download URL stealthmaven-0.1.0-py3-none-any.whl
Size 51.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a7b7aa7db04004eaf6749d4778de70556d545029fd6578abd6379764eaef0ce
BLAKE2b-256 checksum
How to use checksums
9b2a7b528063ae703c64073600593467cd72afaa5608f52f6009501ceb93c9b7
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 Dec 1, 2026.

Transparency log

Security for stealthmaven 0.1.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.

Select from 2 files

Attestation for stealthmaven-0.1.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 Dec 1, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page