Resolution

All pages

Configuration

Everything the server reads from its environment. Put these in .env next to compose.yaml (copy .env.example), or in the environment of npm start. Settings marked dashboard can also be set on the Connections page, where secrets are sealed in the data folder; a variable set in the environment always wins and cannot be changed from the dashboard. Broker passwords are never configured anywhere: IBKR login happens in IBKR's own gateway.

Server

VariableWhat it doesDashboardSecret
PORTPort the web server listens on. Default 4747.
HOSTAddress to bind. Default 127.0.0.1; the container sets 0.0.0.0 behind its own port mapping.
ALLOWED_HOSTSExtra host names the server answers to, comma-separated (for example a Tailscale name). Anything else is refused, which blocks DNS rebinding.
RESOLUTION_DATAData folder: the owner token, sealed settings, keys, backups. Default ./data (./data-demo in demo mode).
RESOLUTION_TOKENFixes the owner token instead of generating one on first start. Treat it as a password.yes
RESOLUTION_DEMOSet to 1 to seed an example fund with simulated sessions. Never for real money.
RESOLUTION_PASSWORD_FILERead the owner password record from this file instead of the data folder. The tour is given the real fund's file read-only, so one password opens both; changing it on that server is refused.yes
RESOLUTION_TOUR_URLThe demo fund's address, offered on the founding's first screen. resolution tour on writes it once the tour is on the tailnet.
RESOLUTION_HOME_URLOn the demo, the real fund's address, linked from the sidebar. Written together with RESOLUTION_TOUR_URL.
DATABASE_URLPostgreSQL connection string. Without it the Record lives in embedded PGlite in the data folder. Live trading needs PostgreSQL.
SESSION_UTCTime of the daily session in UTC, as HH:MM.dashboard

Market data

VariableWhat it doesDashboardSecret
MARKETlive for public quotes (marked stale when they fail) or synthetic for the offline simulator.dashboard
OPENFIGI_API_KEYOptional OpenFIGI key for ISIN lookups; raises the rate limit. Works without one.dashboardyes
ESTR_FETCHSet to 1 to fetch the euro short-term rate (€STR) from the ECB outside live mode.dashboard
WIRE_FEEDSComma-separated RSS or Atom feed URLs for the Wire. Content read from them is data, never instructions.dashboard

Models

VariableWhat it doesDashboardSecret
SEAT_PROVIDERProvider id for all seats (see providers). Without it the first key found wins.
SEAT_MODELModel id; empty means the provider default.
SEAT_BASE_URLBase URL for Azure, a custom OpenAI-compatible service, or a proxy.
OPENAI_BASE_URLOlder name for SEAT_BASE_URL, still read.
SEAT_BATCH1 sends the judge's LOG-grade order and position checks from the daily run through Anthropic or OpenAI batch interfaces at half price; collected on a later day. Anything else falls back to direct calls.
SEAT_ROSTEROne model per seat: seat=provider:model pairs, comma-separated, or JSON. Settings → Roster edits the same thing.
HF_OAUTH_CLIENT_IDClient id for "Sign in with Hugging Face" instead of pasting a key.

Broker

VariableWhat it doesDashboardSecret
BROKERibkr for Interactive Brokers, saxo for Saxo Bank; empty or none stays on paper.dashboard
IBKR_GATEWAY_URLClient Portal Gateway API base, for example https://localhost:5000/v1/api (or https://ibkr-gateway:5000/v1/api with the compose profile).dashboard
IBKR_ACCOUNTAccount id, only needed when the login sees more than one account.dashboard
IBKR_CONIDSJSON map pinning instruments to IBKR contract ids when a search is ambiguous, for example {"ASML.AS":117902840}.dashboard
IBKR_LOGIN_URLWhere "log in again" sends you: the gateway login page as your browser reaches it.dashboard
IBKR_GATEWAY_CERT_SHA256SHA-256 fingerprint of the gateway's self-signed certificate, trusted in the connection wizard. Only that certificate is accepted; without it only a publicly valid one is.dashboard
IBKR_FLEX_TOKENRead-only Flex Web Service token for daily statements. It cannot trade.dashboardyes
IBKR_FLEX_QUERY_IDThe Flex Query id the token pulls.dashboard
ORDER_STUCK_MINMinutes without an answer before an order is flagged for the owner (default 30). It is never resent.dashboard
IBKR_FLEX_PULL_HOURUTC hour from which the daily Flex pull runs (default 6).dashboard
SAXO_APP_KEYThe app key (OAuth client id) of the app you registered at developer.saxo. See docs/saxo.md.dashboardyes
SAXO_APP_SECRETThe app secret, only when your Saxo app has one; a PKCE app does not. Stored sealed.dashboardyes
SAXO_REDIRECT_URLThe redirect address registered with your Saxo app: this server's address ending in /oauth/saxo/callback.dashboard
SAXO_ENVsim (default) for Saxo's simulation environment, live for real money. Each needs its own app.dashboard
SAXO_ACCOUNTSaxo AccountId to trade, only needed when the login has several accounts and no default.dashboard
PAPER_FEE_MODELWhat paper fills cost: flat (the default schedule), ibkr_fixed or ibkr_tiered (IBKR Pro, with its conversion commission recorded apart). See IBKR.dashboard

Backups

VariableWhat it doesDashboardSecret
BACKUP_PASSPHRASEPassphrase that encrypts backups. Without it no backup is written. Keep a copy off the server.dashboardyes
BACKUP_EVERY_HOURSHours between scheduled backups when a passphrase is set. Default 24; 0 switches the schedule off.dashboard
BACKUP_MAX_AGE_HOURSDead-man window: no backup for this many hours degrades health and notifies. Default 36.dashboard
DRILL_EVERY_DAYSDays between scheduled restore drills of the newest backup. Default 7; 0 switches it off.dashboard
BACKUP_COPY_DIRAbsolute folder each backup is also copied to (a mounted disk or share).dashboard
BACKUP_S3_ENDPOINTS3-compatible endpoint (https://) each backup is also uploaded to, path-style.dashboard
BACKUP_S3_BUCKETBucket for the off-machine copy.dashboard
BACKUP_S3_REGIONRegion for the SigV4 signature. Default us-east-1.dashboard
BACKUP_S3_PREFIXOptional object name prefix, for example resolution/.dashboard
BACKUP_S3_ACCESS_KEY_IDAccess key id for the bucket. Give it write access to that bucket only.dashboardyes
BACKUP_S3_SECRET_ACCESS_KEYSecret access key for the bucket.dashboardyes

Integrity

VariableWhat it doesDashboardSecret
ANCHOR_URLOptional HTTPS endpoint that receives the Record head hash, so tampering on the box is detectable from outside.dashboardyes
ANCHOR_EVERY_MINMinutes between anchors. Default 60.dashboard
OTS_ENABLEDSet to 1 to timestamp the newest signed anchor once a day with OpenTimestamps. Off by default.dashboard
OTS_CALENDARSComma-separated OpenTimestamps calendar URLs. Default: the a and b opentimestamps.org pools and the eternitywall pool.dashboard
OTS_UPGRADE_DAYSDays to keep asking the calendars for a completed proof. Default 14.dashboard

Integrations

VariableWhat it doesDashboardSecret
RESOLUTION_URLServer address the MCP stdio bridge talks to. Default http://127.0.0.1:4747.
RESOLUTION_API_TOKENScoped API token the MCP stdio bridge uses. Create it in Integrations.yes
INTEGRATIONS_IDEAS_PER_DAYHow many ideas integrations may submit per day, 1 to 100. Default 10.dashboard

Notifications

VariableWhat it doesDashboardSecret
NOTIFY_NTFY_URLntfy topic URL.dashboardyes
NOTIFY_NTFY_TOKENntfy access token for a protected topic.dashboardyes
NOTIFY_TELEGRAM_TOKENTelegram bot token from @BotFather.dashboardyes
NOTIFY_TELEGRAM_CHAT_IDTelegram chat id to send to.dashboard
NOTIFY_EMAIL_HOSTSMTP host.dashboard
NOTIFY_EMAIL_PORTSMTP port: 465 with SECURE=1, or 587 with STARTTLS.dashboard
NOTIFY_EMAIL_SECURE1 for TLS from the start (port 465).dashboard
NOTIFY_EMAIL_USERSMTP user.dashboard
NOTIFY_EMAIL_PASSSMTP password.dashboardyes
NOTIFY_EMAIL_FROMSender address.dashboard
NOTIFY_EMAIL_TORecipient address.dashboard
NOTIFY_SIGNAL_URLsignal-cli REST API base URL.dashboard
NOTIFY_SIGNAL_NUMBERSignal number the messages come from.dashboardyes
NOTIFY_SIGNAL_RECIPIENTSSignal recipients, comma-separated.dashboardyes
NOTIFY_PUSHOVER_TOKENPushover application token.dashboardyes
NOTIFY_PUSHOVER_USERPushover user key.dashboardyes
NOTIFY_SLACK_WEBHOOK_URLSlack incoming webhook URL.dashboardyes
NOTIFY_DISCORD_WEBHOOK_URLDiscord webhook URL.dashboardyes
NOTIFY_TEAMS_WEBHOOK_URLMicrosoft Teams webhook URL.dashboardyes
NOTIFY_WEBHOOK_URLGeneric webhook URL; each call is HMAC-signed.dashboardyes
NOTIFY_WEBHOOK_SECRETSecret for the generic webhook signature.dashboardyes
NOTIFY_TZTimezone for quiet hours (default Europe/Amsterdam).dashboard
NOTIFY_QUIET_HOURSQuiet hours, such as 22:00-07:00 (the default), or off. SOFT notices wait for a digest; HARD ones always go out.dashboard
NOTIFY_CATEGORIESComma list of categories to send (risk, approvals, orders, ops, backups; default all). HARD notices and the kill switch always go out.dashboard

Model provider keys

Set the key for the provider you use; the Connections page can hold it instead (sealed, never sent to the browser). Without any key the seats run scripted, which is labelled everywhere. Full list with models and prices: providers.

VariableProvider
AI_GATEWAY_API_KEYVercel AI Gateway
AI21_API_KEYAI21
ANTHROPIC_API_KEYAnthropic
AWS_BEARER_TOKEN_BEDROCKAmazon Bedrock
AZURE_OPENAI_API_KEYAzure OpenAI
BASETEN_API_KEYBaseten
BERGET_API_KEYBerget AI
CEREBRAS_API_KEYCerebras
CHUTES_API_KEYChutes
CLOUDFLARE_API_TOKENCloudflare Workers AI
COHERE_API_KEYCohere
CORTECS_API_KEYCortecs
CUSTOM_API_KEYAny OpenAI-compatible server
DASHSCOPE_API_KEYAlibaba Cloud (Qwen)
DEEPINFRA_API_KEYDeepInfra
DEEPSEEK_API_KEYDeepSeek
FEATHERLESS_API_KEYFeatherless
FIREWORKS_API_KEYFireworks AI
FRIENDLI_TOKENFriendli
GOOGLE_API_KEYGoogle Gemini
GROQ_API_KEYGroq
HF_TOKENHugging Face Inference Providers
HYPERBOLIC_API_KEYHyperbolic
INFOMANIAK_API_KEYInfomaniak AI Tools
IONOS_API_KEYIONOS AI Model Hub
JAN_HOSTJan (local)
LLAMACPP_HOSTllama.cpp server (local)
LLMHUB_API_KEYT-Systems LLM Hub
LMSTUDIO_HOSTLM Studio (local)
LOCALAI_HOSTLocalAI (local)
MINIMAX_API_KEYMiniMax
MISTRAL_API_KEYMistral
MOONSHOT_API_KEYMoonshot AI (Kimi)
NEBIUS_API_KEYNebius Token Factory
NOVITA_API_KEYNovita AI
NVIDIA_API_KEYNVIDIA API catalog
OLLAMA_HOSTOllama (local)
OPENAI_API_KEYOpenAI
OPENROUTER_API_KEYOpenRouter
OVH_AI_ENDPOINTS_API_KEYOVHcloud AI Endpoints
PERPLEXITY_API_KEYPerplexity
REGOLO_API_KEYRegolo.ai
REQUESTY_API_KEYRequesty
SAMBANOVA_API_KEYSambaNova Cloud
SCALEWAY_API_KEYScaleway Generative APIs
SILICONFLOW_API_KEYSiliconFlow
STACKIT_API_KEYSTACKIT AI Model Serving
TOGETHER_API_KEYTogether AI
VENICE_API_KEYVenice.ai
VLLM_HOSTvLLM (local)
XAI_API_KEYxAI
ZAI_API_KEYZ.ai (GLM)