Skip to content

Configuration

Create the platform-specific configuration file with:

Terminal window
wiretap config init

The config file lives in your platform’s user-config directory, with wiretap appended:

  • Linux: ~/.config/wiretap/config.yaml, or $XDG_CONFIG_HOME/wiretap/config.yaml when 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.

A relay administrator can create and download a portable client file from Settings → Relay server. Install it on the recipient desktop with:

Terminal window
wiretap config import ./wiretap-client.json

Or 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.

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: ""

The WebSocket endpoint used by the desktop tunnel. This is normally wss://relay.example.com/tunnel.

When set, every arriving webhook is stored and then replayed to this local URL. Enabled on_replay transforms run before forwarding.

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.

SQLite database containing captures, delivered webhooks, relay cursors, and transform programs. Protect this file as sensitive data.

The terminal UI’s palette: dark or light. This defaults to dark, and unknown values also fall back to dark.

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.

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.

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.

Child shell flavor. Leave empty to infer it from the environment.