Skip to content

Security

Harmonic drives agents with real access to your repositories and machine, so who can reach it matters. Two settings decide that: an operator password and the host binding.

One password gates the web UI; named API keys gate the REST API. Set it when you start:

Terminal window
harmonic start --password 'a long passphrase' # or the HARMONIC_PASSWORD env var
  • It’s stored hashed and persists: later starts without the flag keep it, they don’t revert to ungated.
  • Setting a new value rotates it. Minimum length is 4 characters.
  • To go back to ungated, clear it explicitly, and only on a local binding: harmonic start --password ''.
--hostReachable fromUse when
0.0.0.0 (default)Your whole networkYou’ve set a password.
127.0.0.1The local machine onlyLocal-only, no network exposure.
SituationBindingPassword
Just you, on your own machine127.0.0.1Optional
Reachable from other devices0.0.0.0Required
Behind a reverse proxy or tunnel127.0.0.1Required

See CLI and Configuration for the --password and --host options, and Settings & overrides for in-app Permission Rules.