Daemon config


Settings that apply to the daemon as a whole — license, proxy ports, and inspector limits — live in ~/.localcan/config.yml.

Every key is optional. The file is written by the CLI (localcan license activate updates license-key, the desktop app may write device-name, etc.) but it is plain YAML you can also edit by hand.

YAML
license-key: localcan_xxxxxxxxxxxxx
device-name: my-laptop

proxy_http:
  enabled: false
proxy_https:
  enabled: true
  port: 443

inspector:
  max_entries: 250
  max_body_size: 10485760        # 10 MB

License and device

KeyTypeNotes
license-keystringSet by localcan license activate.
device-idstringAuto-generated UUID. Don't edit.
device-namestringShown in the dashboard's device list.
usage-data-allowedboolWhen omitted or true, anonymous usage data is shared. Set by --usage-data / --no-usage-data during activation.
trial-statusstringstarted or ended. Managed by localcan license trial.
trial-ends-atstringISO 8601 datetime. Managed automatically.

Proxy

The HTTPS proxy is enabled by default. The HTTP proxy is disabled. Each block has the same shape:

KeyTypeDefaultNotes
proxy_http.enabledboolfalseMaster switch for the HTTP proxy.
proxy_http.portint80Override only if :80 is taken.
proxy_https.enabledbooltrueMaster switch for the HTTPS proxy.
proxy_https.portint443Override only if :443 is taken.

If you disable both proxies, only the tunnel transport stays available — local .local domains stop being served.

📝Note — Proxy changes are picked up on localcan reload. The daemon stops the old listener and starts a new one on the requested port without dropping unrelated connections. No restart needed.

Inspector

The traffic inspector keeps a rolling buffer of recent HTTP requests and responses for the desktop app's inspector view. When body sizes get large, content spills to disk.

KeyTypeDefaultNotes
inspector.max_entriesint250Maximum number of request/response pairs kept in memory.
inspector.max_body_sizeint10485760 (10 MB)Bodies larger than this are truncated before storage.
inspector.body_memory_thresholdint131072 (128 KB)Bodies under this size stay in memory, larger spill to disk.
inspector.body_memory_capint52428800 (50 MB)Total in-memory body budget across all entries.
inspector.body_disk_capint524288000 (500 MB)Total on-disk body budget across all entries.

Sizes are bytes. Lower these on machines with tight memory or disk. Raise them if you're debugging a webhook with megabytes of payload.

📝Note — Inspector limits are read at daemon start. After editing, restart the daemon to apply: localcan restart -d.

© 2026 LocalCan™. All rights reserved.