NomadFlow
Server

Configuration

Full reference for the NomadFlowCode config.toml file.

NomadFlowCode reads its configuration from ~/.nomadflowcode/config.toml. All fields are optional — sensible defaults are used when omitted.

Full example

[paths]
base_dir = "~/.nomadflowcode"

[tmux]
session = "nomadflow"

[ttyd]
port = 7681

[api]
port = 8080
host = "0.0.0.0"

[auth]
secret = "my-secret-token"

Reference

[paths]

KeyTypeDefaultDescription
base_dirstring~/.nomadflowcodeBase directory for repos, worktrees, and config. ~ is expanded to the user's home.

The following subdirectories are created automatically:

  • {base_dir}/repos/ — bare git clones
  • {base_dir}/worktrees/ — checked-out worktrees per feature

[tmux]

KeyTypeDefaultDescription
sessionstringnomadflowName of the tmux session to create and manage.

[ttyd]

KeyTypeDefaultDescription
portinteger7681Port for the ttyd web terminal process.

[api]

KeyTypeDefaultDescription
portinteger8080Port for the HTTP API server.
hoststring0.0.0.0Bind address for the API server.

[auth]

KeyTypeDefaultDescription
secretstring"" (empty)Shared secret for API authentication. When empty, auth is disabled.

When set, this secret is used as:

  • Bearer token for API requests (Authorization: Bearer <secret>)
  • Basic Auth password for ttyd (username: nomadflow)
  • Query parameter for WebSocket proxy (/terminal/ws?token=<secret>)

On this page