A beautiful, private, local-first personal finance tracker. Investments, net worth, spending, and simulations.
A beautiful, private, local-first personal finance tracker. Investments, net worth, spending, and simulations.
Wealthfolio is an open-source, private portfolio tracker — investments, net worth, spending, and simulations. All your data is stored locally on your device: no cloud database, no account required, free forever.
For automatic brokerage syncing (30+ institutions, read-only) and encrypted multi-device sync, there's Wealthfolio Connect — an optional subscription that covers the real cost of the brokerage data connections. The app never requires it: manual tracking and CSV import are free, forever.
Visit the website at wealthfolio.app.
Wealthfolio 3.7 requires macOS 12 or newer and iOS/iPadOS 16 or newer. macOS 12 installations should apply current macOS and Safari updates so the system WKWebView meets the Safari 16 browser floor. Windows uses the evergreen WebView2 runtime; Linux and self-hosted installations should keep WebKitGTK or their browser updated.
Wealthfolio features a powerful addon system that allows developers to extend functionality:
Get started building addons: See the Addon Documentation Hub
Documentation for all Activity types, including the required form fields, is available in docs/activities/activity-types.md.
See ROADMAP.md.
Ensure you have the following installed on your machine:
Clone the repository:
git clone https://github.com/wealthfolio/wealthfolio.git
cd wealthfolioInstall dependencies using pnpm:
pnpm installSetup environment configuration:
Copy the environment template and configure it for your setup:
cp .env.example .envUpdate the .env file with your database path and other configuration as
needed:
# Database location
DATABASE_URL=../db/wealthfolio.dbRun in Development Mode:
Build and run the desktop application using Tauri:
pnpm tauri devAddon hot reload servers now start only when you explicitly opt in.
For desktop development with Tauri:
VITE_ENABLE_ADDON_DEV_MODE=true pnpm tauri devFor browser-only development (Vite only, no Tauri):
pnpm dev:addonsYou can also set VITE_ENABLE_ADDON_DEV_MODE=true in your .env file to
persist the setting.
Build the application for production:
pnpm tauri buildRun the web UI with a local Axum server with one command.
Setup environment (optional but recommended):
Copy the example environment file and customize it for your setup:
cp .env.web.example .env.webEdit .env.web to configure database path, ports, and other settings as
needed.
Start both backend and Vite dev server:
pnpm run dev:webThe Vite dev server runs at http://localhost:1420 and proxies API calls to
the Axum backend server.
All configuration is done via environment variables in .env.web.
Server Configuration (WF_* variables):
WF_LISTEN_ADDR - Server bind address (default: 0.0.0.0:8088)WF_DB_PATH - SQLite database path or directory (default: ./db/app.db)app.db will be used inside itWF_CORS_ALLOW_ORIGINS - Comma-separated list of allowed CORS origins
(default: *). Required when auth is enabled — wildcard * is rejected.https://wealthfolio.example.comWF_REQUEST_TIMEOUT_MS - Request timeout in milliseconds (default: 300000)WF_STATIC_DIR - Directory for serving static frontend assets (default:
dist)WF_SECRET_KEY - 32-byte key used for secrets encryption and JWT signing
(required unless WF_SECRET_KEY_FILE is set)openssl rand -base64 32WF_SECRET_KEY_FILE - Optional master-key file; see
setup and mount instructionsWF_AUTH_PASSWORD_HASH - Argon2id PHC string enabling password-only
authentication for web modeWF_AUTH_TOKEN_TTL_MINUTES - Optional JWT access token expiry in minutes
(default 60)WF_AUTH_REQUIRED - Set to false to allow starting on non-loopback
addresses without authentication (e.g. when a reverse proxy handles auth)WF_AUTH_PASSWORD_HASH; a successful SSO login mints the same session cookie.
Enabled when both WF_OIDC_ISSUER_URL and WF_OIDC_CLIENT_ID are set.WF_OIDC_ISSUER_URL - provider base URL (discovery hits
<issuer>/.well-known/openid-configuration)WF_OIDC_CLIENT_ID - client id registered with the IdPWF_OIDC_CLIENT_SECRET - Optional client secret (PKCE is always used)WF_OIDC_REDIRECT_URL - Required when OIDC is enabled; must be
registered in the IdP, e.g. https://your.host/api/v1/auth/oidc/callbackWF_OIDC_SCOPES - Optional space-separated scopes (default
openid email profile)WF_OIDC_ALLOWED_EMAILS / WF_OIDC_ALLOWED_SUBS - comma-separated
allowlists matched against the ID token's email / sub claims. With
neither set, the server refuses to start unless WF_OIDC_ALLOW_ANY=true
is also set — a missing allowlist must never silently grant every IdP user
access. An email is only honored when the IdP asserts
email_verified=true; WF_OIDC_ALLOWED_SUBS is the stronger control
(stable, issuer-scoped) and is recommended on shared/multi-tenant IdPs.WF_OIDC_ALLOW_ANY - Optional, default false. Set to true to allow
any user the IdP authenticates when no allowlist is configured. Only
safe on a dedicated single-user IdP; on a shared/multi-tenant IdP this
grants everyone access. A warning is logged at startup when enabled.WF_OIDC_POST_LOGOUT_REDIRECT_URL - Optional. When the IdP advertises
an end_session_endpoint, sign-out also ends the IdP session (RP-Initiated
Logout); otherwise logout is local-only. Set this to land back on the app
afterward — it must be registered with the IdP (e.g. Keycloak's "Valid
post logout redirect URIs"). If unset, the IdP shows its own logged-out
page.WF_OIDC_RP_LOGOUT - Optional, default true. Set to false to force
local-only logout even when the IdP supports RP-Initiated Logout.WF_COOKIE_SECURE - Controls the Secure attribute on session cookies
(default: auto)auto - set Secure only when X-Forwarded-Proto: https is present
(recommended for most reverse-proxy setups)true - always set Secure (use when TLS is guaranteed but the header is
absent)false - never set Secure (plain HTTP without a reverse proxy)WF_SECRET_FILE - Optional path to secrets storage file (default:
<data-root>/secrets.json)WF_ADDONS_DIR - Optional path to addons directory (default: derived from
database path)Vite Configuration:
VITE_API_TARGET - Backend API URL for Vite proxy (default:
http://127.0.0.1:8088)Set WF_AUTH_PASSWORD_HASH to an Argon2id PHC string to require a password
before accessing the Web App.
You can generate the hash with online tools like
argon2.online or the CLI (argon2-utils package):
printf 'your-password' | argon2 yoursalt16chars! -id -eTips:
- The first argument is the salt (use 16+ characters); the password is read from stdin.
- Use
printfinstead ofecho -nto avoid hidden newline issues.- For Docker Compose
.env/--env-file, single-quote the hash or double every$($$argon2id$$...).
Copy the full output (starting with $argon2id$...) into .env.web.
Dollar-sign ($) escaping cheat-sheet — Argon2 hashes contain $
characters that shells and Compose interpret as variable references:
| Context | Syntax | Notes |
|---|---|---|
.env.web / app-loa |
Release builds use `lts/*` and will switch to Node 26 around Oct 28, while PR checks stay on Node 24
Spending Insight: "This month" compares against a 30-day window instead of the previous calendar month
Make text select-able and copyable.
[bug] [iOS] Device sync fails at Apply: local data is not replaced
Issue: Unable to activate Connect on a second profile
Remove default behaviour of duplicate transaction detection when importing
Feature : Allow target allocation to be linked to individual equities
[Bug] Allocation targets disappear after restarting the app
Health Center stale price warning should ignore expired options
Support debit dividends / short-dividend payments without reclassifying them as fees