backdesk Permissions, Leases, Data Retention and Takeover
backdesk denies everything that the session spec does not list, lets one connection at a time hold the input lease, and stores almost nothing by default. Desktop isolation is not a security sandbox: apps run as your Windows user with your files and network.
Authorization Model
The session spec is declared up front in session_start. There is no prompt in the middle of a task, so there is no prompt that can time out on a session nobody is watching. Reported prompt problems in other tools are listed on the compare page.
allowedApps: executablesapp_launchmay start. Entries must be absolute paths. Bare names and relative paths are rejected.readableFoldersandwritableFolders: used only bywait_forwithfile_exists. They are not enforced on launched apps, which run with your file access.- A launch outside the list is refused. The error code for it is
app_not_allowed. A human refusing a handoff returnspermission_denied. No answer in time returnsapproval_timeout. These are three separate errors.
Example spec (examples/policy/session-spec.json):
{
"allowedApps": ["C:\\Windows\\System32\\notepad.exe", "C:\\Program Files\\YourApp\\your-app.exe"],
"readableFolders": ["<path-to>\\inputs"],
"writableFolders": ["<path-to>\\outputs"],
"saveCaptures": false,
"logText": false,
"idleSeconds": 15,
"ttlSeconds": 300,
"observationTtlSeconds": 30,
"settleMs": 150,
"accessibility": "auto"
}
Leases
Input operations need a lease from lease_acquire. A lease belongs to the connection that took it. It is released after idleSeconds without input (default 15) and ends at ttlSeconds (default 300). lease_release frees it early and releases any held input first. Two MCP clients in separate sessions cannot act on each other's session or lease. This is tested.
Read-only operations such as observe and wait_for do not need a lease.
What Is Stored
| Item | Default |
|---|---|
| Screenshots | not saved (saveCaptures is false) |
| Typed text | logged as a length, not the text (logText is false) |
| Logs and action journal | local, under %LOCALAPPDATA%\backdesk, pruned after 7 days |
| Clipboard | never read |
| Remote access | none: the daemon listens on a local named pipe for the current user; remote clients are denied |
The daemon captures nothing unless a client asks. Idle use is on the benchmarks page.
Isolation Is Not a Sandbox
Launched apps share your Windows account, files and network. Human-only operations (takeover, handback, handoff_decline, takeover_end) can be called by any local process of the same user through the CLI. Elevated (administrator) windows cannot be driven. backdesk fails closed when the input desktop cannot be read, for example while the PC is locked or a UAC prompt is showing.
Watch the Agent
Run backdesk view to open a window that shows what the agent is doing on its desktop. With no session id it follows the newest session and picks up the next one when it ends; backdesk view <sessionId> pins one session. It shows:
- the agent's windows, zoomed to fit (the Fit to Apps button switches to the whole desktop), refreshed 2 times a second (
--fpschanges it) - a ring where the last click, scroll or drag landed
- a status (Agent Working, Idle, Paused, Needs You, You Have Control, Session Ended) and which agent holds input
- the last 30 actions with their target and how long ago
- Pause, Take Over, Hand Back and Stop Session buttons; Take Over and Stop Session ask first
The viewer reads frames only while it is open. Nothing it shows is saved. It was checked on the test machine with a scripted session; it has not been tested with a screen reader.
Handoff and Takeover
handoff_request asks a human to take over, for example for a sign-in or a payment. The lease is released and input returns human_in_control until the human hands back.
takeover shows the agent desktop on your screen with a guard bar: a return button, the hotkey Ctrl+Alt+Backspace, a timeout (default 120 s) and two watchdogs. **Takeover is experimental. The real desktop switch was run once on the test machine (3 s, ended by takeover_end). The return button, the hotkey, the timeout path and both watchdogs have only run in dry-run.** A human can also watch with backdesk view.