Operations

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, 3 iterations). Browser sign-in sets a host-only HttpOnly, SameSite=Strict cookie valid for 30 days (bounded to 32 devices) and never writes credentials to localStorage.
  • Rate limiting: Login and password mutations are limited to 10 attempts per peer per minute and 60 globally, with at most 2 concurrent Argon2id hashes.
  • Local recovery: Running loom password (or piping a secret to loom password --stdin) resets the password and revokes active browser sessions without restarting Loom or altering /v1 keys or the memory vault.

Separate credentials by surface

Loom keeps distinct credentials isolated so compromising one integration never exposes the others:

CredentialPurposeManagement
Owner access passwordBrowser UI sign-in across devicesSettings → Security and data or loom password
Automation control keyNon-browser control scripts and legacy links (24+ chars)loom set-web-key (never valid as a browser password)
/v1 inference keysOpenAI-compatible /v1/models and /v1/chat/completionsSettings → API (/api/engine/keys)
/mcp/loom agent tokenExternal MCP clients (Claude Code, Codex)Settings → Security → Agent access
Node tokensPaired 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-signed mode: Generates a sealed ECDSA P-256 certificate valid for 825 days covering localhost and detected private LAN addresses.
  • files mode: Loads an existing PEM certificate and private key from absolute paths on the Loom host (for example certificates issued by tailscale cert).

Deploying behind Caddy or Nginx

When exposing Loom over HTTPS through a reverse proxy on the same host:

  1. Configure an owner password first (loom password).
  2. Bind Loom to loopback (127.0.0.1:2510) and configure the proxy to preserve the Host header, pass WebSocket upgrades (used by terminals, voice, and app previews), and disable response buffering for SSE discussion streams.
  3. Set LOOM_TRUST_PROXY=1 and LOOM_COOKIE_SECURE=1 in the loom-ui environment only when the reverse proxy sits on loopback and overwrites client-supplied X-Forwarded-For and X-Forwarded-Proto headers.
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.