Skip to main content

Configuration

Open Settings (Cmd/Ctrl+,) and search for polyphon to configure the extension.


Connection

SettingDefaultDescription
polyphon.host127.0.0.1Hostname or IP address of the machine running Polyphon
polyphon.port7432TCP port the Polyphon API server is listening on
polyphon.token(empty)Authentication token for the Polyphon API

For a local setup you won’t need to change the host or port. If Polyphon is running on a different machine on your network, set the host to that machine’s IP address.


API token

Polyphon requires an API token to accept connections. The token is generated when Polyphon first runs and stored at:

  • macOS: ~/Library/Application Support/Polyphon/api.key

The easiest way to set the token is to run Polyphon: Read Local API Token from the Command Palette — this reads the key file from the default location and fills it in automatically. You can also paste the token manually in Settings.


Status bar

The extension shows a connection indicator in the VS Code status bar (bottom right):

IndicatorMeaning
$(radio-tower) PolyphonConnected
$(sync~spin) PolyphonConnecting
$(debug-disconnect) PolyphonDisconnected
$(error) PolyphonConnection error

Click the status bar item to open the Polyphon panel.