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
| Variable | What it does | Dashboard | Secret |
|---|---|---|---|
PORT | Port the web server listens on. Default 4747. | ||
HOST | Address to bind. Default 127.0.0.1; the container sets 0.0.0.0 behind its own port mapping. | ||
ALLOWED_HOSTS | Extra host names the server answers to, comma-separated (for example a Tailscale name). Anything else is refused, which blocks DNS rebinding. | ||
RESOLUTION_DATA | Data folder: the owner token, sealed settings, keys, backups. Default ./data (./data-demo in demo mode). | ||
RESOLUTION_TOKEN | Fixes the owner token instead of generating one on first start. Treat it as a password. | yes | |
RESOLUTION_DEMO | Set to 1 to seed an example fund with simulated sessions. Never for real money. | ||
RESOLUTION_PASSWORD_FILE | Read 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_URL | The 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_URL | On the demo, the real fund's address, linked from the sidebar. Written together with RESOLUTION_TOUR_URL. | ||
DATABASE_URL | PostgreSQL connection string. Without it the Record lives in embedded PGlite in the data folder. Live trading needs PostgreSQL. | ||
SESSION_UTC | Time of the daily session in UTC, as HH:MM. | dashboard |
Market data
| Variable | What it does | Dashboard | Secret |
|---|---|---|---|
MARKET | live for public quotes (marked stale when they fail) or synthetic for the offline simulator. | dashboard | |
OPENFIGI_API_KEY | Optional OpenFIGI key for ISIN lookups; raises the rate limit. Works without one. | dashboard | yes |
ESTR_FETCH | Set to 1 to fetch the euro short-term rate (€STR) from the ECB outside live mode. | dashboard | |
WIRE_FEEDS | Comma-separated RSS or Atom feed URLs for the Wire. Content read from them is data, never instructions. | dashboard |
Models
| Variable | What it does | Dashboard | Secret |
|---|---|---|---|
SEAT_PROVIDER | Provider id for all seats (see providers). Without it the first key found wins. | ||
SEAT_MODEL | Model id; empty means the provider default. | ||
SEAT_BASE_URL | Base URL for Azure, a custom OpenAI-compatible service, or a proxy. | ||
OPENAI_BASE_URL | Older name for SEAT_BASE_URL, still read. | ||
SEAT_BATCH | 1 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_ROSTER | One model per seat: seat=provider:model pairs, comma-separated, or JSON. Settings → Roster edits the same thing. | ||
HF_OAUTH_CLIENT_ID | Client id for "Sign in with Hugging Face" instead of pasting a key. |
Broker
| Variable | What it does | Dashboard | Secret |
|---|---|---|---|
BROKER | ibkr for Interactive Brokers, saxo for Saxo Bank; empty or none stays on paper. | dashboard | |
IBKR_GATEWAY_URL | Client Portal Gateway API base, for example https://localhost:5000/v1/api (or https://ibkr-gateway:5000/v1/api with the compose profile). | dashboard | |
IBKR_ACCOUNT | Account id, only needed when the login sees more than one account. | dashboard | |
IBKR_CONIDS | JSON map pinning instruments to IBKR contract ids when a search is ambiguous, for example {"ASML.AS":117902840}. | dashboard | |
IBKR_LOGIN_URL | Where "log in again" sends you: the gateway login page as your browser reaches it. | dashboard | |
IBKR_GATEWAY_CERT_SHA256 | SHA-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_TOKEN | Read-only Flex Web Service token for daily statements. It cannot trade. | dashboard | yes |
IBKR_FLEX_QUERY_ID | The Flex Query id the token pulls. | dashboard | |
ORDER_STUCK_MIN | Minutes without an answer before an order is flagged for the owner (default 30). It is never resent. | dashboard | |
IBKR_FLEX_PULL_HOUR | UTC hour from which the daily Flex pull runs (default 6). | dashboard | |
SAXO_APP_KEY | The app key (OAuth client id) of the app you registered at developer.saxo. See docs/saxo.md. | dashboard | yes |
SAXO_APP_SECRET | The app secret, only when your Saxo app has one; a PKCE app does not. Stored sealed. | dashboard | yes |
SAXO_REDIRECT_URL | The redirect address registered with your Saxo app: this server's address ending in /oauth/saxo/callback. | dashboard | |
SAXO_ENV | sim (default) for Saxo's simulation environment, live for real money. Each needs its own app. | dashboard | |
SAXO_ACCOUNT | Saxo AccountId to trade, only needed when the login has several accounts and no default. | dashboard | |
PAPER_FEE_MODEL | What paper fills cost: flat (the default schedule), ibkr_fixed or ibkr_tiered (IBKR Pro, with its conversion commission recorded apart). See IBKR. | dashboard |
Backups
| Variable | What it does | Dashboard | Secret |
|---|---|---|---|
BACKUP_PASSPHRASE | Passphrase that encrypts backups. Without it no backup is written. Keep a copy off the server. | dashboard | yes |
BACKUP_EVERY_HOURS | Hours between scheduled backups when a passphrase is set. Default 24; 0 switches the schedule off. | dashboard | |
BACKUP_MAX_AGE_HOURS | Dead-man window: no backup for this many hours degrades health and notifies. Default 36. | dashboard | |
DRILL_EVERY_DAYS | Days between scheduled restore drills of the newest backup. Default 7; 0 switches it off. | dashboard | |
BACKUP_COPY_DIR | Absolute folder each backup is also copied to (a mounted disk or share). | dashboard | |
BACKUP_S3_ENDPOINT | S3-compatible endpoint (https://) each backup is also uploaded to, path-style. | dashboard | |
BACKUP_S3_BUCKET | Bucket for the off-machine copy. | dashboard | |
BACKUP_S3_REGION | Region for the SigV4 signature. Default us-east-1. | dashboard | |
BACKUP_S3_PREFIX | Optional object name prefix, for example resolution/. | dashboard | |
BACKUP_S3_ACCESS_KEY_ID | Access key id for the bucket. Give it write access to that bucket only. | dashboard | yes |
BACKUP_S3_SECRET_ACCESS_KEY | Secret access key for the bucket. | dashboard | yes |
Integrity
| Variable | What it does | Dashboard | Secret |
|---|---|---|---|
ANCHOR_URL | Optional HTTPS endpoint that receives the Record head hash, so tampering on the box is detectable from outside. | dashboard | yes |
ANCHOR_EVERY_MIN | Minutes between anchors. Default 60. | dashboard | |
OTS_ENABLED | Set to 1 to timestamp the newest signed anchor once a day with OpenTimestamps. Off by default. | dashboard | |
OTS_CALENDARS | Comma-separated OpenTimestamps calendar URLs. Default: the a and b opentimestamps.org pools and the eternitywall pool. | dashboard | |
OTS_UPGRADE_DAYS | Days to keep asking the calendars for a completed proof. Default 14. | dashboard |
Integrations
| Variable | What it does | Dashboard | Secret |
|---|---|---|---|
RESOLUTION_URL | Server address the MCP stdio bridge talks to. Default http://127.0.0.1:4747. | ||
RESOLUTION_API_TOKEN | Scoped API token the MCP stdio bridge uses. Create it in Integrations. | yes | |
INTEGRATIONS_IDEAS_PER_DAY | How many ideas integrations may submit per day, 1 to 100. Default 10. | dashboard |
Notifications
| Variable | What it does | Dashboard | Secret |
|---|---|---|---|
NOTIFY_NTFY_URL | ntfy topic URL. | dashboard | yes |
NOTIFY_NTFY_TOKEN | ntfy access token for a protected topic. | dashboard | yes |
NOTIFY_TELEGRAM_TOKEN | Telegram bot token from @BotFather. | dashboard | yes |
NOTIFY_TELEGRAM_CHAT_ID | Telegram chat id to send to. | dashboard | |
NOTIFY_EMAIL_HOST | SMTP host. | dashboard | |
NOTIFY_EMAIL_PORT | SMTP port: 465 with SECURE=1, or 587 with STARTTLS. | dashboard | |
NOTIFY_EMAIL_SECURE | 1 for TLS from the start (port 465). | dashboard | |
NOTIFY_EMAIL_USER | SMTP user. | dashboard | |
NOTIFY_EMAIL_PASS | SMTP password. | dashboard | yes |
NOTIFY_EMAIL_FROM | Sender address. | dashboard | |
NOTIFY_EMAIL_TO | Recipient address. | dashboard | |
NOTIFY_SIGNAL_URL | signal-cli REST API base URL. | dashboard | |
NOTIFY_SIGNAL_NUMBER | Signal number the messages come from. | dashboard | yes |
NOTIFY_SIGNAL_RECIPIENTS | Signal recipients, comma-separated. | dashboard | yes |
NOTIFY_PUSHOVER_TOKEN | Pushover application token. | dashboard | yes |
NOTIFY_PUSHOVER_USER | Pushover user key. | dashboard | yes |
NOTIFY_SLACK_WEBHOOK_URL | Slack incoming webhook URL. | dashboard | yes |
NOTIFY_DISCORD_WEBHOOK_URL | Discord webhook URL. | dashboard | yes |
NOTIFY_TEAMS_WEBHOOK_URL | Microsoft Teams webhook URL. | dashboard | yes |
NOTIFY_WEBHOOK_URL | Generic webhook URL; each call is HMAC-signed. | dashboard | yes |
NOTIFY_WEBHOOK_SECRET | Secret for the generic webhook signature. | dashboard | yes |
NOTIFY_TZ | Timezone for quiet hours (default Europe/Amsterdam). | dashboard | |
NOTIFY_QUIET_HOURS | Quiet hours, such as 22:00-07:00 (the default), or off. SOFT notices wait for a digest; HARD ones always go out. | dashboard | |
NOTIFY_CATEGORIES | Comma 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.
| Variable | Provider |
|---|---|
AI_GATEWAY_API_KEY | Vercel AI Gateway |
AI21_API_KEY | AI21 |
ANTHROPIC_API_KEY | Anthropic |
AWS_BEARER_TOKEN_BEDROCK | Amazon Bedrock |
AZURE_OPENAI_API_KEY | Azure OpenAI |
BASETEN_API_KEY | Baseten |
BERGET_API_KEY | Berget AI |
CEREBRAS_API_KEY | Cerebras |
CHUTES_API_KEY | Chutes |
CLOUDFLARE_API_TOKEN | Cloudflare Workers AI |
COHERE_API_KEY | Cohere |
CORTECS_API_KEY | Cortecs |
CUSTOM_API_KEY | Any OpenAI-compatible server |
DASHSCOPE_API_KEY | Alibaba Cloud (Qwen) |
DEEPINFRA_API_KEY | DeepInfra |
DEEPSEEK_API_KEY | DeepSeek |
FEATHERLESS_API_KEY | Featherless |
FIREWORKS_API_KEY | Fireworks AI |
FRIENDLI_TOKEN | Friendli |
GOOGLE_API_KEY | Google Gemini |
GROQ_API_KEY | Groq |
HF_TOKEN | Hugging Face Inference Providers |
HYPERBOLIC_API_KEY | Hyperbolic |
INFOMANIAK_API_KEY | Infomaniak AI Tools |
IONOS_API_KEY | IONOS AI Model Hub |
JAN_HOST | Jan (local) |
LLAMACPP_HOST | llama.cpp server (local) |
LLMHUB_API_KEY | T-Systems LLM Hub |
LMSTUDIO_HOST | LM Studio (local) |
LOCALAI_HOST | LocalAI (local) |
MINIMAX_API_KEY | MiniMax |
MISTRAL_API_KEY | Mistral |
MOONSHOT_API_KEY | Moonshot AI (Kimi) |
NEBIUS_API_KEY | Nebius Token Factory |
NOVITA_API_KEY | Novita AI |
NVIDIA_API_KEY | NVIDIA API catalog |
OLLAMA_HOST | Ollama (local) |
OPENAI_API_KEY | OpenAI |
OPENROUTER_API_KEY | OpenRouter |
OVH_AI_ENDPOINTS_API_KEY | OVHcloud AI Endpoints |
PERPLEXITY_API_KEY | Perplexity |
REGOLO_API_KEY | Regolo.ai |
REQUESTY_API_KEY | Requesty |
SAMBANOVA_API_KEY | SambaNova Cloud |
SCALEWAY_API_KEY | Scaleway Generative APIs |
SILICONFLOW_API_KEY | SiliconFlow |
STACKIT_API_KEY | STACKIT AI Model Serving |
TOGETHER_API_KEY | Together AI |
VENICE_API_KEY | Venice.ai |
VLLM_HOST | vLLM (local) |
XAI_API_KEY | xAI |
ZAI_API_KEY | Z.ai (GLM) |