Skip to main content

Quay — Chrome DevTools with Accessibility Semantics

PyPI version Python 3.10+ Apache-2.0

Quay combines Chrome DevTools Protocol with accessibility-tree semantics for browser automation using your authenticated Chrome sessions.

Why Quay?

Feature Quay Playwright agent-browser Raw CDP
Full AX tree (raw CDP nodes) ✅ ❌ Simplified snapshot only ✅ ❌
AX ref targeting ✅ Full CDP refs ⚠️ aria-snapshot refs, v1.64+ (get_by_ref) ✅ ❌
MCP server ✅ quay mcp ✅ ✅ ❌
Uses your logged-in Chrome ✅ ❌ ❌ ✅
Connection pooling ✅ ✅ BrowserContext ❌ ❌
Auto-reconnect ✅ ❌ ❌ ❌
Python-native ✅ ✅ ❌ JS/TS ❌
Session recording ✅ ✅ Codegen/trace ❌ ❌
Package size ~20KB ~50MB ~5MB ~5KB

Quay's niche: Full Chrome accessibility tree + your existing authenticated sessions.

Installation

pip install quay

Or from source:

git clone https://github.com/sidonsoft/quay
cd quay
pip install -e .

Prerequisites

Chrome must be running with remote debugging enabled:

# macOS
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir="$HOME/.quay/chrome-debug-profile"

# Linux
google-chrome --remote-debugging-port=9222 --user-data-dir="$HOME/.quay/chrome-debug-profile"

# Windows
"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --user-data-dir="%USERPROFILE%\.quay\chrome-debug-profile"

⚠️ Chrome 136+: the --remote-debugging-port flag is ignored on the default profile — you must pass a separate --user-data-dir. Sign in once in that debug profile and your session persists.

⚠️ Chrome 144+: Google added a consent flow for attaching debuggers. If you attach to a normal running Chrome (without the flags above), enable remote debugging at chrome://inspect/#remote-debugging and approve the per-connection prompt — there is currently no way to persist that approval. Launching Chrome with the flags above skips the prompt entirely.

Or use the included launcher (uses a persistent ~/.quay/chrome-debug-profile by default):

./scripts/chrome-debug.sh

Quick Start

Python API

from quay import Browser

browser = Browser()
browser.goto("https://gmail.com")  # Uses your logged-in session

tree = browser.accessibility_tree()
print(tree.to_tree_str())

browser.click_by_text("Sign in")
browser.fill_form({"Email": "user@example.com"})

CLI

# List tabs
quay list

# Open new tab
quay new https://example.com

# Get accessibility tree
quay snapshot

# Take screenshot
quay screenshot

# Click by text
quay click "Submit"

MCP Server

Expose quay to MCP-capable agents (Claude Code, Codex, OpenClaw, …):

pip install "quay[mcp]"
quay mcp --port 9222   # serves over stdio

Tools: browser_status, open_tab, navigate, snapshot, click_text, click_ref, fill_form, evaluate, screenshot, close_tabs.

Example Claude Code config entry:

{
  "mcpServers": {
    "quay": { "command": "quay", "args": ["mcp", "--port", "9222"] }
  }
}

See MCP guide for setup details — including a five-minute Quay + OpenClaw guide for wiring quay into an OpenClaw agent.

Features

Feature Description
Accessibility Tree Navigate pages using AX nodes like agent-browser
Session Reuse Uses your existing Chrome session (no separate browser)
Connection Pooling WebSocket reuse across operations for speed
Auto-Reconnect Automatically reconnects on connection drop
Session Recording Record and replay browser actions
Form Filling Fill forms by label text
Click by Text Click elements matching visible text
JavaScript Eval Run arbitrary JavaScript
MCP Server quay mcp — drive your real Chrome from any MCP agent

Automatic Reconnection

Quay automatically detects dropped connections and reconnects:

browser = Browser(reconnect=True, reconnect_max_retries=3)

# If connection drops during operation,
# Quay will attempt to reconnect automatically
tree = browser.accessibility_tree()  # May auto-reconnect if needed

Monitor reconnection with a callback:

def on_reconnect(msg):
    print(f"Reconnecting: {msg}")


browser = Browser(reconnect_callback=on_reconnect)

Architecture

Quay uses a mixin-based architecture for maintainability:

class Browser(
    BrowserCoreMixin,  # Connection lifecycle
    BrowserTabsMixin,  # Tab management
    BrowserCDPMixin,  # Low-level CDP
    BrowserNavigationMixin,  # Navigation
    BrowserWaitMixin,  # Wait methods
    BrowserAccessibilityMixin,  # Accessibility tree
    BrowserActionsMixin,  # User actions
    BrowserRecordingMixin,  # Session recording
):
    pass

See docs/internals/ARCHITECTURE.md for details.

License

Apache-2.0 - See LICENSE for details.

Metadata

Release files for quay 0.2.8

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

Source distribution (sdist)

Source distribution for quay 0.2.8
File Size Uploaded Provenance Actions
quay-0.2.8.tar.gz 74.2 kB Without provenance Details for quay-0.2.8.tar.gz

Built distribution (wheel)

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

Total release size: 138.8 kB

Release files / quay-0.2.8.tar.gz

Download URL quay-0.2.8.tar.gz
Size 74.2 kB
Tags Source
SHA-256 checksum
How to use checksums
be2d22e4ad9a57db26a13292144264b7dd7d26d69faa27814d8c1f619c3f9dee
BLAKE2b-256 checksum
How to use checksums
e0e99de539103f3778c04db2ac148153d1403a48ad1b3cf1d5acb0432e511563
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","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 / quay-0.2.8-py3-none-any.whl

Download URL quay-0.2.8-py3-none-any.whl
Size 64.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1178c5bad40519542f4450f41bc72b8c55f7dc03735482334de06e11794e5fa4
BLAKE2b-256 checksum
How to use checksums
a0ded3c404f31cfb23d1e6b0fbdc51f229cd1b1b107d9ae1d7c6c6238b166127
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","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 quay 0.2.8

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.

Release history Release notifications | RSS feed

This release

0.2.8 This release

2 release files No provenance

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