OpenAdaptAI Agent

Developer toolsProductivity and workflow

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

Your AI app calls the OpenAdaptAI Agent MCP server, which does the developer tools and productivity and workflow work and sends the result back to the chat.

About OpenAdaptAI Agent

OpenAdaptAI Agent is a community MCP server from OpenAdaptAI, filed in our directory under developer tools and productivity and workflow. Verified local desktop & browser automation with read-back checks and signed receipts. Zero egress.

OpenAdaptAI Agent runs on your own machine: your AI app starts it with the command uvx openadapt-agent==2.2.4 serve and talks to it over standard input and output.

OpenAdaptAI Agent is listed in the official MCP registry as io.github.OpenAdaptAI/openadapt-agent, version 2.2.4.

At a glance

Publisher
OpenAdaptAI (community)
Runs
Locally on your machine
Install from
Python package on PyPI: openadapt-agent
Written in
Python
License
MIT
GitHub stars
1,910
Official MCP registry
io.github.OpenAdaptAI/openadapt-agent

How to set up OpenAdaptAI Agent

  1. Install uv on the machine that runs your AI app, because OpenAdaptAI Agent starts with uvx and fetches its Python package on first run.
  2. Check the OpenAdaptAI Agent README for keys or settings; the registry lists none that OpenAdaptAI Agent requires.
  3. Add OpenAdaptAI Agent to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the OpenAdaptAI Agent tools to confirm the connection.
  5. Run one read-only task with OpenAdaptAI Agent first, and keep your app asking before each tool call until the results look right.

OpenAdaptAI Agent compared with similar servers

  • Pg Aiguide by timescale has fewer GitHub stars than OpenAdaptAI Agent (1.9k against 1.9k); both are community servers, and Pg Aiguide runs as a remote server and OpenAdaptAI Agent runs on your own machine.
  • Mirobody by thetahealth has more GitHub stars than OpenAdaptAI Agent (1.9k against 1.9k); both are community servers, and both run locally.
  • Reason Network by reason-machines has fewer GitHub stars than OpenAdaptAI Agent (1.9k against 1.9k); both are community servers, and Reason Network runs as a remote server and OpenAdaptAI Agent runs on your own machine.

Before you connect OpenAdaptAI Agent

  • Give OpenAdaptAI Agent its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each OpenAdaptAI Agent tool call until you trust what it does with them.
  • Treat text that OpenAdaptAI Agent fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for OpenAdaptAI Agent on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for OpenAdaptAI Agent

How marketing and sales teams put OpenAdaptAI Agent to work, by company size. Pick the size closest to yours and start OpenAdaptAI Agent on one use case.

Small business

  • A small business with a developer can use OpenAdaptAI Agent to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask OpenAdaptAI Agent to explain and fix a marketing site issue without context switching between tools.
  • A busy owner can use OpenAdaptAI Agent to turn a brain dump into tasks with due dates, and get a short list of what matters today.
  • OpenAdaptAI Agent runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use OpenAdaptAI Agent to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect OpenAdaptAI Agent to keep scripts and automations documented and versioned as they change.
  • Marketing ops can connect OpenAdaptAI Agent to build launch checklists from a template and post status updates without a weekly meeting.
  • Start OpenAdaptAI Agent on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out OpenAdaptAI Agent with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on OpenAdaptAI Agent so web and marketing engineering share one reviewed way of working with AI.
  • Enterprise PMOs can use OpenAdaptAI Agent to roll up status across many teams into one view for leadership, with links back to each source task.
  • OpenAdaptAI Agent is a community server, so have security review the code and pin a version before OpenAdaptAI Agent touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

OpenAdaptAI Agent README

From OpenAdaptAI/OpenAdapt on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

OpenAdapt Agent

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

Use it if your agent works out what belongs in a record, but a person still types the result into a web, desktop or remote-desktop app with no usable API. An electronic medical record (EMR) and a payer portal are examples of highly regulated settings where it fits. This package is the tool your agent calls to do that typing.

  • A person or your agent shows OpenAdapt the task in the real app. OpenAdapt replays those steps, and by default a run makes no calls to a hosted AI model.
  • Before it types, OpenAdapt checks that the right record is open. After it saves, it reads the record back.
  • Your agent gets one of four outcomes: done and checked, stopped before saving, check the record, or didn't run. When OpenAdapt can't confirm a save, it says so, and a person checks the record.
  • It runs on your customer's computer, one that can already open the app. Your agent, or a small program acting for it, has to run on that computer too, since it starts OpenAdapt and talks to it directly. If your agent runs in your own cloud, ask us about a hosted route.

Pick one task your agent hands to staff today and talk to us about connecting it. Engineers can try the sandbox first.

Give your agent a program, not a mouse

Your agent doesn't send screenshots to a model and click. It calls a taught workflow as one typed tool, OpenAdapt runs the same steps every time, and by default your agent gets back an outcome and counts, not screens or recorded values.

openadapt-agent serve --mode production --bundles <bundle or directory of bundles>
openadapt-agent emit-skill <bundle> --out ~/.claude/skills

Try it in three steps runs a sandbox with no account. Serve your own workflows and Write an Agent Skill cover both commands.

What changes for your customer's team

Step Today With OpenAdapt
Read the document and decide what to enter Your agent Your agent
Open the app and find the right record Staff OpenAdapt, which checks that it has the right record before it types
Type the values and save Staff, retyping your agent's output OpenAdapt, in the same screens staff use
Confirm the save Staff, if they look again OpenAdapt reads the record back before it reports done
Something doesn't match Staff notice while typing, or someone finds it later OpenAdapt stops before saving, and the run waits for a person
What staff handle Every document Runs that stopped and records to check. For work in a task-ledger job, each one is a question on their phone or desktop; otherwise someone checks the list of stopped runs.

For scale, two hospital time studies put keying one faxed referral into an electronic record at about 10 to 12 minutes (UCSF, JAMIA Open 2020; Calderdale and Huddersfield NHS Foundation Trust, HFMA 2024). We don't publish a time-saved number until a deployment measures one.

Who builds what

flowchart LR
    A["Your agent reads the document<br/>and picks the values"]
    B["OpenAdapt enters them in the app<br/>on your customer's computer<br/>and reads the record back"]
    C["Your agent acts<br/>on the outcome"]
    D["A person at that computer<br/>decides or checks the record"]
    A -->|"workflow, inputs, request_id"| B
    B -->|"one outcome per request"| C
    B -.->|"needs_review or not_sure_if_saved"| D
You build OpenAdapt provides
The agent that reads documents and decides what to enter A workflow learned from one or more demonstrations in the real app, where a person or an agent shows the task
The call to run_workflow, with your own request_id The run on your customer's computer, with a right-record check before it types and a record check after it saves
What your product does with each outcome One result per request, and no second entry when your agent repeats a request_id
Your tests against the four outcomes A sandbox that returns each outcome on demand

Your customer provides the computer and a person for runs that stop. A person or an agent shows the task, in web apps, native Windows apps, and remote-desktop sessions. A person accepts the result before it runs. See Record a first workflow, or talk to us about setting it up.

Try it in three steps

The sandbox is a practice server that needs no account. It has one workflow, add_triage_note, which adds a note to the first referral in MockMed, a test clinic app with made-up patients.

You need Claude Code (signed in) and uv. To use a different client or your own code, see Connect your own agent.

  1. Register the sandbox server. --scope user makes it available in every folder; without it, Claude Code saves it for the current folder only.

    claude mcp add --scope user openadapt -- uvx --python 3.12 openadapt-agent serve
    

    This only registers the server. It prints one line saying the server was added to user config, and nothing else.

  2. Start Claude Code with claude. Claude Code starts the server. Optional: type /mcp to check that openadapt is connected.

  3. Ask: "Use the OpenAdapt sandbox to run add_triage_note with the note 'Synthetic: recheck blood pressure in 2 weeks' and request id demo-0001."

Your agent should call list_workflows, then run_workflow with these arguments:

{"workflow": "add_triage_note", "inputs": {"note": "Synthetic: recheck blood pressure in 2 weeks"}, "request_id": "demo-0001"}

The result looks like this (some fields left out):

{
  "outcome": "done",
  "label": "Done and checked",
  "safe_to_retry": false,
  "what_happened": "Simulated sandbox result (no app was opened): Saved the change and read the record back to confirm it.",
  "next_step": "none",
  "proof": "simulated",
  "run_id": "run-31ecb9d66db84f1aba8cb5f6",
  "model_calls": 0
}

This install simulates each run without opening MockMed, and every result says so. To watch the real engine do the work, see Drive MockMed with the real engine.

openadapt-agent installs from PyPI and requires openadapt-flow 2.1.0 or later, which is on PyPI and installs with it. To try unreleased changes, use --from git+https://github.com/OpenAdaptAI/OpenAdapt#subdirectory=packages/agent in place of the package name.

See every outcome

Ask for each case by adding sandbox_case to the inputs, with a new request_id each time. For example: "Now try the duplicate_record case with request id demo-0002."

sandbox_case outcome What MockMed does
normal (default) done Saves the note, and the record check finds it.
duplicate_record needs_review Lists the same referral twice, so OpenAdapt can't tell which record to open. It stops before saving.
false_saved_banner not_sure_if_saved Rejects the note on save, so it isn't stored.
timeout_after_save not_sure_if_saved Saves the note, then times out with an error.
app_offline did_not_run Doesn't answer, so nothing starts.

The sandbox remembers each request_id across sessions. Sending a used request_id with the same inputs returns the earlier result. Sending it with different inputs, such as a new sandbox_case, returns did_not_run with the reason request_id_conflict. To start over, delete ~/.openadapt/agent-sandbox, or set OPENADAPT_AGENT_SANDBOX_DIR to an empty folder.

Drive MockMed with the real engine

The tutorial extra makes openadapt-flow (Flow), the engine behind OpenAdapt, drive MockMed in a hidden browser. Replace the sandbox server with this one, then restart claude:

claude mcp remove openadapt
claude mcp add --scope user openadapt -- uvx --python 3.12 --from 'openadapt-agent[tutorial]' openadapt-agent serve

When the server starts, Flow records the workflow once and, if needed, downloads a browser (about 300 MB). The first request waits for that. In our test on a Mac, the first request took about 80 seconds. The call returned running after 60 seconds, and the agent called get_run for the result. If setup takes more than 15 minutes, the request ends did_not_run. With Flow, a done result has proof: "local" instead of "simulated".

The simulated sandbox suggests the same command in its list_workflows result.

What your agent gets back

outcome is one of four final values. While a run is still going, it's running.

outcome (label) What happened What your agent does next
done (Done and checked) OpenAdapt saved the values and read the record back. Mark the request complete and keep the run_id. Don't send it again.
needs_review (Stopped before saving) It stopped before a save, and the run waits until someone at your customer's computer decides. Nothing was written, unless record_changed is unknown: while a run waits for a person to approve a save (label Waiting for approval), an earlier save in that run may have gone through. Don't start the same work again. Call get_run later to see the decision.
not_sure_if_saved (Check the record) A save may have gone through, but OpenAdapt couldn't confirm it. Never retry. Have a person check the record in the app.
did_not_run (Didn't run) This call wrote nothing. With request_id_conflict, an earlier request with the same request_id may have saved. If safe_to_retry is true, fix the cause and resend the same request. Otherwise follow next_action.
running (Running) The run didn't finish within wait_seconds (default 60). Call get_run with the run_id until outcome changes.

checked_how says how the save was checked, when the run recorded it: system_of_record (Checked in your system's records), separate_session (Checked in a separate session), reopened (Reopened in the same session), same_screen (Checked on the screen), or unchecked. Under the standard profile, any confirmed check (same_screen or stronger) makes a run done; under regulated (or when minimum_readback sets a stricter floor), a save confirmed below that floor is not_sure_if_saved with reason checked_below_minimum. A workflow can raise its floor with minimum_readback (reopened, separate_session, or system_of_record).

Branch on outcome and safe_to_retry. next_step names the next move as a fixed code, so your code doesn't have to parse next_action: none, call_get_run, wait_for_person, check_record, fix_inputs, fix_setup, or retry.

Resend a request

request_id is your own id for the request, such as a referral id. Don't put patient details in it. A request is one request_id with one workflow and one set of inputs.

  • Resending the same request never enters the values twice. It returns the latest result, marked replayed: true.
  • If that result was did_not_run with safe_to_retry: true, resending starts a new attempt, up to 5 attempts per request_id.
  • After invalid_input, you can fix the inputs and resend with the same request_id. After any other retryable result, send the same inputs.
  • A different workflow or different inputs under a used request_id return did_not_run with request_id_conflict. Nothing new runs, and the earlier request may have saved. Call get_run with the result's first_run_id to see what happened to it.
  • No tool clears not_sure_if_saved. If the person who checks finds the work still needs doing, send it as a new request with a new request_id.

The check that stops a second entry covers one runs folder. See --runs-dir under Set server options.

Read the other fields
  • label: a short status you can display, such as "Done and checked".
  • reason: a code from a fixed list that names the cause, such as invalid_input or request_id_conflict. Every code is in REASONS in contract.py, and docs/DESIGN.md explains how each one is chosen.
  • what_happened and next_action: fixed sentences you can show a person. They never contain input values or screen text.
  • proof: local for a done that was checked on your customer's computer, simulated for a sandbox run that didn't open the app, and none for every other outcome.
  • model_calls: on runs that reached Flow, how many AI model calls the run made. It's 0 unless model grounding, a fallback that asks an AI model where to click, is turned on (see Security).
  • record_changed: yes, no, or unknown. It's no only when OpenAdapt can show that nothing was written. request_id_conflict gives unknown, because the earlier request may have saved.
  • needs_repair: on needs_review or did_not_run results where the run stopped at a step. It gives the step id, the reason, and a one-time repair_token, and never a screen. If a person turned on screen access for repairs, your agent can call get_repair_screen and teach_repair to propose a fix, which a person must approve. See docs/REPAIR.md.

Three tools

Tool Arguments Returns
list_workflows none Each workflow's name, purpose, done_means (what counts as done), and inputs as JSON Schema.
run_workflow workflow, inputs, request_id, and optional wait_seconds (0 to 600, default 60) One result.
get_run run_id, and optional wait_seconds (0 to 600, default 60) The latest result for that run, including a person's decision on a stopped run.

A request_id is 4 to 128 characters long. It starts with a letter or digit, and the rest can be letters, digits, ., _, :, or -.

A call with bad arguments, such as a missing request_id, returns a tool error instead of a result. For run_workflow, that error ends "Nothing ran." get_run finds only runs in the same runs folder.

The sandbox has all three tools. With your own workflows, run_workflow appears only when the server is started with --mode production or --mode attended (see Serve your own workflows).

Developer setup

The package is a local Model Context Protocol (MCP) server that talks over stdio, plus an openadapt-agent command. It needs Python 3.11 or 3.12. It checks inputs, stops second entries, and turns Flow's report into one of the four outcomes. openadapt-flow records, replays, and checks the workflows.

To see Flow on its own, install the OpenAdapt launcher with pip install openadapt, then run openadapt flow tutorial or openadapt quickstart.

Connect your own agent

Any MCP client can start the server with the command uvx. In a client that reads an mcpServers JSON file, such as Claude Desktop or Cursor, add:

{
  "mcpServers": {
    "openadapt": {
      "command": "uvx",
      "args": ["--python", "3.12", "openadapt-agent", "serve"]
    }
  }
}

From your own Python code, use the MCP Python SDK (pip install mcp):

import asyncio
import json

from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client

SERVER = StdioServerParameters(
    command="uvx",
    args=["--python", "3.12", "openadapt-agent", "serve"],
)


async def main():
    async with stdio_client(SERVER) as (read, write):
        async with ClientSession(read, write) as session:
            await session.initialize()
            call = await session.call_tool("run_workflow", {
                "workflow": "add_triage_note",
                "inputs": {"note": "Synthetic: recheck blood pressure in 2 weeks"},
                "request_id": "demo-py-0001",
            })
            result = json.loads(call.content[0].text)
            print(result["outcome"], result["next_step"])


asyncio.run(main())

The SDK starts the server with only a few environment variables. To pass others, such as OPENADAPT_BUNDLE_KEY, add env= to StdioServerParameters.

To let your agent add workflows itself, see Teach a new workflow from your agent.

scripts/smoke_client.py is a fuller example that runs every sandbox case. From a clone of this repository, run pip install -e ., then:

python scripts/smoke_client.py -- uvx --python 3.12 openadapt-agent serve

If your agent runs in your own cloud, it can't reach this server, which has no network listener. The program that starts the server has to run on your customer's computer. One way to do that is a small worker there: it takes requests from your service over a connection it opens, starts this server, calls run_workflow, and sends each result back. The worker acts as your agent, so protect its connection like any other route to patient data. For a hosted route instead, talk to us.

Serve your own workflows

A bundle is a compiled workflow folder that contains workflow.json, or workflow.json.enc with its key in OPENADAPT_BUNDLE_KEY. --bundles takes one bundle or a folder of bundles.

Command What your agent gets
openadapt-agent serve The sandbox.
openadapt-agent serve --bundles DIR Your workflows, listed but not runnable (run_tools_enabled: false), and read-only tools for past and stopped runs.
openadapt-agent serve --mode production --bundles DIR --runs-dir /var/lib/openadapt/runs Runs of your workflows.
openadapt-agent serve --mode attended --bundles DIR --runs-dir /var/lib/openadapt/runs Runs, plus decisions on stopped runs.

openadapt-agent serve --allow-run is the older form of --mode production, or of the sandbox when there's no --bundles.

Each run goes through openadapt-flow run. Flow drives web apps in Chromium, with the address set by --url. It also drives desktop apps and RDP and Citrix sessions, which can need Flow's own target flags passed with --extra-run-arg. The openadapt-flow README covers each kind of app.

Get a workflow ready to run

Flow refuses a bundle that hasn't passed the checks it requires. Your agent then gets did_not_run with not_ready_to_run, and failed_checks names each missing check, such as not_certified or no_readiness_test. Expect this the first time you serve a new recording.

What Flow requires depends on the profile set in the deployment config (--config). The main differences:

  • No profile: the bundle must be certified with openadapt-flow certify against the policy.
  • standard or regulated: certification, an active admission (a signed readiness test) for that exact bundle version, and a record check that reads the saved record through a separate path, such as the app's API, its database, or a second session. Under standard, a Citrix session with no separate way to read the record can't end done.
  • demo: no certification, but Flow doesn't confirm the save, so a finished run ends not_sure_if_saved.

Flow's execution profiles page explains each profile.

Set server options
Flag What it does
--runs-dir DIR Where run records and Flow's evidence go. The default is ~/.openadapt/runs (or OPENADAPT_AGENT_RUNS_DIR when it's set), never the folder where the client starts the server; the sandbox uses ~/.openadapt/agent-sandbox. The server prints the folder it uses when it starts. The check that stops a second entry covers one runs folder, so give every server for the same work the same folder. Earlier versions used ./runs; if that folder holds their records and you don't pass --runs-dir, the server won't start, so you choose which folder to keep.
--url URL The app's address, passed to every Flow run.
--config YAML Flow's deployment config (example), which sets the profile and whether model grounding is allowed.
--policy NAME-OR-PATH The policy Flow certifies against, such as clinical-write or permissive.
--timeout SECONDS How long one run may work (default 600). Time a person spends approving a save doesn't count. A run stopped at the limit is not_sure_if_saved.
--approval-mode MODE Whether each save waits for approval. Without it, Flow decides, and a run stops before each save until it's approved (each_item). not_gated turns that off for every run this server starts; each result records it under technical.approval_mode.
--delegate-approvals AGENT_ID Lets your agent answer a waiting save as AGENT_ID (an opaque id such as agent:intake-bot), with list_approval_requests and answer_approval_request. Flow accepts the answer only where the run's approver policy allows an agent for that step, and records the agent as the approver. By default only a person may answer. Needs openadapt-flow 2.2.0 or later.
--admissions DIR Adds prepare_admission, list_admissions and decide_admission, the same steps as openadapt-flow admit, over recordings in DIR/recordings and shadow candidates in DIR/shadow-candidates. A person decides in your client's form. With --delegate-approvals and --approver-grant, your agent decides as that approver instead, under a grant a person signed that names it. It never decides an admission it prepared or one prepared on a server without --delegate-approvals, and never under the regulated policy pack. Accepting sets the workflow's runs to problems_only. The record names who decided, and for your agent the grant and who signed it.
--approver-grant FILE With --admissions and --delegate-approvals: the approver grant a person signed (openadapt-flow approver-grant sign) that lets your agent decide admissions. Flow checks it on every decision. Without it only a person decides.
--headed Shows the browser. A person needs it to continue or skip a stopped run in a web app.
--extra-run-arg ARG, --flow-cli CMD Change how Flow is called. Either one can relax Flow's checks, for example --extra-run-arg=--allow-unencrypted.
--allow-protected-export, --allow-synthetic-recorded-defaults, --allow-model-grounding Off by default. See Security.

Callers can't change --url, --config, --policy, --timeout, or --approval-mode. The one exception is url on the deprecated tools, when the server has --allow-url-override. If a workflow has its own input named url, that argument stays the workflow's input and the override is target_url_override. openadapt-agent serve --help lists every flag.

Runs that wait for a person's approval

Unless the operator names another --approval-mode, Flow stops before each save and waits for an answer (up to 15 minutes by default). While it waits, run_workflow and get_run return needs_review with reason waiting_for_approval and record_changed: "unknown", because an earlier save in the same run may have gone through. The person sees the waiting save with openadapt-flow item-approval show RUN_DIR, where RUN_DIR is the run_id folder in the runs folder, and answers with item-approval approve or decline. If nobody answers in time, the run stops before saving and reads needs_review with reason approval_needed. get_approval_mode reports the mode and whether your agent may answer. With --delegate-approvals, your agent can list waiting saves with list_approval_requests and answer one with answer_approval_request, where the run's approver policy allows an agent for that step; otherwise a person answers.

Use the other tools

With --bundles, the server also registers read-only tools for workflows and runs: get_workflow, get_run_report, list_needs_attention, and get_attention_item. With --mode production or --mode attended, it also registers a deprecated run_workflow_<id> for each workflow. Those tools take no request_id, so a retry can enter the values twice. Use run_workflow instead.

list_workflows, run_workflow, and get_run return structuredContent that matches their outputSchema, defined in contract.py, plus the same JSON as text.

Decide stopped runs

A run that stops for a person waits in Flow's Needs Attention list on that computer. list_needs_attention shows the list. Nobody is notified, unless the run is part of a task-ledger job: then the ledger asks a person on their phone or desktop.

With --mode attended, your agent can send a decision with continue_attention, skip_attention, reject_attention, teach_attention, or escalate_attention. The person at the computer confirms each decision in a form. Continue and skip also need --config. If the client can't show forms, the server refuses the decision, and the person uses Flow's console instead:

openadapt-flow console --attend --allow-actions --bundles DIR --runs RUNS_DIR

docs/DESIGN.md describes each decision. After a person decides, get_run shows the new outcome.

Describe a workflow with a card

A card gives a workflow the name, purpose, done_means, and input descriptions that list_workflows shows your agent. Without a card, the workflow gets an opaque name. Put openadapt-card.json next to workflow.json:

{
  "name": "enter_referral",
  "purpose": "Create an outgoing referral for an existing patient in the clinic EMR.",
  "done_means": "The referral appears in the EMR's referral report for that patient.",
  "inputs": {
    "patient_mrn": {"description": "Clinic MRN of the patient.", "pattern": "^[0-9]{6,10}$"},
    "referral_date": {"description": "Date of the referral.", "format": "date"}
  }
}

Card text reaches your agent's model, so keep patient details out of it. The server ignores the whole card and logs a warning if the card is malformed, if purpose or done_means is over 300 characters, if a description is over 200 characters, or if the text looks like it holds an identifier: 5 or more digits in a row, an email address, or a phone number.

Write an Agent Skill

openadapt-agent emit-skill BUNDLE --out ~/.claude/skills writes a SKILL.md for one workflow: what it does, its inputs, how to call run_workflow, and what to do after each outcome. The skill holds no recorded values or secrets, and you still add the server separately. --include-bundle also copies the bundle next to the skill. That copy can contain values from the recording, so keep it as private as the recording.

Each skill is named after its workflow, so enter_referral becomes enter-referral. Two names are reserved:

  • computer-use, because an assistant would load that skill for every request to control the screen.
  • openadapt-gui-write, the general skill for any workflow that this repository ships at skills/openadapt-gui-write/SKILL.md.

If a workflow's name would come out as either one, emit-skill names the skill openadapt- plus the workflow's id, such as openadapt-workflow-1a2b3c4d5e6f7a8b9c0d1e2f. An emitted skill never replaces the general skill in the same folder.

Record a first workflow

serve --authoring adds recording tools, such as observe, start_record, click, pause_for_input, stop_record, compile, and admit. docs/DESIGN.md lists all 14. A person or your agent shows the task with them, in a web app, a native Windows app, or an RDP or Citrix session, and a person stays at the computer to sign in and accept the result. A task can be learned from one or more demonstrations. The recording server doesn't turn on runs.

  1. Register a recording server. The tutorial extra brings the browser driver that --url needs. --url opens the app in a new Chromium window with no saved sign-ins, and --headed, which --url requires, keeps that window visible so the person can sign in.

    claude mcp add --scope user openadapt-authoring -- uvx --python 3.12 --from 'openadapt-agent[tutorial]' openadapt-agent serve --authoring --url https://app.example.com --headed
    

    This only registers the server. Claude Code starts it the next time you run claude.

  2. Run claude and ask your agent to record the task with the person. When the agent pauses for sign-in, the person signs in to the app in that window.

  3. When the task is done, the agent calls compile. It writes the bundle to <runs-dir>/authoring/bundle, which is ~/.openadapt/runs/authoring/bundle by default.

  4. The agent calls admit. Your MCP client then shows the person a confirmation form, and only the person's answer there accepts the bundle. If the client can't show forms (MCP form elicitation), admit refuses and nothing is accepted.

  5. Get the bundle ready to run (see Get a workflow ready to run). Then serve it with --mode production --bundles <runs-dir>/authoring/bundle.

Use --url URL --headed for a web app on every platform. Without --url, the server exits on Linux, and on macOS it uses whatever window is in front when the client starts the server, or exits.

For a native Windows app, start Flow's Windows agent server in the signed-in desktop session on the Windows computer (python -m openadapt_flow.backends.win_agent.server --port 5001) and pass --windows-agent-url http://localhost:5001. The agent can run on that computer or on another one, such as a Mac. The server listens only on the Windows computer by default, so from another computer forward the port over SSH or serve it over HTTPS. Your agent's clicks and keys go through the same synthetic-input path that replay uses, and the recording keeps each clicked control's UI Automation id when Windows reports one. Set OAFLOW_AGENT_TOKEN to the same value for the server and the agent.

For an RDP or Citrix session, pass --remote-window APP (the client app, for example "Microsoft Remote Desktop") or --citrix, and --remote-window-title when the app has more than one window. A remote session is screen-only: there's no DOM or UI Automation tree, so observe returns no nodes and your agent clicks x,y pixels in the client window and presses keys, the way a person would. To let your agent see that window, add --authoring-screens scrubbed, which turns on a screen tool that returns the frame with identifiers scrubbed and shares nothing if scrubbing fails. --authoring-screens unscrubbed skips scrubbing. Screens are off by default.

You can also name the app with a deployment file instead of these flags: --authoring --config deploy.yaml --authoring-from-config. The file's backend: section names a Windows app (agent_url), one macOS window (macos_app, optionally macos_window_title), one Linux window (linux_app and linux_window_title), or a local RDP or Citrix client window (rdp_window). It is the same section openadapt-flow run --config uses, so the recording and its runs drive the same app. This is how you record a Linux app, or a macOS app that isn't the frontmost window. Your agent clicks at window coordinates, so a Linux section also needs linux_allow_physical_input: true. Network RDP (rdp_host) is refused for authoring, because each run would open its own session and disconnect the recording's. Without --authoring-from-config, --config only configures runs.

Recording on Windows, RDP and Citrix explains the Windows agent server, why it's needed when the agent runs on another computer, how to start it, the token, and the RDP and Citrix pixel path.

The recording marks every step as the agent's or the person's (actor in events.jsonl, demonstrated_by in meta.json), and a person still accepts the result. On Windows with none of these flags, the tools can only tell the person what to click.

ChatGPT and Claude in a web browser can't start a server on your computer. To record from one of them:

  1. On https://openadapt.ai/#job-box, type the job under What job do you want to automate? and click Get a job page.

  2. On the job page, click Connect this computer. Its Open OpenAdapt link is the runner link (openadapt://runner?pack=...&bind=oab_...). It opens OpenAdapt Desktop if you have it. The link works once and expires after five minutes if nobody claims it.

  3. Without Desktop, copy that link and run this on the computer that has the app:

    openadapt-agent authoring connect '<runner link>'
    

It claims the job, polls openadapt.ai over outgoing HTTPS, and asks you in the terminal before a chat account may drive it. Don't confuse it with the launcher's openadapt connect, which pairs a computer with OpenAdapt Cloud. docs/MAILBOX_CLI.md has the details.

Guard an agent you already run

If your agent already drives a Chromium (a Playwright script, Playwright MCP, browser-use, or a computer-use agent with a browser), you don't have to move it onto these tools. Start its browser with a DevTools port, which is the one line you add, and run the guard next to it for each task:

openadapt-flow guard --cdp http://127.0.0.1:9222 --config guard.yaml --task task.json --out runs/task-0001

The guard holds every save the agent's tab sends until the record on the screen is the one task.json names. When it isn't, the save is blocked and the agent's page says why. A save that goes through is read back from the system of record (VERIFIED, REFUTED or RECONCILIATION_REQUIRED). --observe-only never blocks and shows what the guard would have done.

When a run reads back correctly, it becomes a draft in the teach dir that guard.yaml names, with a record check built from the app's own reads. A person confirms the check and admits the draft (openadapt-flow compile-agent admit); then serve --teach verify.yaml --teach-dir <that dir> serves it as a taught_<name> tool that makes no model calls. GUARD_AN_AGENT.md has the files, what counts as a save, and the measurements.

Read the rest of the OpenAdaptAI Agent README on GitHub

Questions about OpenAdaptAI Agent

What is the OpenAdaptAI Agent MCP server?

Verified local desktop & browser automation with read-back checks and signed receipts. Zero egress. OpenAdaptAI Agent is maintained by OpenAdaptAI on GitHub at OpenAdaptAI/OpenAdapt, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the OpenAdaptAI Agent MCP server?

Add OpenAdaptAI Agent to your AI app's MCP config with the command uvx openadapt-agent==2.2.4 serve. In Claude Code, run claude mcp add --transport stdio openadaptai-agent -- uvx openadapt-agent==2.2.4 serve. To run OpenAdaptAI Agent this way you need uv installed.

Does OpenAdaptAI Agent need an API key?

The registry lists no required keys for OpenAdaptAI Agent. Check the OpenAdaptAI Agent README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is OpenAdaptAI Agent an official MCP server?

No. OpenAdaptAI Agent is a community server maintained by OpenAdaptAI. Community servers can be excellent; read the code and the open issues before you give OpenAdaptAI Agent access to company data.

What license is OpenAdaptAI Agent under?

OpenAdaptAI Agent is released under the MIT license, according to its GitHub repository. The license covers the code of OpenAdaptAI Agent; the service it connects to has its own terms.