Sandboxer
How do you run several computer-use agents at once?
Give each computer-use agent its own Sandboxer sandbox. Agents that share one desktop share one keyboard focus, so one types into the other's window. A sandbox per agent gives each its own Linux desktop, Chrome and focus, and in Sandboxer's test each desktop was usable about 2 seconds after the sandbox was created.
Updated November 20, 2026
What goes wrong when agents share a desktop?
A desktop has one keyboard focus, one mouse pointer and one clipboard. A computer-use agent's "type" action goes to whichever window has focus at that moment, not the one the agent last looked at, and a model call between "focus" and "type" takes seconds. In Sandboxer's guide on running several computer-use agents at once, two scripted agents shared a desktop: agent A's window got nothing, and agent B's got both agents' keystrokes, interleaved letter by letter.
A real agent fails worse, because it doesn't know it typed into the wrong window. It reads the next screenshot, sees text it didn't expect, and acts on that. Each agent's screenshots also show the other's windows, which costs image tokens and can mislead the model. A lock around "focus then type" works only by letting one agent act at a time, which loses the point of running several.
How does one sandbox per agent help?
Each sandbox is a separate microVM with its own desktop, its own Chrome and its own focus, so there's nothing to share. In Sandboxer's test on November 19, 2026, two default sandboxes created in parallel each had Chrome on screen about 2 seconds after creation, and each agent typed into its own window while the other typed at the same time. To wait for the desktop, check for a window, such as wmctrl -l | grep -q 'Google Chrome', rather than polling for the active window, which fails on a fresh desktop where nothing has focus. See the desktop for computer-use agents.
Can you watch each agent?
Yes. sbx desktop <id> opens that sandbox's desktop in a browser tab, so two agents means two tabs; --no-open prints the URL instead, for a dashboard. Each URL carries a secret token, works for ten minutes, and keeps a browser that opened it signed in to that desktop for 8 hours. Anyone with the URL can see and control the screen, so keep it out of logs. If you take over an agent's screen with your own mouse, pause the agent first: you'd be the second agent in a focus fight.
Is there a lighter option?
For short, trusted tasks of your own, one virtual display per agent inside one sandbox works: each agent gets its own display and keystrokes reach the right window, for about 117 MB of extra memory per display in Sandboxer's test. The trade-offs are real:
- Not isolated: both agents run as the same user, so either can read or drive the other's screen and files.
- Shared resources: one agent's runaway browser tab slows the other.
- No viewer:
sbx desktopstreams the main desktop only. - No per-agent stop or fork: you pause, snapshot and delete the whole VM.
For agents that act for different users, open untrusted pages or run longer than a few minutes, use one sandbox each. Never have two agents type on the same display at once.
Frequently asked questions
Can two computer-use agents share one desktop?
Not safely. They share one keyboard focus, so one agent's typing lands in the other's window. Give each its own sandbox.
How fast is a new desktop ready on Sandboxer?
In Sandboxer's November 19, 2026 test on default sandboxes, Chrome was on screen about 2 seconds after the sandbox was created.
Can I watch several computer-use agents at once?
Yes. Run sbx desktop for each sandbox, and each opens in its own browser tab.
Is one display per agent in one VM enough?
For short, trusted tasks, yes. The agents still share a user, files, CPU and memory, and only the main desktop has a viewer.