Wealthfolio

A local-first tracker for investments and personal finances.

View on GitHub ↗

Wealthfolio brings holdings and transactions from multiple accounts into one dashboard. It can show portfolio performance and allocation, and the self-hosted edition puts you in control of the sensitive data that leaves your server.

Use Cases - AI Merchant Categorization

I used an AI agent to turn several months of bank and credit-card exports into a populated, categorized Wealthfolio instance so I can better understand my spending habits. The biggest help was working through hundreds of transactions and turning the patterns we established into recurring categorization rules.

Getting the transactions in

The agent reverse-engineered Wealthfolio’s APIs and built CSV importers for each financial institution. It normalized the transaction data, proposed first-pass categories for merchants, and wrote the results directly into my self-hosted Wealthfolio server.

Reviewing the categories myself

The agent then exported every transaction into a spreadsheet with a suggested category. That gave me a way to make the subjective decisions myself, including how I wanted particular purchases and merchants categorized.

When I returned the edited spreadsheet, the agent reconciled it against the live database, applied hundreds of category changes, and verified the results.

Turning decisions into rules

Once we had established patterns, the agent converted my recurring merchant decisions into more than 100 automatic categorization rules. Those rules carry my choices forward to future transactions, saving me from repeatedly categorizing purchases from the same merchants.

Docker Compose

services:
  wealthfolio:
    image: wealthfolio/wealthfolio:latest
    container_name: wealthfolio
    restart: unless-stopped
    ports:
      - ${WF_PORT:-8088}:8088
    volumes:
      - ${WEALTHFOLIO_DATA_PATH:-./data}:/data
    environment:
      WF_LISTEN_ADDR: 0.0.0.0:8088
      WF_DB_PATH: /data/wealthfolio.db
      WF_SECRET_KEY: ${WF_SECRET_KEY:?Generate a secret key}
      # Single-quote the Argon2id hash in .env to preserve its dollar signs.
      WF_AUTH_PASSWORD_HASH: ${WF_AUTH_PASSWORD_HASH:?Generate an Argon2id password hash}
      WF_AUTH_TOKEN_TTL_MINUTES: ${WF_AUTH_TOKEN_TTL_MINUTES:-60}
      WF_CORS_ALLOW_ORIGINS: ${WF_CORS_ALLOW_ORIGINS:?Set the Wealthfolio origin}
      WF_MCP_ENABLED: 'true'
    healthcheck:
      test:
        - CMD
        - wget
        - '--quiet'
        - '--tries=1'
        - '--spider'
        - http://127.0.0.1:8088/api/v1/healthz
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 15s
    deploy:
      resources:
        limits:
          memory: 512M
        reservations:
          memory: 128M
    security_opt:
      - no-new-privileges:true
    read_only: true
    tmpfs:
      - /tmp:size=64M

← Back to category