Skip to content

Settings

Settings is a full-screen panel opened from the main TUI. It lets you adjust configuration without manually editing YAML for common account, AI, sync, and cleanup fields.

Press S from the main UI to open settings. The panel reads the current config, lets you edit supported fields, writes the config path, updates AI provider details, and can trigger OAuth wait behavior for supported experimental flows.

AreaWhat it shows
Account/provider fieldsVendor, username, password/app password, and provider-specific options.
IMAP fieldsHost, port, and related server settings.
SMTP fieldsHost, port, and send settings.
AI provider fieldsOllama local/custom, Claude, OpenAI-compatible, or disabled.
AI model fieldsChat/classification model and embedding model.
Sync fieldsPoll interval minutes and IMAP IDLE setting.
Cleanup fieldsCleanup schedule hours and related automation timing.
Save/cancel controlsForm-level completion or cancellation behavior.
OAuth wait overlayURL/open-browser state while waiting for OAuth callback and token storage.
KeyContextPreconditionsResult
SMain UISettings closed.Opens settings panel.
tabSettings formA form field is active.Moves through form controls according to the form component.
enterSettings formCurrent field or form action is valid.Accepts selection, advances, or saves when on final action.
escSettings formSettings active.Cancels/closes panel when supported by current form state.
enterOAuth wait overlayOAuth URL available.Opens browser to the authorization URL.
ctrl+cAny settings stateAny state.Quits Herald.
  1. Press S.
  2. Move through fields with form navigation.
  3. Update provider, server, SMTP, AI, sync, or cleanup fields.
  4. Save the form.
  5. Herald writes config and applies runtime changes that can be applied immediately.
  1. Press S.
  2. Choose an AI provider.
  3. Enter host, model, API key, or compatible base URL as required.
  4. Save.
  5. Watch the AI status chip after returning to the main UI.
  1. Choose an OAuth-capable provider path.
  2. Start the OAuth flow.
  3. In the OAuth wait overlay, press enter to open the browser.
  4. Complete provider consent.
  5. Wait for Herald to save token data and return to the app.
StateWhat happens
Panel modeSettings replaces the normal tabs until saved or cancelled.
First-run modeSettings/wizard completion is required before the main mailbox opens.
OAuth waitingHerald shows authorization URL state and waits for callback.
OAuth savedToken data is written to config.
AI model changedHerald may reset embeddings so stale vectors do not mix with a new embedding model.
Config permission warningStartup warns if group/other users can read the config file.
Save errorThe panel reports an error if config cannot be written.

Settings reads and writes credentials, app passwords, OAuth tokens, server hosts, SMTP settings, AI provider keys, model names, sync options, cleanup schedule, and cache path values. OAuth refresh tokens and external AI keys should be treated as credentials.

If settings will not save, check file permissions for the config path and parent directory.

If OAuth does not complete, copy the displayed URL into a browser, finish consent, and confirm the callback server is reachable.

If AI stops working after model changes, verify the new model is installed or reachable and allow embedding regeneration to complete.