by agent-sh
Isolated Linux desktop workspaces for AI agents — a hidden, agent-owned desktop and browser over MCP, so an agent can do GUI and web work without touching your real desktop.
# Add to your Claude Code skills
git clone https://github.com/agent-sh/agent-workspace-linuxGuides for using ai agents skills like agent-workspace-linux.
agent-workspace-linux is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by agent-sh. Isolated Linux desktop workspaces for AI agents — a hidden, agent-owned desktop and browser over MCP, so an agent can do GUI and web work without touching your real desktop. It has 235 GitHub stars.
agent-workspace-linux's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/agent-sh/agent-workspace-linux" and add it to your Claude Code skills directory (see the Installation section above).
agent-workspace-linux is primarily written in Rust. It is open-source under agent-sh on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh agent-workspace-linux against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Running open models for your company? Tiyuvta helps with model choice, deployment and optimization, and fine-tuning on your hardware or cloud account.
Agents that "use a computer" usually take over your screen. They move your mouse, steal focus and drive your logged-in browser. agent-workspace-linux gives the agent its own desktop: a private X11 or native Wayland display with its own window manager or compositor, apps, clipboard and browser, on any of six backends. The agent launches apps, types, clicks, takes screenshots and browses there. You watch, pause or stop it from a small floating viewer. It speaks MCP over stdio, so it works with Claude Code, Codex and other MCP hosts.
| Use case | When |
|---|---|
| GUI and web QA | An agent must test an app or website without hijacking your desktop or Chrome session. |
| Background browsing | Web or shopping tasks run in a browser you can watch and stop, on a throwaway profile or your own logins. |
| Clean desktops | You need a fresh Linux desktop to run, screenshot and inspect an app, then tear it down. |
| Unattended agents | A long-running or headless agent needs a desktop of its own. |
This is not a tool for driving your actual desktop. For that, use its sibling computer-use-linux. The two complement each other.
1. System packages. These cover the default X11 backend:
sudo apt install xvfb openbox xdotool xauth x11-utils imagemagick xclip \
dbus-daemon pkg-config libxkbcommon-x11-dev
Other backends need their own packages.
2. The binary. Pick one:
# From a clone: builds into ~/.local/bin/ and installs the bundled skill (safe to rerun)
./install.sh
# npm: downloads the prebuilt binary from the matching release and checks its sha256
npm install -g @agent-sh/agent-workspace-linux
# cargo: builds from git and installs only the binary (add --tag v0.6.3 to pin)
cargo install --git https://github.com/agent-sh/agent-workspace-linux
Prebuilt x86_64 and aarch64 binaries with .sha256 sidecars are on GitHub Releases. Verify with sha256sum -c, chmod +x, and put the binary on your PATH.
Starting with v0.6.5, both binaries are built on Ubuntu 24.04 (glibc 2.39) and tested on Debian 13.
3. Register the MCP server. For hosts that read .mcp.json:
{
"mcpServers": {
"agent-workspace-linux": {
"command": "/home/YOU/.local/bin/agent-workspace-linux",
"args": ["mcp"]
}
}
}
./install.sh installs the skill to ~/.codex/skills/ by default. Codex MCP registration is opt-in: use --codex-configure only for generic MCP-host workflows. In Codex for Linux, use the dedicated Agent Workspaces feature page to configure the backend and permission ceiling, so the generic MCP settings pages stay clean. If an older install still appears there, run ./install.sh --clean-codex-config to remove the stale server and tool tables.
Other flags: --permissions, --skills-dir, --no-skill, --dry-run. See install.sh --help.
With cargo or a prebuilt binary, copy skills/agent-workspace-linux/ into your skills directory if you want the bundled skill.
# 1. What can this machine run? (dependencies, displays, backends)
agent-workspace-linux doctor
# 2. Preview a workspace without creating anything
agent-workspace-linux workspace start --dry-run
# 3. Create the hidden workspace (explicit acknowledgement required)
agent-workspace-linux workspace start --ack-hidden-workspace --purpose "QA run"
# 4. Watch it in the floating viewer
agent-workspace-linux viewer
# 5. Launch an app, look at it, stop the workspace
agent-workspace-linux workspace launch --name editor -- xterm
agent-workspace-linux workspace observe --screenshot --output /tmp/ws.png
agent-workspace-linux workspace stop
Through an MCP host you don't run these by hand. The agent calls the matching tools, routed by the bundled skill.
Use --id NAME to name a workspace. The name viewers is reserved for the shared viewer registry and is excluded from workspace listing and stale cleanup.
Choose a backend with --session on workspace start and workspace open-profile, or with "session": {"backend":"hyprland"} in MCP calls and saved profiles. Explicit CLI or MCP input overrides the profile. With neither, the workspace uses X11.
Choose GNOME 46 independently of your host's GNOME version:
agent-workspace-linux runtime prepare --backend gnome --version 46
agent-workspace-linux workspace start --ack-hidden-workspace --id gnome46 \
--session gnome --session-version 46 --scale 1.25 --width 1600 --height 1000
The prepared runtime uses Ubuntu 24.04's GNOME and Mutter packages. Preparing it requires Docker; starting it requires bubblewrap with overlay support. Preparation downloads the packages once. Startup uses the cached runtime and never downloads or substitutes another version. The host desktop and system packages stay unchanged.
Use "session":{"backend":"gnome","version":"46","scale":1.25} through MCP or in a saved profile. Omit version, or pass --session-version host, to use host packages. runtime list and the doctor's session_runtimes field show availability and the installed version. GNOME 46 is the only prepared entry; other versions can be added when needed.
The selected runtime supplies system programs and libraries. Your home directory and the workspace's private runtime remain accessible. Display sockets and session buses are private. This QA runtime does not relay the host session bus, keyring, SSH/GPG agents, dconf or sound. Use the host runtime for those services. The writable image layer and its temporary files are removed after shutdown. After an interrupted supervisor, stale cleanup removes abandoned layers once their processes have stopped. The prepared image stays cached for reuse.
| Backend | --session |
What runs | Scale | GPU |
|---|---|---|---|---|
| X11 (default) | x11 |
Xvfb + Openbox | 1 | none |
| i3 | i3 |
Xvfb + i3 | 1 | none |
| KWin | kwin |
KWin 6.6+ virtual Wayland compositor | fractional | render node |
| GNOME | gnome |
GNOME 46 in a prepared runtime, or host Shell 50/51 + Mutter | fractional | none |
| Hyprland | hyprland |
Hyprland 0.53 on a private KWin renderer | fractional | render node |
| COSMIC | cosmic |
cosmic-comp under a headless Weston parent |
fractional | none |
doctor reports ready_for_<backend>_workspace for each one and lists anything missing.
Extra packages on top of the X11 set, for Ubuntu 26.04:
| Backend | Packages |
|---|---|
| i3 | i3-wm |
| KWin | kwin-wayland kwin-common libkscreen-bin libkf6service-bin wl-clipboard xwayland |
| GNOME | gnome-shell xwayland libglib2.0-bin bubblewrap |
| Hyprland | hyprland kwin-wayland xwayland grim wtype wl-clipboard bubblewrap |
| COSMIC | weston xwayland x11-xserver-utils wl-clipboard bubblewrap, plus cosmic-comp (below) |
"Render node" means your user can read and write a /dev/dri/renderD* device, usually through the render group. On a host with an NVIDIA GPU and another GPU, Hyprland renders on the other one.
Ubuntu does not package cosmic-comp. Install the Pop!_OS build that the COSMIC probe pins, with its libdisplay-info1 dependency:
curl -fLO https://apt.pop-os.org/release/pool/noble/cosmic-comp/8cb1802caada438bb5cc7670dfabdaca5fad0502/cosmic-com