A box is a Docker container that runs the daemon and gives agents a desktop and a browser. The API starts boxes and reads the settings in the first two sections. The box image and the server set the variables in the last two sections. The daemon’s own variables are on Environment variables of the daemon.
On gomoe.dev, AGENTS_COMPUTE=fargate runs each computer as a task on Fargate, with the AGENTS_FARGATE_* settings that ops/aws-deploy/host.ts writes. This page does not list those settings yet.
A coding computer that could never fit on the box host stops the API at start. The error names the setting. A coding computer’s CPUs must not exceed the host’s CPUs less the reserve, times the overcommit, and its memory must not exceed the host’s memory less the reserve.
| Variable |
Default |
What it does |
AGENTS_BOX_IMAGE |
agents-box:latest |
The image the server starts boxes from and builds. |
AGENTS_MAX_BOXES |
2 |
The most pool boxes a team has. A person’s own box, a coding computer and a computer a task, a chat or the warm pool holds do not count. |
AGENTS_BOX_IDLE_MIN |
30 |
Minutes a box may go with nothing to do before it stops, above 0. |
AGENTS_BUILD_DISK_MAX_PERCENT |
80 |
The share of Docker’s disk, as a whole percent from 0 to 100, above which an image build stops and says what holds the space. |
AGENTS_BOX_DOCKER_HOST |
Unset |
The Docker host that runs boxes. It wins over DOCKER_HOST. |
DOCKER_HOST |
Unset |
The Docker host, when AGENTS_BOX_DOCKER_HOST is not set. |
AGENTS_BOX_API |
Unset |
Where boxes reach the server’s machine port, such as http://<server address>:7700. On gomoe.dev it names the host by its private name, server.agents.internal, so computers find a replaced host. Boxes on this machine’s Docker reach it at host.docker.internal on AGENTS_API_PORT. A Docker host that is not a unix:// socket needs this set. |
AGENTS_BOX_DOCKER_ARGS |
[] |
A JSON list of strings added to each docker run for a box. |
| Variable |
Default |
What it does |
AGENTS_CODING_TEAM_LIMIT |
8 |
The most coding computers a team has, from 0 to 64. 0 turns coding computers off. |
AGENTS_CODING_WARM |
1 |
How many warm computers a team that used the pool in the last 24 hours keeps, from 0 to 8. |
AGENTS_JOB_IMAGES |
on |
off stops building a job image for each repo a team asked for attempts on in the last day: the box image with the repo cloned into /opt/agents-job/<repo> and its packages installed, built behind the box firewall, in one coding computer’s room on the host. A coding computer starts from its team’s last repo’s image, and any value but on or off stops the server. |
AGENTS_CODING_CPUS |
2 |
CPUs of one coding computer, from 1 to 256. |
AGENTS_CODING_MEMORY_GIB |
4 |
Memory of one coding computer in GiB, from 1 to 256. |
AGENTS_CODING_IDLE_MIN |
120 |
Minutes a coding computer waits with nobody speaking to an attempt whose work is saved, above 0. |
AGENTS_BOX_HOST_CPUS |
14 |
CPUs of the box host, from 1 to 256. |
AGENTS_BOX_HOST_MEMORY_GIB |
32 |
Memory of the box host in GiB, from 1 to 256. |
AGENTS_BOX_HOST_RESERVED_CPUS |
2 |
CPUs of the box host that boxes may not use, from 0 to 256. |
AGENTS_BOX_HOST_RESERVED_MEMORY_GIB |
4 |
GiB of the box host’s memory that boxes may not use, from 0 to 256. |
AGENTS_BOX_HOST_CPU_OVERCOMMIT |
2 |
How many times its usable CPUs the boxes’ CPU limits may add up to, from 1 to 8. Memory is never overcommitted. |
| Variable |
Default |
What it does |
AGENTS_HOME |
/home/agent/.agents-app |
The daemon’s home, on the box’s volume. |
AGENTS_DESKTOP |
1280x800 |
The screen size of each seat. |
PLAYWRIGHT_BROWSERS_PATH |
/opt/ms-playwright |
The folder that holds the browsers. |
AGENTS_BROWSER_MCP |
/usr/local/lib/node_modules/@playwright/mcp/cli.js |
The path of Playwright’s MCP server script. |
AGENTS_WHITEBOARD |
/opt/whiteboard |
The folder that holds the whiteboard. |
| Variable |
Default |
What it does |
AGENTS_API |
The server’s machine port, as the box reaches it |
The address the daemon calls. |
AGENTS_HOME |
/home/agent/.agents-app |
The daemon’s home, the same value the image sets. |
AGENTS_TOKEN |
A new token each time the container is created or replaced |
The box’s machine token. A stopped container that starts again keeps its token. The server stores only its hash. |
CLAUDE_CODE_OAUTH_TOKEN |
The team’s Claude token |
Given only when the server has a team token saved. |