Overview of Open Agents Architecture
mainOpen Agents is an open-source reference application for building and running background coding agents on Vercel. It follows a three-layer architecture designed to decouple agent execution from the execution environment:
- Web App: Handles authentication, sessions, chat, and the streaming UI.
- Agent Workflow: Runs as a durable workflow on Vercel.
- Sandbox VM: The execution environment containing the filesystem, shell, git, dev servers, and preview ports.
Key Design Principle: The agent does not run inside the VM. It runs outside the sandbox and interacts with it via tools (file reads, edits, search, shell commands). This allows agent execution to be independent of request lifecycles and enables the sandbox to hibernate/resume independently.