Repository avatar
Browser Automation
v2.2.4
active

openadapt-agent

io.github.OpenAdaptAI/openadapt-agent

Verified local desktop & browser automation with read-back checks and signed receipts. Zero egress.

Documentation

OpenAdapt

Verify, compile, and replay any GUI workflow or AI agent, with signed Ed25519 receipts on every write.

PyPI Chrome Web Store Hugging Face Veto-4B-r6 License: MIT Docs

Website · Docs · Chrome Extension · Watch Real Runs · Proof · Discord


OpenAdapt wraps browser and desktop agents with before-click verification, post-write read-back, deterministic compiled replay, and signed Ed25519 receipts.

Quickstart

Install

# Run directly with uvx (no install, fetches Python 3.12 if needed)
uvx --python 3.12 openadapt@latest quickstart

# Or install the CLI
pip install --upgrade openadapt
# macOS / Linux via Homebrew
brew install openadaptai/tap/openadapt

For browser workflows with zero CLI setup, install the 1-click Chrome extension: OpenAdapt Co-Pilot on the Chrome Web Store.

Wrap Any Python Agent or Tool in 2 Lines

Add pinned record checks, duplicate-submit protection on uncertain writes, same-screen verification, and SHA-256 or Ed25519 receipts to any Python function, Playwright helper, MCP tool, or agent with zero YAML files:

import openadapt

safe_save = openadapt.wrap(
    save_chart_note,
    pinned={"patient_id": "PT-104"},
    check=lambda out, *a, **kw: out.get("saved") is True,
)
safe_save(patient_id="PT-104", note="Follow-up scheduled")
print(safe_save.last_receipt["outcome"], safe_save.last_receipt["checked_how"])  # confirmed same_screen

Try It in 30 Seconds

Run the quickstart against a bundled demo app (no account or API key required). It shows a task once, runs the compiled program and checks the save in the app's database, then stops the runner partway through a batch and restarts it: the restart skips the note that was already saved and saves only the next one.

uvx --python 3.12 openadapt@latest quickstart

Wrap an Agent or Serve Compiled Workflows over MCP

# Wrap any agent with before-click checks and signed receipts
openadapt wrap --task task.yaml -- claude -p "submit the invoice"

# Expose verified workflows to Claude Code, Codex, or Cursor as a local MCP server
openadapt agent serve

# Serve JIT-compiled plans as zero-token stdio MCP tools
openadapt mcpify serve --from-compiled .openadapt/compiled

Record, Compile, and Replay

openadapt record --backend web --url https://staging.your-app.example --out rec
openadapt compile rec --out bundle --name my-first-workflow
openadapt flow replay bundle --url https://staging.your-app.example --run-dir run

flow replay performs every recorded action, including real saves. Use a test or staging copy; it does not ask for approval or check the saved record. For production writes, certify, qualify, and admit the bundle, then run openadapt run (Your first workflow).

Why OpenAdapt

  • Commit-Boundary Verification: Checks active record identity before consequential clicks, checks observable evidence after each action (on the current screen by default, including in-place edits and non-idempotent portals that cannot reload, or via a reopened view, separate read-only session, or direct API/database/file check when available), and stamps how each action was checked (same_screen, reopened, separate_session, or system_of_record) on a signed Ed25519 receipt (inspect a live receipt, receipt reference).
  • Zero-API-Call Compiled Replay (No 429 Limits): Compiles repeated GUI workflows into deterministic programs and direct HTTP or MCP tools, eliminating warm model calls and rate limits (219 -> 10 calls on Gemini 3.1 Pro).
  • Stage-Only & Human Sign-Off in Your Browser (Zero-PHI Local Execution): Runs inside existing authenticated Chrome sessions via OpenAdapt Co-Pilot or local and VPC runners. Screens, typed values, and recordings stay on your machine, and uncertain writes pause for a human to review and approve.
  • Local 4B Verifier (OpenAdapt-Veto-4B-r6): Open-weights 4B local safety verifier on Hugging Face that checks screenshots locally in 3.15 GB VRAM (357 ms latency) before clicks land.

Verified Results

Counted from the per-run ledgers in benchmarks/public-runs/. Each arm's N runs split three ways. Verified: the arm reported the run done and the benchmark's own checker agrees. Silent error: the arm reported the run done and the checker disagrees. Halted: the arm stopped without reporting the run done. The strongest baseline is the baseline arm, run on the same tasks, with the most verified runs. A silent-error count reads not measured when the arm's own read-back is the check that scores the run.

BenchmarkNOpenAdapt: verified / silent errors / haltedStrongest baselineBaseline: verified / silent errors / haltedThe baseline reports a run done when
Real web app upgrades (Gitea, Vikunja, Memos, Mealie)6042 / not measured / 18Stagehand-style self-heal43 / 2 / 15every step ran without an error
Real web app upgrades, paired gemini-3.1-pro-preview (36 of 60 planned tasks; the run stopped at the API's daily quota)3634 / not measured / 2Unwrapped gemini-3.1-pro-preview17 / 0 / 19the agent declared the task done
HealthAdminBench, single tab (gpt-5.4 and claude-sonnet-5-5 pooled)245 / 11 / 8Unwrapped, same models7 / 17 / 0every run; it never escalated
HealthAdminBench, multi-tab (gpt-5.4 and claude-sonnet-5-5 pooled)2411 / 10 / 3Unwrapped, same models10 / 14 / 0every run; it never escalated
ST-WebAgentBench (GitLab, ShoppingAdmin, SuiteCRM), gpt-5.4443 / 22 / 19Unwrapped gpt-5.42 / 42 / 0every run; it never escalated

How each benchmark checks a run, and when OpenAdapt reports a run done:

  • Real web app upgrades (Gitea, Vikunja, Memos, Mealie): the checker is a read of the app's backend through its REST API after the run. OpenAdapt reports a run done when its read-back found the record through the app's REST API. In this run OpenAdapt's read-back used the same backend check that scores the run, so its silent-error count is not independent and is shown as not measured.
  • Real web app upgrades, paired gemini-3.1-pro-preview (36 of 60 planned tasks; the run stopped at the API's daily quota): the checker is a read of the app's backend through its REST API after the run. OpenAdapt reports a run done when its read-back found the record through the app's REST API, and it issued a signed receipt. In this run OpenAdapt's read-back used the same backend check that scores the run, so its silent-error count is not independent and is shown as not measured.
  • HealthAdminBench, single tab (gpt-5.4 and claude-sonnet-5-5 pooled): the checker is HealthAdminBench's own grader; a run passes when every subtask passes. OpenAdapt reports a run done when the run ended without OpenAdapt escalating it to a person.
  • HealthAdminBench, multi-tab (gpt-5.4 and claude-sonnet-5-5 pooled): the checker is HealthAdminBench's own grader; a run passes when every subtask passes. OpenAdapt reports a run done when the run ended without OpenAdapt escalating it to a person.
  • ST-WebAgentBench (GitLab, ShoppingAdmin, SuiteCRM), gpt-5.4: the checker is ST-WebAgentBench's evaluator; a run passes when the task is completed with no policy violated. OpenAdapt reports a run done when the run ended without OpenAdapt escalating it to a person.

On the paired gemini-3.1-pro-preview run (36 tasks), the unwrapped agent made 219 model calls and OpenAdapt made 10. OpenAdapt's 27 warm replays made 0.

Safety benchmarkMeasureWithout OpenAdaptWith OpenAdapt
AgentDojo, gemini-2.5-flashprompt injections that succeeded35 / 488 / 48
AgentDojo, Qwen/Qwen3.5-4Bprompt injections that succeeded7 / 481 / 48
AgentDojo, gpt-5.4prompt injections that succeeded0 / 480 / 48
AgentDojo, claude-sonnet-5-5prompt injections that succeeded0 / 480 / 48
OS-Harm, 3 models pooledruns with a harmful outcome or policy violation12 / 273 / 27
OS-Harm, 3 models pooledruns completed under policy11 / 2717 / 27

Full methodology, benchmark tables, and verifiable raw runs: openadapt.ai/proof and sanitized per-run JSON ledgers in benchmarks/public-runs/.

Works With

  • Coding & MCP agents: Claude Code (claude mcp add openadapt -- uvx --python 3.12 openadapt@latest agent serve), Codex (openadapt wrap -- codex ...), Cursor.
  • Browser automation & sandboxes: Playwright, Browser Use, Browserbase, E2B, Daytona (openadapt wrap --cdp-url "$CDP_URL" --upload -- python my_agent.py). See the cloud sandbox and BYOC guide.
  • In-browser operator workflows: OpenAdapt Co-Pilot Chrome Extension.

Packages & Architecture

pip install openadapt installs the CLI, compiler/runtime engine, and MCP server. Each package installs only what it imports (install weight policy).

PackageRoleSource
openadaptUnified CLI (quickstart, wrap, connect, record, compile, run, verify, kernel, agent, mcpify)openadapt/
openadapt-kernelOptional alpha extra (pip install 'openadapt[kernel]'). Commit-boundary kernel: default-deny write ledger, wire/DOM commit interceptor, stepwise live-DOM healer, cross-rail oracles, Ed25519 receipts, stdio MCPpackages/kernel/
openadapt-flowDemonstration compiler, certification, qualification, governed replay, auto-repair, and BYOC connectorpackages/flow/
openadapt-agentMCP server, Agent Skills export, and A2A handoffspackages/agent/
openadapt-verifyStandalone Python SDK (@verified, checked_write, local JIT compiler, mcpify)packages/verify/
openadapt-copilotChrome Extension for recording, stage-only review, and human sign-off inside existing browser tabspackages/flow/chrome_extension/

Supporting packages in this monorepo: openadapt-desktop, openadapt-types, openadapt-capture, openadapt-privacy, and openadapt-tray. Research repositories live separately: openadapt-evals and openadapt-ml.

Documentation

Release status

The block below is generated from the signed public lifecycle record.

The last signed lifecycle snapshot (September 2026) has seven active target admissions. Their evidence class is remote-safe-synthetic, not MockMed production_acceptance. They remain valid until revoked; there's no expiry date. The admitted versions in that snapshot are launcher 1.16.0, Flow 1.35.1, and Desktop's 0.16.0 wheel (pip install openadapt installs the latest PyPI release; see GitHub Releases and PyPI for current package versions, which have not yet been re-admitted to the signed ledger). Native Mac DMGs from that snapshot stay ad-hoc signed 0.15.0; don't treat those as admitted. A Production run still needs a workflow admission for the exact compiled bundle, application, and environment. Check the live signed Production record.

Contributing & License

Launcher, kernel, engine, MCP server, desktop app, and contract changes live in this monorepo.

Contribution guide · Issues · Discussions · Report a vulnerability · Code signing policy

Maintained by OpenAdaptAI under the MIT License.

PYPI
openadapt-agent
Install Command
pip install openadapt-agent
Runtime: uvx