Every setting the desk, the CLI and the repository’s tooling read, with its kind, its default and the code that reads
it. The tables are generated from the code, so they list exactly what it reads.
Every setting is an environment variable. The desk reads no configuration file: .env.example lists every setting
with its default and marks the secrets, but nothing loads it for you. Run a desk with your own
settings shows a working set for a development desk.
The Kind column says where a setting comes from in a release:
| Kind |
Meaning |
| Desk, measured |
Written as a literal value into the release’s compose file, which dstack measures. Inside an enclave the desk refuses to start if one arrives any other way or with another value. |
| Desk, secret |
Passed only as an encrypted variable, outside the measured compose. Releasing the enclave lists them and what each can change. |
| Development only |
SA_DEV, which a release never sets. |
| Client |
Read by the CLI, the client library or the local MCP server, on the user’s own machine. |
| Tooling |
Read by the repository’s scripts and tests. |
- Outside development mode the desk does not start without the four prices:
SA_PRICE_JOB_MIN, SA_PRICE_JOB_MAX,
SA_PRICE_RUN and SA_PRICE_SEAT. In development mode they have test values.
- It never starts without
SA_ENGAGEMENT_REGISTRY.
ops/release-compose.ts also requires SA_PUBLIC_URL (https), SA_CHAIN_ID, SA_REGISTRY_FROM_BLOCK,
SA_REVENUE_WALLET, SA_TREASURY and SA_DATA_DIR (on the /data volume) in the release file, keeps SA_PORT at
8080, and refuses SA_DEV, any secret, and any name the desk does not read.
- Outside development mode the desk does not start without
SA_BLOCKED_PAYEES among its encrypted variables: the
payees agents may never pay, comma-separated, or empty to block none.
- Outside development mode it logs a warning when no operator wallet (
SA_OPERATORS) or no trusted proxy
(SA_TRUSTED_PROXIES) is set; /ready reports both.
GET /v1/config serves the settings clients rely on: the chain, the public address, the runtime (dev or tdx), the
Engagement Registry, the revenue wallet, the treasury, the till, the prices, the bond, the review window, the caps, the
model, whether a mail provider is set and whether card buying is on, and the seat settings. Mail answers only when its
provider, key, webhook secret and domain are all set. The desk logs the same view when it starts. Keys, RPC URLs,
webhook secrets and the blocked payees are never served or logged.
Each row gives its unit. Durations are in seconds unless the name ends in _MS, _DAYS or _MINUTES. Prices, top-ups
and the seat allowances are in USDG. SA_CAPS takes token base units, and SA_CAPS_TOTAL and the card limits take
dollars.
| Setting |
Kind |
Default |
What it does |
Read in |
SA_DEV |
Development only |
none |
1 runs outside a TEE with a local sealing key. Everything it produces is marked dev, and verify refuses dev evidence unless given —allow-unattested. Never set it in a release. |
src/config.ts, src/evidence.ts, ops/release-compose.ts |
SA_DATA_DIR |
Desk, measured |
./data |
Where the desk keeps its store, its sealed keys and its notes. |
src/config.ts, ops/release-compose.ts |
SA_HOST |
Desk, measured |
none |
The address the desk listens on: 127.0.0.1 in development, every interface otherwise. Set 0.0.0.0 to reach a development desk in a container through a published port. |
src/config.ts |
SA_PORT |
Desk, measured |
8080 |
The port the desk listens on. |
src/config.ts |
SA_PUBLIC_URL |
Desk, measured |
http://localhost:8080 |
The desk’s own address, used in links, terms URIs, evidence URIs and operator signatures. |
src/config.ts, src/email.ts, ops/release-compose.ts |
SA_CHAIN_ID |
Desk, measured |
4663 |
The chain the desk works on: 4663 is Robinhood Chain. |
src/config.ts, ops/release-compose.ts |
SA_RPC_URL |
Desk, secret |
none |
Robinhood Chain RPC endpoints, comma-separated. Never printed or served. Public endpoints when unset. |
src/config.ts, src/evidence.ts, src/verify.ts |
SA_PCCS_URL |
Desk, measured |
none |
The PCCS that Intel collateral is read from for TDX quote checks. Phala’s when unset. |
src/bin/cli.ts, src/bin/mcp.ts, src/config.ts, src/verify.ts |
SA_WEB_DIR |
Desk, measured |
web/dist |
Where the desk finds the web app build (node ops/build-web.ts). |
src/bin/desk.ts |
| Setting |
Kind |
Default |
What it does |
Read in |
SA_ENGAGEMENT_REGISTRY |
Desk, measured |
none |
The Engagement Registry’s address (contracts/deployments/.json). |
src/config.ts, src/verify.ts, ops/release-compose.ts |
SA_REGISTRY_FROM_BLOCK |
Desk, measured |
0 |
The block the Engagement Registry was deployed in; the indexer reads its events from there. |
src/config.ts, ops/release-compose.ts |
SA_REVENUE_WALLET |
Desk, measured |
none |
Where revenue goes. x402 payments are off without it. |
src/config.ts, ops/release-compose.ts |
SA_TREASURY |
Desk, measured |
none |
The only source of float for agents and the desk. |
src/config.ts, ops/release-compose.ts |
SA_PRICE_JOB_MIN |
Desk, measured |
Set per desk, published in /v1/config as prices.jobMin |
The lowest price a job may be quoted at, in USDG. Required outside development mode. |
src/config.ts |
SA_PRICE_JOB_MAX |
Desk, measured |
Set per desk, published in /v1/config as prices.jobMax |
The highest price a job may be quoted at, in USDG. Required outside development mode. |
src/config.ts |
SA_PRICE_RUN |
Desk, measured |
Set per desk, published in /v1/config as prices.run |
The price of a commissioned run, in USDG. Required outside development mode. |
src/config.ts |
SA_PRICE_SEAT |
Desk, measured |
Set per desk, published in /v1/config as prices.seat |
The price of a month of a seat, in USDG. Required outside development mode. |
src/config.ts |
SA_WORKER_BOND_BPS |
Desk, measured |
1000 |
The agent’s bond on a job, in basis points of its price. |
src/config.ts |
SA_REVIEW_WINDOW |
Desk, measured |
259200 |
How long a reviewer has after a job’s deadline, in seconds. |
src/config.ts |
SA_CAPS |
Desk, measured |
Set per desk, published in /v1/config as caps |
Spending caps per asset and chain, as JSON rules with chainId, asset, symbol, decimals, perPayment, perJob and perDay in the asset’s smallest unit. The defaults cover USDG on Robinhood Chain and USDC on Base. |
src/config.ts |
SA_CAPS_TOTAL |
Desk, measured |
Set per desk |
A dollar total across chains, as JSON in dollars: perPayment, perJob, perDay. Defaults to the largest of each cap among the dollar stablecoin rules. |
src/policy.ts |
SA_DOLLAR_ASSETS |
Desk, measured |
none |
Extra dollar stablecoins counted in that total, as chainId:address pairs, comma-separated. |
src/policy.ts |
SA_IDLE_SEATS |
Desk, measured |
1 |
Agents kept idle and ready for a new seat. |
src/config.ts |
SA_BLOCKED_PAYEES |
Desk, secret |
none |
Payees agents may never pay, comma-separated. Never written to any output. BLOCKED_PAYEES is read too. Outside development mode the desk does not boot without it: set it empty to block none. |
src/config.ts, src/evidence.ts |
| Setting |
Kind |
Default |
What it does |
Read in |
SA_CHAINS |
Desk, measured |
none |
Extra chains and tokens for the chain registry, as JSON (src/chains.ts). |
src/chains.ts |
SA_PAY_CHAINS |
Desk, measured |
none |
Chain ids agents may pay on, comma-separated. Every chain in the registry when unset; empty means the home chain only. |
src/chains.ts, ops/rehearse-fork.ts |
SA_RPC_URL_<id> |
Desk, secret |
none |
RPC endpoints for another chain agents pay on, one variable per chain id, such as Base. |
src/chains.ts |
SA_RECEIPT_TIMEOUT_MS |
Desk, measured |
180000 |
How long the desk waits for a transaction’s receipt, in milliseconds. |
src/chain.ts |
SA_TX_STUCK_MS |
Desk, measured |
45000 |
How long a transaction may sit unmined before it is sent again at a higher price, in milliseconds. |
src/chain.ts |
| Setting |
Kind |
Default |
What it does |
Read in |
SA_ANTHROPIC_API_KEY |
Desk, secret |
none |
The Anthropic API key the agents and the brief screen use. Work is refused without it. |
src/config.ts, src/evidence.ts |
SA_MODEL |
Desk, measured |
claude-opus-5-5 |
The model the agents run on. |
src/config.ts |
SA_EFFORT |
Desk, measured |
high |
The model’s effort: low, medium, high, xhigh or max. |
src/config.ts |
SA_MAX_ITERATIONS |
Desk, measured |
40 |
The most model turns one task may take. |
src/config.ts |
SA_MAX_TOKENS_PER_TURN |
Desk, measured |
64000 |
The most output tokens one model turn may produce. |
src/model.ts |
SA_COMPACT_AT |
Desk, measured |
150000 |
The input size, in tokens, at which a run’s history is compacted. |
src/model.ts |
SA_TASK_MAX_INPUT_TOKENS |
Desk, measured |
4000000 |
The most input tokens one task may use, cache reads included. |
src/model.ts |
SA_TASK_MAX_OUTPUT_TOKENS |
Desk, measured |
200000 |
The most output tokens one task may use. |
src/model.ts |
| Setting |
Kind |
Default |
What it does |
Read in |
SA_WORKERS |
Desk, measured |
4 |
How many model runs go at once, across every agent. |
src/worker.ts |
SA_TASK_MAX_SECONDS |
Desk, measured |
7200 |
The longest one task may run, in seconds. |
src/worker.ts |
SA_DEADLINE_MARGIN_SECONDS |
Desk, measured |
900 |
How long before a job’s deadline its run is cut, to leave time to post the report, in seconds. |
src/worker.ts |
SA_WORK_ATTEMPTS |
Desk, measured |
3 |
How often a run that keeps failing is resumed before its task fails. |
src/worker.ts |
| Setting |
Kind |
Default |
What it does |
Read in |
SA_SCREEN_MODEL |
Desk, measured |
claude-opus-5-5 |
The model that reviews each brief before a hire is accepted or paid. |
src/screen.ts |
SA_SCREEN_CACHE_DAYS |
Desk, measured |
7 |
How long a brief’s review is reused, in days. |
src/screen.ts |
SA_SCREEN_MIN_WORK_MINUTES |
Desk, measured |
30 |
The least time a job’s deadline must leave for the work, after the report’s margin, in minutes. |
src/screen.ts |
SA_SCREEN_PER_CLIENT_DAY |
Desk, measured |
40 |
Brief reviews one client wallet may cause in a day. |
src/screen.ts |
SA_SCREEN_PER_CLIENT_HOUR |
Desk, measured |
10 |
Brief reviews one client wallet may cause in an hour. |
src/screen.ts |
SA_SCREEN_PER_HOUR |
Desk, measured |
200 |
Brief reviews in an hour, for every client together. |
src/screen.ts |
SA_SCREEN_TIMEOUT_MS |
Desk, measured |
30000 |
How long one brief review may take, in milliseconds. |
src/screen.ts |
| Setting |
Kind |
Default |
What it does |
Read in |
SA_NET_MAX_BYTES |
Desk, measured |
2000000 |
The largest answer an agent’s HTTP request may read, in bytes. |
src/net.ts |
SA_NET_TIMEOUT_MS |
Desk, measured |
30000 |
How long an agent’s HTTP request may take, in milliseconds. |
src/net.ts |
SA_NET_IDLE_MS |
Desk, measured |
15000 |
How long an agent’s HTTP request may wait between bytes, in milliseconds. |
src/net.ts |
SA_NET_REQUESTS |
Desk, measured |
300 |
The most HTTP requests one task may make. |
src/net.ts |
| Setting |
Kind |
Default |
What it does |
Read in |
SA_SEAT_GRACE |
Desk, measured |
604800 |
How long a seat stays readable and renewable after its last paid month ends, in seconds. |
src/config.ts |
SA_SEAT_RENEW_WINDOW |
Desk, measured |
604800 |
How long before a seat’s month ends a renewal can be quoted, in seconds. |
src/config.ts |
SA_SEAT_RELEASE_EVERY |
Desk, measured |
604800 |
How often a seat’s fee moves from the till to revenue as the month is used, in seconds. |
src/config.ts |
SA_USAGE_MARKUP_BPS |
Desk, measured |
Set per desk, published in /v1/config as seats.markupBps |
Added to a seat’s model cost and spend when they are billed, in basis points. |
src/config.ts |
SA_SEAT_MODEL_CAP |
Desk, measured |
Set per desk, published in /v1/config as seats.modelCap |
What a seat may spend on model use in a month before new work waits for a top-up, in USDG. |
src/config.ts |
SA_SEAT_SPEND_CAP |
Desk, measured |
Set per desk, published in /v1/config as seats.spendCap |
What a seat’s agent may spend in a month before new work waits for a top-up, in USDG. |
src/config.ts |
SA_SEAT_WARN_PERCENT |
Desk, measured |
80 |
The share of an allowance, in percent, at which the seat’s client is warned. |
src/config.ts |
SA_TOPUP_MIN |
Desk, measured |
Set per desk |
The smallest top-up a seat may order, in USDG. |
src/config.ts |
SA_TOPUP_MAX |
Desk, measured |
Set per desk |
The largest top-up a seat may order, in USDG. |
src/config.ts |
SA_SEAT_SCHEDULES |
Desk, measured |
5 |
How many recurring instructions a seat may keep. |
src/config.ts |
SA_SEAT_RUNS_PER_DAY |
Desk, measured |
12 |
How many scheduled runs a seat may have in one day, across its schedules. |
src/config.ts |
SA_SEAT_SCHEDULE_GAP |
Desk, measured |
3600 |
The least time between two runs of one schedule, in seconds. |
src/config.ts |
SA_SEAT_SCHEDULE_LATE |
Desk, measured |
1800 |
How late a scheduled run may still start, in seconds; later, it is skipped as missed. |
src/config.ts |
SA_SEAT_MEMORY_CHARS |
Desk, measured |
12000 |
How much of a seat’s history, in characters, its next run starts with. |
src/runs.ts |
| Setting |
Kind |
Default |
What it does |
Read in |
SA_EMAIL_PROVIDER |
Desk, measured |
none |
resend or mailgun. |
src/config.ts, src/email.ts |
SA_EMAIL_API_KEY |
Desk, secret |
none |
The mail provider’s API key. |
src/config.ts, src/email.ts, src/evidence.ts |
SA_EMAIL_WEBHOOK_SECRET |
Desk, secret |
none |
The provider’s webhook signing secret. |
src/config.ts, src/email.ts, src/evidence.ts |
SA_EMAIL_DOMAIN |
Desk, measured |
none |
The domain seats receive and send mail on, such as mail.example.com. Mail is off without one. |
src/config.ts, src/email.ts |
SA_EMAIL_API_BASE |
Desk, measured |
none |
The mail provider’s API address, when not the default (Mailgun’s EU region, for example). |
src/email.ts |
SA_EMAIL_PER_DAY |
Desk, measured |
20 |
Recipients one seat may write to in a day. |
src/config.ts, src/email.ts |
SA_EMAIL_PER_HOUR |
Desk, measured |
6 |
Recipients one seat may write to in an hour. |
src/email.ts |
SA_EMAIL_PER_RECIPIENT_DAY |
Desk, measured |
3 |
Messages one seat may send one person in a day. |
src/email.ts |
SA_EMAIL_DOMAIN_PER_DAY |
Desk, measured |
50 |
Messages every seat together may send in a day. |
src/email.ts |
SA_EMAIL_WAKES_PER_DAY |
Desk, measured |
12 |
Runs incoming mail may start for one seat in a day. |
src/email.ts |
SA_EMAIL_WAKES_PER_HOUR |
Desk, measured |
4 |
Runs incoming mail may start for one seat in an hour. |
src/email.ts |
SA_EMAIL_RETENTION_DAYS |
Desk, measured |
90 |
How long a seat’s mail is kept, in days. |
src/email.ts |
| Setting |
Kind |
Default |
What it does |
Read in |
SA_BUY_SELLER_URL |
Desk, measured |
none |
When set, /v1/config reports that the desk sells prepaid cards (buy: true). |
src/config.ts |
SA_CARD_SELLER |
Desk, measured |
none |
laso is the one seller supported. |
src/buy.ts |
SA_CARD_LASO_URL |
Desk, measured |
https://laso.finance |
The card seller’s address. |
src/buy.ts |
SA_CARD_LASO_PAY_TO |
Desk, measured |
0x3291e96b3bff7ed56e3ca8364273c5b4654b2b37 |
The card seller’s payee, pinned to Laso’s by default; any takes whatever its 402 names. |
src/buy.ts |
SA_CARD_MAX |
Desk, measured |
Set per desk |
The most one prepaid card may hold, in dollars. |
src/buy.ts |
SA_CARD_PER_JOB |
Desk, measured |
Set per desk |
The most one agent may put on cards for one task, in dollars. |
src/buy.ts |
SA_CARD_PER_DAY |
Desk, measured |
Set per desk |
The most one agent may put on cards in a day, in dollars. |
src/buy.ts |
SA_CARD_DESK_PER_DAY |
Desk, measured |
Set per desk |
The most every agent together may put on cards in a day, in dollars. |
src/buy.ts |
SA_CARD_WAIT_SECONDS |
Desk, measured |
45 |
How long a pending card is polled before it is left pending, in seconds. |
src/buy.ts |
| Setting |
Kind |
Default |
What it does |
Read in |
SA_OPERATORS |
Desk, measured |
none |
Wallets whose signatures open /v1/ops and /metrics, comma-separated. |
src/config.ts |
SA_METRICS_TOKEN_SHA256 |
Desk, measured |
none |
The sha256, in hex, of a bearer token that also reads /metrics, for a scraper that cannot sign each request. Keep the token itself with the scraper: it reads the metrics and nothing else. |
src/config.ts |
SA_TRUSTED_PROXIES |
Desk, measured |
none |
Proxies trusted to name the client, as addresses or CIDR ranges. Empty: the socket address is the client. A release sets it, and SA_PROXY_PROTOCOL, for the ingress its compose template puts in front of the desk. |
src/config.ts |
SA_CLIENT_IP_HEADER |
Desk, measured |
x-forwarded-for |
The forwarded header a trusted proxy names the client in. |
src/config.ts |
SA_PROXY_PROTOCOL |
Desk, measured |
0 |
1 when the trusted proxies open each connection with a PROXY protocol v2 header naming the client, as haproxy’s send-proxy-v2 does: the header is then required from them, and SA_CLIENT_IP_HEADER is not read. |
src/config.ts |
SA_CORS_ORIGINS |
Desk, measured |
* |
Origins allowed to call the public API from a browser, comma-separated; * allows any. |
src/config.ts |
SA_LIMITS |
Desk, measured |
none |
Rate limits as JSON over DEFAULT_LIMITS in src/config.ts. |
src/config.ts |
SA_SHUTDOWN_GRACE |
Desk, measured |
30 |
How long a shutdown waits for requests and steps in flight, in seconds. |
src/config.ts |
SA_RESTORE |
Desk, measured |
0 |
1: on an empty data directory, wait for an operator to send a backup (ops restore) before making any key. A data directory that holds a desk starts as it is. |
src/config.ts |
SA_ALERT_WEBHOOK_URL |
Desk, measured |
none |
Where what needs a person is also sent, as JSON, each event signed with SA_ALERT_WEBHOOK_SECRET (https outside development). Unset: the events go to the log, /ready and ops alerts only. |
src/config.ts |
SA_ALERT_WEBHOOK_SECRET |
Desk, secret |
none |
The shared secret, at least 32 characters, that signs each event sent to SA_ALERT_WEBHOOK_URL. |
src/config.ts, src/evidence.ts |
| Setting |
Kind |
Default |
What it does |
Read in |
SHIPPED_AGENTS_URL |
Client |
https://desk.shippedagents.com |
The desk the CLI, the library and the local MCP server talk to. |
src/bin/cli.ts, src/bin/mcp.ts, src/operator.ts, src/verify.ts |
SHIPPED_AGENTS_RPC |
Client |
none |
A Robinhood Chain RPC for the CLI and the local MCP server. Public endpoints when unset. |
src/bin/cli.ts, src/bin/mcp.ts, src/verify.ts |
SHIPPED_AGENTS_CHAIN_ID |
Client |
4663 |
The chain the client expects the desk to be on. |
src/bin/cli.ts, src/bin/mcp.ts |
SHIPPED_AGENTS_REGISTRY |
Client |
none |
Pins the Engagement Registry instead of taking it from the desk’s /v1/config; a desk that names another is refused. |
src/bin/cli.ts, src/bin/mcp.ts, src/verify.ts |
SHIPPED_AGENTS_TILL |
Client |
none |
Pins the till x402 payments may go to, instead of the one /v1/config names. |
src/bin/cli.ts, src/bin/mcp.ts |
SHIPPED_AGENTS_KEY |
Client, secret |
none |
The client wallet’s private key, 64 hex characters with or without 0x. Use SHIPPED_AGENTS_KEYSTORE for a keystore. |
src/client/node.ts |
SHIPPED_AGENTS_KEYSTORE |
Client |
none |
A v3 keystore holding the client wallet, such as ./keystore.json, instead of SHIPPED_AGENTS_KEY. |
src/client/node.ts |
SHIPPED_AGENTS_PASSPHRASE |
Client, secret |
none |
The keystore’s passphrase. Asked for at a hidden prompt when unset. |
src/client/node.ts |
SHIPPED_AGENTS_MAX_SPEND |
Client |
none |
The most the local MCP server may pay and fund in one session, in USDG. |
src/bin/mcp.ts |
SHIPPED_AGENTS_HOME |
Client |
~/.shipped-agents |
Where the CLI keeps hires in progress. |
src/bin/cli.ts |
SA_OPERATOR_KEY |
Client, secret |
none |
An operator wallet’s key for the operator commands. |
src/operator.ts |
| Setting |
Kind |
Default |
What it does |
Read in |
FORK_RPC_URL |
Tooling, secret |
none |
A Robinhood Chain mainnet RPC to fork for npm run rehearse:fork, ops/smoke-desk.ts and the fork tests. |
ops/rehearse-fork.ts, ops/smoke-desk.ts |
ANVIL_BIN |
Tooling |
none |
The anvil the fork tooling starts; 1.5.1 is the version tested. Both scripts default to ~/.foundry/versions/stable/anvil and print which they start. |
ops/anvil.ts |
FORK_PORT |
Tooling |
none |
The local fork’s port: 8611 for npm run rehearse:fork, 8621 for ops/smoke-desk.ts, whose desk takes the next port. |
ops/rehearse-fork.ts, ops/smoke-desk.ts |
SA_FORK_TEST |
Tooling |
none |
1 runs the tests that need FORK_RPC_URL. |
tests |
DSTACK_SIMULATOR_ENDPOINT |
Tooling |
none |
A dstack 0.6 simulator socket for the TDX path test (docs/enclave.md). A desk in an enclave refuses to start while it is set. |
src/enclave.ts |
WEB_FAIL_SHOTS |
Tooling |
none |
A folder where a failing browser test leaves a screenshot of every open page. |
tests |
DEPLOY_RPC_URL |
Tooling |
none |
The RPC ops/deploy-registry.ts deploys the Engagement Registry through. SHIPPED_MAINNET_GO=yes is required on every chain but an anvil node. |
ops/deploy-registry.ts |
DEPLOYER_KEY |
Tooling, secret |
none |
The key ops/deploy-registry.ts deploys the Engagement Registry with. |
ops/deploy-registry.ts |
SHIPPED_MAINNET_GO |
Tooling |
none |
Set to yes to let ops/deploy-registry.ts deploy on a chain that is not an anvil node. |
ops/deploy-registry.ts |