Skip to content

Environment variables of the daemon

The daemon runs on each machine that works for a team, which is a Mac or a box. It reads these variables when it starts. The files it reads are on Config files under ~/.agents-app.

Variable Default What it does
AGENTS_API http://127.0.0.1:7700 The address of the API’s machine routes. A person’s own Mac on gomoe.dev reaches them through the laptop door, https://gomoe.dev/machine, which the Mac app writes into daemon.json when it adds the Mac. A computer reaches the machine port inside the server’s network. The variable wins over api in daemon.json.
AGENTS_TOKEN None The machine’s token. The variable wins over token in daemon.json. With neither, the daemon stops.
AGENTS_HOME ~/.agents-app The daemon’s home. It holds each agent’s folder, each task’s workspace and the machine’s config files.
Variable Default What it does
AGENTS_CLAUDE_BIN claude The Claude CLI the daemon starts for each session.
CLAUDE_CODE_OAUTH_TOKEN Unset The token Claude sessions run on. A box starts with the team token, and the daemon replaces it when the server sends a new one. A token the box’s owner signed in with from the app takes its place for their sessions.
CLAUDE_CONFIG_DIR ~/.claude Where Claude Code keeps its config folder. The daemon reads terminal-session transcripts from its projects folder, so it must match the folder Claude Code writes to.
SHELL The user record’s shell The login shell the daemon starts to read the secrets that a person’s startup files export.
Variable Default What it does
AGENTS_COMMIT_WAIT_SEC 900 How long, in seconds, a push’s commits in a task’s workspace may run, counted from when the first began, before a session’s next message stops waiting for them. Past it the message goes ahead of the commit, with a notice in the session’s record, and the commit runs on. A value that is not a whole number above 0 stops the daemon.
Variable Default What it does
AGENTS_DESKTOP Unset The screen size, such as 1280x800. Set means the machine has a desktop for agents. When it is set, PLAYWRIGHT_BROWSERS_PATH, AGENTS_BROWSER_MCP and AGENTS_WHITEBOARD must be set too, or the daemon exits with code 2.
PLAYWRIGHT_BROWSERS_PATH Unset The folder that holds the browsers.
AGENTS_BROWSER_MCP Unset The path of Playwright’s MCP server script.
AGENTS_WHITEBOARD Unset The folder that holds the whiteboard.
Variable Default What it does
AGENTS_SERVER Unset The address of the team’s server, such as https://gomoe.dev. The variable wins over an address typed into the setup and over the server the build carries.
AGENTS_HOME The build’s home The app’s home and its daemon’s, such as ~/.agents-gomoe. The variable wins over the home the build carries. A copy with neither stops and says to download Agents from the team’s server.
AGENTS_PROXY Unset An HTTP proxy address, for a Mac that runs Tailscale in userspace mode to reach a server on a tailnet, such as http://127.0.0.1:1055. gomoe.dev needs none.
AGENTS_DEV_LOGIN Unset The login the app sends as the Tailscale-User-Login header, for a test server in Tailscale mode on the same Mac.
AGENTS_TAILSCALE Unset The path of a Tailscale command line in an unusual place, for a server reached over a tailnet.

The daemon puts these in the environment of the MCP servers it starts for a session. Do not set them by hand.

Variable Set for What it holds
AGENTS_API, AGENTS_TOKEN, AGENTS_SESSION The team-agents, team-record and computer servers The address, the machine token and the session’s id.
AGENTS_SHARE_GUARD The team-record server The path of the share guard’s socket, run/share-guard.sock under AGENTS_HOME.
AGENTS_STAGE_OUTCOMES A pipeline stage’s server A JSON list of the outcomes the stage accepts.
AGENTS_SCREEN_SOCKET, AGENTS_BROWSER_MCP, AGENTS_BROWSER_CDP The computer server The seat’s screen socket, Playwright’s MCP script and the browser’s DevTools address.
AGENTS_TASK_FOLDER The computer server, for a task’s session The task’s folder.
AGENTS_WEBMCP_ORIGINS The computer server The team’s WebMCP sites as JSON. Left out when the team lists none.
AGENTS_SIGN_IN_CLAUDE The Claude sign-in command The Claude CLI to run setup-token with.

The Mac app’s supervisor removes AGENTS_API and AGENTS_TOKEN from the environment it passes on, and sets AGENTS_HOME.