Skip to Content
WonderMoney Docs
Self-hosting

Configure your instance

Turn on email, file storage, AI features and market data, and control who can sign up.

All configuration lives in the .env file next to docker-compose.yml, commented section by section. After editing it, apply the changes with:

docker compose up -d

Addresses and secrets

generate-env.sh, which the install script runs, writes these once. The API does not start without them.

SettingWhat it is
APP_URL, API_URLThe public addresses of the web app and the API. See HTTPS and domains
POSTGRES_PASSWORDThe password of the bundled Postgres database, set when the database is first created
BETTER_AUTH_SECRETThe sign-in secret, which protects sessions
CREDENTIAL_ENCRYPTION_KEY_V1Encrypts each user's stored bank credentials. Never change it once in use, and keep a copy apart from your database backups: a restored database is unreadable without it
EMAIL_OPT_OUT_SIGNING_SECRETSigns the unsubscribe links in emails. The worker creates them and the API checks them, so both need the same value
ADMIN_API_KEYThe key for the admin endpoints, sent in the x-api-key header (see Bank sync health)
INTERNAL_SERVICE_API_KEYAn internal service key the API requires at start-up. Keep the generated value

Some settings in .env are described on other pages:

  • TRUST_PROXY, BIND_ADDRESS, AUTH_COOKIE_DOMAIN, NEXT_PUBLIC_AUTH_COOKIE_DOMAIN and the proxy profile in COMPOSE_PROFILES: HTTPS and domains.
  • WM_VERSION, WM_IMAGE_REGISTRY, BACKUP_DIR, BACKUP_SCHEDULE, BACKUP_KEEP_DAYS, BACKUP_TZ, BACKUP_DESTINATION, BACKUP_OFFSITE_SCHEDULE and BACKUP_OFFSITE_KEEP_DAYS: Updates and backups.
  • HEALTH_MAX_JOB_AGE_MINUTES: Monitoring.
  • IOS_APP_TEAM_ID, IOS_APP_BUNDLE_ID, ANDROID_APP_PACKAGE and ANDROID_APP_CERT_SHA256: Use the mobile app with your server.

Email

Set an SMTP server:

SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER=...
SMTP_PASSWORD=...
EMAIL_FROM=money@example.com

Or set RESEND_API_KEY to use Resend instead. To test without a real provider, use the bundled Mailpit: add mail to COMPOSE_PROFILES, set SMTP_HOST=mailpit and SMTP_PORT=1025, run docker compose up -d, and read the mail at http://localhost:8025.

SMTP_PORT defaults to 587. The connection uses implicit TLS on port 465 and, on any other port, STARTTLS when the server offers it; set SMTP_SECURE to true or false to choose yourself.

The API picks the provider from what is set: Resend when RESEND_API_KEY is set, otherwise SMTP when SMTP_HOST is. To choose yourself, set EMAIL_DRIVER to smtp, resend or log; log writes every message to the API log instead of sending it. EMAIL_FROM_NAME sets the sender's name, which is INSTANCE_NAME when it is empty.

With no provider configured, the API writes each message to its log, and the worker sends no background reminders (card payment reminders, API token expiry). Card payment reminders go out a few days before a statement is due: set CREDIT_CARD_DUE_REMINDER_DAYS on the worker to change the lead time (3 by default, a whole number of days).

File storage

CSV imports and receipt copies need S3-compatible storage. To use the bundled store (SeaweedFS), set these in .env and run docker compose up -d:

COMPOSE_PROFILES=storage
AWS_ACCESS_KEY_ID=choose-a-user
AWS_SECRET_ACCESS_KEY=choose-a-long-password
S3_ENDPOINT=http://storage:8333
S3_PUBLIC_ENDPOINT=http://localhost:9000
S3_BUCKET=wondermoney

The two keys become the store's credentials, and it won't start without them. S3_PUBLIC_ENDPOINT is the address browsers use to reach the storage; behind a proxy, give it its own HTTPS hostname that forwards to port 9000. Any S3-compatible service works too, such as Cloudflare R2, Backblaze B2 or AWS S3: set S3_REGION when the service needs one (us-east-1 is used when it is empty and S3_ENDPOINT is set). With S3_ENDPOINT, requests use path-style addresses; set S3_FORCE_PATH_STYLE=false for a service that only accepts virtual-hosted ones. Transaction attachments use the same storage: without it, the attachments section is hidden and its endpoints answer 503.

AI features

Receipt scanning, CSV column mapping, PDF statement import, transaction categorisation, the monthly story and the assistant work with any OpenAI-compatible endpoint: OpenAI, OpenRouter, or a model running locally with Ollama, LM Studio or vLLM.

AI_BASE_URL=http://host.docker.internal:11434/v1
AI_MODEL=llama3.1

Set AI_API_KEY when the endpoint needs one. To use a different model for one feature, set AI_MODEL_<FEATURE>; for example, receipt scanning needs a model that reads images, set with AI_MODEL_OCR. The features are ASSISTANT, CSV_MAPPING, ENRICHMENT (transaction categorisation), MONTHLY_STORY, OCR and STATEMENT_IMPORT. The settings are AI_MODEL_ASSISTANT, AI_MODEL_CSV_MAPPING, AI_MODEL_ENRICHMENT, AI_MODEL_MONTHLY_STORY, AI_MODEL_OCR and AI_MODEL_STATEMENT_IMPORT.

To use Anthropic with your own API key, choose it explicitly:

AI_PROVIDER=anthropic
ANTHROPIC_API_KEY=sk-ant-...
AI_MODEL=claude-sonnet-4-5

AI_MODEL, or AI_MODEL_<FEATURE> for one feature, is required: there is no built-in default model. Receipt scanning needs a model that reads images, so set AI_MODEL_OCR if your default does not. Anthropic wins over AI_BASE_URL, but a complete Azure setup still takes precedence. See Azure.

PDF statement import sends each page of a statement to the model as an image, so it needs a model that reads images. On an OpenAI-compatible endpoint it stays off until you name one with AI_MODEL_STATEMENT_IMPORT; AI_MODEL is not used for it, since a default local model often reads text only. On Anthropic it uses AI_MODEL_STATEMENT_IMPORT, or AI_MODEL when that is empty. The app names the provider to the person before any page is sent: Anthropic or Azure OpenAI by name, an OpenAI-compatible endpoint as the AI provider the server is set up with. The endpoint's address is never shown, and GET /v1/instance reports only the provider's family.

SettingWhat it does
AI_MODEL_STATEMENT_IMPORTThe model that reads PDF statements. Required on an OpenAI-compatible endpoint
AI_DAILY_LIMIT_STATEMENT_IMPORTPDF statements a household can import per day; each statement counts as one, however many pages it has. Empty means no limit
STATEMENT_IMPORT_MAX_BYTESThe largest PDF accepted, in bytes. Defaults to 10485760 (10 MB)
STATEMENT_IMPORT_MAX_PAGESThe most pages a statement can have. Every page is one request to the model, so this also caps what one statement costs. Defaults to 20

Set the two limits on the API and the worker; a value that is not a positive whole number stops them at start-up.

If sign-up is open and you pay for the model, set AI_REQUIRES_VERIFIED_EMAIL=true. Accounts that sign up with email and password then get a verification link by email, and need to follow it before they can use the assistant, receipt scanning, AI column mapping or PDF statement import. Google and Apple accounts count as verified. It needs email configured.

To cap what each household can spend on the model per day, set AI_DAILY_LIMIT_ASSISTANT (assistant messages), AI_DAILY_LIMIT_OCR (receipt scans) and AI_DAILY_LIMIT_CSV_MAPPING (CSV imports the model maps). Members of a household share the limit, and it resets at midnight UTC. Leave them empty for no limit. Once a household reaches a limit, the app says so until the next day; CSV imports still work, with the columns mapped by hand.

Azure

Azure OpenAI and Azure AI Foundry are decided feature by feature. A feature whose Azure settings are all present uses Azure, whatever AI_PROVIDER and AI_BASE_URL say; a feature with one of them missing falls back to Anthropic or the OpenAI-compatible endpoint, or stays off.

SettingWhat it does
AZURE_OPENAI_ENDPOINT, AZURE_OPENAI_API_KEY, AZURE_OPENAI_API_VERSIONYour Azure OpenAI resource, its key and the API version to call. All three are needed for the assistant, receipt scanning, CSV column mapping, the monthly story and PDF statement import
AZURE_OPENAI_DEPLOYMENTThe deployment the assistant uses. Without it, the assistant does not use Azure
AZURE_OPENAI_OCR_DEPLOYMENTThe deployment that reads receipts; it must read images. Without it, receipt scanning does not use Azure
AZURE_OPENAI_STATEMENT_IMPORT_DEPLOYMENTThe deployment that reads PDF statements; it must read images. Without it, PDF statement import does not use Azure
AZURE_AI_FOUNDRY_ENDPOINT, AZURE_AI_FOUNDRY_API_KEY, AZURE_AI_FOUNDRY_API_VERSIONYour Azure AI Foundry resource, for transaction categorisation only. All three are needed

Two names are fixed in the code. On Azure OpenAI, CSV column mapping and the monthly story call a deployment named gpt-5.4-nano, so the resource needs a deployment with that name. On Azure AI Foundry, transaction categorisation calls the model DeepSeek-V4-Flash; set TRANSACTION_ENRICHMENT_GPT_MODEL_VERSION on the worker to name another one. Set the Azure settings on the API and the worker.

Market data

Set EODHD_API_KEY to turn on ticker search, live prices and the Financial Markets module.

MARKET_DATA_PROVIDERS lists the market-data providers to ask, in order, separated by commas. Empty means eodhd alone. When a provider fails or has nothing for a security, the next one in the list is asked, and a feature that no listed provider offers is hidden. An unknown or repeated provider stops the API and the worker at start-up. Set it on both.

ProviderWhat it givesNeeds
eodhdSearch, latest prices, daily history, dividends and splits, on most exchangesEODHD_API_KEY
stooqThe latest daily close and daily history for US, London, Xetra and Tokyo listings and the main US indices. No search, dividends or splitsNothing
coingeckoCrypto search, latest prices and up to a year of daily history, for pairs written like BTC-USDNothing

MARKET_DATA_PROVIDERS=eodhd,stooq,coingecko asks EODHD first and the free providers when it cannot answer. MARKET_DATA_PROVIDERS=stooq,coingecko prices holdings without an EODHD key; securities are then found only through CoinGecko's crypto search, so stocks must already be in your catalogue.

Stooq and CoinGecko are outside services with their own terms of use, and they stay off until you list them. Read their terms before you do: you are responsible for following them, including any limits on requests and on commercial use. WonderMoney's hosted service does not use them.

Each stored price records the provider it came from. A holding's price history shows it, and administrators see the providers and the recent prices from each at GET /v1/admin/market-data/sources.

Crypto wallets

Crypto wallets value the Bitcoin and Ethereum your users hold at public addresses. They are off by default: no explorer is called, and the apps do not offer them. Each chain turns on when you name the block explorer the server reads its balances from.

SettingWhat it takes
CRYPTO_BTC_EXPLORER_URLThe REST root of a mempool.space or Esplora compatible API, such as https://mempool.example.org/api. The server asks <url>/address/<address> for each Bitcoin address, including each one derived from an extended public key
CRYPTO_ETH_EXPLORER_URLThe root of a Blockscout instance, such as https://blockscout.example.org. The server asks <url>/api/v2/addresses/<address> and <url>/api/v2/addresses/<address>/token-balances for each Ethereum address

Each must be an https address with no user name, password, query or fragment; anything else stops the API and the worker at start-up. Set them on both. The API offers wallets only for the chains it has an explorer for, and GET /v1/instance lists them in features.cryptoWalletChains. The worker syncs every wallet once a day at 04:30 UTC, and again when a member creates a wallet, adds an address, ticks a token or chooses Sync now. It asks each explorer one request at a time, spaced out, with a 15-second timeout, and tries up to three times after a timeout, a server error or a 429 (waiting as long as Retry-After asks, up to 30 seconds).

The explorer sees every address it is asked about and your server's IP address, and since one server asks about all of a household's addresses, it can link them together. Nothing else is sent: no names, amounts or user IDs. The private choice is your own Bitcoin or Ethereum node with an explorer in front of it: mempool or Esplora for Bitcoin, Blockscout for Ethereum. Public instances exist, such as https://mempool.space/api and https://eth.blockscout.com. They are outside services with their own terms of use and request limits: using one is your choice, following its terms is your responsibility, and your privacy policy should say that your users' addresses go to it. WonderMoney's hosted service does not turn crypto wallets on.

Prices come from the providers in MARKET_DATA_PROVIDERS (Market data): each token is looked up by its symbol against the US dollar, as <SYMBOL>-USD.CC. EODHD and CoinGecko both price crypto. Without a provider that does, wallets show their balances but have no value. ERC-20 tokens are priced by symbol, so a token can pass itself off as another; members tick the tokens they want counted, and are told to tick only those they recognise.

Merchant logos

Merchant logos are off by default. Each merchant then shows the first letter of its name in a colored circle, and nothing about your users' merchants leaves the server.

Set MERCHANT_LOGO_URL_TEMPLATE to the address of a logo service, with {domain} where the merchant's website domain goes, for example https://logos.example.com/{domain}.png. It must be an https address, and {domain} must come after the host; anything else stops the API at start-up. Set it on the API.

When a member adds a website to a merchant, the API asks the service for that domain's logo, keeps it for a day (a domain with no logo for an hour), and serves it to the web and mobile apps from your own server. The service sees your server's address and the merchant's domain, such as example.com. It never sees your users' addresses, browsers, accounts or transactions, and the apps never contact it. Pick a service whose terms you accept for that, and say so in your privacy policy.

A logo address a member types in themselves wins over the template. The apps load that image directly from the address the member chose, without a referrer, so that site sees the address of each household member who views it. Only https addresses on a named host are accepted.

Push notifications

Push notifications are off by default. Set PUSH_ENABLED=true on the API and the worker to let the mobile app register phones and receive notifications through the Expo push service: budget alerts, card payment reminders, bank connection alerts and a test notification. Every category stays off until a person turns it on in the app, and the phone asks for permission only then.

The text says what happened, never how much: "Your budget Groceries is over plan" or "A card payment is due in 3 days". Amounts, balances and merchants stay in the app. Expo receives each registered phone's push token, the notification's title and text, and the screen of the app it opens.

If the Expo project the app was built from requires an access token on push requests, set EXPO_ACCESS_TOKEN on the API and the worker. Which app builds your server can reach depends on that project; see Push notifications.

Bank sync

Bank sync with European banks needs no server configuration. Each person adds their own Enable Banking application key under Settings, so bank credentials are never shared between users.

BANK_PROVIDERS lists the bank providers your instance offers, separated by commas. Unset or empty means every built-in provider except the opt-in ones, which today is enable_banking alone. Set it on the API and the worker.

ProviderWhat it connectsNeeds
enable_bankingBanks in Europe, through each person's own Enable Banking application or the server'sNothing on the server, or one Enable Banking application for the whole server (below). On unless BANK_PROVIDERS leaves it out
simplefinBanks in the United States and Canada, through SimpleFIN Bridge, a paid service each person subscribes toOpt-in: off until listed, as in BANK_PROVIDERS=enable_banking,simplefin. See SimpleFIN

An id this version does not have is ignored, so BANK_PROVIDERS=none turns bank sync off. GET /v1/instance reports the enabled providers in features.bankSyncProviders, and the apps offer only those.

SettingWhat it does
SIMPLEFIN_BRIDGE_HOSTSThe hosts the server may call for SimpleFIN, separated by commas. Empty means SimpleFIN Bridge, bridge.simplefin.org and beta-bridge.simplefin.org. Set it only for another server that speaks the SimpleFIN protocol; it replaces the default list. Every SimpleFIN address must be https on port 443, on one of these hosts, and resolve only to public addresses (SimpleFIN). Set it on the API and the worker

The worker syncs each bank connection at most once every BANK_SYNC_MIN_INTERVAL_HOURS hours, 20 by default. Under PSD2 a bank may limit unattended access to four calls a day per account, so set it to 6 or more to stay inside that limit. SimpleFIN Bridge expects about 24 requests a day or fewer for each connection, so don't lower it far if you offer SimpleFIN. A failed sync waits the same interval before the next try. Set it on the worker; a value that is not a positive number stops the worker at start-up.

One Enable Banking application for the server

To let your household link banks without each person registering an application, register one yourself with Enable Banking and give the server its application ID and private key:

SettingWhat it does
ENABLE_BANKING_APP_IDThe application's ID. Turns the server's application on together with the key file
ENABLE_BANKING_PRIVATE_KEY_FILEThe application's private key (the .pem file you generated when registering it, not its certificate). With Docker Compose, its path on the server, such as ./enable-banking.pem beside docker-compose.yml: the API and the worker read it as a Docker secret. Elsewhere, the path the API and the worker read it from
ENABLE_BANKING_PRODUCTION_CONTRACTtrue lifts the one-household limit below. Set it only once Enable Banking has given you a full production contract

The containers run as user 1000, so that user must be able to read the key file: chmod 644 enable-banking.pem, or chown 1000 enable-banking.pem. On Kubernetes, put the key in a Secret and name it in enableBanking.privateKeySecret in the chart's values. Set all three on the API and the worker.

Both check the key when they start: a file they can't read, or one that is not an RSA private key, stops them with an error that names the file. The key is never logged, stored in the database or sent to the apps. GET /v1/instance reports features.bankSyncCredentials: "instance" ("user" without it), and the web and mobile apps skip the "add your key" step for everyone the application covers.

A person who adds their own key in Settings still links with theirs. Each connection keeps the application it was made with: if you remove or replace the server's application, the connections made with it stop syncing and their owners connect again.

The licence limit: one household

A new Enable Banking application runs in Restricted Production mode, in which it may only link the accounts of the person who registered it. Without a full production contract, the server's application therefore serves one household:

  • While the server has a single household, every member can link with it.
  • The first household to link a bank with it keeps it, for new links and for reconnecting, after other households sign up. Its connections keep syncing.
  • Every other household sees the usual "add your own key" step, with a line saying the server's shared connection covers one household only.
  • If a second household signs up before anyone has linked a bank, no household gets the server's application until you set ENABLE_BANKING_PRODUCTION_CONTRACT=true.

The demo account never counts. Enable Banking also enforces the limit itself: in Restricted Production mode, it refuses accounts that don't belong to the application's owner, including those of the other people in their household. Check what your application may reach in the Enable Banking Control Panel.

Google sign-in

Set both GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET (from an OAuth client in Google Cloud, with <API_URL>/api/auth/callback/google as its authorised redirect URI) to offer "Continue with Google" on the login and sign-up pages. Without both, the button is hidden.

Sign in with Apple

Sign in with Apple works in the iOS app only; the web app has no Apple button. The iOS app shows the button on every server, so until you set this up, a person who taps it on your server is told the sign-in is unavailable.

Set APPLE_NATIVE_AUDIENCE on the API to the bundle ID of the iOS app your users run: money.wonder.app for the published app, or the bundle ID of an app you built yourself. The API then accepts the identity token Apple issues to that app, and checks it against Apple's public keys. It takes one bundle ID, with no spaces or wildcards; anything else stops the API at start-up. A new account made this way follows SIGNUP_MODE.

APPLE_CLIENT_ID and APPLE_CLIENT_SECRET (an Apple Services ID and its client secret, a signed token you generate yourself) register Apple's browser sign-in on the API. No page of the web app uses it, so leave them empty. APPLE_CLIENT_SECRET without APPLE_CLIENT_ID stops the API at start-up.

Single sign-on (OIDC)

Sign in through your own identity provider, such as Authentik or Keycloak: the login and sign-up pages, on the web and in the mobile app, then offer Sign in with <name>. Single sign-on walks through setting up the provider.

SettingWhat it does
OIDC_ISSUER, OIDC_CLIENT_ID, OIDC_CLIENT_SECRETThe provider's issuer URL (HTTPS) and the client you registered there, with <API_URL>/api/auth/callback/oidc as its redirect URI. The three turn single sign-on on together; any other OIDC_ setting without them stops the API at start-up
OIDC_DISPLAY_NAMEThe name on the button. Defaults to SSO
OIDC_SCOPESSpace-separated scopes to ask for; must include openid. Defaults to openid email profile
OIDC_GROUPS_CLAIMThe claim that lists the person's groups. Defaults to groups
OIDC_ALLOWED_GROUPSComma-separated groups. When set, only their members (and members of the admin groups) may sign in
OIDC_ADMIN_GROUPSComma-separated groups whose members are instance admins. Checked at every sign-in, so leaving the group removes admin
OIDC_AUTO_SIGNUPtrue creates an account on the first sign-in through the provider even when SIGNUP_MODE is invite or closed. Password sign-up still follows SIGNUP_MODE
OIDC_ONLYtrue turns off password sign-in, sign-up and password reset, and hides them in the apps. Passkeys keep working
OIDC_TRUST_IDP_MFAtrue skips the WonderMoney authenticator code after a sign-in through the provider. Set it only when the provider requires a second factor itself
OIDC_ALLOW_UNVERIFIED_EMAILtrue accepts an email address the provider has not verified. Off by default; such an account is never linked to an existing one

GET /v1/instance reports features.oidc: { "name": "<OIDC_DISPLAY_NAME>" } and, under OIDC_ONLY, features.passwordSignIn: false.

Passkeys

Passkeys need no environment variable. They belong to the hostname in APP_URL, the web app's address, and the browser only offers them on that hostname. This works the same whether the web app and the API share one hostname or use two, such as money.example.com and api.money.example.com.

Browsers only allow passkeys over HTTPS, or on http://localhost. An IP address such as http://192.168.1.10:3000 won't work: give the web app a hostname with HTTPS (see HTTPS and domains).

If the web app moves to another hostname, existing passkeys stop working and your users have to add them again. Their passwords still work. GET /v1/instance reports features.passkey: true.

Your instance

SettingWhat it does
INSTANCE_NAMEYour instance's name. The web app shows it in browser tab titles, link previews and the sign-in and sign-up pages, and in place of the WonderMoney logo when you change it. Every email uses it in the subject, copy and sign-off, and as the sender's name unless EMAIL_FROM_NAME is set; authenticator apps show it as the label. The web app reads it from the API, so set it on the API only; a change shows up in the web app within five minutes
SIGNUP_MODEopen, invite or closed (see Install)
HOUSEHOLD_MAX_MEMBERSThe most people in one household, owner included. A pending invite holds a seat until it is accepted, revoked or expires. Defaults to 6; a positive whole number. Set it on the API; a value that isn't a positive whole number stops it at start-up
SUPPORT_EMAILThe inbox for the contact form, account alerts and in-app feedback, and the support address the app shows; leave empty to turn them off and hide the support links. The "Share Feedback" form also needs email configured; without it the form is hidden
SPONSOR_URLA page where your users can chip in towards running the instance (Open Collective, GitHub Sponsors, ...). The web app's FAQ links to it when set
NEXT_PUBLIC_TERMS_URL, NEXT_PUBLIC_PRIVACY_URLYour legal pages, linked from the sign-up page when both are set
PRIVACY_POLICY_URLYour privacy policy, linked from email footers. {lang} is replaced with the recipient's language (en, pt or es), for example https://example.com/{lang}/privacy. Defaults to the app's privacy settings
MCP_ENABLEDThe read-only MCP server at POST /v1/mcp, which lets an AI client ask about a user's own finances with a personal API token carrying mcp:read (see Connect an AI client). On by default; set it to false to answer 404 and report features.mcp: false in GET /v1/instance
DEMO_SIGN_IN_ENABLEDtrue turns on a public read-only demo: a Try the demo button that signs anyone in to one shared demo account. Off by default; see Public demo
TRANSFER_MATCH_FX_TOLERANCEHow far apart the two halves of a transfer between accounts in different currencies may be once the amount that left is converted at that day's exchange rate, as a fraction of the amount that arrived: 0.02 (the default) is 2 percent. Raise it if your bank's exchange margin and fees are larger; at most 0.25. Set it on the API and the worker
MIN_APP_VERSIONThe oldest version of the mobile app that may connect, such as 1.0.3. An older app is told to update when someone enters your server's address. Empty means any version. GET /v1/instance reports it as minAppVersion
MCP_TOOL_CALLS_PER_MINUTEHow many MCP tool calls one token may make per minute. Defaults to 60. Set it on the API
CORS_ALLOWED_ORIGINSThe browser origins that may call the API, separated by commas, such as https://money.example.com,https://other.example.com. Empty means the origin of APP_URL, which is all an ordinary install needs. A value replaces that default, so include the web app's own origin. Set it on the API
NEXT_PUBLIC_DOCS_URLWhere the web app's help and documentation links point. Empty means https://docs.wonder.money. Set it to your own copy of these docs if you host one
TRANSACTION_BAYES_CATEGORIZATION_ENABLEDNew transactions are categorised on the server from each person's own earlier choices, without any AI provider and for people who hid AI features too. On by default; false turns it off. TRANSACTION_BAYES_MIN_POSTERIOR (default 0.8) and TRANSACTION_BAYES_MIN_MARGIN (default 0.2) set how sure it must be before it assigns a category, each a number from 0 to 1

Public demo

If your instance enables the demo, people can try WonderMoney there without an account. Set DEMO_SIGN_IN_ENABLED=true on the API: the sign-in page, on the web and in the mobile app, then shows Try the demo, which signs the visitor in to one shared demo household without a password, and GET /v1/instance reports features.demo: true. While the setting is off, POST /v1/auth/demo answers 404 and the button is hidden.

Everyone who uses the demo shares it, so it is read-only:

  • Every change is refused with the read-only message: the household's data, and the account itself (name, email, password, authenticator, passkeys, and signing out other visitors).
  • A demo session ends two hours after it starts. Demo sign-ins are limited per IP address, like password sign-ins.
  • A banner on every screen says the data is a shared demo that resets daily, and links to sign-up (only when SIGNUP_MODE is open) and to these self-hosting guides.
  • The demo account has no password and no authenticator. The demo sign-in refuses an account with an authenticator, and never signs in any other account.

Create the demo account and its household before you turn the setting on:

docker compose exec api node dist/database/scripts/seed-demo-household.js

On Kubernetes, run the same command in the API pod. It writes only the demo account (demo@wonder.money) and its household, leaves every other account alone, and is safe to run again; run it again to put the demo back as it was. It refuses, changing nothing, when that address belongs to an account that is not the demo account. On a server without market data it also gives the demo's six stocks a price history, but only a stock that has no price at all.

Recommended settings for a demo instance:

SettingRecommendedWhy
NEXT_PUBLIC_GTM_ID, NEXT_PUBLIC_POSTHOG_KEY, ANALYTICS_OUTBOX_MODEEmptyVisitors are strangers: nothing about them should be tracked (see Analytics)
AI (AI_BASE_URL, AI_PROVIDER, AZURE_OPENAI_*)Empty, or limited with AI_DAILY_LIMIT_*The demo account cannot use the assistant, receipt scanning or AI column mapping, which all save something. With AI off the app hides them instead. Every visitor shares one household, so daily limits are shared too
BANK_PROVIDERSnoneHides bank sync. The demo account cannot connect a bank either way
ENABLE_PGBOSS_DEMO_DATA_REFRESH (worker)trueMoves the demo's transactions forward every day at 01:15 UTC, so they stay recent
SIGNUP_MODEclosed on a demo-only server, open to let visitors sign upThe banner links to sign-up only when it is open

Analytics

Your instance loads no analytics or tag manager and records no usage events unless you turn one on. Each setting below switches on one tracker, sending to your own account with that service; leave them empty to keep everything off.

SettingWhat it turns on
NEXT_PUBLIC_GTM_IDYour Google Tag Manager container (GTM-XXXXXXX), loaded only after browser opt-in
NEXT_PUBLIC_POSTHOG_KEYPostHog in the web app: page views and usage events only after browser opt-in. Session recording and email identification are disabled
ANALYTICS_OUTBOX_MODE=live with POSTHOG_API_KEYSign-up, login and bank sync events sent to PostHog by the API and the worker. Set both on the API and the worker; while the mode is off, no events are recorded. POSTHOG_HOST on the worker sets the PostHog address, https://eu.i.posthog.com by default

If you turn any of these on, tell your users in your privacy policy (NEXT_PUBLIC_PRIVACY_URL), and ask for consent where the law requires it.

What your instance sends

Nothing is sent to the WonderMoney project. Each outside service your instance can contact, and what switches it on:

ServiceContacted bySwitched on by
European Central BankThe worker, once a day, to download euro exchange rates. It sends no data about you or your usersAlways on
Email (your SMTP server or Resend)The API and the worker, to send password resets, invites and notificationsSMTP_HOST or RESEND_API_KEY
AI (your OpenAI-compatible endpoint or Anthropic)The API and the worker, with the receipt, CSV columns, statement pages, transactions or chat messages the feature needsAI_BASE_URL and AI_MODEL, or AI_PROVIDER=anthropic, ANTHROPIC_API_KEY and AI_MODEL
AI (your Azure OpenAI or Azure AI Foundry resource)The API and the worker, with the same data as the row aboveThe AZURE_OPENAI_* or AZURE_AI_FOUNDRY_* settings (Azure)
Market data (EODHD)The API and the worker, with ticker symbols, not user dataEODHD_API_KEY
Market data (Stooq)The API and the worker, with ticker symbols, not user datastooq in MARKET_DATA_PROVIDERS
Market data (CoinGecko)The API and the worker, with coin symbols and search text, not user datacoingecko in MARKET_DATA_PROVIDERS
Crypto wallets (the block explorers you choose)The worker, with the public addresses in your users' crypto wallets, not names or amounts (Crypto wallets)CRYPTO_BTC_EXPLORER_URL, CRYPTO_ETH_EXPLORER_URL
Merchant logos (the service you choose)The API, with the domain of a merchant's website, not user data (Merchant logos)MERCHANT_LOGO_URL_TEMPLATE
Push notifications (Expo push service)The API and the worker, with each registered phone's push token and the notification's text, which never holds an amount or a merchant (Push notifications)PUSH_ENABLED=true
File storage (your S3-compatible store)The API and browsers, for CSV imports and receipt copiesS3_ENDPOINT and S3_BUCKET
Off-site backups (your rclone remote)The backup-offsite service, once a day, with the database and file backupsThe backup-offsite profile and BACKUP_DESTINATION (Updates and backups)
Error tracking (Sentry)The API, the worker and the web app, with error reportsSENTRY_DSN (API and worker), NEXT_PUBLIC_SENTRY_DSN (web app). The published images run as production, where SENTRY_DSN takes effect; it is ignored if you set APP_ENV to development
Analytics (Google Tag Manager, PostHog)See AnalyticsNEXT_PUBLIC_GTM_ID, NEXT_PUBLIC_POSTHOG_KEY, ANALYTICS_OUTBOX_MODE=live
Bank sync (Enable Banking)The API and the worker, for the users who connect a bankEach user's own Enable Banking key, added in Settings, or the server's application (ENABLE_BANKING_APP_ID)
Bank sync (SimpleFIN)The API, to claim a user's setup token, and the worker, to sync, at SimpleFIN Bridge or the hosts in SIMPLEFIN_BRIDGE_HOSTS. Off by defaultsimplefin in BANK_PROVIDERS, then each user's own setup token
Google sign-inBrowsers and the API, when a user chooses "Continue with Google"GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET
Sign in with AppleThe iOS app, when a user chooses Apple, and the API, which fetches Apple's public keys to check the sign-inAPPLE_NATIVE_AUDIENCE
Your identity provider (OIDC)Browsers and the API, when a user chooses Sign in with <name>. The API fetches the provider's discovery document and keys, and exchanges the sign-in codeOIDC_ISSUER, OIDC_CLIENT_ID and OIDC_CLIENT_SECRET
reCAPTCHABrowsers on the contact form, and the web app to check the answerNEXT_PUBLIC_RECAPTCHA_SITE_KEY and RECAPTCHA_SECRET_KEY

Browsers also load bank and exchange logos from the addresses stored in the bank and asset catalogue, and a merchant logo from the address a member typed in for it. The mobile app sends no analytics or error reports while it is connected to your server.

On this page