Skip to content
merran
GitHubInstall

Merran documentation Run Merran

Configuration

A default SQLite installation needs no external services. Configure optional features as you begin using them.

Passkeys, authenticators, external OIDC sign-in and OAuth connections are available in alpha.5. Their environment settings, account-linking policy and recovery commands are described in Authentication and connected apps.

Use the generated settings reference for the registered keys, environment variables, scopes, types, defaults, and choices. It is generated from source definitions each site build; it does not read your deployment’s values.

The repository’s .env.example documents common deployment settings. Put your .env beside compose.yaml.

For a first installation, use the copyable starter .env or download it. It selects the :next alpha release channel and shows the host port, time zone and user/group IDs together. The self-contained TrueNAS, Dockge and Portainer examples put environment values directly in YAML instead of loading this file.

Setting Purpose
MERRAN_PORT Published host port; 3000 by default
TZ Container time zone
MERRAN_PUBLIC_URL Address people use to reach Merran, used for links and sign-in
MERRAN_LOG_LEVEL Logging detail
MERRAN_IMAGE Container image or release tag
DATABASE_URL Postgres connection string, when using Postgres
MERRAN_JOBS_LONG How many long jobs (imports, library runs, Discover, reading sites, prices) run at once; 4 by default. Quick jobs have 4 of their own

Apply environment changes by recreating the container:

Terminal window
docker compose up -d

MERRAN_PORT is a Compose setting for the published port; Merran’s internal server port is PORT. Keep the supplied container mapping unless you intentionally change both.

When running from source with pnpm dev, the API reads the environment of the process that starts it. It does not automatically load a root or server .env file. The Compose instructions above apply to Docker; a file read by Vite does not configure the API.

Stop the existing dev process, then set the public address and restart from the repository root. For the default local web app in PowerShell:

Terminal window
$env:MERRAN_PUBLIC_URL = 'http://localhost:5173'
pnpm dev

On a Unix shell, use MERRAN_PUBLIC_URL=http://localhost:5173 pnpm dev. Use the address where you open the web app, without a path such as /settings. For invitations opened on another device, use a hostname or LAN address that device can reach. localhost always refers to the device opening the link. Restart the API after changing a process environment value, then reload the browser to refresh capabilities. SMTP credentials can still be saved in Settings → Server → Email; they do not need to be entered in the terminal.

Modules such as AI, stores, nutrition and voice are set up on the Whole server side of their page in Settings: AI, Shopping and stores and Recipes. Values supplied through the environment can lock the corresponding settings in the app.

Some settings belong to the household or account rather than the server. Use household settings for shared household preferences and personal settings for your own preferences.

Settings has a page for each topic. A page with both household and server settings shows one half at a time, with a switch between This household (or You) and Whole server; only the server admin sees the switch. On a phone, Settings opens as a list of pages.

Page This household, or You Whole server
Profile Profile, Language, Appearance, Your data
Sign-in Password, Passkeys, Two-step sign-in, Single sign-on Authentication
Apps and devices Merran on this device, Share to Merran, Connected apps, API keys OAuth applications, when OAuth is on
Webhooks Webhooks, when webhooks are on Webhooks
Household Household, Members, Invitations Start another household
Planning Planning, Tastes, Theme nights, Plan each week, Calendar subscriptions
Recipes Nutrition for the library, AI photos, Recipe links Nutrition, AI photos, Voice
AI Spending, Keys, Models AI keys, Who may use the server’s AI, AI spend
Shopping and stores Pantry, Your stores, Stores Kroger, Walmart
Import and export Export this household, Import a Merran export, From another app Recipe sites, Video import, FlareSolverr
Server This server, Email, Jobs, Error tracking, Telemetry

Household members see Profile, Sign-in, Apps and devices, Household and Planning; household owners and admins also see Webhooks (while the server has them on), Recipes, AI, Shopping and stores, and Import and export. A server admin who isn’t an admin of the household in use sees only the Whole server side of those pages, with a line saying why. The server admin role does not by itself grant household-admin access.

See household roles and permissions for who can change each scope. Server administration and household ownership are separate roles.

For importing from sites that turn servers away, a server admin can connect their own FlareSolverr with MERRAN_FLARESOLVERR_URL or Recipe services → FlareSolverr. See FlareSolverr.

Webhooks are on by default and sent only by households that add one. A server admin can turn them off with MERRAN_WEBHOOKS=false or Let households send webhooks in Settings → Webhooks → Whole server, and decide which households may send them to the home network, where Home Assistant usually lives, with MERRAN_WEBHOOKS_HOME_NETWORK (off, all or chosen) or Webhooks to the home network. See Webhooks.

For AI, follow AI setup and costs to connect providers, select models, manage shared and household keys, and troubleshoot requests. Read AI privacy and data flow before enabling external processing.

In Settings → Server → Email, enter SMTP host, SMTP port, SMTP username, SMTP password or API key, and Sender email address. Save with Save, turn on Enable email, then choose Send test email. Tests go to your account’s email address. Check your inbox and spam folder; provider acceptance does not guarantee inbox delivery. Household invitations and password recovery by email are supported. Operator password recovery remains available without SMTP.

For Resend, verify a domain you own, use host smtp.resend.com, port 465, turn on Use TLS from the start, set username resend, and use a sending API key as the password. The sender address must be allowed by your provider. Other services use the same fields with their own SMTP credentials.

For port 587, leave Use TLS from the start off: Merran requires STARTTLS. Both modes require encryption and valid certificates. A trusted relay can omit both username and password. Use Remove saved SMTP credentials to clear both; environment-locked fields must be changed in the server environment.

The equivalent environment variables are MERRAN_EMAIL_ENABLED, MERRAN_SMTP_HOST, MERRAN_SMTP_PORT, MERRAN_SMTP_SECURITY (tls or starttls), MERRAN_SMTP_USERNAME, MERRAN_SMTP_PASSWORD, and MERRAN_EMAIL_FROM. Setting them locks those fields in the app. Email defaults to off. Email invitations additionally require MERRAN_PUBLIC_URL set to an HTTP(S) origin recipients can reach, such as https://meals.example.com, without a path, query, fragment or credentials. A working test message alone does not enable invitations without that address. See household invitations.

With Email and MERRAN_PUBLIC_URL configured, the sign-in page’s Forgot your password? link opens a recovery form. Enter the account’s Email and choose Send reset link. Check your email gives the same response whether or not an account exists. Check spam too. For privacy, unknown addresses and unavailable email do not produce an account-specific error.

Open Reset password in the message. The link expires 30 minutes after requesting and works once. Enter Password and Confirm password, then choose Reset password. Passwords must have 10–128 characters. After Password reset, choose Back to sign in and use the new password. All existing sessions are signed out; opening the email or link alone does not change credentials. A password changed from account settings or by the operator invalidates older delivered reset links. Resetting does not mark an email verified or change household roles or API keys.

Each client address can request five resets or try ten completions per 15-minute window. A recipient receives at most three queued reset emails per window; further requests get the same generic response. Temporary SMTP errors retry automatically. Request a new reset link is available for expired or used links. The token is in the link’s fragment, not a server URL parameter, and the form removes it from the address bar. If you refresh before finishing, reopen the email link.

If recovery email is unavailable, ask the operator to run docker compose exec -it merran merran reset-password YOUR-USERNAME; no SMTP connection is required. Account email verification is skipped for the intended self-hosted use. Provider sending-domain verification, such as Resend’s domain setup, is still required by that provider.

Merran generates a secret in its data directory when no explicit secret is supplied. Keep it with your backups: it protects saved credentials. Do not replace it casually.

Keep provider keys, passwords, .env files, and personal data out of public issues and repository commits.

For a public address, configure HTTPS at your reverse proxy or tunnel, set MERRAN_PUBLIC_URL, and configure trusted proxies to match your deployment. The supplied Compose file includes an optional Cloudflare Tunnel profile; read its comments before enabling it.

From a source checkout, set MERRAN_DEV_SETUP=on before starting the server. Each start uses a fresh temporary SQLite database and a fresh secret, even if DATABASE_URL normally points to Postgres. Existing accounts, files and database settings are untouched. The startup warning prints the temporary data directory. A process restart repeats actual claiming, telemetry consent and onboarding; a browser refresh keeps the current test session.

PowerShell, from the repository root:

Terminal window
$env:MERRAN_DEV_SETUP = 'on'
pnpm dev
# After stopping the dev servers:
Remove-Item Env:MERRAN_DEV_SETUP

On a Unix shell, run MERRAN_DEV_SETUP=on pnpm dev. The flag is refused with NODE_ENV=production or MERRAN_INSTALL_METHOD=docker; it cannot reopen claiming on an existing installation. This tests SQLite; Postgres claiming is covered separately by server tests. A separate CLI invocation must have the flag unset and MERRAN_DATA_DIR pointing at the logged temporary directory to operate on that instance. For an existing account, use Help → Show getting started and tours again to replay guidance without starting over.

Use troubleshooting for startup, connection, import, or job failures. Read updating, backups, and recovery before changing versions or restoring data.

© 2026 Kyle Johnson. Documentation: CC BY 4.0. Merran: AGPL-3.0-or-later.