# Machines and targets

1. **`bash`, `read`, `edit`** run on the conversation's environment: the machine its project's folder is on
2. **`computer_use`** every call names a device and a type; without a device it is this computer
3. **Devices** this computer, SSH hosts, Docker machines, virtual machines, other computers' OpenProgram; each reached by one connection method
4. **Features** each decides what it does with a method: commands through `local`, `ssh`, `docker`; targets through `local`, `osworld`, `openprogram`

## Three rules

| Rule | Means |
| --- | --- |
| The call says where | `device` names the machine and `type` what on it: `window`, `screen` or `browser`. Without `device` it is this computer, where the worker and the App run, in every conversation. No environment or earlier call changes where a call lands. |
| The tool never changes | The tool's description and parameters are the same for the whole conversation. What can be operated now goes in a `<devices>` note beside the user's message ([What the model reads](#model-surface)). |
| One spelling per meaning | The same act has one action name and one set of argument names on every target. Names a model carries over from another tool are rewritten, not refused. |

## Concepts

| Concept | Is |
| --- | --- |
| Machine | A computer with its own operating system: this computer, an SSH host, a Docker machine, a virtual machine, another computer with its own OpenProgram. One registry. A machine is an id, a name, an enabled switch and one connection. |
| This computer | Built in, with the method `local`, never stored; a call names it by leaving `device` out. |
| Device | How a call names a machine: its id (its name is accepted too). The operating system is a property of the device, shown in `<devices>`, never a call argument. |
| Connection | How a machine is reached: one method (its `kind`) and that method's settings ([Connection methods](#methods)). It says nothing about what is done there. |
| Project | A folder on one machine: (machine, folder). Its conversations run on that machine, in that folder. |
| Environment | A role: the machine a conversation's commands and file tools run on, its project's machine. Its method must be one commands run through: `local`, `ssh` or `docker`. |
| Type | What kind of thing is operated; it fixes the vocabulary. `window`: application windows by element tree. `screen`: a whole display. `browser`: web pages; without `app` a browser OpenProgram runs, with `app="chrome"`, `"safari"`, `"firefox"` or another of the user's own ([User browsers](https://fzkuji.github.io/OpenProgram/docs/reference/design/integrations/computer-use/user-browsers.html)). Types belong to `computer_use`, not to machines. |
| Target | What a call's `device`, `type` and, for a browser, `app` name. Its key joins the three, leaving out this computer and OpenProgram's own browser: `window`, `browser chrome`, `lab screen`. Locks, permission rules and Resources use the key; the model never writes it. |
| Subject | What inside the target: `app` and `title` (a window title, or a `window_id` when it is digits) for a window, `title` (a tab id or title) for a browser, `display` for a screen. |
| Provider | The module that yields one kind of target over a method. |

### Connection methods

| Method | Reaches | Registered by |
| --- | --- | --- |
| `local` | this computer; built in, never added | `host/machines/kinds.py` |
| `ssh` | a host over SSH: `target`, `workdir` | `host/backend` |
| `docker` | an image, one container per conversation | `host/backend` |
| `openprogram` | another computer's own OpenProgram, added by pairing ([Remote OpenProgram](https://fzkuji.github.io/OpenProgram/docs/reference/design/integrations/remote-openprogram.html)) | `host/machines/peer.py` |
| `osworld` | a virtual machine behind an OSWorld server: `url` | the `computer_use` provider `providers/screen/osworld.py` |

| Method | Shell feature (commands, files, projects, terminal) | `computer_use` |
| --- | --- | --- |
| `local` | commands and files here | `window`; `screen` while Whole screen (`computer_use.whole_screen`) is on, off by default; `browser`, OpenProgram's and the user's |
| `ssh` | commands on the host, its own files | nothing |
| `docker` | commands in the conversation's container | nothing |
| `openprogram` | none here; the other computer's conversations are listed here and run there | `window`, `screen`, `browser` of that computer, run there ([Another computer's OpenProgram](#paired)) |
| `osworld` | none | `screen` of the virtual machine |

| Rule | Detail |
| --- | --- |
| The device layer knows no feature | A method registers a name, a label, a settings schema, a reachability check, what tells two connections apart and the address it reaches. Nothing in `host/machines` says what is done over it. |
| Each feature maps methods | The shell feature: `host.backend.SHELLS`, from `local`, `ssh` and `docker` to how commands run. `computer_use`: `registry.offer(method, opener)`, one opener per provider module; a method nobody offers yields no target. A new feature adds its own mapping and touches no device. |
| This computer | Has no settings to edit. Whether it gives a screen is the setting `computer_use.whole_screen`, not part of its connection. |
| Secrets | A setting marked secret (the pairing credential `token`) is stored in `state/auth/machines/<id>.json` under the setting's name. |

A virtual machine is a machine: `vm` is not a type and `computer_use.vm_url` is gone.

## Machines and environments

| Question | Decision |
| --- | --- |
| Registries | One, `machines`. It replaces the environments registry. Identity, configuration and the connection are shared by every feature. |
| Bindings | Two, kept apart. The environment comes from the project (`machine_id` on the project record, `resolve_for_project`), never from the conversation: a conversation's project is frozen once it has a session, so its machine never changes and it promises where commands take effect. Targets are listed per turn and chosen per call. |
| In an SSH or Docker conversation | A call without `device` still acts on this computer. The tool description, `<devices>` and the `<environment>` block say so, and the built-in browser's line says its `localhost` is this computer's. |
| A machine that runs commands and is operated | Only this computer. An SSH host or Docker machine is an environment and gives `computer_use` nothing; another computer's OpenProgram is operated with `device="<m>"` and runs no commands here. Being the environment never makes a machine the default. |
| Instances | A shell declares `instance_scope`. `machine`: one instance. `conversation` (Docker): one per conversation, created on first use and removed with the conversation. State, locks and screen-server processes are keyed by the instance. |
| Identity | A machine id never changes; only its name is edited. A machine added without an id gets one made from its name (Dev Box becomes `dev-box`, then `dev-box-2`). Deleting or disabling a machine lets running calls finish, then closes its providers and removes its instances by label. |
| Choosing the machine | When a project is opened: **Open folder on…** picks the machine, then the folder on it. This computer and a Docker machine (which mounts this computer's folders) use the folder picker; an SSH host is browsed through its shell (`list_machine_folder`), starting at its remote folder setting, and the folder is made absolute there (`resolve_folder`). |
| One folder, one project | One folder on one machine is one project; a folder on this computer belongs to one project whatever machine runs it. The home project is always this computer. There is no default environment and no per-conversation choice. |
| A project's machine is gone | Switched off, reached by a method commands do not run through, or removed: its conversations' commands and file calls are refused, never replaced by this computer. The picker greys its projects. |
| Connection state | `host/machines/status.py`: connected, connecting (no answer yet), disconnected (switched off) or error. A listing checks a machine behind its answer when the last word is over 60 s old; every shell file call on it reports what it saw. Each machine in the `machines` frame carries its `status`, and a change broadcasts the frame. The App shows it as a dot on the machine's icon: green, a turning ring, grey, red. |
| Where the App shows the machine | The project picker groups projects under machine headers, this computer first. The sidebar's project header shows a project on another machine with that machine's icon (Solar `server-2` for a machine on another computer, drawn at the folder icon's size), dot and name; chat rows never show a machine. The composer's machine chip shows the project's machine and cannot switch it; its menu says it is set by the project. |
| A project's folder on an SSH host | Read and changed on the host: the Files panel, its search, `@` file search and the file tools go through its shell; a deleted entry moves into `~/.openprogram/trash` on the host. Snapshots, automatic commits, worktrees and the branch pill need the folder on this computer, so they are not offered for it. |
| Never this computer | Refused: an SSH target that resolves to this computer on port 22 (a loopback address on another port is a forwarded virtual machine or container, and is accepted), a screen server or cua-driver that reports this computer's identity, and a loopback address whose screenshot, taken when the machine is added, is this computer's own display. This computer is reached by leaving `device` out. |
| One address, one machine | Two machines may not share one address their method reaches, such as one OSWorld server's URL. |
| Words | Settings → Devices uses the word the model writes in `device`. `openprogram machines` (`list`, `add`, `remove`, `enable`, `disable`, `test`) and the configuration key `machines` keep their names. `add ID [--name NAME] METHOD [KEY=VALUE ...]`; `list --kinds` prints the methods and their settings. Settings → Devices shows one Connection per device: a method picker, then its fields. The project picker says **Open folder on…**. |
| Code | `host/environments` becomes `host/machines`. Connection methods register there (`kinds.py`); the parser, validator, Settings and CLI name no method. |

## Targets

| Call names | Lands on | Listed when |
| --- | --- | --- |
| `type="window"` | application windows of this computer, by element tree, in the background where the driver can | the local driver is supported: macOS, Windows, Linux X11 |
| `type="screen"` | one whole display of this computer; moves the real pointer | the owner has Whole screen (`computer_use.whole_screen`) on, off by default, and the local driver is supported or a Wayland session has the desktop portal |
| `type="browser"` | this conversation's pages in OpenProgram's browser | the browser application is enabled |
| `type="browser", app="chrome"`, `"safari"`, `"firefox"`, … | the user's own browser with their sign-ins | the browser is installed, a Chromium browser with the extension |
| `device="m", type="window"` | application windows on m, run there | m is reached by `openprogram` and switched on |
| `device="m", type="screen"` | the whole screen of m | m is reached by `osworld`, or by `openprogram` and switched on |
| `device="m", type="browser"`, any `app` | OpenProgram's browser or one of the user's browsers on m, run there; its `localhost` is m's | m is reached by `openprogram` and switched on |

A target is listed exactly when an opener offered for the machine's method yields it. An SSH host or Docker machine yields none.

### Rules for the list

| Rule | Detail |
| --- | --- |
| Listed means set up | The list changes when the set-up changes: settings, an installed extension. Capabilities are declared per provider and never probed. A machine that is off stays listed and the call answers `MACHINE_UNREACHABLE:`; one the checks cannot reach says so in its block ([What the model reads](#model-surface)). No network probe delays a turn. |
| A paired computer | Its `window`, `screen` and `browser` are listed while it is switched on, without asking it. Asking would cost a round trip to every paired computer on every turn, often to a laptop that is asleep; and the other computer already refuses precisely, with the targets it does have: a type it lacks, a browser it cannot reach, a screen it keeps off. |
| Names | A configured machine is named by its id; its name is accepted too, without regard to case. `local`, `localhost` and `this computer` as a device mean this computer. |
| Window titles | `title` picks a window by part of its title, or by its `window_id` when it is digits. A title that matches several windows is refused with the candidates and their ids, so a call never lands on a window it did not mean. A tab title that matches several tabs is refused the same way. |
| One route | A surface with its own target is not also operated through the local window that shows it. A provider may claim such windows for the conversation that asks: a Chrome or Edge page whose tab this conversation's connection has attached (a window that does not report its address, as on Linux and Windows, stays with `type="window"`). |
| Claimed windows | `type="window"` keeps the window's own controls, leaves the claimed content out and names the call that reaches it. A machine may name its `viewer`, the local application and window that show the machine. Unclaimed content stays with `type="window"`. |
| `window` or `screen` | `window` is for one application's window. `screen` is for the desktop, menu bar, system dialogs, drags across windows and windows that ignore background input. Both exist on purpose: refusing `screen` inside a window would leave such windows unreachable. |
| `screen` off by default | Off until the owner turns on `computer_use.whole_screen`: until then `local` opens no screen, so `type="screen"` is neither listed nor callable, and a call gets `UNKNOWN_TARGET:` before any approval. |
| Why off | An ordinary task needs one application, and the owner decided the agent is not given the whole screen by default. Codex Computer Use has no whole-screen surface (every call names an app; keys go to that app), so off keeps the same reach and the route stays for tasks that need it. |
| Replacing the local driver | Another driver of this computer's own, such as `cua_driver` for window and screen, would be another opener offered for `local`. The calls, keys and locks stay the same; this computer never gets a second name. |
| Switching off | A machine has an enabled switch. Nothing trims the list automatically. |

## What the model reads

The tool, fixed for the whole conversation:

```
computer_use(device?, type, app?, display?, title?, action?, args?, actions?, code?, timeout?)

Operate application windows, a whole screen or web pages, on this computer or on another device.

Where a call lands
- device: left out for this computer. Another device by its name in <devices>. …
- type="window": an application's windows, read as an element tree. app names the application (without app the call lists the running ones); title picks one of its windows.
- type="screen": a whole display, by pixels; it moves the user's pointer. display picks one, the main one without it.
- type="browser": web pages. Without app, OpenProgram's built-in browser; app="chrome" or app="edge" is the user's own browser with their sign-ins, … title picks a tab.
<devices> lists what can be operated now; anything else is refused.
```

The first `<devices>` note of a conversation:

```
<devices>
What computer_use can operate now, by device:
- this computer (device left out): the user's Mac, where OpenProgram runs; calls may send code.
  - type="window": application windows, read and operated in the background; app names the application.
  - type="browser": OpenProgram's built-in browser, this conversation's pages. Its http://localhost is this computer's.
  - type="browser", app="chrome": the user's own Google Chrome with their sign-ins; only when the user names it or the task needs their sign-in.
- devbox (device="devbox"): SSH host me@devbox; this conversation's shell and files are here.
- studio (device="studio"): another computer running its own OpenProgram.
  - device="studio", type="window": application windows of that computer (it lists its own with list_apps)
  - device="studio", type="screen": its whole screen, when that computer has Whole screen on
  - device="studio", type="browser": OpenProgram's browser there, or with app one of the user's browsers there
- lab (device="lab"): virtual machine, pixels only.
  - device="lab", type="screen": virtual machine, pixels only
A target not listed here is refused. A later message says what changes.
</devices>
```

A later turn, after the user installed the extension in Edge:

```
<devices>
Changed devices, as they are now:
- this computer (device left out): …
  - type="browser", app="edge": the user's own Microsoft Edge with their sign-ins; …
</devices>
```

When studio's checks have failed for 45 s, and again once one succeeds:

```
<devices>
Changed devices, as they are now:
- studio (device="studio"): another computer running its own OpenProgram.
  Cannot be reached right now (last check: ConnectError); calls to it will most likely fail. A later message says when it is back.
  - device="studio", type="window": …
</devices>

<devices>
Changed devices, as they are now:
- studio (device="studio"): another computer running its own OpenProgram.
  Reachable again: calls to it go through.
  - device="studio", type="window": …
</devices>
```

| Part | Rule |
| --- | --- |
| Parameters | `device`, `type`, then what inside: `app` (the application of a window; `chrome` or `edge` for a browser), `display` (a screen), `title` (a window or a tab); then what to do: `action` and `args`, `actions` or `code`, and `timeout`. Only `type` is required. A step inside `actions` may still name its own `tab`. |
| Why `device` may be left out | Leaving it out always means this computer, never the conversation's environment, so the default cannot move with the project: the loop, the App and the user are here, and that is what a user means by "my screen". |
| Why `type` and `app` | The same three types exist on every device, so a type and a device are two independent words and a new device adds no new names. The user's browser is `app`, as in "which application", because that is how the user names it ("in my Chrome"). The operating system is not a parameter: it belongs to the device, and the model reads it in `<devices>`. |
| The definition is fixed | The description and the JSON schema never mention what is set up; there is no enum of targets. A request is sent as tools, then system prompt, then messages, so a definition rewritten when a device connected or a permission changed broke the whole prompt cache. |
| `<devices>` | A section of its own beside the user's message, never in the system prompt (`devices` in `BESIDE_ONLY_SECTIONS`, just before `deferred_catalog`). Grouped by device: this computer, then the others; a device with nothing to operate is listed only when the conversation's shell runs there. Each target line is how the call names it, then what it is, then what permission is missing ("Not usable yet: …"). |
| Whole list, then changes | The whole list when no earlier note is in view: the conversation's first turn and the first turn after a summary. Afterwards only **Added devices**, **Changed devices, as they are now** and **Removed devices**, and nothing when nothing changed. The list each turn saw is kept on its user message, so the next turn compares against what is in view, the same mechanism as the deferred-tool catalog (`catalog_shown`, `catalog_stored` with the list's id). |
| Reachability | Another computer whose connection checks have failed for 45 s with no success between (`status.OFFLINE_AFTER`; two failed checks at least, that far apart) carries a line in its block: unreachable now, the last check's reason (at most 80 characters), calls will likely fail, a later message says when it is back. Its targets stay listed. The first successful check takes the line away, and the next note's **Changed devices** entry says "Reachable again" under its first line. |
| No probe for it | The line comes from what the checks Settings, the sidebar and calls already make (`host/machines/status.py`, `unreachable`); building the note never waits on the network. A failing device whose last check is older than `STALE_AFTER` is checked again behind the answer, one check at a time, so its return is noticed without anyone opening Settings; a device that answers costs nothing. |
| Why debounce | One failed check on a busy network or a laptop waking up would otherwise mark the device offline and back within a turn or two, each a Changed entry the model reads and acts on. The debounce lives in `status.py`, the one place that records checks; the icon beside a device still shows the latest check at once. |
| Turns with their own prompt | A check-in, a verification or an agent started for a task has no earlier note to compare with, so the whole list goes inside its system prompt's capabilities section (`components._build_devices`). |
| A device connected mid-turn | Shows up beside the next user message. A call that names it before then is refused with the targets listed now, as any unknown target is. |
| Guides | A type guide (`window`, `screen`, `browser`) arrives with the first call that operates a target of that type. A target note of a few lines arrives the first time that target is: its machine, operating system, what it lacks, its shortcut keys. |
| Result header | A result from another device starts with how the call names it, `[device="lab", type="screen"]`. In a conversation whose environment is another machine, results from this computer get one too: `[type="window", this computer]`. |
| Missing permission | The target stays listed with a note; the call answers `PERMISSION_MISSING:` with where to grant it. |
| Code | `cu` is the call's target and nothing else, within the subject the call names; it is approved exactly as an action call, and in Bypass each step still meets the owner's deny and ask rules as an action call would. A turn nobody attends, or one that works from text the owner did not write (a handoff, an automatic Goal turn), runs no page script from code. |
| Code on two targets | Work on two targets takes two calls, and the interpreter's variables carry over between them. Each step takes its own locks. |
| `cu` | Its methods are the target's actions (`await cu.click(element=3)`); an attribute named after another target raises with the call to make, naming only targets listed now; one named after its own type raises too, since `cu` already is the target. A step that names another application, window, tab or display answers `BAD_ARGUMENT:`. |
| Hidden | The tool is not offered when no target exists. |

### Errors

| Code | Says |
| --- | --- |
| `UNKNOWN_TARGET:` | the targets listed now, as calls name them; checked before the permission decision, so in every mode it comes before any approval card, review or refusal for want of someone to approve |
| `UNKNOWN_ACTION:` | the nearest action of this type, or the targets on the same device that have it |
| `NOT_SUPPORTED:` | what this target lacks and the step that works instead |
| `BAD_ARGUMENT:` | the action's signature, then the type's shared arguments; a title that matches several windows or tabs, with the candidates |
| `PERMISSION_MISSING:` | which permission, and where to grant it |
| `DEPENDENCY_MISSING:` | what the machine lacks and the line that installs it |
| `MACHINE_UNREACHABLE:` | the reason; only when nothing was sent, as when the machine was switched off or removed after the call found it |
| `OUTCOME_UNKNOWN:` | which steps are done and which was sent without an answer; read the state, do not repeat it |
| `SCREEN_BUSY:` | another agent has held it for 60 s, counted over the whole call; nothing was sent |
| `ELEMENT_GONE:` | the element is no longer there, or was printed by another target; the current state follows |
| `TIMEOUT:` | the steps that took effect, or that nothing was sent; an action call stops after 300 s (`registry.FINISH_SECONDS`); a code step stopped while it waits for a lock (the deadline, a stop, a revoked grant) answers `TIMEOUT: stopped while waiting for <target>: …; nothing was sent` and is recorded as not applied |

`type` and a browser's `app` are matched without regard to case (`Google Chrome` is `chrome`), and a call is never moved to another device or type. A batch result states how many steps are done.

An action of another type answers `UNKNOWN_ACTION:` with the targets that have it; one of the target's type that it lacks answers `NOT_SUPPORTED:` with the other targets of the same device that have it.

`open` and `close` never point to another target: each type reads them as an operation of its own, and where the target lacks them, `UNKNOWN_ACTION:` gives the nearest action and the target's own.

On a screen over OSWorld a batch is checked whole before its first step is sent: one bad argument answers `BAD_ARGUMENT: step N (action): …` and nothing is sent; a `get_state` step in it counts as done, since the screen is read after the steps.

## Actions

| Action | Arguments | Also written |
| --- | --- | --- |
| `get_state` | `include=all\|tree\|screenshot`, `full=false` | `screenshot`, `get_app_state`, `read`, `snapshot`, `read_page` |
| `click` | `element` or `x,y`; `mouse_button`; `click_count`; `modifiers`; `seconds` | `left_click`, `tap`, `double_click`, `right_click`, `long_press` |
| `type_text` | `text`; `element?`; `clear=false`; `submit=false` | `type`, `write`, `input_text` |
| `press_key` | `key`; `element?`; `seconds?` | `press`, `key`, `keypress`, `hotkey` |
| `scroll` | `element` or `x,y`; `direction`; `pages=1` or `pixels` | `scroll_at` |
| `drag` | `element` or `x,y`; `to_element` or `to_x,to_y`; `seconds?` | `left_click_drag`, `drag_and_drop` |
| `hover` | `element` or `x,y`; `seconds=0.8` | `move`, `mouse_move` |
| `wait` | `seconds=1`; `text?` | `sleep` |
| `find`, `set_value` | with a tree: `find(text?, role?)`, `set_value(element, value)` | `fill`, `select`, `select_option` |

| Type | Shared arguments | Extra actions |
| --- | --- | --- |
| window | `app`, `window`, `window_id` | `list_apps`, `list_windows`, `zoom`, `focus`, `show_window`, `menu`, `paste`, `copy`, `select_text`, `perform_secondary_action`, `open_file`, `start_audio_recording`, `stop_audio_recording` |
| screen | `display` | `list_displays`, `zoom`, `paste` |
| browser | `tab` | `list_tabs`, `create_tab`, `close_tab`, `navigate`, `back`, `forward`, `reload`, `paste`, `upload_file`, `evaluate`, `read_console_messages`, `read_network_requests`; built-in only: `list_panes`, `start_video_recording`, `stop_video_recording` |
| mobile (not built) | `app` | `list_apps`, `close_app`, `open_url`, `press_button`, `swipe`, `pinch`, `rotate` |

A call's `app`, `title` and `display` become these shared arguments for every step: `title` is `window`, or `window_id` when it is digits, on a window and `tab` on a browser.

### Rules for actions

| Rule | Detail |
| --- | --- |
| Gating | A core action needs the input capability the provider declares (`pointer`, `hover`, `keyboard`); `find` and `set_value` need `tree`. A missing one answers `NOT_SUPPORTED:` with the step that works. |
| Element | `element` takes what the state printed: a number in a tree, a `ref` such as `e12` or `f1e3` on a page. An id is valid only on the target that printed it. Pages also accept `role` and `name`. |
| Typing | `type_text` inserts on every surface. `clear` empties the field first (`set_value` with `""` where the field takes it, else select all and BackSpace) and `submit` presses Return after; when that key fails, the text counts as done and the result gives the error and the state. `set_value` replaces a field's value. |
| Waiting | `wait` with `text` reads the state until the text shows, up to `seconds` or 10 s; text that never shows is not an error. On a window it also reads the text of the window's screenshot, for a window with little tree. |
| Keys | xdotool spelling: `Return`, `Escape`, `ctrl+shift+Tab`. `super` is Command on macOS and the Windows key elsewhere. Other spellings are normalized, and a name that is no key answers `BAD_ARGUMENT:`; browser providers translate to their own names. Shortcuts are in the target note, never in a type guide. |
| Tabs | `tab` is a stable id on every browser target. `list_tabs` prints it and every result names the tab it acted on. A step with `tab` selects that tab first; a step without it acts on the tab this agent last used on that target, and once that tab is gone answers `BAD_ARGUMENT:` naming it, sending nothing. A number or an unknown id answers `BAD_ARGUMENT:` with the open tabs. |
| User browser tabs | In the user's Chrome and Edge the id is made here (`t` and a hash), follows its page when the extension connects again, and an agent that has chosen no tab, or closed its last one with `close_tab`, acts on the one the extension has selected. `close_tab` closes only a tab the step names. `read_console_messages` with `pattern` or `limit` and `read_network_requests` with `only_errors` or `limit` answer `NOT_SUPPORTED:`. |
| User browser tab gone | When another agent closes this agent's tab, its next step without `tab` answers `BAD_ARGUMENT:` naming it. `list_tabs` marks as current the tab a step would act on; once the agent's tab is gone it says so, asks for `tab` on every step and marks none. An extension left with no attached tab while a tab is chosen or listed answers `MACHINE_UNREACHABLE:` with nothing sent, and `OUTCOME_UNKNOWN:` right after `create_tab`. |
| Mobile (not built) | `click` is a tap. `scroll` keeps its meaning: show what lies further that way. `swipe` takes two points. `press_button` takes a name the provider declares; `home`, `back` and volume keys given to `press_key` go there. |
| Applications | `app` names an application on a window. Without it the call lists the running applications; `get_state` with it opens the application if it is closed. `open`, `open_app` and `launch_app` are carried-over names for that. |
| Types | A new kind joins a type and touches only its module. A new type, for a device with neither pointer nor touch, adds one table to `actions/vocabulary.py`, one guide and one value of `type`. An Android television would be `mobile` with pointer input narrowed off. |
| Displays | `display` is the operating system's display id, as `list_displays` prints it; without it, the main display. A screenshot is at most 1568 pixels on its long side, and x,y are pixels of the last one of that display. |
| Paths | A path in `upload_file` or `open_file` is on the target's machine. |
| Carried-over names | Rewritten inside the target's type. A rewrite sets the argument it implies (`double_click` sets `click_count=2`) and never drops items: a list of keys becomes one chord. `actions/vocabulary.py` holds the whole table. |
| Carried-over arguments | Rewritten too: `click`'s `text` or `key` becomes `modifiers` when it is empty or names modifiers only, and any other text answers `BAD_ARGUMENT:` with `click`'s signature; `scroll_amount` becomes `pixels` at 100 per wheel click; `zoom`'s `region=[x0,y0,x1,y1]` of four finite numbers or numeric strings becomes x, y, width, height, and any other corner, a boolean, NaN or infinity included, answers `BAD_ARGUMENT: region is [x0, y0, x1, y1] in screenshot pixels.` |

## The contract

| A method declares (`kinds.Kind`) | Meaning |
| --- | --- |
| `name`, `label` | its name in configuration and what a person calls it |
| `settings` | a JSON Schema of the connection object; a property may be marked secret |
| `check`, `where`, `address`, `admit` | one round trip that says whether it answers; what tells two connections apart; the screen address two machines may not share; the refusal of a connection that reaches this computer |
| `discover()` | optional: machines found without configuration |

| `computer_use` offers | Meaning |
| --- | --- |
| `registry.offer(method, opener)` | `opener(machine, conversation)` returns the providers it yields on a machine of that method; several modules may offer for one method (`local`: `desktop`, `built_in_browser`) |
| `capabilities` | what a provider gives, declared and never probed |

| A provider has | Meaning |
| --- | --- |
| `family` (the type), `machine`, `app` | how a call names it (`address()`), its key (`target`) and its vocabulary |
| `describe()` | local, no prompt, no network: its line in `<devices>` and what permission is missing |
| `note()`, `extra_actions()` | the target note; its own actions and button names |
| `list(kind, args, call)` | applications, windows, tabs, displays |
| `get_state(subject, options, call)` | the state text and an optional screenshot |
| `act(subject, steps, call)` | steps in order, stopping at the first failure, never repeating a sent step |
| `approval(subject, steps)` | the subject shown and the rule key, or nothing |
| `authority(steps, code)`, `system_access(subject, steps)`, `runs_page_script(steps)` | the permission class, the operating-system grant needed, whether page code runs |
| `lock(subject, steps)` | shared and exclusive lock keys |
| `resource(subject)` | the Resources row and its ownership; none for a subject the call creates |
| `created(conversation)` | the created rows it owns, read from its own store |
| `claims(window, conversation)` | optional: a local window that shows this target to that conversation |
| `environment_note(machine, targets)` | optional: what its line in `<devices>` adds when the conversation's shell runs on another machine |
| `state_scope` | `agent` or `conversation` |
| `frames(subject)` | optional live view, only from a push source |
| `close(call)` | the agent or conversation ended |

`call` carries the agent, a deadline and `cancelled()`. A provider checks it between steps and answers `TIMEOUT:` at the deadline. No module outside `providers/` names a target: `tool.py`, the permission rules, the authority table and system access ask the provider.

### Capabilities

| Group | Capabilities |
| --- | --- |
| Reading | `pixels`, `tree`, `windows`, `displays`, `frames` |
| Input | `pointer`, `hover`, `keyboard`, `buttons`, `multitouch`, `clipboard` |
| Subject | `background`, `launch`, `tabs`, `script`, `upload`, `audio`, `video` |

What a call may use is the declared set narrowed by policy: refused applications and a per-machine list. Policy only narrows.

### Outside the contract

| Outside | Where it lives |
| --- | --- |
| Shell and files | the shell feature (`host.backend.SHELLS`) and the file tools |
| Moving files between machines | not provided |
| Sensors and personal data | not provided |
| Creating, starting or stopping machines | the user; only an instance of a shell scoped to the conversation is created (Docker today) |
| Showing it in the App | Resources and the preview, from what providers report |
| An MCP server added as ordinary tools | not computer use: no lock, no Resources row, no shared vocabulary |

### Configuration

```
"machines": {
  "items": [
    {"id": "devbox", "name": "Dev box",
     "connection": {"kind": "ssh", "target": "me@devbox", "workdir": "/srv/app"}},
    {"id": "builder", "name": "Builder",
     "connection": {"kind": "docker", "image": "me/desktop:24.04"}},
    {"id": "lab", "name": "Lab VM",
     "connection": {"kind": "osworld", "url": "http://192.168.64.2:5000"}},
    {"id": "studio", "name": "Studio", "enabled": true,
     "connection": {"kind": "openprogram", "url": "http://192.168.1.20:18100",
                    "token": {"secret": true}}}
  ]
}
```

This computer is not in the list. A secret is stored in `auth/machines/<id>.json` under the state directory, out of sandboxed commands' reach; the configuration keeps a marker. A connection may set `via` to a machine with a shell: its address is then reached through that shell. `computer_use.refused_apps`, `refuse_password_fields` and `chrome_extension_token` stay where they are.

## State, locks and approval

| State | Key |
| --- | --- |
| Element ids, the last screenshot | agent and target |
| Browser tabs | machine instance and conversation; each agent's current tab stays inside the tab driver |

| Type | Shared | Exclusive |
| --- | --- | --- |
| `window`: steps delivered in the background | machine | the application |
| `window`: steps that may need the real pointer or the foreground (X11, Windows) | none | machine |
| `screen` | none | machine |
| `browser`, OpenProgram's own | none: pages are driven in the background, so screen and window calls do not wait for them | a tab the call names; the tab driver holds the agent's current tab itself |
| `browser` with `app="chrome"` or `"edge"` | none | the whole browser, on every call, so a second call to it from any conversation or process waits |

| Rule | Detail |
| --- | --- |
| Pointer or foreground | Decided per platform before any step runs, by action: the driver picks foreground delivery while the step runs, so every action that has such a path holds the machine, an element step included. macOS: no step. X11: `click`, `scroll`, `press_key`, `type_text`, `hover`, `drag`. Windows: `click`, `drag`, `press_key`, `type_text`, `paste`, and `focus`, since UI Automation's SetFocus can bring the window to the front; `scroll` and `hover` are posted messages. Lists take no lock. |
| Order | First come, first served across processes: a waiting request, shared or exclusive, goes before every later one, also one queued behind another request of its own process. From its arrival each waiting request holds a ticket file `q-*` in the key's folder, and goes to the gate only when no earlier ticket of another process is still held. A call's waits share one 60 s deadline; after it the call answers `SCREEN_BUSY:`. |
| Reach | Locks are files under the state directory, so they hold across the worker's processes. A call holds the locks of its target's machine, and of a local window it drives: a simulator operated through the Simulator window also takes that window's locks. |
| Window and screen | The locks follow the step: the only thing a window and a screen call on one machine contend for is the physical pointer. |
| Unknown system | Until a machine's screen server has described its operating system, pointer and key steps on its windows take the machine exclusively. |
| Cancelling | A cancelled remote call keeps its lock until the machine answers or 10 s pass. |

| Call | Asked once | Rule key |
| --- | --- | --- |
| `type="window"` | `computer_use controls <application>`; `list_apps` asks nothing | `window <application>`, the application's display name, read by an exact match that launches nothing and is kept 5 s: on macOS for any exact spelling (display name, file name, bundle id, `.app` path, the name it runs under, `pid:N` while it runs), running or not; on Linux for a desktop id, entry name, executable or pid; on Windows a pid or exe gives the exe's file name without `.exe`. Any other name, part of a name included, stays as written. |
| `type="screen"` | `computer_use controls the whole screen of this computer`; `list_displays` asks nothing | `screen` |
| `type="browser", app="chrome"` | `computer_use controls your Google Chrome` | `browser chrome`, `browser edge` |
| `type="browser"` | nothing where the conversation has Pages, except `upload_file`, which the Pages grant never covers: Ask and Plan ask and Auto reviews it, each time; without Pages the mode decides | none |
| a call with `device` on another computer's OpenProgram | once per target, as on this computer (`computer_use controls safari on Studio`); listing calls ask nothing | `<device> <type>` plus the application or browser: `studio window safari`, `studio screen`, `studio browser chrome` |
| any other call with `device` | nothing: setting the machine up is the consent. A call that does not resolve answers `UNKNOWN_TARGET:` before the decision; one that stops resolving between that check and the decision goes through the mode (Ask and Plan ask, Auto reviews) | `<device> <type>` (`lab screen`), so the user's own rules can match one device or all of them |

A rule key whose application name contains `*`, `?` or `[`, or ends in `:*`, is never saved: such a call is allowed once only.

The `screen` grant is the per-surface grant on the surface that contains every application; without it `screen` would pass each application's grant. Destructive steps stay with the confirm paragraph of the description. `screen` shares the operating-system grant of `window`, `computer_use:desktop`. A user browser needs `process.exec` authority, so a speaker allowed only `browser.control` does not get it.

| Step on `screen` | Refused when |
| --- | --- |
| Pointer | a point lies on a refused application or on a window of OpenProgram; a drag is judged at both ends, a scroll without x,y where the pointer is |
| Key or text | the front application is refused or is OpenProgram, the focused field is a password field while `computer_use.refuse_password_fields` is on, or secure keyboard entry is on |
| Screenshot | never; refused applications and OpenProgram's windows are left out of it |
| In Bypass mode | OpenProgram's windows are shown and may be operated; refused applications stay out |

## Reaching another machine

| Provider | Offered for | Reached through | Gives |
| --- | --- | --- | --- |
| `paired` | method `openprogram`: `window`, `screen`, `browser` | the other Worker's `POST /api/computer-use/call`, with the pairing credential | whatever that computer gives |
| `osworld` | method `osworld`: `screen` | HTTP: `GET /screenshot`, `POST /execute` | pixels |
| `vnc` | a method of its own: `screen` | the remote framebuffer protocol, from the worker | pixels, clipboard, live frames |
| `screen_server` | methods `ssh`, `docker`: `window`, `screen` | OpenProgram's driver inside the machine, speaking MCP over the machine's shell, or over HTTP with a token | tree, pixels, windows, background input, displays, launch, live frames |
| `cua_driver` | `local` or a method of its own: `window`, `screen` | the cua-driver MCP server, through one adapter | tree, pixels, windows, background input |
| `android` | a method of its own: `mobile` | `adb` from the worker | tree, pixels, launch, buttons |
| `ios_simulator` | a method of its own: `mobile` | `xcrun simctl`; input and tree through `idb`, else through the local driver on the Simulator window | pixels, launch, buttons; a tree when one of the two gives it |
| `chromium` | method `ssh`: `browser` | Chromium started over the machine's shell with a fresh profile per conversation; its debugging port reaches the worker through a relay on that shell | tabs, tree, pixels, script, upload |
| `wayland_portal` | `local`: `screen` | the desktop portal of a local Wayland session, with its own consent dialog | pixels |

### Another computer's OpenProgram

| Part | Decision |
| --- | --- |
| Sending | The call is not checked or run here. Its `type`, `app`, `display`, `title`, `action`, `args`, `actions`, `code` and `timeout`, never `device`, go with the pairing's Bearer token to `POST /api/computer-use/call`, each pairing address in turn, 6 s to connect to each. The answer is `{text, images, is_error}`, images in base64; this side puts `[device="studio", type="window"]` in front. |
| Receiving | Runs `computer_use` on that computer only: the device is forced to that computer and never hops on. Its own settings apply: the whole screen stays off unless turned on there, its operating-system permissions are its own, and its `tools.permission_rules` for `computer_use` are read there: a deny rule refuses, and an ask rule refuses too, since nobody there is asked. |
| The switch | Let paired devices operate this computer (`computer_use.paired_devices`, off by default), in Settings → Devices → This computer on the receiving computer. While off, the endpoint answers 403 `paired_devices_off` and the sender gets `PERMISSION_MISSING:` naming where to turn it on. |
| Other answers | A device whose checks have failed for 45 s (the same state that puts the line in `<devices>`) is answered at once, nothing sent, and checked again behind the answer unless a check is running or is under 10 s old (`RECHECK_AFTER`). A device that has only just failed is still tried, so a lost packet turns no call away. 401: this computer was revoked there; pair again. 404: the OpenProgram there is older; update it. |
| Asking | This side asks its user once per target, with a rule key naming the device ([State, locks and approval](#state-locks-approval)). |

### The screen server

| Part | Decision |
| --- | --- |
| Protocol | MCP tools `screen_describe`, `screen_list`, `screen_get_state`, `screen_act`; notifications `screen/report` (the fields of `native.action`, `native.window`, `native.control`) and `screen/frame`. A server someone else wrote that speaks them plugs in with configuration only. |
| Policy | Sent with every list, state and act call; the server stores none. Element ids are kept per agent. |
| Code | All of `computer_use/desktop/` moves to `host/desktop/`. The drivers take a policy object (refused applications, password fields, permission mode, cancellation, recordings directory) and a reporter (`action`, `control`, `window`) in place of their runtime and Resources imports. The Linux and Windows drivers, which report nothing today, call it at the same points as macOS. |
| Shipping | A zipapp of that code without the embedding part. Over a shell it is piped to the machine's cache directory on first use and started there; a new digest is sent again. For a server reached by address, `machines add` writes the zipapp, a token and the start command for the user to copy; an old one answers `DEPENDENCY_MISSING:`. |
| Finding the session | On Linux it uses the configured display, else the environment of the user's graphical session. No X session answers `DEPENDENCY_MISSING:`; a Wayland session answers `NOT_SUPPORTED:`; without an accessibility service its window type answers `DEPENDENCY_MISSING:` and its screen works by pixels. |
| Process | One per machine instance in each worker process, closed after five idle minutes, shared by the machine's window and screen; the file locks keep the processes apart. It installs nothing. |

## Showing it

| Row | Kind | Ownership |
| --- | --- | --- |
| a page of OpenProgram's browser, with the device's name when it is on another device | `web` | created: listed until closed |
| a local application window, a user browser, the local whole screen | `desktop` | shared: listed while a call operates it |
| a window or screen of another device | `machine` | shared: while operated |
| a conversation's own machine instance | `machine` | created: until the conversation is deleted |

| Part | Rule |
| --- | --- |
| Created rows | Come from `created()` of the provider that owns them, so they survive a worker restart. Operating a conversation's own instance marks its row in use; it does not add a second row. |
| Preview | For another machine: the last screenshot a call returned, and live frames where the provider pushes them. The agent cursor is drawn by the App over that frame. |
| Embedding | Only local windows are embedded in a tab. A window handed over with `@` names its application and `window_id`. |

## Cases, one way each

| Case | The one way |
| --- | --- |
| A button in a local application | `computer_use(type="window", app="Calculator", action="click", args={"element": 12})` |
| One of several windows | `action="list_windows"` with `app`, then `title` set to the window's id |
| A page in the built-in browser | `type="browser"`: `create_tab` with `url`, then `click` with `element` |
| A page in the user's Chrome | `type="browser", app="chrome"`: `list_tabs`, then `click` with `title` set to the tab's id and `element` |
| A virtual machine with an OSWorld server | machine `lab` reached by `osworld`: `device="lab", type="screen"`, `click` with `x`, `y` |
| The same machine with the screen server | reached by `ssh` instead, the screen server offered for it: `device="lab", type="window"`, and `type="screen"` from the same server process. A machine has one method, so its screen is either the OSWorld server or the screen server, never both. |
| An application on another Mac | machine `studio`, paired, with Let paired devices operate this computer on there: `device="studio", type="window", app="Safari"`, run on studio |
| A remote Windows desktop | a VNC server there: `device="office-pc", type="screen"`. With the screen server instead, it is the row above. |
| A web app on an SSH host's `localhost` | `device="devbox", type="browser"`: `create_tab` with `http://localhost:3000` |
| A desktop in a Docker container | machine `builder`: `device="builder", type="window"`, in this conversation's instance |
| Commands on an SSH host, a click here | `bash` runs on the host; a call without `device` acts on this computer |
| Two virtual machines | `device="lab"` and `device="lab-2"`, both `type="screen"` |
| Someone else's computer-use server | a provider of its own (`cua_driver`), or `screen_server` when it speaks that protocol. On this computer it is offered for `local` in place of the local driver, and the calls stay the same. |
| A window handed over with `@` | `type="window"` with the application and the `window_id` the mention gives, as `title` |
| A worker with no desktop | the built-in browser runs windowless; `window` and `screen` are not listed |
| The whole screen or a second display | `type="screen"`: `list_displays`, then `display` |
| Agents in parallel | On different applications: together, each with its own element ids; on X11 and Windows, steps that need the pointer or the foreground take turns. On one virtual machine: one at a time; the second waits up to 60 s. |
| A phone or simulator | Not built: it would be a device with `type="mobile"`. Today an iPhone is reached through the iPhone Mirroring window, `type="window"`, by pixels. |
| A local Wayland session | `type="screen"` through the desktop portal, by pixels; `window` is not listed |

## Decisions and what they follow

| Decision | Follows | Because |
| --- | --- | --- |
| The project decides the machine | Codex binds a remote project to a host: the project is opened on an SSH host and its threads run there | where a conversation runs follows from where its files are; a per-conversation choice could send commands to a machine that does not have the folder |
| No default environment | the same; Codex has no default host either | a default is what lands a new conversation on the wrong computer; the home project is this computer |
| Machine first, then folder | Codex's remote project flow: choose the host, then the folder on it | the folder picker can only show the chosen machine's folders |
| Hide what cannot work on a host | the owner's rule: no error pages | snapshots and worktrees run on this computer's disk; offering them for a host's folder would only fail |
| A device says how it is reached; each feature decides what it does with each method | the owner's decision | connections per capability (shell, window, screen, browser) mixed two questions, how to reach a machine and what to do there, and allowed contradictions: an SSH shell and an OSWorld screen on one device, this computer's connections edited by hand. One connection makes every device one thing, keeps the device layer free of feature knowledge, and lets a new feature (operating a paired computer) add a mapping without touching devices |
| Machine and screen on one record | cua `Sandbox`, Claude remote devices, E2B desktop | one identity for the machine that runs commands and is clicked on |
| The device is named in each call | OpenClaw (`node` per call, refuses to guess). Anthropic's computer-use tool and OpenAI's `computer_use_preview` put the display or environment in the tool definition, one tool per screen; Claude in Chrome selects a browser with list and select tools | a definition per screen changes the tools whenever a screen comes or goes, and a selected browser is state a later call cannot see; a call that names its device stands alone |
| What can be operated goes in a message | Claude Code's deferred-tool delta: the catalog sent whole once, then what was added and removed | tools come first in a request, so any change to a tool definition re-reads the whole prompt; a note beside the user's message changes only the end |
| No device is this computer | the product's scope; no reference splits shell and screen across machines, so this is a deliberate departure | the loop, the App and the user are here; a meaning that follows the conversation would break the first rule |
| `type` instead of a target string | Codex Computer Use, where every call names an app | three types on every device; a string per device and surface (`screen:lab`) multiplied names and had to be parsed |
| One tool | Gemini's single tool for browser, desktop and mobile | a tool per surface is what gives Claude its browser tools twice |
| Core action names | Codex `sky`, cua-driver | Codex is the one reference with one interface over windows and tabs |
| `get_state`, `element` | neither reference: Codex and Claude use a name per surface | one table now serves trees and pages; both spellings are rewritten |
| The user's browser is named by `app` | Claude Code: separate tool sets for its browser and Chrome | a target of its own, with its own lock and rule key; the user says "in my Chrome", and `app` is the word for which application |
| No `app` is OpenProgram's browser | Claude's desktop app calls its own the "built-in browser" | it works in every conversation without the user's sign-ins, so it is the safe default; Chrome as an application stays `type="window", app="Google Chrome"` |
| The operating system is not a parameter | Anthropic's and OpenAI's tools, which describe the environment rather than ask for it | it is a fact of the device; `<devices>` says it once |
| `mobile` in the same tool, `click` kept | Gemini mobile; names from Claude's simulator tool and cua | one name works on every screen |
| Browser extras | `create_tab`: Codex and Claude agree; console and network names: Claude | names models already carry |
| Listed means set up | the old `vm` availability | no probe per turn |
| No approval for a set-up machine | the owner's rule: fewer prompts | adding it is the consent |
| A paired computer is asked like this one | this computer's own window, screen and browser grants | it is a real computer with someone's applications and sign-ins; the other side asks nobody, so the question is asked here, once per target |
| A paired computer's types listed without asking it | listed means set up | a round trip to every paired computer each turn, often to a sleeping laptop, would delay turns; the other computer refuses precisely with the targets it has |
| Operating another computer is off there by default | Whole screen off by default | pairing lets that computer's conversations be used from here; being operated is a further step its owner takes there |
| A phone must be added | the same rule | a phone plugged in to charge is never operable by accident |
| Whole-screen grant | Claude asks once for its screen access | the surface that contains every application |
| Permission state and error codes as text | OpenClaw | the model can tell the user what to grant |
| Declared and effective capabilities | OpenClaw | a provider cannot widen itself |
| The screen server speaks MCP | OpenClaw registers cua-driver as an MCP server | our own server and outside servers share one door |
| The worker reaches every machine | the product's scope | devices that dial in solve a network this product does not have |
| Only the screen server on SSH and Docker desktops | one route per type on a machine | a shell path by pixels would be a second route, and command output is text |

## Not provided

| Not provided | Why |
| --- | --- |
| An SSH host or Docker machine as a target | `computer_use` offers nothing for `ssh` and `docker` until the screen server; such a machine is an environment |
| RDP | no reference has a client; a Windows desktop is reached by VNC or the screen server |
| Devices that dial in | the worker reaches every machine; another OpenProgram is paired and reached at its addresses |
| A physical iPhone | it needs a signed test agent on the phone; no kind yet |
| Remote Wayland sessions; XWayland by tree | no input path without the portal's dialog |
| Simulators of watchOS, tvOS, visionOS | no vocabulary for them |
| Several tools, a tool per device, the environment as default | the three rules |
| Old configuration and old call shapes | no version before 2.0 is kept working: a call with `target` is refused like any unknown argument |

## Not verified

| Unknown | If it goes badly |
| --- | --- |
| `idb` on current Xcode; whether the Simulator window exposes device elements | the simulator is operated by pixels |
| Whether iPhone Mirroring exposes elements | pixels |
| Finding a live X session over SSH on GNOME and KDE | the display is set in the machine's settings |
| Starting the screen server in a Windows session from afar | the user starts it there; Python and comtypes must be present |
| Relay throughput for a remote browser | a browser on another device is slower; nothing else depends on it |
| Which VNC client library; the Wayland portal's saved consent per compositor | the method ships later; the dialog shows again |
| A model facing more than about eight machines | machines are switched off in Settings |
| One tab driver per machine | the remote browser gets a driver process of its own |

## Implementation status

| State | Scope |
| --- | --- |
| Implemented: the tool | Under `openprogram/programs/tools/computer_use/computer_use/`, one way down from the tool through routing to the providers and the platform backends: the tool, its fixed description and schema (`tool.py`), `devices()` and `devices_note()` (`devices.py`), guide and note delivery (`type_guides.py`), the contract (`contract.py`), the registry and call resolution, one path for steps and the locks (`routing/`), the vocabulary (`actions/`, `errors.py`), the guides `guides/window.md`, `screen.md`, `browser.md`, `code.md`, code mode (`code_mode/`), and the backends, one package per platform (`desktop/`). |
| Implemented: `<devices>` | The section `devices` in `runtime/context/prompt_assembly/turn_context.py` (`BESIDE_ONLY_SECTIONS`, `LISTS`), filled by `_devices` in `runtime/conversation/turn_runtime/loop_runner.py`; the whole list in a prompt of its own by `components._build_devices`. |
| Implemented: providers | `providers/window/` (window), `providers/screen/local.py` (screen on macOS, off until `computer_use.whole_screen`), `providers/browser/` (Chrome and Edge with stable tab ids; the one-route rule through `registry.claim`), `providers/screen/osworld.py` (a virtual machine's screen, and the method `osworld`), `providers/paired.py` (another computer's OpenProgram, both sides, with the endpoint `POST /api/computer-use/call`). |
| Implemented: machines | `openprogram/host/machines/` (the registry, `kinds.py`, `check.py`, `peer.py`, `remote.py`, `here.py`, `status.py`) with the methods `local`, `ssh`, `docker`, `openprogram` and `osworld`; one connection per device; secrets under `auth/machines/` by setting name; removing or switching off a machine (`registry.release`, `registry.operating`); projects on machines, the grouped picker, **Open folder on…**, the Files panel on a host; Settings → Devices and `openprogram machines`. |
| Implemented: migration | Once at Worker start (`operations/migrations/machines_one_connection.py`): a stored device keeps its `openprogram`, else its shell, else a screen, window or browser that reaches a machine of its own; this computer's own entries and devices left with nothing are dropped. |
| Not implemented: device kinds | The screen server (a window and screen on an SSH or Docker machine), a browser on another device and its relay, Android phones over `adb`, iOS simulators over `simctl` and the `mobile` type, `vnc`, `cua_driver`, `wayland_portal`, `via` (a connection reached through another machine's SSH), and live frames. |
| Not implemented: elsewhere | `screen` on Linux and Windows, where no driver yet leaves refused windows out of a whole-display capture. `ELEMENT_GONE:` for a page ref printed by another target. A missing operating-system grant still pauses an attended call in the system-access wait (see [Computer use](https://fzkuji.github.io/OpenProgram/docs/capabilities/computer-use.html)); only a call nobody can answer returns `PERMISSION_MISSING:`. |
| Not implemented: machines and showing | Policy narrowing by a per-machine list; replacing the local driver. Nothing calls `created()` or `frames()`: Resources lists pages from the browser application, lists no row for a conversation's own instance, and has no preview of another machine. |

[Computer and browser use](https://fzkuji.github.io/OpenProgram/docs/reference/design/integrations/computer-use/computer-and-browser-use.html)
