by ctoldigital
Accessibility-first browser & computer use for AI agents — one MCP server for every harness (Codex, Claude Code, OpenCode, Antigravity). Instruments the DOM/accessibility tree via CDP instead of screenshot loops: diffed snapshots, stable element refs, trusted input, typed errors. Zero dependencies
# Add to your Claude Code skills
git clone https://github.com/ctoldigital/axuseaxuse is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ctoldigital. Accessibility-first browser & computer use for AI agents — one MCP server for every harness (Codex, Claude Code, OpenCode, Antigravity). Instruments the DOM/accessibility tree via CDP instead of screenshot loops: diffed snapshots, stable element refs, trusted input, typed errors. Zero dependencies. It has 815 GitHub stars.
axuse's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/ctoldigital/axuse" and add it to your Claude Code skills directory (see the Installation section above). axuse ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
axuse is primarily written in JavaScript. It is open-source under ctoldigital on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh axuse against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Accessibility-first browser/computer use over MCP. Works in any MCP-capable harness (Codex, Claude Code, OpenCode, Antigravity, …). Zero dependencies.
Instrument, don't photograph. The browser is controlled through CDP with structured accessibility snapshots. Screenshots are rationed. Coordinates are the last resort.
checked/unchecked, expanded=…, selected, disabled,
value="…", haspopup. Tables print one row "a | b | c" line per row.ax_fill with every field (text,
<select>, checkboxes/radios/switches as true/false, ARIA/native sliders as numbers (trusted Arrow-key convergence, no synthetic writes), custom dropdowns and
autocomplete comboboxes by option text) plus submit — not one call per
field.ax_observe {find:"text"} returns only
the matching lines (+context, refs) from the whole page.
ax_scroll {until:"text"} scrolls an infinite feed / lazy list in ONE call
until the text appears and returns just that neighbourhood.{ref: "e7"} from the latest observation.
Refs are bound to the element and resolved live (after the element's box is
stable), so clicks land even if the layout moved.--- frame f1 (url) --- sections with f1:e3 refs — act on them like any
ref. A click that opens a new tab/popup reports it and returns the new
tab's snapshot; it becomes the active tab (tab_id to go back).ax_dialog (accept|dismiss, prompt_text). A
confirm→prompt chain reports the next dialog after each answer.ax_wait_for {text|selector|expression} is one bounded
in-page wait and returns the diff when the condition holds.canvas (box=x,y,WxH); take one ax_screenshot, then click
{x,y} in page coordinates (the box tells you where the canvas is).ax_press {combo:"ctrl+alt+1", platform:true} translates Windows-convention application shortcuts to
the host OS (macOS: cmd+alt+1, cmd+end, …). Omit platform for combos
that must be literal Control (terminals, devtools). Plain enter,
escape, arrows are identical everywhere; select-all is automatic.For a bounded source list, use ax_open_many with urls: [...]. It returns
compact title/status/excerpt rows and closes its temporary tabs by default;
reserve repeated ax_open calls for pages that need interactive follow-up.
ax_solve_captcha { provider, url? } solves a CAPTCHA on the active tab (or
opens url first) using a loaded solver plugin — the open core ships none;
solvers are separate (paid) packages. ax_plugins lists what is loaded and any
that failed to load. Results are facts: solved, token, attempts,
rounds, elapsedMs, notes — a null token is reported as unsolved, never
fabricated. Without any solver loaded the call fails typed NO_SOLVER with the
install hint.
Loaded plugins may also contribute capability tools (ax_vault,
ax_net, ax_capture, ax_guard, ax_extract, …) through a validated
tools() export — capability surfaces, not solves. ax_plugins lists each
loaded package together with its contributed tool names.
Servers (no desktop): on a display-less Linux host axuse auto-boots a
private Xvfb and keeps Chrome fully headed on it — never pass
headless: true for challenge/anti-bot pages (they check headless first).
The ax_open result reports the fact: display: :N (virtual …). Persona
coherence with the egress persona is configured server-side
(AXUSE_TIMEZONE, AXUSE_LANG, AXUSE_PROXY; navigator.webdriver
stays false via the AutomationControlled launch flag). For
dynamics-sensitive targets pass human: true on ax_click (jittered
curved mouse approach) and ax_type (per-key cadence) — solver plugins
already use it on challenge widgets. Solvers work unchanged; vision needs
<PREFIX>_VISION_KEY (any OpenAI-compatible endpoint) or the owner-only
~/.config/axuse/secrets.json. Full lane: docs/server-mode.md.
code, hint, retry)REF_NOT_FOUND / STALE_STATE → the page changed under you: retry: "reobserve" — call ax_observe, then re-plan from fresh refs.DIALOG_OPEN → answer with ax_dialog, then retry the action.ELEMENT_HIDDEN → scroll or re-observe.SCREENSHOT_BUDGET_EXCEEDED → crop a region instead.DESKTOP_PERMISSION_REQUIRED → grant macOS Accessibility/Screen Recording
to the host, then retry after axuse doctor confirms the grant.action_sent: sent | possibly_sent (a timeout after
dispatch — verify state before retrying, the input may have landed).The macOS desktop layer (needs AXUSE_ENABLE_MACOS_CUA=1 + the
Accessibility grant) mirrors the browser discipline:
ax_desktop_windows → pick the target app (rows carry pid + bounds;
frontmost first).ax_desktop_ax_snapshot {pid|name|front} → the app's accessibility
tree with roles, titles, values, bounds, and live refs — the desktop twin
of ax_observe. Budgeted (truncation is reported as facts).ax_desktop_ax_click {ref} (trusted AXPress;
automatic coordinate fallback when an app refuses), ax_desktop_ax_set {ref, value} (writable text fields, read-back verified), and
ax_desktop_ax_read {ref} for fresh facts. Stale refs fail typed
REF_NOT_FOUND with a reobserve hint — same vocabulary as the browser.ax_desktop_click, ax_desktop_screenshot)
remain the fallback for canvas/games — the same "structure before
pixels" rule as the browser side.1. Raw CDP attach. Relaunch Chrome with --remote-debugging-port=9222 --remote-allow-origins=*, then ax_open { url, cdp_url: "http://127.0.0.1:9222" }.
Full feature set (including OOPIF frame entry).
2. The axuse bridge extension (Codex-style). Drive your daily Chrome/Edge through an extension — your real profile, cookies and logged-in sessions, with the debugger infobar keeping you honestly informed:
axuse setup --browser chrome --harness codex # guided one-time setup
axuse bridge verify # check the live connection
axuse bridge install # registers the native messaging host
axuse bridge # start the hub (or it starts on demand)
Then load bridge/extension as an UNPACKED extension in Chrome
(chrome://extensions → Developer mode → Load unpacked), and
ax_open { url, backend: "extension" }. The service worker dials the hub via
native messaging; tabs it opens are visible in your browser; ax_close closes
the tabs axuse created — never your browser.
Extension backend notes (all discovered live):
--load-extension (silent no-op), so automated
installs need Edge / Chromium / Chrome-for-Testing. Loading unpacked by hand
works in every browser.allowed_origins
(chrome-extension://ID/) in the host manifest — allowed_extensions alone
reports "host not found". The installer writes both fields.--browser may also be chromium or chrome-for-testing; the
installer uses the browser-specific NativeMessagingHosts directory..bat launcher (cmd.exe relays the stdio
pipes faithfully; a compiled C# shim lost Chrome's stdin writes).ax_desktop_* tools exist on Windows (SendInput + GDI capture, physical
pixels — get bounds from ax_desktop_screen_info/ax_desktop_windows).
Verified live.
Linux mounts the same tools automatically on X11/XWayland sessions
(DISPLAY set): XTEST input, GetImage JPEG capture, EWMH window list and
activation, RandR per-monitor layout in ax_desktop_screen_info — and the
structure-first layer through AT-SPI (zero-dependency D-Bus client):
ax_desktop_ax_snapshot/ax_click/ax_set/ax_read with refs, roles, names,
bounds and states, like macOS System Events. No extra packages; headless
hosts are covered by server mode's auto-booted Xvfb (xvfb-run also works).
Coordinates are root-window pixels. Screenshots honor
the byte budget with a quality → quality → downscale ladder (vision keeps a
usable image instead of a dead end), and ax_desktop_type pastes long or
non-keymap text through the clipboard when xclip is present (reported
honestly as via: "clipboard-paste").
macOS ships an opt-in driver (System Events keystroke, corrected
CoreGraphics mouse/scroll events via JXA, and screencapture + sips pixels)
that loads with AXUSE_ENABLE_MACOS_CUA=1. It reports TCC permission failures
as typed desktop errors. Grant the host Accessibility + Screen Recording in
System Settings → Privacy & Security, then use node src/cli.js doctor before
desktop actions. Coordinates are macOS global display points; desktop JPEGs
are resized to those point dimensions for direct coordinate mapping.
v1 desktop is coordinate+vision based (no OS accessibility tree): use it only
for apps the browser tools cannot reach. Prefer ax_* for anything web.
diff would do.covered: true notes (an overlay ate the click) — verify in the
diff and re-plan.Accessibility-first browser and computer use for agent harnesses. One MCP server plugs into Codex, Claude Code, OpenCode, Antigravity, or any MCP-capable host. Zero dependencies (Node ≥ 22). Windows desktop driver is verified; macOS desktop control is available as an explicit opt-in with native TCC permission checks; Linux desktop control runs over X11/XWayland (XTEST input + capture + EWMH windows, zero extra packages).
The design is distilled from the two best implementations of this problem — OpenAI's Codex Chrome extension and the ZCode harness — and exists to prove a point: a screenshot loop is not the right interface for a machine. The DOM tree, the accessibility tree, and CDP are. axuse instruments the target instead of photographing it.
Not a developer? You don't need anything below. In the Claude desktop
app, download axuse.mcpb from ax-use.com and
double-click it. In ChatGPT's Codex app, Claude Code, Cursor or any other
agent, paste the install prompt and the
agent sets axuse up for you. See the
non-developer guide.
One install, three surfaces. In all three the agent reads the screen as text from the accessibility tree, not as a screenshot it has to interpret, so it is faster, cheaper and less likely to misclick.
Let your agent do it. Paste one line into Codex, Claude Code, ChatGPT Work, Cursor, OpenCode, Devin, Antigravity or any MCP-capable agent:
Claude desktop users can instead download axuse.mcpb from ax-use.com and double-click it. Developers: see the Quick start below.
Your agent drives Chrome, Edge or Chromium: your signed-in daily browser through the extension bridge, or a clean one.
Your agent drives desktop apps: Windows is verified, macOS is an explicit opt-in with native permission checks, Linux runs over X11 (and on display-less Ubuntu servers, see server mode).
Your agent uses an Android phone through axdroid, an MCP server plus a phone app. axphone for iPhone is coming soon.
install-phone.md line above. You need an Android 8+ phone, a USB cable and an MCP-capable agent.axuse is maintained by CTOL Digital Solutions (ctol.digital), a leading AI, Strategy and IT consultancy. This work has been tested and used at large scale across many client engagements. CTOL Digital Solutions holds the copyright of all the code.
You need Node.js 22+ and a Chromium-family browser (Chrome, Edge,
Chromium, or Chrome for Testing; found automatically, or set
AXUSE_BROWSER=/path/to/chrome). On a bare server with no browser and no
sudo: node src/cli.js install-browser provisions a pinned Chrome for
Testing under ~/.cache/axuse — nothing else: axuse has no npm dependencies.
1. Get it and check the environment
git clone https://github.com/ctoldigital/axuse.git
cd axuse
node src/cli.js doctor # finds a browser, launches it, takes a snapshot
For a daily Chrome/Edge session, use the guided bridge setup. It registers the native host, opens the extensions page, prints the exact folder to load, and can print your harness configuration in the same command:
node src/cli.js setup --browser chrome --harness codex
After clicking Load unpacked once, verify the connection with:
node src/cli.js bridge verify
2. Add it to your harness (use your absolute path to src/cli.js)
# Codex
codex mcp add axuse -- node /abs/path/axuse/src/cli.js mcp
# Claude Code
claude mcp add --scope user axuse -- node /abs/path/axuse/src/cli.js mcp
# OpenCode, Antigravity, any other MCP host: print the config block to paste
node src/cli.js print-config --harness opencode # or agy | generic
3. Ask for something in the browser
Open https://example.com, find the "More information" link and tell me where it goes.
The agent calls ax_open, reads the accessibility snapshot, and acts on
element refs like [ref=e7]. Each action returns only what changed.
Optional settings (environment variables for the MCP server)
| variable | effect |
|---|---|
AXUSE_SERVER_MODE |
auto (default): on a display-less Linux server, boot a private Xvfb and keep Chrome fully headed on it (anti-bot-safe; see Servers, no desktop) |
AXUSE_DISPLAY_SIZE |
virtual display geometry for server mode (default 1920x1080x24; random = a stable geometry per machine, so a fleet is not all 1920x1080) |
AXUSE_TIMEZONE |
IANA TZ for the Chrome process — Date/Intl in pages and workers match the egress persona (validated by doctor) |
AXUSE_LANG |
--accept-lang for Chrome — navigator.language(s) and the Accept-Language header match the egress persona |
AXUSE_PROXY |
route every launched browser through a proxy (http://·socks5://, credentials supported — answered over CDP); ax_open {proxy} sets it per launch, and ax_open {timezone, lang} completes the per-instance persona |
AXUSE_AMBIENT_MOTION |
0 disables idle pointer park-fuzz (default: automatic in server mode — the agent's "thinking" pauses still show a live hand) |
AXUSE_MAX_BROWSERS / AXUSE_MAX_TABS |
governance caps for massive operations (defaults 8 / 48) — typed failures instead of OOM spirals |
AXUSE_NO_SANDBOX=1 |
force --no-sandbox (auto for root/container server runs) |
AXUSE_NEUTRALIZE_WEBDRIVER=0 |
disable the navigator.webdriver posture-fix fallback (the AutomationControlled launch flag already fixes it at the source) |
AXUSE_HEADLESS=1 |
launch the browser without a window — trusted internal pages only: challenge/anti-bot pages detect headless first; servers get server mode instead |
AXUSE_BROWSER |
path to the browser binary |
AXUSE_PROFILE_DIR |
where temporary browser profiles go (default: OS temp; they are deleted on exit) |
AXUSE_BRIDGE_DIR |
override the local bridge state directory (default: ~/Library/Application Support/axuse on macOS) |
AXUSE_ENABLE_MACOS_CUA=1 |
enable macOS desktop tools (Accessibility + Screen Recording grants are still required) |
AXUSE_BRIDGE_DEBUG=1 |
trace the extension bridge |
To drive your own logged-in Chrome instead of a fresh browser, see Driving your daily browser.
axuse runs under agent CLIs (codex, claude code, opencode) on headless
Ubuntu servers. Challenge/anti-bot pages check is this a headless browser?
first, so server mode never uses --headless: it boots a private Xvfb and
runs Chrome fully headed on it — real headed build, no headless
fingerprint (verified live against Turnstile: ax_solve_captcha solves on a
server with no desktop, and the slider engine's human-curve drags land
10/10). Beyond headed-vs-headless, server mode covers persona
coherence (AXUSE_TIMEZONE/AXUSE_LANG matching the egress persona,
AXUSE_DISPLAY_SIZE=random fleet diversity, --disable-blink-features= AutomationControlled so navigator.webdriver stays false at the source)
and fleet hygiene (zombie-Xvfb sweep). Solver plugins that need vision call
a multimodal model through any OpenAI-compatible API; keys come from env
vars or an owner-only secrets file. One-time setup, systemd wiring, env
reference and scale notes: docs/server-mode.md —
and node src/cli.js doctor verifies the whole lane (it prints the measured
anti-bot posture and persona).
On 16 server-scored browser tasks, run in the same harness (Codex CLI) with the same model against Codex's own Chrome extension and browser-use 0.13:
| axuse | Codex + Chrome extension | browser-use | |
|---|---|---|---|
| tasks passed | 28/28 | 27/27 | 27/27 |
| median ti |