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
Config files
Both binaries read one directory: planck inside the operating system's user config directory. -config <dir> points either binary somewhere else.
| Platform | Directory |
|---|---|
| Windows | %APPDATA%\planck |
| macOS | ~/Library/Application Support/planck |
| Linux | $XDG_CONFIG_HOME/planck, or ~/.config/planck |
| File | Holds |
|---|---|
host.json | Host settings |
client.json | App settings, paired hosts, hotkeys, the telemetry switch |
host-cert.pem, host-key.pem | The host's self-signed certificate and key |
paired-clients.json | Client fingerprints this host has paired |
telemetry.json | The 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:
{
"controlPort": 47701,
"mediaPort": 47702,
"discoveryPort": 47700,
"codec": "hevc",
"chroma": "nv12",
"fps": 120,
"maxBitrateKbps": 100000,
"clipboard": "both",
"requirePINForLAN": true,
"allowTailscaleSameUser": true
}| Key | Default | Notes |
|---|---|---|
hostID | random 16 bytes, hex | Stable identity of this host |
name | machine name | What clients list the host as |
controlPort | 47701 | QUIC control; must differ from mediaPort |
mediaPort | 47702 | UDP media |
discoveryPort | 47700 | 0 turns discovery off |
display | primary display | Display ID to capture |
adapter | the display’s GPU | Encoding GPU, by name or vendor |
vddPrimary | false | Make the virtual display primary |
fixedPIN | unset | A fixed 6-digit PIN instead of a rotating one |
noInput | false | Ignore client keyboard, mouse and gamepad |
clipboard | both | both, host-to-client, client-to-host, off |
codec | hevc | h264, hevc, av1 |
chroma | nv12 | nv12, p010, yuv444, yuv444p10 |
fps | 120 | |
maxBitrateKbps | 100000 | |
requirePINForLAN | true | LAN clients always pair with the PIN |
allowTailscaleSameUser | true | Same Tailscale user pairs without a PIN |
certPath, keyPath | host-cert.pem, host-key.pem | In the config directory |
policy | {} | Per-policy overrides of the stream resolver |
audioDevice | unset | |
audioExcludeApps | none | Apps left out of streamed audio |
virtualMic | unset | Virtual input device for the client’s microphone |
stayAwake | false | |
lockOnDisconnect | false | |
muteSpeakers | false | |
privacyMode | false | |
idleTimeoutMinutes | 0 | 0 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.
| Key | Default | Notes |
|---|---|---|
preferredCodec, preferredChroma | hevc, nv12 | |
targetFPS | 120 | Must be positive |
maxBitrateKbps | 100000 | Must be positive |
audioEnabled | true | |
clipboardSend, clipboardReceive | Clipboard sharing in each direction | |
systemKeysCapture | Immersive mode takes system keys | |
themeName | default | |
pinnedHosts | {} | Paired hosts: fingerprint, name, pairing time, last LAN and Tailscale address |
deviceName | What hosts list this client as | |
hostAliases | ||
overrides, hostOverrides | Global and per-host stream overrides | |
audioVolume, audioMuted | ||
overlay | Stream HUD layout | |
openFullscreen | true | |
openEveryHostDisplay | ||
maxStreamWindows | 2 | 2 to 4 |
hotkeys | see below | Action to chord |
neverSend | Clipboard and input targets that are never sent | |
swapCmdCtrl | ||
audioOutputDevice, micDevice | ||
telemetryEnabled | absent (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.
| Flag | Default | Meaning |
|---|---|---|
-listen | :47701 | QUIC control address |
-media-port | 47702 | UDP media port; 0 picks any free port |
-discovery-port | 47700 | LAN discovery; 0 turns it off |
-codec | hevc | auto, pyrowave, hevc, av1, h264 |
-chroma | nv12 | auto, nv12, p010, yuv444, yuv444p10 (or 420, 444) |
-bit-depth | auto | auto, 8, 10 |
-res | auto | auto, 1080p, 1440p, 4k, or WxH (needs a virtual display) |
-fps | display refresh | Frame rate (60 with -synth) |
-bitrate | from host.json | Maximum video bitrate in kbps |
-bitrate-mbps | 0 (auto) | Bitrate policy in Mbps |
-split | auto | NVENC split encode: auto (1440p+, or 1080p from 200 fps, LAN, no slices), on, off |
-slices | FEC slices per frame, 1 to 16 | |
-subframe | false | Send slices as the encoder finishes them; needs -slices 2 or more |
-subframe-slices | auto | Policy: auto, 1, 4, 8 |
-vdd | auto | SudoVDA virtual display at the client’s size: auto, on, off |
-vdd-gpu | GPU that renders the virtual display and encodes (4080, Radeon) | |
-vdd-primary | false | Make the virtual display primary |
-display | primary | Display ID to capture |
-adapter | display’s GPU | Encoding GPU by name or vendor (NVIDIA, AMD, Intel) |
-pin | random | Fixed 6-digit pairing PIN |
-name | host.json name | Host name for this run |
-set-name | Rename the host and keep it in host.json | |
-no-input | false | Ignore client keyboard, mouse and gamepad |
-no-audio | false | Do not capture or stream audio |
-audio-exclude-pids | Processes left out of streamed audio (macOS; Windows leaves out only Planck) | |
-mic-device | auto | Virtual input device; off refuses the microphone |
-clipboard | both | both, host-to-client, client-to-host, off |
-synth | false | Stream a generated test pattern |
-width, -height | Synthetic frame size | |
-stats | 2s | Print stats while a client is connected; 0 turns it off |
-no-telemetry | false | Send no telemetry this run |
-config | config directory | |
-version | Print the version and exit |
planck-client flags
| Flag | Default | Meaning |
|---|---|---|
-config | config directory | |
-name | Settings name | Device name hosts pair this client under, for this run |
-codec | auto | auto, pyrowave, hevc, av1, h264 (h264 has no decoder) |
-chroma | auto | auto, 420, 444 (or nv12, p010, yuv444, yuv444p10) |
-bit-depth | auto | auto, 8, 10 |
-res | auto | auto (this screen), 1080p, 1440p, 4k, WxH |
-fps | auto | auto, 60, 120, 144, 240 |
-bitrate | 0 | Maximum kbps, for hosts that do not resolve the stream |
-bitrate-mbps | 0 (auto) | Video bitrate in Mbps |
-slices | auto | auto, 1, 4, 8 |
-vdd | auto | Host virtual display at this screen’s size |
-vdd-gpu | Host GPU that renders the virtual display and encodes | |
-nvenc-split | auto | NVENC two-engine split: auto, on, off |
-direct-display | auto | macOS full-screen direct-to-display: auto, on, off |
-vsync | auto | Present in step with the display: auto (off), on, off |
-display | Host display ID to stream | |
-hdr10 | auto | auto (where both ends and the host desktop have HDR) or off |
-discovery-port | 47700 | Discovery port to listen on and probe |
-version | Print the version and exit |
Headless mode
-headless streams without a window and prints a summary, for benchmarks and scripted checks. It never sends telemetry.
| Flag | Default | Meaning |
|---|---|---|
-headless | false | Connect without a window, decode for -duration, print a summary |
-connect | host[:port] | |
-discover | Find the host by name or ID on the LAN and tailnet; race its paths | |
-discovery-addrs | Comma-separated ip:port to probe instead of listening | |
-pin | The host’s 6-digit PIN, the first time | |
-duration | 10s | How long to stream |
-timeout | 15s | How long discovery and the handshake may take |
-path-mode | auto | auto, lan, tailscale; fails on any other path |
-no-audio | false | Do not ask for audio |
-silent-audio | false | Receive and decode audio, play none |
-input-probe | false | Send a zero mouse move every -input-probe-every |
-input-probe-every | 1s | |
-mic-tone | false | Send a 440 Hz tone into the host’s virtual microphone |
-json | false | Print the summary as JSON |
planck-client -headless -discover my-host -pin 123456 -duration 10s -json
planck-client -headless -connect 192.0.2.10:47701 -path-mode lan -silent-audioHotkeys
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.
| Action | Default | Scope |
|---|---|---|
| Stream menu | Ctrl+Alt+O | Stream window |
| Hide button | Ctrl+Alt+P | Stream window |
| Metrics | Ctrl+Alt+M | Stream window |
| Cycle HUD | Ctrl+Alt+H | Stream window |
| Microphone | Ctrl+Alt+U | Stream window |
| Fullscreen | Ctrl+Alt+F | Stream window |
| Immersive mode | Ctrl+Alt+I | Takes system keys while on |
| Cursor lock | Ctrl+Alt+G | Stream window |
| Switch display | Ctrl+Alt+] | Stream window |
| Ctrl+Alt+Del on host | Ctrl+Alt+Backspace | Stream window |
| Keyframe | Ctrl+Alt+K | Stream window |
| Disconnect | Ctrl+Alt+Shift+D | Stream window |
| Stop hosting | Ctrl+F3 | Global, on the host |
| Kick client | none | Global, on the host |
Codecs and chroma
Encoders
| Encoder | Codecs Planck drives | Chroma |
|---|---|---|
| NVENC (NVIDIA, Windows) | H.264, HEVC, AV1, as the GPU reports | NV12; P010 for 10-bit; YUV444 and YUV444P10 where the GPU supports them |
| AMF (AMD, Windows) | HEVC | NV12, P010 |
| oneVPL (Intel, Windows) | HEVC | NV12, P010, YUV444, YUV444P10 |
| VideoToolbox (Apple) | HEVC (Main10 for 10-bit) | NV12, P010; 4:4:4 refused |
Decoders
| Client | HEVC | AV1 | H.264 | HDR10 present |
|---|---|---|---|---|
| macOS (VideoToolbox) | Yes, 10-bit | Yes, 10-bit | No | Yes |
| Windows (Media Foundation) | Yes, 10-bit | Yes, 10-bit | No | No, 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.