A workspace built
for AI agents.

Persistent files for every agent, wherever it runs.

Get early access
plan.md, saved by Cubbynotes.md, saved by Pebblereport.md, saved by Pebblereport.md, saved by Cubby 2

Core ideas

  1. 01Disposable Compute

    Stop the sandbox when it's idle. The files stay.

    An agent spends most of its time thinking, and a sandbox held for the whole task sits idle through all of it. AgentWS keeps the workspace in storage, so a sandbox only needs to run while the agent is working.

    How it works

    • The agent reads and writes /mnt/agentws like a normal folder.
    • AgentWS saves each file to your S3-compatible storage.
    • A new sandbox opens the same workspace.
  2. 02Safe Collaboration

    Many agents, one workspace, no silent overwrites.

    On a shared disk, when two agents save the same file, the later save silently overwrites the earlier one. Neither agent gets an error, and the work is just gone.

    How it works

    • Each run writes to its own private copy of the workspace.
    • When a run publishes, its changes join the shared workspace.
    • If another run already changed the same part of a file, the new change is set aside for review instead of overwriting it.
  3. 03Scoped Access

    Decide what each run can touch before it starts.

    Agents are non-deterministic: the same prompt can lead to different actions, including ones you didn't expect. So set the limits ahead of time, rather than trusting each run to stay inside them.

    How it works

    • For each run, mark every folder read-only or read-and-write.
    • A write outside those folders fails with the normal Linux "Permission denied" error.
    • The rules are enforced outside the agent, so the agent can't change them.
  4. 04Traceable History

    Agents make mistakes. Every save can be traced and undone.

    Some mistakes only show up later. When one does, you need to know which run made it and what the file looked like before.

    How it works

    • Each save becomes a new version, tagged with the run that made it.
    • Browse a file's recent versions and restore an earlier save.
    • The beta keeps about a day of saves, plus each run's latest.
  5. 05Recursive Forks

    Fork any save, then fork the forks.

    Agents get better results by exploring: trying several approaches, keeping the best one and building on it. That only works if starting a new branch is cheap.

    How it works

    • A fork records the save it starts from and copies no files.
    • Each fork stores only the files it changes.
    • Fork from any save, or from a fork, up to 16 levels deep. Keep the winner and discard the rest.

From the blog

Give your agents
a workspace.

launcher.py
import os
from agentws import AgentWS
from e2b import Sandbox

aw = AgentWS(base_url=os.environ["AGENTWS_URL"],
             api_key=os.environ["AGENTWS_API_KEY"])
session = aw.sessions.create(
    workspace_id="my-workspace",
    policy_id="default", agent_id="agent-1")

sbx = Sandbox.create()
sbx.commands.run("curl -fsSL $AGENTWS_INSTALL_URL | sudo sh")
sbx.commands.run(
    f"agentws mount --session {session.id} /mnt/agentws",
    envs=session.env_vars, user="root")

# Your agent uses plain open() on /mnt/agentws
sbx.commands.run("agentws exec -- python agent.py",
                 user="root")

Get early access

Be among the first to try AgentWS with your own agents.

We’ll use your email only to contact you about AgentWS beta access.