Environment variables of the API
The API reads these variables when it starts. A variable with a validation rule stops the API with a message that names it when the value does not fit. AGENTS_PEOPLE_SOCKET and AGENTS_PEOPLE_ORIGINS have no default, so the API needs both. Settings for boxes and coding computers are on Environment variables of boxes. The daemon’s variables are on Environment variables of the daemon.
Connections and listeners
Section titled “Connections and listeners”| Variable | Default | What it does |
|---|---|---|
DATABASE_URL |
None | The Postgres connection. Also names the database that the default attachments folder is named for. |
ELECTRIC_URL |
http://127.0.0.1:3000 |
Where Electric answers. The API proxies shape reads to it. |
ELECTRIC_SECRET |
Empty | Sent to Electric as secret on every shape request. |
AGENTS_PEOPLE_SOCKET |
None, required | The absolute path of the Unix socket people reach the API on. On gomoe.dev nginx sends people to it. On a server in Tailscale mode tailscale serve does. The API stops at start without it. |
AGENTS_PEOPLE_ORIGINS |
None, required | The origins the app is served from, such as https://gomoe.dev, separated by commas. The first one is the address invite emails and sign-in redirects are built from. Only pages from these may open a screen or voice WebSocket. Each is an origin with no path. |
AGENTS_MACHINE_HOST |
127.0.0.1 |
The IP addresses, separated by commas, that the machine port listens on. gomoe.dev sets 0.0.0.0, and its security groups let only computers and the host reach the port. |
AGENTS_API_PORT |
7700 |
The TCP port of the machine port, from 1 to 65535. |
AGENTS_RUNNER |
Unset | off starts neither the pipeline runner nor the GitHub worker. |
AGENTS_RUNNER_TEAMS |
Unset | Team names, separated by commas, whose pipelines, routines, boxes and screens this server runs. Unset means every team. The GitHub worker serves the same teams. |
AGENTS_HOOK_SECRET |
Empty | The secret that pipeline webhook signatures derive from. With none set, every pipeline webhook answers 401. |
Sign-in and the laptop door
Section titled “Sign-in and the laptop door”| Variable | Default | What it does |
|---|---|---|
AGENTS_AUTH |
tailscale |
How the API knows a person. native reads the session cookie of native sign-in and refuses every request that carries a Tailscale header. tailscale reads the Tailscale-User-Login header that tailscale serve sets. gomoe.dev runs native. Instances and checks run tailscale unless an instance starts with --auth native. Any other value stops the API at start. |
AGENTS_SERVER_KEY_FILE |
Unset | The absolute path of a file of 32 random bytes that only the API’s user can read. It seals what the server keeps but must not store in the clear, such as an account’s authenticator secret. With AGENTS_AUTH=native, the API stops at start without it. |
AGENTS_MAIL |
off |
Where the server’s email goes. ses sends it through Amazon SES from AGENTS_MAIL_FROM, as on gomoe.dev. capture writes each email as a JSON file into AGENTS_MAIL_CAPTURE_DIR, for checks and local instances. With AGENTS_AUTH=native, off stops the API at start. |
AGENTS_MAIL_FROM |
Unset | The address email is sent from. AGENTS_MAIL=ses needs it. |
AGENTS_MAIL_CAPTURE_DIR |
Unset | The absolute folder captured email goes to. AGENTS_MAIL=capture needs it. |
AGENTS_COOKIE_INSECURE |
Unset | 1 drops Secure and the __Host- prefix from the session cookie, for checks and local instances served over plain http. |
AGENTS_GOOGLE_CLIENT_ID, AGENTS_GOOGLE_CLIENT_SECRET |
Unset | With both set, the sign-in page offers Continue with Google. |
AGENTS_GITHUB_CLIENT_SECRET |
Unset | With AGENTS_GITHUB_CLIENT_ID, the sign-in page offers Continue with GitHub. |
AGENTS_LAPTOP_SOCKET |
Unset | The absolute path of the Unix socket the laptop door listens on. A person’s own Mac reaches the machine routes through it with a Mac’s token. Set it with AGENTS_LAPTOP_URL, or set neither. |
AGENTS_LAPTOP_URL |
Unset | The address the front proxy serves the laptop door at, with no trailing slash. On gomoe.dev it is https://gomoe.dev/machine. |
Folders and files
Section titled “Folders and files”| Variable | Default | What it does |
|---|---|---|
AGENTS_HOME |
~/.agents-app |
The base of the pipelines cache (pipelines), the git mirrors (mirrors) and the default attachments folder. |
AGENTS_ATTACHMENTS_DIR |
<AGENTS_HOME>/attachments/<database name> |
The folder that holds attachment bytes. The default is named for the database in DATABASE_URL. |
AGENTS_ATTACHMENT_SWEEP_SECONDS |
600 |
Seconds between sweeps for files that have no row, at least 1. |
AGENTS_STREAMS_PORT |
4437 |
The port of the live-token stream server, which listens on 127.0.0.1. |
AGENTS_STREAMS_DIR |
~/.agents-app/streams |
Where the stream server keeps its data. |
AGENTS_FORGE_FILE |
~/.agents-app/forge.json |
The forge’s settings file. |
AGENTS_MAC_APP |
Unset | The absolute path of the signed Mac app zip. Unset or empty means the server gives out no download. A path that is not absolute stops the API at start. |
AGENTS_BOX_TOKEN_FILE |
~/.agents-app/box-claude-token |
The file that holds the team’s Claude token. A second file beside it, with .meta.json added, holds notes about the token. |
AGENTS_CLAUDE_TOKEN_TEAM |
Unset | The name of the team that owns the one team token. Unset means the oldest team. |
AGENTS_CLAUDE_BIN |
claude |
The Claude CLI the server runs to check a saved team token. |
AGENTS_CLAUDE_CHECK_TIMEOUT_MS |
60000 |
How long that check may take, in milliseconds. |
Tailscale, GitHub and connectors
Section titled “Tailscale, GitHub and connectors”The two Tailscale settings belong to a server in Tailscale mode, which instances and checks are, though the API does not check the mode. gomoe.dev sets neither.
| Variable | Default | What it does |
|---|---|---|
AGENTS_TAILSCALE_API |
Unset | The Tailscale API address, https://api.tailscale.com/api/v2. Set it with AGENTS_TAILSCALE_KEY_FILE, or set neither. With neither, the app makes invites without Tailscale. |
AGENTS_TAILSCALE_KEY_FILE |
Unset | The file that holds the saved Tailscale API key. |
AGENTS_GITHUB_DIR |
Unset | The folder that holds GitHub sign-ins and the team stopgap tokens. Set it with AGENTS_GITHUB_API and AGENTS_GITHUB_GIT, or set none of the three. |
AGENTS_GITHUB_API |
Unset | GitHub’s API address, with no trailing slash. |
AGENTS_GITHUB_GIT |
Unset | GitHub’s web address, which sign-in uses, with no trailing slash. |
AGENTS_GITHUB_CLIENT_ID |
Unset | The client id of the Agents GitHub App. Signing in with GitHub needs it. Nothing else does. |
AGENTS_GITHUB_POLL_SEC |
60 |
Seconds between the GitHub worker’s rounds. |
AGENTS_SHIP_WAKE |
on |
Unless it is off, the GitHub worker reads the ship loop’s posts on each open pull request the app opened for a task, keeps a row for each failure, wakes the task’s agent on the findings, pushes a fix the agent reports and tells a person when a wake ends without a push. off stops all of that. Any other value stops the server as it starts. |
AGENTS_CONNECTORS_DIR |
Unset | An absolute folder for connector accounts and clients. Unset turns connectors off. |
AGENTS_CONNECTORS_ORIGIN |
Unset | The https origin people reach the app at. Sign-in callbacks are built from it. |
AGENTS_CONNECTOR_PRIVATE_HOSTS |
Unset | Host names, separated by commas, that the address check lets through although they resolve to a private address. |
AGENTS_FRAME_SOCKET |
Unset | The absolute path of the socket that serves connector views. Set it with AGENTS_FRAME_ORIGIN, or set neither. |
AGENTS_FRAME_ORIGIN |
Unset | The origin that socket is published at. It must differ from the origins in AGENTS_PEOPLE_ORIGINS. |
AGENTS_FRAME_TICKET_SEC |
600 |
Seconds a ticket for a view stays good. |
AGENTS_PREVIEW_SOCKET |
Unset | The absolute path of the socket that serves attempts’ live previews. Set it with AGENTS_PREVIEW_BASE, or set neither, which turns previews off. |
AGENTS_PREVIEW_BASE |
Unset | The origin every preview’s own origin is a name under, such as https://preview.example, with a wildcard name and certificate pointed at that socket. It must be another site than every origin in AGENTS_PEOPLE_ORIGINS and AGENTS_FRAME_ORIGIN, and it needs AGENTS_SERVER_KEY_FILE, which seals each grant so its person gets the same one back. The API stops at start when either is not so. |
AGENTS_NTFY_URL |
https://ntfy.sh |
The ntfy server phone notices go to, as an http or https address. A notice holds only an agent’s name and fixed words. A value that is not an address stops the API at start. |
AGENTS_ASSEMBLYAI_KEY |
Unset | AssemblyAI’s key, for dictation and voice chat. Set it with AGENTS_ASSEMBLYAI_URL, or set neither, which turns speech to text off. |
AGENTS_ASSEMBLYAI_URL |
Unset | AssemblyAI’s streaming address, wss://streaming.assemblyai.com/v3/ws. A value that is not a ws or wss address stops the API at start. |
AGENTS_ELEVENLABS_KEY |
Unset | ElevenLabs’s key, for agents’ voices in voice chat. Set it with AGENTS_ELEVENLABS_URL, or set neither, which turns agents’ voices off. |
AGENTS_ELEVENLABS_URL |
Unset | ElevenLabs’s streaming origin, wss://api.elevenlabs.io, with no path. Any other value stops the API at start. |
AGENTS_LIVEKIT_URL |
Unset | LiveKit’s WebSocket address, such as wss://calls.example.com, which people’s clients and the API reach. Set it with AGENTS_LIVEKIT_KEY and AGENTS_LIVEKIT_SECRET, or set none, which leaves calls answering 503 to a person who may use them. Some without the others, or an address that is not ws or wss, stops the API at start. |
AGENTS_LIVEKIT_KEY |
Unset | The API key LiveKit knows the server by. It names the secret and is no secret itself: every token a person is handed names it as its issuer, and LiveKit logs it. |
AGENTS_LIVEKIT_SECRET |
Unset | LiveKit’s secret for that key, at least 32 characters, which signs tokens and webhooks. It stays on the server, and the scrubber removes it from everything the record keeps. A shorter one stops the API at start. |
Billing
Section titled “Billing”| Variable | Default | What it does |
|---|---|---|
STRIPE_SECRET_KEY |
Unset | A Stripe secret key (sk_) or restricted key (rk_). Unset turns billing off. A key that is neither stops the API at start, and so does a live key unless AGENTS_STRIPE_LIVE is set. |
STRIPE_WEBHOOK_SECRET |
Unset | The webhook endpoint’s signing secret, whsec_.... Unset, the webhook takes no event. |
AGENTS_STRIPE_LIVE |
Unset | allow lets the API run on a live key. |
AGENTS_STRIPE_API_URL |
Stripe’s | Another address for Stripe’s API, such as a stand-in’s. |
Timing
Section titled “Timing”| Variable | Default | What it does |
|---|---|---|
AGENTS_ASK_EXPIRY_SEC |
86400 |
Seconds before an unanswered card expires, above 0. |
AGENTS_QUIET_MINUTES |
30 |
Whole minutes a session must be quiet before the coach reads it, from 0 to 2147483647. |
AGENTS_TURN_STUCK_MIN |
10 |
Minutes a running turn may go without a new event before it shows as stuck, above 0. Nothing is stopped. |
AGENTS_TURN_SECONDS |
180 |
The deadline of an agent’s turn in a room, in seconds. |
AGENTS_MACHINE_LOST_SEC |
45 |
Seconds a machine may be silent before its working sessions show as lost. A whole number, at least 30. |
AGENTS_SILENT_MACHINE_SEC |
300 |
Seconds a machine may be silent before the work held for it fails. |
AGENTS_SECRET_WAKE_SEC |
90 |
Seconds a request to set a secret waits for a computer that is not running to come up, above 0. |
AGENTS_REPOS_CACHE_SEC |
30 |
Seconds the Repos page keeps a forge’s answer, above 0. |
AGENTS_STAGE_TIMEOUT_MIN |
60 |
Minutes a pipeline stage may run before the run fails it and interrupts its sessions. A suite stage and a deploy have their own limits. |
AGENTS_REPLAYS |
3 |
How many of a pipeline’s latest finished runs a proposal replays. |
Settings that go together
Section titled “Settings that go together”AGENTS_TAILSCALE_APIandAGENTS_TAILSCALE_KEY_FILEare both set or both unset.AGENTS_LAPTOP_SOCKETandAGENTS_LAPTOP_URLare both set or both unset.AGENTS_GITHUB_DIR,AGENTS_GITHUB_APIandAGENTS_GITHUB_GITare all set or all unset.AGENTS_FRAME_SOCKETandAGENTS_FRAME_ORIGINare both set or both unset.
A value outside a pair or group stops the API at start with the names of the others.