Use this file to discover all available pages before exploring further.
This template creates a sandbox with a full Ubuntu 22.04 desktop environment, including the XFCE desktop, common applications, and VNC streaming for remote access. It’s ideal for building AI agents that need to interact with graphical user interfaces.The template includes:
The startup script initializes the virtual display using Xvfb (X Virtual Framebuffer), launches the XFCE desktop session, starts the VNC server, and exposes the desktop via noVNC on port 6080. This script runs automatically when the sandbox starts.
Build the template with increased CPU and memory allocation to handle the desktop environment installation. The build process may take several minutes due to the size of the packages being installed.
// build.tsimport { Template, defaultBuildLogger } from 'e2b'import { template as desktopTemplate } from './template'await Template.build(desktopTemplate, 'desktop', { cpuCount: 8, memoryMB: 8192, onBuildLogs: defaultBuildLogger(),})