Docs / Configuration

Configuration

host.json, client.json, every CLI flag on both binaries, and the in-stream hotkeys, with the defaults the code actually uses.

47700 DISCOVERY · 47701 CONTROL · 47702 MEDIA · UDP

On this page
  1. Config files
  2. Host settings
  3. Client settings
  4. planck-host flags
  5. planck-client flags
  6. Headless mode
  7. Hotkeys
  8. Codecs and chroma
  9. Encoders
  10. Decoders

Config files

Both binaries read one directory: planck inside the operating system's user config directory. -config <dir> points either binary somewhere else.

PlatformDirectory
Windows%APPDATA%\planck
macOS~/Library/Application Support/planck
Linux$XDG_CONFIG_HOME/planck, or ~/.config/planck
FileHolds
host.jsonHost settings
client.jsonApp settings, paired hosts, hotkeys, the telemetry switch
host-cert.pem, host-key.pemThe host's self-signed certificate and key
paired-clients.jsonClient fingerprints this host has paired
telemetry.jsonThe random install ID and whether the first launch was counted

Uninstalling on Windows keeps this directory, so a reinstall keeps its pairings.

Host settings

A host.json with the defaults written out:

JSONhost.json
{
  "controlPort": 47701,
  "mediaPort": 47702,
  "discoveryPort": 47700,
  "codec": "hevc",
  "chroma": "nv12",
  "fps": 120,
  "maxBitrateKbps": 100000,
  "clipboard": "both",
  "requirePINForLAN": true,
  "allowTailscaleSameUser": true
}
KeyDefaultNotes
hostIDrandom 16 bytes, hexStable identity of this host
namemachine nameWhat clients list the host as
controlPort47701QUIC control; must differ from mediaPort
mediaPort47702UDP media
discoveryPort477000 turns discovery off
displayprimary displayDisplay ID to capture
adapterthe display’s GPUEncoding GPU, by name or vendor
vddPrimaryfalseMake the virtual display primary
fixedPINunsetA fixed 6-digit PIN instead of a rotating one
noInputfalseIgnore client keyboard, mouse and gamepad
clipboardbothboth, host-to-client, client-to-host, off
codechevch264, hevc, av1
chromanv12nv12, p010, yuv444, yuv444p10
fps120
maxBitrateKbps100000
requirePINForLANtrueLAN clients always pair with the PIN
allowTailscaleSameUsertrueSame Tailscale user pairs without a PIN
certPath, keyPathhost-cert.pem, host-key.pemIn the config directory
policy{}Per-policy overrides of the stream resolver
audioDeviceunset
audioExcludeAppsnoneApps left out of streamed audio
virtualMicunsetVirtual input device for the client’s microphone
stayAwakefalse
lockOnDisconnectfalse
muteSpeakersfalse
privacyModefalse
idleTimeoutMinutes00 to 1440

The host validates codec and chroma against the lists above, rejects a PIN that is not 6 digits, and refuses a config whose control and media ports match.

Client settings

The app writes client.json from Settings; editing it by hand works too. Missing keys take their defaults.

KeyDefaultNotes
preferredCodec, preferredChromahevc, nv12
targetFPS120Must be positive
maxBitrateKbps100000Must be positive
audioEnabledtrue
clipboardSend, clipboardReceiveClipboard sharing in each direction
systemKeysCaptureImmersive mode takes system keys
themeNamedefault
pinnedHosts{}Paired hosts: fingerprint, name, pairing time, last LAN and Tailscale address
deviceNameWhat hosts list this client as
hostAliases
overrides, hostOverridesGlobal and per-host stream overrides
audioVolume, audioMuted
overlayStream HUD layout
openFullscreentrue
openEveryHostDisplay
maxStreamWindows22 to 4
hotkeyssee belowAction to chord
neverSendClipboard and input targets that are never sent
swapCmdCtrl
audioOutputDevice, micDevice
telemetryEnabledabsent (on)false turns telemetry off for the app and planck-host

planck-host flags

Flags apply to one run. -set-name is the one that writes back to host.json.

FlagDefaultMeaning
-listen:47701QUIC control address
-media-port47702UDP media port; 0 picks any free port
-discovery-port47700LAN discovery; 0 turns it off
-codechevcauto, pyrowave, hevc, av1, h264
-chromanv12auto, nv12, p010, yuv444, yuv444p10 (or 420, 444)
-bit-depthautoauto, 8, 10
-resautoauto, 1080p, 1440p, 4k, or WxH (needs a virtual display)
-fpsdisplay refreshFrame rate (60 with -synth)
-bitratefrom host.jsonMaximum video bitrate in kbps
-bitrate-mbps0 (auto)Bitrate policy in Mbps
-splitautoNVENC split encode: auto (1440p+, or 1080p from 200 fps, LAN, no slices), on, off
-slicesFEC slices per frame, 1 to 16
-subframefalseSend slices as the encoder finishes them; needs -slices 2 or more
-subframe-slicesautoPolicy: auto, 1, 4, 8
-vddautoSudoVDA virtual display at the client’s size: auto, on, off
-vdd-gpuGPU that renders the virtual display and encodes (4080, Radeon)
-vdd-primaryfalseMake the virtual display primary
-displayprimaryDisplay ID to capture
-adapterdisplay’s GPUEncoding GPU by name or vendor (NVIDIA, AMD, Intel)
-pinrandomFixed 6-digit pairing PIN
-namehost.json nameHost name for this run
-set-nameRename the host and keep it in host.json
-no-inputfalseIgnore client keyboard, mouse and gamepad
-no-audiofalseDo not capture or stream audio
-audio-exclude-pidsProcesses left out of streamed audio (macOS; Windows leaves out only Planck)
-mic-deviceautoVirtual input device; off refuses the microphone
-clipboardbothboth, host-to-client, client-to-host, off
-synthfalseStream a generated test pattern
-width, -heightSynthetic frame size
-stats2sPrint stats while a client is connected; 0 turns it off
-no-telemetryfalseSend no telemetry this run
-configconfig directory
-versionPrint the version and exit

planck-client flags

FlagDefaultMeaning
-configconfig directory
-nameSettings nameDevice name hosts pair this client under, for this run
-codecautoauto, pyrowave, hevc, av1, h264 (h264 has no decoder)
-chromaautoauto, 420, 444 (or nv12, p010, yuv444, yuv444p10)
-bit-depthautoauto, 8, 10
-resautoauto (this screen), 1080p, 1440p, 4k, WxH
-fpsautoauto, 60, 120, 144, 240
-bitrate0Maximum kbps, for hosts that do not resolve the stream
-bitrate-mbps0 (auto)Video bitrate in Mbps
-slicesautoauto, 1, 4, 8
-vddautoHost virtual display at this screen’s size
-vdd-gpuHost GPU that renders the virtual display and encodes
-nvenc-splitautoNVENC two-engine split: auto, on, off
-direct-displayautomacOS full-screen direct-to-display: auto, on, off
-vsyncautoPresent in step with the display: auto (off), on, off
-displayHost display ID to stream
-hdr10autoauto (where both ends and the host desktop have HDR) or off
-discovery-port47700Discovery port to listen on and probe
-versionPrint the version and exit

Headless mode

-headless streams without a window and prints a summary, for benchmarks and scripted checks. It never sends telemetry.

FlagDefaultMeaning
-headlessfalseConnect without a window, decode for -duration, print a summary
-connecthost[:port]
-discoverFind the host by name or ID on the LAN and tailnet; race its paths
-discovery-addrsComma-separated ip:port to probe instead of listening
-pinThe host’s 6-digit PIN, the first time
-duration10sHow long to stream
-timeout15sHow long discovery and the handshake may take
-path-modeautoauto, lan, tailscale; fails on any other path
-no-audiofalseDo not ask for audio
-silent-audiofalseReceive and decode audio, play none
-input-probefalseSend a zero mouse move every -input-probe-every
-input-probe-every1s
-mic-tonefalseSend a 440 Hz tone into the host’s virtual microphone
-jsonfalsePrint the summary as JSON
SHheadless examples
planck-client -headless -discover my-host -pin 123456 -duration 10s -json
planck-client -headless -connect 192.0.2.10:47701 -path-mode lan -silent-audio

Hotkeys

In-stream chords use Ctrl+Alt so that Cmd and the Windows key reach the host. Change them in Settings or in client.json under hotkeys; reserved and conflicting chords are refused.

ActionDefaultScope
Stream menuCtrl+Alt+OStream window
Hide buttonCtrl+Alt+PStream window
MetricsCtrl+Alt+MStream window
Cycle HUDCtrl+Alt+HStream window
MicrophoneCtrl+Alt+UStream window
FullscreenCtrl+Alt+FStream window
Immersive modeCtrl+Alt+ITakes system keys while on
Cursor lockCtrl+Alt+GStream window
Switch displayCtrl+Alt+]Stream window
Ctrl+Alt+Del on hostCtrl+Alt+BackspaceStream window
KeyframeCtrl+Alt+KStream window
DisconnectCtrl+Alt+Shift+DStream window
Stop hostingCtrl+F3Global, on the host
Kick clientnoneGlobal, on the host

Codecs and chroma

Encoders

EncoderCodecs Planck drivesChroma
NVENC (NVIDIA, Windows)H.264, HEVC, AV1, as the GPU reportsNV12; P010 for 10-bit; YUV444 and YUV444P10 where the GPU supports them
AMF (AMD, Windows)HEVCNV12, P010
oneVPL (Intel, Windows)HEVCNV12, P010, YUV444, YUV444P10
VideoToolbox (Apple)HEVC (Main10 for 10-bit)NV12, P010; 4:4:4 refused

Decoders

ClientHEVCAV1H.264HDR10 present
macOS (VideoToolbox)Yes, 10-bitYes, 10-bitNoYes
Windows (Media Foundation)Yes, 10-bitYes, 10-bitNoNo, presents 8-bit

4:4:4 needs an encoder that reports it: NVENC (HEVC, and H.264 per its probe) or oneVPL (HEVC). AMF and VideoToolbox stay at 4:2:0. The client's -hdr10 auto turns HDR10 on where both ends and the host desktop have HDR, which today means a macOS client.