"My desktop" can mean three places:
~/Desktop (= /drives/me). Kortix mounts it astheir desktop in every session. It holds files: the user sees them in
Files, and they last (the kortix-drives skill).
the user watches live in the session's Desktop panel. A program runs
there: install it, then open it on display :1 so the window shows
(/MACHINE.md → Desktop).
connector.
Pick by what they ask for:
~/Desktop.kortix connectors accounts computer first. No computer connected:
install it on your session desktop, open it, and say in one line that it
is in the Desktop panel and that connecting their computer puts it
there instead. A computer connected and online: ask once which they mean,
naming both.
~/… or /Users/…: their computer.Software for their computer must match its platform (status → platform).
A Linux package on your session desktop is not on their computer, and an
installer file in ~/Desktop is not installed anywhere.
A member connects their own computer to Kortix (desktop app, ornpx @kortix/agent-tunnel connect). Each connected computer is one
account of the workspace's computer connector — exactly like one Gmail
mailbox is one account of the Gmail connector. You reach it with the normal
connector path (kortix connectors accounts → show → call); there is no
token and no tunnel client in the sandbox. The live connection is the
credential, resolved server-side.
every workspace they belong to, reachable only in their own private sessions.
the workspace, including unattended runs (triggers, schedules, Slack).
prompt on their screen, allowed for up to 24 hours; the default for a
computer connected in the desktop app), Always allowed (the default for a
computer connected with the CLI alone, which has no app to show a prompt),
or Off. You cannot change this from the sandbox.
Tools on the computer connector:
status — call it first. The selected computer's name, online,platform, capabilities, home_dir, allowed_paths, and access
({ mode, granted_until }: ask, always, or off; null on older
agents). File tools only work inside allowed_paths (by default the user's
home folder); start there, never at / or /Users. With mode: 'off', stop
and tell the human. With mode: 'ask' and no current granted_until, your
first call shows them a prompt; say so before you make it.
fs.read / fs.write / fs.list / fs.stat / fs.deleteshell.exec (stdout / stderr / exitCode)desktop.cua.list_windows / get_window_state (onewindow's screenshot plus its elements) / get_desktop_state (the whole
screen) / click / double_click / right_click / type_text /press_key / hotkey / scroll / drag / set_value / launch_app /list_apps / get_screen_size / health_report, plus desktop.cua.call
for any other driver tool (desktop.cua.list_tools lists them)
This is for a connected, external computer — not this sandbox.
1. List the computers you can reach. Each account label is a machine name.
kortix connectors accounts computer
The slug is computer in most workspaces. An older workspace may use another
slug for its computer connector; kortix connectors ls shows it.
If there is no account, no computer is connected yet. This sandbox cannot see
the user's disk, so never guess at a local path or pretend to read it. Say so
in one line and tell the human how to connect it:
bottom of the workspace sidebar. One click; macOS then asks for the
permissions it needs.
workspace sidebar, then install the desktop app or run the command it shows
(npx @kortix/agent-tunnel@latest connect) on that computer.
Then ask them to tell you when it is connected, and continue from step 2.
There is no feature flag to turn on, and nothing to set up per workspace. For a
single file, uploading it into the chat is the faster path; offer both.
2. Check the machine before real work. Read online and access.
kortix connectors call computer status '{}' --account "Studio Mac"
3. Call a tool on the machine you mean. Pass --account "<name>" (orme for your own default). With one reachable computer you may omit it.
kortix connectors call computer fs.read '{"path":"/Users/me/notes.md"}' --account "Studio Mac"
kortix connectors call computer shell.exec '{"command":"git","args":["status"],"cwd":"/Users/me/proj"}' --account "Studio Mac"
kortix connectors show computer.<action> prints a tool's input schema.
4. Drive an app: find it, look at it, act on an element, look again.
Desktop tools act on one app (pid) and window (window_id), in the
background, without taking over the screen.
kortix connectors call computer desktop.cua.list_windows '{"on_screen_only":true}' --account "Studio Mac"
# → pick the window: its pid and window_id
kortix connectors call computer desktop.cua.get_window_state '{"pid":4242,"window_id":17}' --account "Studio Mac"
# → screenshot + elements, each with an element_token
kortix connectors call computer desktop.cua.click '{"pid":4242,"element_token":"<token>"}' --account "Studio Mac"
kortix connectors call computer desktop.cua.type_text '{"pid":4242,"text":"hello"}' --account "Studio Mac"
kortix connectors call computer desktop.cua.hotkey '{"pid":4242,"keys":["cmd","s"]}' --account "Studio Mac"
Prefer element_token over pixel x/y. A key, chord, or text without apid goes to the frontmost app only with "scope":"desktop". Check the
result with get_window_state again: a keystroke is never verified by the
driver itself. When desktop calls fail for no clear reason, calldesktop.cua.health_report and report its failing checks.
Treat these as real outcomes; do not retry blind:
account_required — several computers are reachable and none was named orpinned. Ask which one, then pass --account.
account_not_found — --account (or a legacy computer argument) names noreachable computer. Use a label from kortix connectors accounts computer.
computer_access_pending — the owner has not answered the access prompt ontheir computer yet. Tell them: **"Allow Kortix on your computer (the prompt
on your screen), then tell me to continue."** Retry once, after they confirm.
Never loop-retry.
computer_access_denied — the owner chose Deny. Do not retry; the prompt isheld back for 10 minutes. Ask them to allow it from the Kortix menu-bar icon
or the "Your computer" menu, then continue when they say so.
computer_access_off — the owner turned access off on the computer. Tellthem; only they can turn it back on ("Your computer" → Access in Kortix, ornpx @kortix/agent-tunnel@latest access ask on that computer). Do not retry.
computer_offline — the machine is paired but not connected. Ask the humanto wake it or resume access in the Kortix desktop app.
computer_unpaired — the account's machine was disconnected. The human mustconnect the computer again.
computer_capability_not_approved — the human approved this computerwithout that capability (filesystem, shell, or desktop). They must connect
the computer again and select it.
computer_desktop_permission_missing — macOS has not given KortixAccessibility or Screen Recording on that computer, so it cannot see or
use apps. Tell the human: **"Open the Kortix app → Your computer → Allow
all."** Retry once after they confirm; Kortix applies a new grant within
30 seconds.
Not allowed on this computer: … — the call is outside the computer'sapproved scope (for example a path outside allowed_paths). Change the
call; do not ask for re-pairing.
connector_not_connected — no computer is reachable from this session.None is connected, or every connected computer is private to someone else
(an unattended run reaches only computers shared with the workspace). With--account, the error lists available_accounts. Say so; do not look for
another way in.
denied — a connector policy or a grant blocks this call. Report thereason; do not retry.
Tell them what you are doing and why.
computer connector. Never hand-roll a tunnel client or look for atunnel token. There is none in the sandbox by design.
a loop, and never wait-and-retry an access error on your own.
--account, and report which one ran (the result's account field).
ceiling. A refusal from it is final; tell the human what was blocked.
fs.write, fs.delete, shell.exec, and desktop control:they act on someone's real machine. Confirm intent for anything
irreversible.
computerconnector.