Configuration
Create the platform-specific configuration file with:
wiretap config initThe config file lives in your platform’s user-config directory, with wiretap appended:
- Linux:
~/.config/wiretap/config.yaml, or$XDG_CONFIG_HOME/wiretap/config.yamlwhen that variable is set - macOS:
~/Library/Application Support/wiretap/config.yaml - Windows:
%AppData%\wiretap\config.yaml
Empty values use platform defaults. Paths may be absolute or relative to the process working directory; prefer absolute paths outside the Wiretap config directory.
Import a relay client file
Section titled “Import a relay client file”A relay administrator can create and download a portable client file from Settings → Relay server. Install it on the recipient desktop with:
wiretap config import ./wiretap-client.jsonOr choose the file under Settings → Relay connection → Import client
credentials. Replacing a different configured identity requires confirmation
in the GUI or --force on the CLI. A GUI import reconnects only the background
WebSocket tunnel; the application, local database, and interception sessions
stay open.
The handoff file contains a plaintext bearer token. Transfer it securely and
delete it after import. Wiretap moves the token to the operating-system keyring
when available, with the existing mode-0600 credentials-file fallback for
headless systems.
Complete example
Section titled “Complete example”relay: # Desktop WebSocket tunnel. Empty disables relay connectivity. url: "" # Example: wss://relay.example.com/tunnel
# Automatically replay each received webhook to this local URL. forward_url: "" # Example: http://127.0.0.1:8080/webhooks
# Registration credentials. Empty uses relay-credentials.json # in the Wiretap config directory. creds_file: ""
store: # Local captures, webhooks, cursors, and transforms. # Empty uses wiretap.db in the Wiretap config directory. path: ""
tui: theme: dark
gui: # auto | always | never native_titlebar: auto
intercept: proxy_addr: 127.0.0.1:8888 local_api_addr: 127.0.0.1:9876 # bash | fish | powershell | gitbash; empty auto-detects shell: ""Relay settings
Section titled “Relay settings”relay.url
Section titled “relay.url”The WebSocket endpoint used by the desktop tunnel. This is normally wss://relay.example.com/tunnel.
relay.forward_url
Section titled “relay.forward_url”When set, every arriving webhook is stored and then replayed to this local URL. Enabled on_replay transforms run before forwarding.
relay.creds_file
Section titled “relay.creds_file”Registration metadata and the desktop client credential reference. When empty, Wiretap uses relay-credentials.json beside the config file. The client token prefers the OS keyring and falls back to this file with mode 0600 on a headless system.
Local storage
Section titled “Local storage”store.path
Section titled “store.path”SQLite database containing captures, delivered webhooks, relay cursors, and transform programs. Protect this file as sensitive data.
Interface settings
Section titled “Interface settings”tui.theme
Section titled “tui.theme”The terminal UI’s palette: dark or light. This defaults to dark, and unknown values also fall back to dark.
gui.native_titlebar
Section titled “gui.native_titlebar”auto and always keep the native title bar. never requests a frameless window on Linux; Windows and macOS retain native controls.
Application theme, text size, and row density are desktop-local preferences managed in the GUI and are not written to this YAML file.
Interception settings
Section titled “Interception settings”intercept.proxy_addr
Section titled “intercept.proxy_addr”The address the interception proxy listens on. The intercepted shell sends its HTTP_PROXY/HTTPS_PROXY traffic here, and the proxy records each request and response it forwards.
intercept.local_api_addr
Section titled “intercept.local_api_addr”The address of the read-only control API that runs while wiretap intercept start is active. It serves GET /local/health, GET /local/webhooks (optional ?project=, ?q=, ?method=, and ?limit=), and GET /local/captures (optional ?q=, ?method=, ?status=, and ?limit=), newest first.
?q= is a case-insensitive substring match. For webhooks it matches project, method, path, and source IP; for captures it matches method, URL, and status. ?status= takes a family (2xx–5xx) or an exact code such as 404. Both responses carry total (the size of the whole filtered set) and has_more, so a caller can tell a full page apart from the end of the results.
Keep it on loopback. The API requires no credentials and returns captured request URLs, source IPs, and byte counts — metadata that is sensitive even though response bodies are not included.
intercept.shell
Section titled “intercept.shell”Child shell flavor. Leave empty to infer it from the environment.