Authentication
Authentication is configured separately for the agent and the CLI. Theagent.auth block controls server-side validation; the cli.auth block provides the credentials the CLI sends with every request. Both fields are optional. If agent.auth is unset, the agent serves unauthenticated requests. When the agent rejects a request, the CLI receives a 401 Unauthorized response.
This mirrors the Authentication section of the configuration reference.
HTTP Basic Authentication
formae supports HTTP Basic Authentication via the auth-basic plugin, the default HTTP Basic Authentication option. Each auth plugin ships its own typed configuration that you import through theplugins:/ scheme:
htpasswd:
Earlier releases configured authentication under a
plugins { authentication { ... } } block. That block is still accepted for backwards compatibility but emits deprecation warnings at startup. Migrate to agent.auth and cli.auth as shown above.TLS
Enable TLS on the agent’s HTTP server by pointing it at a certificate and private key. These are thetlsCert and tlsKey fields on the server settings, which default to null.
https:// URL for the same host through the cli.api settings.
Tailscale (experimental)
Connect the agent to your Tailscale network without installing the Tailscale client on the host. This gives you secure, centralized access without additional VPC or VPN configuration. Tailscale is selected through the top-levelnetwork block, whose type field names the network plugin.
Earlier releases configured networking under a
plugins { network { ... } } block. That block is still accepted for backwards compatibility but emits deprecation warnings at startup. Migrate to the top-level network block as shown above.Ports
The agent listens on a single API port. The CLI reaches the agent by combiningcli.api.url with cli.api.port.
Keep the agent’s
server.port and the CLI’s api.port in agreement. When the agent runs on another host, set cli.api.url (and cli.api.port if you changed it) to point at that host. See Server settings and CLI for the full list of options.
See also
- Configuration: the complete configuration file reference, including the
agent.auth,cli.auth,server,network, andclisections referenced above. - Architecture: how the CLI and agent communicate.
- Install the agent: deploying the agent into your infrastructure.

