Skip to main content

waymark-browser

Command-line companion for Waymark, an open-source desktop browser that AI agents and people use together. Waymark gives agents an MCP endpoint, keeps their clipboard and pointer isolated from your desktop, routes CAPTCHAs through local OCR → AI → human hand-off, and records every action with the page snapshot it was based on.

This package installs and runs the desktop app, drives it from your terminal, and bridges it to MCP clients that only speak stdio. It has no Python dependencies.

pip install waymark-browser            # CLI only
pip install "waymark-browser[ocr]"     # plus local ddddocr for text CAPTCHAs

Waymark itself is an Electron app, so you also need Node.js 22+.

The desktop interface supports English (default), Simplified Chinese, Japanese, Korean, Spanish, French, German and Portuguese. Choose Settings → Language in the app, or use the selector on the start or audit page. The choice persists across restarts. CLI commands, diagnostics and MCP fields remain in English.

Quick start

waymark setup        # download and build the app into ~/.waymark/app
waymark start        # open the browser window; MCP at http://127.0.0.1:9510/mcp
waymark doctor       # check Node.js, the install and the connection

On a Linux server without a display, use xvfb-run -a waymark start --foreground.

Windows: If Smart App Control blocks pip's waymark.exe, use the Python interpreter that installed the package: python -m waymark_browser setup, then python -m waymark_browser start. This works for every subcommand without disabling the policy. If the Electron download is blocked, set $env:ELECTRON_MIRROR to a trusted Electron mirror in PowerShell before running setup.

Connect an AI agent

Claude Code (HTTP):

claude mcp add --transport http waymark http://127.0.0.1:9510/mcp

Codex (~/.codex/config.toml):

[mcp_servers.waymark]
url = "http://127.0.0.1:9510/mcp"

Clients that only support stdio:

{ "mcpServers": { "waymark": { "command": "waymark", "args": ["mcp", "--autostart"] } } }

Windows stdio alternative (replace python with the full interpreter path if needed):

{ "mcpServers": { "waymark": { "command": "python", "args": ["-m", "waymark_browser", "mcp", "--autostart"] } } }

Drive the browser from the terminal

waymark open https://example.com     # -> Opened tab 2
waymark snapshot 2                   # interactive elements with refs e1, e2, ...
waymark fill 2 e4="noise cancelling headphones"   # REF=VALUE; the older REF VALUE pairs work too
waymark press 2 Enter
waymark read 2 --limit 2000          # visible text (or --html for the rendered DOM)
waymark read 2 --offset 2000         # the next part of a long page
waymark read 2 --grep price          # only the lines that mention price, with line numbers
waymark tabs --mine                  # only the tabs you opened; `tabs` marks yours with (yours)
waymark screenshot 2 --out shot.jpg --jpeg --max-width 1200   # bytes come back over HTTP, so this works remotely
waymark audit --limit 20             # what happened, when, on which page
waymark pause / waymark resume       # take the browser back from agents

Who is driving

Every command tells Waymark who ran it, so the trace can be read per agent. --agent NAME (or WAYMARK_AGENT) says it explicitly; otherwise the CLI recognises the agent from its own environment (AI_AGENT, CLAUDECODE, CODEX_*, WORKBUDDY_*, CURSOR_AGENT, ...) and reports human when run in an interactive terminal. --session / WAYMARK_SESSION groups commands into one session (an agent's own session id is used when it exports one), and --window / WAYMARK_WINDOW labels the window or worker. Nothing is guessed: with no marker and no terminal the agent is unknown. Check with waymark whoami. Details: docs/provenance.md.

export WAYMARK_AGENT=codex WAYMARK_SESSION=refund-batch-7 WAYMARK_WINDOW="codex #2"
waymark open https://example.com
waymark sessions --of codex          # this session, with its tabs and steps
waymark session s:refund-batch-7     # every step, with errors
waymark stats --days 7               # ddddocr runs, pointer paths, tokens, suggestions

All commands accept --json for machine-readable output and --url (or WAYMARK_URL) to target another instance. Every command has examples in waymark COMMAND --help. Calls to a Waymark on this machine (127.0.0.1, localhost) never go through a system or HTTP_PROXY proxy. waymark call TOOL '{"json": "args"}' reaches any MCP tool directly; the arguments can also be key=value (typed by the tool's schema), key:=json, key==text, @FILE, --args-file FILE or - (stdin), which needs no quoting in PowerShell. PAGE can be left out of page commands (the tab this session used last). --ascii (or WAYMARK_ASCII=1) prints ASCII-only JSON for consoles that are not UTF-8. Exit codes: 2 bad arguments or no tab, 4 paused, 5 tab closed or unknown, 6 stale ref, 7 connection lost, 1 other failures.

Command What it does
setup [--dir] [--ref] Download the app source for this CLI's version and build it
start [--port] [--foreground] / stop Run the desktop app in the background or attached
status, doctor Automation state, pending challenges; environment checks
tabs [--mine], tabs close PAGE, open, goto, back, forward, reload, close Tabs and navigation
snapshot, read [--offset N] [--grep P], click, hover, fill REF=VALUE ..., paste, press, scroll, wait Page actions by snapshot ref
eval PAGE EXPRESSION / --file F Run JavaScript in a page, if the owner allowed page scripts
auth [SITE...] [--offline] [--refresh] [--account] Signed in or not, per site, as the site answers (one GET with its cookies, outside every tab); --offline reads cookie metadata only. Never shows cookie values (docs/auth-status.md)
download PAGE URL|REF [--out FILE|DIR|-], downloads [get|delete ID] Download a file into Waymark's downloads folder and, with --out, to here (checked by SHA-256); list, fetch or delete saved downloads
audit, trace ID Action ledger and the snapshot behind one action
challenge [action] [id] Inspect or advance CAPTCHA jobs
pause, resume User control lease: agents are refused while paused
activate PAGE, screenshot PAGE [--out FILE|-] [--base64] [--max-width N] [--jpeg] [--full] Bring a tab to the front; save a screenshot (here, on stdout, or in the app's trace folder)
whoami, name LABEL How Waymark identifies you; name your session in the trace
agents, sessions [--of AGENT] [-q TEXT], session KEY Which agents used Waymark, their sessions, and every step of one session
stats [--days N] [--of AGENT], insights Statistics and improvement suggestions
usage --input N --output N [--model M] Report the model tokens your session spent
manager, dashboard Open the agent manager or the insights window
prune --days N [--yes] Delete trace entries older than N days (dry run without --yes)
mcp [--autostart] stdio MCP bridge
tools, call Raw MCP access

中文说明

waymark-browser 是开源 AI 浏览器 Waymark 的命令行工具:一条命令安装并启动浏览器、在终端里打开网页/点击/填写/选择/截图/读取、查看每个 agent(Claude Code、Codex、WorkBuddy……)在哪些会话和标签页里做了什么(waymark agents / sessions / session)、查看统计与改进建议(waymark stats),并为只支持 stdio 的 MCP 客户端提供桥接。所有命令都支持 --json,方便 agent 调用。安装 waymark-browser[ocr] 可启用本地 ddddocr 识别文字验证码。需要 Node.js 22 及以上。

License: MIT

Metadata

Release files for waymark-browser 0.7.1

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

Source distribution (sdist)

Source distribution for waymark-browser 0.7.1
File Size Uploaded Provenance Actions
waymark_browser-0.7.1.tar.gz 47.1 kB With provenance Details for waymark_browser-0.7.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for waymark-browser 0.7.1
File Interpreter ABI Platform Actions
waymark_browser-0.7.1-py3-none-any.whl Python 3 none any Details for waymark_browser-0.7.1-py3-none-any.whl

Total release size: 83.7 kB

Release files / waymark_browser-0.7.1.tar.gz

Download URL waymark_browser-0.7.1.tar.gz
Size 47.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d80777d8fe996af6e19cb29e88cc1499e7c2fdfe0be93d1208031feb6981b537
BLAKE2b-256 checksum
How to use checksums
5e0534443c0ea8ad2635cdace8a846765b9b231427715e9d0881c2bd7283e93c
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 / waymark_browser-0.7.1-py3-none-any.whl

Download URL waymark_browser-0.7.1-py3-none-any.whl
Size 36.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bce373f3d61c7eac6e5fd1a8de8a541d9a2b22eed45a8341e7cd7abda1d4c8f
BLAKE2b-256 checksum
How to use checksums
86e04eea2b9945d8bc34b20cfc4f3ffe0629c2bfcc805fb86be418a1eef84101
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 waymark-browser 0.7.1

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 waymark_browser-0.7.1.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