Security and Reverse Proxy
Understand Loom's loopback-first boundary, Argon2id owner password, sealed secret stores, port 2543 HTTPS, and TLS reverse-proxy settings.
Loom is built around a loopback-first trust boundary: by default it listens only on 127.0.0.1:2510, collects no telemetry, and rejects anonymous control requests from any non-loopback peer.
Loopback boundary and access password
Without an access password or automation control key, Loom accepts control requests only when both the direct TCP peer and the Host header are loopback (127.0.0.1, ::1, or localhost). Custom hostnames, reverse proxies, and LAN peers are denied even if DNS resolves to the same host.
Before enabling LAN access or a reverse proxy, configure an owner password (minimum 12 characters) under Settings → Security and data → Interface access or from the terminal:
loom password- Password storage & sessions: Passwords use salted Argon2id (
64 MiB,3iterations). Browser sign-in sets a host-onlyHttpOnly,SameSite=Strictcookie valid for30days (bounded to32devices) and never writes credentials tolocalStorage. - Rate limiting: Login and password mutations are limited to
10attempts per peer per minute and60globally, with at most2concurrent Argon2id hashes. - Local recovery: Running
loom password(or piping a secret toloom password --stdin) resets the password and revokes active browser sessions without restarting Loom or altering/v1keys or the memory vault.
Separate credentials by surface
Loom keeps distinct credentials isolated so compromising one integration never exposes the others:
| Credential | Purpose | Management |
|---|---|---|
| Owner access password | Browser UI sign-in across devices | Settings → Security and data or loom password |
| Automation control key | Non-browser control scripts and legacy links (24+ chars) | loom set-web-key (never valid as a browser password) |
/v1 inference keys | OpenAI-compatible /v1/models and /v1/chat/completions | Settings → API (/api/engine/keys) |
/mcp/loom agent token | External MCP clients (Claude Code, Codex) | Settings → Security → Agent access |
| Node tokens | Paired loom node management (machine_token) & inference (inference_key) | Exchanged once on POST /api/node/pair |
Sealed secrets and optional vault
Remembered cloud API keys use the OS keychain when available and otherwise live in AES-256-GCM sealed files under LOOM_HOME/secrets/providers/ using the installation key at LOOM_HOME/secrets/providers/.key. Paired machine credentials, notification tokens, and self-signed HTTPS private keys use the same local sealing key.
Back up LOOM_HOME/loom.db and LOOM_HOME/secrets/providers/.key together in a private location. Without .key, sealed provider and paired-node credentials cannot be decrypted on a restored host.
You can also enable Loom's optional encrypted memory vault in Settings → Security and data to encrypt supported memory and policy stores at rest with an independent vault passphrase. While locked, Brain and policy writes fail closed until unlocked.
Built-in HTTPS on port 2543
For trusted LAN use that needs browser microphone access (Jarvis voice) or installable Web Push notifications without deploying an external reverse proxy, enable Loom's HTTPS listener on port 2543 (POST /api/https):
self-signedmode: Generates a sealed ECDSA P-256 certificate valid for825days coveringlocalhostand detected private LAN addresses.filesmode: Loads an existing PEM certificate and private key from absolute paths on the Loom host (for example certificates issued bytailscale cert).
Deploying behind Caddy or Nginx
When exposing Loom over HTTPS through a reverse proxy on the same host:
- Configure an owner password first (
loom password). - Bind Loom to loopback (
127.0.0.1:2510) and configure the proxy to preserve theHostheader, pass WebSocket upgrades (used by terminals, voice, and app previews), and disable response buffering for SSE discussion streams. - Set
LOOM_TRUST_PROXY=1andLOOM_COOKIE_SECURE=1in theloom-uienvironment only when the reverse proxy sits on loopback and overwrites client-suppliedX-Forwarded-ForandX-Forwarded-Protoheaders.
loom.example.com {
reverse_proxy 127.0.0.1:2510
}Example systemd drop-in (sudo systemctl edit loom-ui) when terminating TLS in Caddy or Nginx on loopback:
[Service]
Environment="LOOM_TRUST_PROXY=1"
Environment="LOOM_COOKIE_SECURE=1"Never set LOOM_TRUST_PROXY=1 if clients can reach Loom directly without passing through a proxy that strips X-Forwarded-For and X-Forwarded-Proto. Forwarded headers from non-loopback peers are always ignored.
Next, learn how Loom services run and update safely in Services and Updates.