Per-User Computer-Use Agent Deployment Patterns

Per-user agents need isolated, resumable machines with their own credentials.

· 9 min read
Cover illustration for “Per-User Computer-Use Agent Deployment Patterns”
Agent Patterns · November 25, 2026 · 9 min read · 1,989 words

Per-user persistent AI agent deployment at scale requires infrastructure as well as a model choice. Each stateful user session needs its own isolated machine with its own credentials, so it can sleep and resume without losing the task. Safe, affordable deployment depends on enforcing those boundaries, preserving session state, and paying only for active work.

Why each user session needs its own isolated machine, not a shared container

An agent on a live workstation inherits its browser sessions, SSH keys, cloud CLI credentials, and password-manager state. Anything that hijacks the agent inherits that reach. A shared-kernel container adds another way for things to go wrong, since a container escape or a gap in network policy can open up access to internal services, databases, and CI/CD systems. The task boundary must therefore exist in the compute environment.

Prompt-only scoping cannot keep that boundary in place when an attacker controls what is on the screen. Telling the model to avoid certain files is not access control. Familiar containers may seem cheaper than a new architecture, but computer-use tasks differ from stateless web services. Killing an agent’s environment can lose open files, signed-in sessions, and an unfinished GUI workflow.

What "isolated" actually means for a computer-use agent session

Isolation has four independent layers, which are execution, credentials, network egress, and audit. The execution environment is a disposable VM or dedicated cloud desktop with no persistent secrets on its base image. It can resume during a task, then be destroyed and recreated between runs so injected instructions cannot persist. Its deletion should lose only the current task. The credential layer gives the agent a least-privilege, short-lived identity whose revocation stops the agent without affecting a human user.

Network restrictions must block access by default and allow only the domains the task needs. A prompt is not a firewall. Microsoft’s Copilot Studio documentation says its allow-list prevents actions on unlisted sites but does not prevent navigation to them. It suggests Microsoft Edge policy settings with Intune as one way to limit web access. The completion test is an attempted visit to an unlisted domain that fails at the network layer and produces a logged denial.

The audit layer records every action with the screenshot that preceded it, retaining enough to investigate afterward. Those records are sensitive data. A completed run should be replayable as screen states and decisions without rerunning the agent. For writes such as purchases, sends, deletes, and permission changes, human approval must present the exact intended action.

How the OS surface choice shapes the isolation architecture

A browser, Linux desktop, Windows GUI, and Android environment cover different applications. Surface choice comes before the sandbox’s contents. Windows is required for desktop apps with no browser or API equivalent, while phone-only apps require Android. An isolated machine is useful only if it contains the interface the task needs.

Anthropic’s Claude Computer Use interprets screenshots and emits mouse coordinates and keystrokes without relying on an accessibility tree or DOM parser. That makes the visual approach portable across operating systems and remote desktops, but the customer remains responsible for the runtime sandbox. Vercel Labs agent-desktop instead reads the OS accessibility tree and uses unique references to target the elements it can interact with. This offers deterministic targeting and structured errors where applications expose their controls. Custom-drawn canvases, legacy thick-clients, and Citrix-published apps remain opaque to that approach.

Microsoft’s documentation says Electron, Java, Unity, Citrix, and other virtualized environments “might not be supported” in Copilot Studio. That gap constrains the infrastructure choice directly. Accessibility-tree control is cheaper and more deterministic where it works, while screenshots provide the fallback where metadata is absent. Neither approach makes sensitive desktop content harmless, since screenshots, clipboard reads, and debug output can enter transcripts.

How do per-user agents remember context between sessions?

Computer-use agents need a machine that preserves execution state. An open modal dialog and an unfinished EHR form cannot reliably be reconstructed from logs. Cold restarts discard that working state. Sleeping and resuming preserve the processes, open files, and in-memory values needed to continue.

Firecracker snapshots contain full guest memory and virtual hardware state, but that completeness creates a security problem when snapshots are reused. Firecracker’s security documentation warns that identifiers, random seeds, the guest’s entropy pool, and cryptographic tokens may cease to be unique when a snapshot is resumed more than once. Repeated restoration is considered insecure without a uniqueness mechanism. A user’s snapshot must therefore be treated as a unique fork, with reuse of a signed-in image across customers requiring reseeding entropy and rotating live tokens.

Google’s Agent Compute Engine, described October 22, 2026, gives each agent session its own microVM and checkpoints it while the model thinks. It uses copy-on-write clones from warm snapshots. This is the right lifecycle for stateful work, because idle compute can stop without discarding the session. Persistence belongs within the task boundary, while clean recreation prevents one completed task from contaminating the next.

Tiered sandboxing — matching isolation depth to task risk

Diagram: Three-Tier Sandbox: Matching Isolation Depth to Task Risk. Visualizes: Show three ranked tiers of isolation as a stepped or layered diagram, each with its label, scope, and key constraints.

Full isolation for every low-risk read adds unnecessary cost and latency. The boundary should match the task’s exposure. Tier 1 covers read-only, low-risk work in a network-namespaced browser session with no filesystem writes or credential injection. Tier 2 covers stateful, credentialed work in a full isolated VM with scoped credentials, a network allowlist, and audit logging. This is the standard shape for form filling, data transfer, and legacy-app automation.

Tier 3 covers arbitrary code execution in a sandbox that can be thrown away, with its disk deleted when the task ends. Generated code must be treated as hostile. Shared-kernel containers are insufficient for this tier because a vulnerability can escalate to remote code execution on the host. Regex and static checks cannot catch every dynamic import, alias, or indirect access path with precision, so code still needs containment while it runs even after it has been filtered. The system assigns the tier during planning, before the first action, rather than waiting for suspicious behavior to justify stronger isolation.

Credential architecture at per-user scale

A machine per user needs credentials set up to match, because a shared credential lets a compromised session reach beyond its own boundary. Provisioning requires a system. Each agent needs its own identity, limited permissions, and an independent revocation path. Tokens should expire on the order of the task duration, with the agent identity provisioned afresh at the start of each session.

Copilot Studio stores credentials in Azure Key Vault with RBAC isolation or in Power Platform internal encrypted storage, then injects them at runtime. Credentials do not belong in the agent definition. For conversational use, though, each user still needs valid machine credentials, so the deployer must still provision them even when the platform injects them. Logs must also distinguish the agent’s actions from those of the human who assigned the task.

Healthcare has a further gap in what is covered for protected health information, or PHI. A model vendor’s business associate agreement, or BAA, may cover prompts and EHR screenshots while leaving out the instructions sent back to the agent. Those instructions can themselves contain PHI. Credential and audit design must therefore cover agent outputs as well as what the upstream model agreement covers.

Automating legacy desktop apps at per-user scale in regulated industries

Legacy apps in healthcare, lending, and insurance offer few ways to integrate with them and need credentials for each user and strict audits. Epic over Citrix exposes only a picture of Hyperspace. Selector-based bots lose their usual hooks. Screenshot-based agents can read the image, but they still need patient-matching checks and read-after-write verification.

The healthcare pattern gives each agent a desktop and a pre-built, signed-in snapshot already on the right screen, with every run livestreamed and recorded. Those snapshots remain subject to the uniqueness and credential rules above. One operator can launch and monitor dozens of runs simultaneously. Copilot Studio’s documented Citrix limitation means affected EHR or DMS workflows need a different infrastructure path.

Microsoft names Graebel, a global talent-mobility company with approximately 1,500 employees, as an example of use in production. Its partner could not support API integration, and earlier RPA attempts were too rigid for variable human-written emails. Graebel worked with GET AI and Microsoft to deploy the Graebel Service Order Agent in Copilot Studio. Healthcare adds a further obligation to this automation pattern, because screenshots and derived instructions can make the audit trail a PHI-bearing record. Step budgets also constrain how large and difficult to investigate that record becomes.

Running per-user agents at swarm scale — evals, RL rollouts, and batch pipelines

The machine-per-task architecture also fits evaluations, reinforcement-learning rollouts, and batch pipelines. The unit of isolation stays the same. SCALECUA’s 2026 paper used 600 parallel VM environments to collect multiple rollouts per task across batches. At that volume, state loss and idle charges compound.

Preemption causes state loss at a larger scale, because an evicted rollout usually restarts from scratch. That discards the compute already spent reaching its current state. Warm copy-on-write snapshots shorten startup, while checkpointing preserves work between active periods. The ProRL Agent paper describes a Rollout-as-a-Service architecture using SingularityRuntime containers, AgentHandler orchestration, and separate worker pools for an asynchronous INIT, RUN, and EVAL pipeline. That batch orchestration pattern leaves the isolation depth required for each rollout undetermined.

What the cost per user actually depends on

Cost per user depends on how long the session lasts, how many steps it takes, how much time it spends idle, and which machine and OS surface it uses. It is not a fixed seat price. Copilot Studio lists OpenAI CUA and Claude Sonnet 4.5 at 5 credits/step, giving buyers a concrete published unit for model-driven actions. Compute adds another variable, especially when desktops remain allocated between tasks. Machines that sleep, wake in roughly a second, and bill only for active time make persistent sessions economically practical.

Long runs also accumulate screenshots and other context that the model reasons over again at each step. Compacting or truncating scrollback controls both latency and cost. A hard step cap should be a multiple of the measured p95 step count for that kind of task, with enough room to spare. A wall-clock cap is also necessary because a stuck agent can consume time without advancing steps. Shared infrastructure may look cheaper, but that comparison must include the cost of rebuilding session state and the exposure created by shared access.

The deployment checklist — from first session to production fleet

Diagram: Seven-Step Deployment Checklist: First Session to Production Fleet. Visualizes: Visualize the seven sequential deployment checks as a vertical stepped flow or numbered pipeline.

First, establish why a script cannot do the task. Playwright, Selenium, or Puppeteer may suffice for a fixed flow with stable selectors, without reasoning over attacker-controlled page content. The completion test is a one-sentence explanation of why an agent is needed. Second, test the chosen OS surface by having an isolated agent reach the target app, interact with it, and verify an action.

Third, prove that the environment can be thrown away without harming anything outside the task. Delete it mid-run. Inspect what is lost. Fourth, set up an agent identity for each user with limited permissions and short-lived credentials, then revoke it without affecting the human user. Healthcare deployments must scope BAA coverage to agent outputs as well as model inputs. Fifth, direct the agent to an unlisted domain and confirm that the network blocks the attempt and logs the denial.

Sixth, test the human gate with an unapproved purchase. The run must stop and show the exact transaction. The same approval discipline covers sends, deletes, permission changes, and software installs. Seventh, give the agent an artificially unsolvable task and confirm that a hard cap terminates it with a logged reason. A completed run must also replay as the screen states and decisions the agent encountered, with those records treated as sensitive.

These checks reduce the blast radius. A capable model with enough permissions may still carry out a harmful task it was told to do. Human approval is the last line of defense and depends on the boundaries before it.

Sources

  1. Computer-using agents in Microsoft Copilot Studio are now generally available
  2. Architecting Resilient LLM Agents: A Guide to Secure Plan-then-Execute Implementations
Filed underAgent Patterns

More in Agent Patterns