veilus
Launch Veilus browser profiles from Python and drive them with Playwright.
Each Veilus profile is a browser with its own fingerprint, proxy and cookies. This package talks to the Veilus app's local API, launches a profile, and connects Playwright to that profile's own browser — so your script runs with the profile's identity.
Works with
Tested with a real Veilus profile — see examples/TESTED.md for versions and date: Playwright · Puppeteer · browser-use · Stagehand · Crawl4AI · LangChain · Scrapling · Crawlee · playwright-mcp · agent-browser
pip install "veilus[playwright]"
Requires the Veilus desktop app 0.2.9 or newer, running, with the local API turned on (API & MCP page in the app sidebar, Pro plan or higher). Create a token on that page and put it in the environment:
export VEILUS_API_TOKEN=...
import asyncio
from veilus import Veilus
async def main():
veilus = Veilus()
profiles = await veilus.list_profiles()
session = await veilus.connect(profiles[0]["id"])
await session.page.goto("https://example.com")
print(await session.page.title())
await session.close() # disconnects Playwright; the profile keeps running
await veilus.stop(profiles[0]["id"])
asyncio.run(main())
connect() reuses the profile if it is already running, otherwise launches it. It returns the profile's own context and page — don't create a new context with your own user agent, viewport or locale, as those would override the profile's values for that context.
API
Veilus(token=None, port=None, app_dir=None) |
token defaults to $VEILUS_API_TOKEN; the port is read from the app's api-endpoint.json in app_dir ($VEILUS_APP_DIR or ~/.veilus) |
await list_profiles() |
all profiles; a running one carries cdpUrl |
await launch(id, diagnostic=False, headless=False) |
starts the profile, returns {"pid", "cdpUrl"} |
await stop(id) |
stops the profile |
await connect(id, diagnostic=False, headless=False) |
Playwright browser, context, page, cdp_url, close() |
diagnostic=True (Veilus 0.2.10 or newer) opens the profile through its proxy but without its fingerprint, in a temporary browser directory deleted on stop: the page sees this machine's real values. Use it to tell whether a site blocks the fingerprint or the IP — never on an account you care about.
headless=True (Veilus 0.2.13 or newer) starts the profile without a browser window; its fingerprint, proxy and cookies are unchanged. It applies only when the call launches the profile — connect() reuses a running profile in whatever mode it runs.
Security
The token is read only from your code or VEILUS_API_TOKEN. This package never reads the app's token store. The profile's CDP address (cdpUrl) has no password: any local program can use it while the profile runs, and it listens on 127.0.0.1 only.
License
MIT or Apache-2.0, at your option.
Metadata
Release files for veilus 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 |
|---|---|---|---|---|
| veilus-0.2.0.tar.gz | 26.6 kB | Without provenance | Details for veilus-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| veilus-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for veilus-0.2.0-py3-none-any.whl |
Total release size: 34.4 kB
Release files / veilus-0.2.0.tar.gz
| Download URL | veilus-0.2.0.tar.gz |
|---|---|
| Size | 26.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1229cd3fcac3b8d9d9d927a5afcbcc2c535a9928b113eac4bf793e0f83f24a9
|
|
BLAKE2b-256 checksum How to use checksums |
7d60779a6fa03042a9fef66d5a8847e5bf6199f01bcb8f6792bcbb07bcf6c286
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / veilus-0.2.0-py3-none-any.whl
| Download URL | veilus-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2c788f07ce684b700f155b4d8f955e89c7de36ff017426a30173a29ee94af06
|
|
BLAKE2b-256 checksum How to use checksums |
fc2a1378666503dd682b96e2064af78a398a86f3597216080f811ae85954d02e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for veilus 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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.