Configuration
Hermes will work with the default settings for most users. In some cases you may want to configure Hermes further.
The default location for the configuration file is listed below. You can use another location if you choose, by passing in the full configuration file path as the first argument when you start Hermes.
Example
hermes ~/hermes.conf
The default location of the apps.json is the same as the configuration file. You can use a custom
location by modifying the configuration file.
Default Config Directory
| OS | Location |
|---|---|
| Docker | /config |
| Linux | ~/.config/hermes |
Use the configuration UI or edit the conf file in a text editor. Use the examples as reference.
General
locale
| Description | The locale used for Hermes's user interface. | |
| Default | en | |
| Example | locale = en | |
| Choices | bg | Bulgarian |
| cs | Czech | |
| de | German | |
| en | English | |
| en_GB | English (UK) | |
| en_US | English (United States) | |
| es | Spanish | |
| fr | French | |
| it | Italian | |
| ja | Japanese | |
| ko | Korean | |
| pl | Polish | |
| pt | Portuguese | |
| pt_BR | Portuguese (Brazilian) | |
| ru | Russian | |
| sv | Swedish | |
| tr | Turkish | |
| uk | Ukranian | |
| zh | Chinese (Simplified) | |
| zh_TW | Chinese (Traditional) | |
sunshine_name
| Description | The name shown by Hestia and other compatible clients. | |
| Default | PC hostname | |
| Example | sunshine_name = Hermes | |
min_log_level
| Description | The minimum log level printed to standard out. | |
| Default | info | |
| Example | min_log_level = info | |
| Choices | verbose | All logging message. warning This may negatively affect streaming performance. |
| debug | Debug log messages and higher. warning This may negatively affect streaming performance. | |
| info | Informational log messages and higher. | |
| warning | Warning log messages and higher. | |
| error | Error log messages and higher. | |
| fatal | Only fatal log messages. | |
| none | No log messages. | |
global_prep_cmd
| Description | A list of commands to be run before/after all applications. If any of the prep-commands fail, starting the application is aborted. | |
| Default | [] | |
| Example | global_prep_cmd = [{"do":"xrandr --output HDMI-1 --mode 1920x1080","undo":"xrandr --output HDMI-1 --mode 3840x2160"}] | |
global_state_cmd
| Description | Commands run on host state transitions (e.g. session start/stop), analogous to global_prep_cmd but tied to host state changes. | |
| Default | [] | |
| Example | global_state_cmd = [{"do":"","undo":""}] | |
server_cmd
| Description | Named commands a client may run on the host during a session —
"Server Commands" in the Web UI. They are not run by Hermes on its
own: the names are advertised to a paired client that holds the
note Also reachable over the Hestia API as
warning A server command runs with the privileges of the Hermes process, chosen by whoever configures the host and triggered by a remote client. Grant the permission only to clients you would trust with those commands. | |
| Default | [] | |
| Example | server_cmd = [{"name":"Open Steam","cmd":"steam"}] | |
notify_pre_releases
| Description | Whether the Web UI should check the rolling Hermes nightly channel in addition to stable releases. Disabled by default because nightly builds may be unstable. This only displays an update notification and download link; Hermes does not install updates automatically. | |
| Default | disabled | |
| Example | notify_pre_releases = disabled | |
announcements
| Description | Whether the Web UI home page shows announcements published by the Hermes maintainers, such as a known issue affecting your version. The message list is fetched from GitHub when the home page loads, so disabling this stops that request. Announcements never install or change anything; they are text, an optional link, and a dismiss button. | |
| Default | enabled | |
| Example | announcements = enabled | |
system_tray
| Description | Show icon in system tray and display desktop notifications | |
| Default | enabled | |
| Example | system_tray = enabled | |
hide_tray_controls
| Description | Hide interactive controls in the system-tray menu, leaving only status entries. | |
| Default | disabled | |
| Example | hide_tray_controls = enabled | |
enable_pairing
| Description | Allow new clients to pair with the host. Disable to lock the host to already-paired clients. | |
| Default | enabled | |
| Example | enable_pairing = disabled | |
enable_discovery
| Description | Advertise the host for discovery (mDNS) so clients can find it automatically on the network. | |
| Default | enabled | |
| Example | enable_discovery = disabled | |
inhibit_screen_lock
| Description | Keep the host's screensaver and screen lock from engaging while a
client is connected, by holding an inhibition through
note This option applies to Linux only. It needs a desktop
screensaver service implementing | |
| Default | disabled | |
| Example | inhibit_screen_lock = enabled | |
Input
controller
| Description | Whether to allow controller input from the client. | |
| Default | enabled | |
| Example | controller = enabled | |
gamepad
| Description | The type of gamepad to emulate on the host. On Linux, auto uses the client-reported controller type (PlayStation to DualSense, Nintendo to Switch Pro, Xbox to Xbox Series). Unknown types can select DualSense from motion/touchpad capabilities; otherwise Xbox Series is used. A manual selection overrides client detection. | |
| Default | auto | |
| Example | gamepad = auto | |
| Choices | generic | Generic HID gamepad note This option applies to Linux only. |
| ds4 | DualShock 4 controller (PS4) | |
| ds5 | DualSense controller (PS5) note This option applies to Linux only. | |
| switch | Switch Pro controller note This option applies to Linux only. | |
| x360 | Xbox 360 controller | |
| xone | Xbox One controller note This option applies to Linux only. | |
| xseries | Xbox Series controller note This option applies to Linux only. | |
linux_gamepad_backend
| Description | Linux controller creation policy. Auto preserves ordinary evdev rumble without hidraw access for Xbox controllers and uses native HID for PlayStation/Switch. Native exposes advanced capabilities, but consuming games need access to the generated hidraw device. Uinput restricts automatic selection to Xbox Series; manually selected PlayStation/Switch profiles require auto or native. This option does not change other platforms. | |
| Default | auto | |
| Example | linux_gamepad_backend = auto | |
| Choices | auto | Input events for Xbox; native HID for PlayStation/Switch |
| native | Prefer native HID and advanced features | |
| uinput | Input-event controllers only, without hidraw requirements | |
ds4_back_as_touchpad_click
| Description | Allow Select/Back inputs to also trigger a PlayStation touchpad click. Useful for clients looking to emulate touchpad click on Xinput devices. tip Applies to DS4, DS5 and automatically selected PlayStation profiles. | |
| Default | enabled | |
| Example | ds4_back_as_touchpad_click = enabled | |
motion_as_ds4
| Description | If a client reports that a connected gamepad has motion sensor support, emulate it on the host as a PlayStation-style controller (DualSense). When disabled, motion sensors will not be taken into account during gamepad type selection. tip Only applies when gamepad is set to auto. | |
| Default | enabled | |
| Example | motion_as_ds4 = enabled | |
touchpad_as_ds4
| Description | If a client reports that a connected gamepad has a touchpad, emulate it on the host as a PlayStation-style controller (DualSense). When disabled, touchpad presence will not be taken into account during gamepad type selection. tip Only applies when gamepad is set to auto. | |
| Default | enabled | |
| Example | touchpad_as_ds4 = enabled | |
virtualhid_randomize_mac
| Description | Randomize the MAC address for virtual DualShock 4 and DualSense controllers on Linux. When disabled, deterministic identities remain scoped to the isolated session. Older ds5_virtualhid_randomize_mac and ds5_inputtino_randomize_mac keys are accepted; an explicitly supplied virtualhid_randomize_mac value takes precedence. | |
| Default | enabled | |
| Example | virtualhid_randomize_mac = enabled | |
The former ds5_inputtino_randomize_mac key is accepted as a compatibility
alias; new configurations should use the key above.
virtualhid_stable_mac
| Description | Give a virtual Switch Pro, DualShock 4 or DualSense controller on Linux a MAC address derived from the paired client and its controller number, the same in every session, seat and reconnection. Steam keeps per-controller layouts by that address (the controller's serial), so they stay applied. When enabled it takes precedence over virtualhid_randomize_mac; when disabled, the Switch Pro address is scoped to the session and PlayStation addresses follow virtualhid_randomize_mac. | |
| Default | enabled | |
| Example | virtualhid_stable_mac = disabled | |
back_button_timeout
| Description | If the Back/Select button is held down for the specified number of milliseconds, a Home/Guide button press is emulated. tip If back_button_timeout < 0, then the Home/Guide button will not be emulated. | |
| Default | -1 | |
| Example | back_button_timeout = 2000 | |
keyboard
| Description | Whether to allow keyboard input from the client. | |
| Default | enabled | |
| Example | keyboard = enabled | |
key_repeat_delay
| Description | The initial delay, in milliseconds, before repeating keys. Controls how fast keys will repeat themselves. | |
| Default | 500 | |
| Example | key_repeat_delay = 500 | |
key_repeat_frequency
| Description | How often keys repeat every second. tip This configurable option supports decimals. | |
| Default | 24.9 | |
| Example | key_repeat_frequency = 24.9 | |
key_rightalt_to_key_win
| Description | It may be possible that you cannot send the Windows key from your client directly. In those cases it may be useful to map the Right Alt key to the Super key on the host. | |
| Default | disabled | |
| Example | key_rightalt_to_key_win = enabled | |
mouse
| Description | Whether to allow mouse input from the client. | |
| Default | enabled | |
| Example | mouse = enabled | |
high_resolution_scrolling
| Description | When enabled, Hermes will pass through high-resolution scroll events from clients. This can be useful to disable for older applications that scroll too fast with high resolution scroll events. | |
| Default | enabled | |
| Example | high_resolution_scrolling = enabled | |
native_pen_touch
| Description | When enabled, Hermes will pass through native pen/touch events from clients. This can be useful to disable for older applications without native pen/touch support. | |
| Default | enabled | |
| Example | native_pen_touch = enabled | |
isolated_ignore_mouse_wiggle
| Description | Moonlight-based clients move the mouse by one pixel and back right after connecting to wake the host display. In an isolated gamescope session that is real motion and shows the cursor until the app hides it. When enabled, Hermes drops that +1,+1 / -1,-1 move if it is the first mouse input of an isolated session. | |
| Default | enabled | |
| Example | isolated_ignore_mouse_wiggle = disabled | |
isolated_hide_hid_gamepads
| Description | Switch Pro, DualShock 4 and DualSense emulation are HID devices that a kernel driver ( | |
| Default | disabled | |
| Example | isolated_hide_hid_gamepads = enabled | |
enable_input_only_mode
| Description | Allow input-only sessions, where a client sends input without receiving a video/audio stream. | |
| Default | enabled | |
| Example | enable_input_only_mode = disabled | |
forward_rumble
| Description | Forward controller rumble/force-feedback events from the host back to the client gamepad. | |
| Default | enabled | |
| Example | forward_rumble = disabled | |
keybindings
| Description | Sometimes it may be useful to map keybindings. Wayland won't allow clients to capture the Win Key for example. tip tip keybindings needs to have a multiple of two elements. note This option is not available in the UI. A PR would be welcome. | |
| Default | | |
| Example | | |
Audio/Video
audio_sink
| Description | The name of the audio sink used for audio loopback. tip To find the name of the audio sink follow these instructions. Linux + pulseaudio:
Linux + pipewire: | |
| Default | Hermes will select the default audio device. | |
| Example | audio_sink = alsa_output.pci-0000_09_00.3.analog-stereo | |
stream_audio
| Description | Whether to stream audio or not. Disabling this can be useful for streaming headless displays as second monitors. | |
| Default | enabled | |
| Example | stream_audio = disabled | |
stream_mic
| Description | Offer clients microphone passthrough (Apollo's protocol; Moonlight forks such as Artemis builds that support it). The microphone reaches an independent client session only, as the only source of that session's private audio server; it never reaches the host's desktop. Experimental. note Applies to Linux independent client sessions (hermes_kms_isolated_sessions). | |
| Default | disabled | |
| Example | stream_mic = enabled | |
keep_sink_default
| Description | Keep the captured audio sink as the system default while streaming, instead of switching the default to the streaming sink. Disable to let Hermes take over the default sink for the session. | |
| Default | enabled | |
| Example | keep_sink_default = disabled | |
auto_capture_sink
| Description | Automatically capture from the current default audio sink rather than a fixed device. Disable to always capture the configured audio sink. | |
| Default | enabled | |
| Example | auto_capture_sink = disabled | |
adapter_name
| Description | Select the video card you want to stream. tip To find the appropriate values follow these instructions. Linux + VA-API: Unlike with amdvce and nvenc, it doesn't matter if video encoding is done on a different GPU. To be supported by Hermes, it needs to have at the very minimum:
| |
| Default | Hermes will select the default video card. | |
| Example | adapter_name = /dev/dri/renderD128 | |
output_name
| Description | Select the display number you want to stream. tip To find the appropriate values follow these instructions. Linux: During Hermes startup, you should see the list of detected displays: You need to use the id value inside the parenthesis, e.g. | |
| Default | Hermes will select the default display. | |
| Example | output_name = 0 | |
virtual_display_backend
| Description | Selects which Linux virtual-display driver Hermes uses for new virtual-display sessions:
Several features exist only with
| |
| Default | evdi | |
| Example | virtual_display_backend = hermes_kms | |
hermes_kms_multi_output
| Description | Enables the experimental shared-desktop multi-output Hermes-KMS
path. Each simultaneously connected client receives a separate
virtual output and capture pipeline, but all outputs remain part of
the host compositor and desktop session. Requires Hermes-KMS UAPI 8
or newer loaded with more than one output, for example
| |
| Default | false | |
| Example | | |
hermes_kms_isolated_sessions
| Description | warning Experimental and not recommended for production yet. Independent-session support now coexists with the shared host session rather than replacing it. Resource limits, GPU compositor support, per-account audio isolation, and full Plasma-session validation remain unfinished. Enables the experimental independent-session capability. It does not switch the entire Hermes server into an isolated mode. Eligible launches may use independent sessions while ordinary Host Desktop, Remote Input, and other shared routes continue to use the existing host compositor. What every isolated session gets. The Plasma
desktop ( How far that goes depends on the session broker. Separating
what each client can reach - files, credentials, the host's
desktop services - takes a separate Unix user, which is the only
boundary the Linux kernel actually enforces. Hermes runs as an
ordinary user and cannot create accounts or become anybody, so that
half is done by Without the session broker, everything in the session runs under the same uid Hermes runs under. The client's compositor and applications therefore share the Hermes user's home directory, its configuration, its SSH and GPG keys, its browser and game-store profiles, and its D-Bus session bus - which also means an application that registers as a unique instance may hand its window to the copy already running on the host desktop rather than opening it in the session. This mode isolates displays and input. It does not isolate files, and is only appropriate where every client is already trusted with the host account. With the session broker, each paired client is given a Unix
account of its own - If the broker is installed but will not provide an account - the Hermes user is not in its allow file, or every configured slot is in use - the launch fails instead of falling back to the host user, because a silent fallback is the one outcome installing it was meant to prevent. Requires a Hermes-KMS driver speaking UAPI 11 or newer and its
session-seat udev rule, a warning Audio is not yet isolated for sessions that have a Unix account of their own - those clients hear the host. A full Plasma desktop and simultaneous real clients are not validated. The private seat brokers are not a security boundary between mutually untrusted local users. Remote Input remains a shared-host feature. Keep independent-session support disabled outside testing. | |
| Default | false | |
| Example | Install the driver's broker ( The broker runs as root because the driver's configfs group is root's; it answers only the users listed in that file, allocates the session index itself (the index is what becomes the private seat, so it cannot be a client's choice), and lets a user remove only the cards it created. Cards are removed when their display is torn down, and any left by a Hermes that died are swept at the next start. To give each client a Unix account of its own, enable the session broker as well. Without this, sessions are isolated by display and input but still run as the Hermes user: Both brokers are authorized the same way and neither uses polkit:
the caller's uid comes from the kernel through
| |
gamescope_backend
| Description | Backend used when launching a desktop application through Gamescope.
note A nested Gamescope is an ordinary window: the desktop
compositor chooses where it opens, normally the primary monitor, and
this setting never moves it onto the virtual display. To have it
appear in the stream, give the app a
note Ignored in a standalone Gamescope session (e.g. SteamOS Game Mode), where the application runs directly in the existing session. | |
| Default | auto | |
| Example | gamescope_backend = wayland | |
hermes_kms_session_compositor
| Description | Which desktop the note Hermes ships note Of the two profiles, note
note The | |
| Default | plasma | |
| Example | hermes_kms_session_compositor = weston | |
isolation_method
| Description | How a session is isolated when a client requests a virtual display,
with
note An app on the | |
| Default | gamescope | |
| Example | isolation_method = kwin_virtual | |
fallback_mode
| Description | Resolution/mode to fall back to when the requested virtual-display mode cannot be applied. Empty leaves the fallback unset. | |
| Default | ||
| Example | fallback_mode = 1920x1080x60 | |
default_scale_factor
| Description | Host-side default resolution scale factor, in percent, applied to virtual-display sessions. 100 leaves the resolution unchanged. Range 20-200. | |
| Default | 100 | |
| Example | default_scale_factor = 125 | |
dd_configuration_option
Accepted for existing configurations. The disabled value still lets Hermes remove saved legacy display state at startup. Use virtual_display_backend for new Linux virtual displays.
dd_resolution_option
Legacy display resolution setting. The Linux display backend uses the resolution requested by the client.
dd_manual_resolution
Legacy companion setting for dd_resolution_option.
dd_refresh_rate_option
Legacy display refresh-rate setting. The Linux display backend uses the refresh rate requested by the client.
dd_manual_refresh_rate
Legacy companion setting for dd_refresh_rate_option.
dd_hdr_option
Legacy display HDR toggle. See Hermes-KMS HDR10 for capture requirements.
dd_wa_hdr_toggle_delay
Legacy delay for the display HDR toggle.
dd_config_revert_delay
Legacy display reconfiguration retry delay.
dd_config_revert_on_disconnect
Controls when the stream requests display-configuration reversion. The default
is disabled. Linux compositor layout handling is described under
isolated_virtual_display_option.
dd_mode_remapping
Legacy resolution and refresh-rate remapping rules.
headless_mode
| Description | Run without requiring a physical display attached to the host. Useful for dedicated/headless streaming hosts. | |
| Default | disabled | |
| Example | headless_mode = enabled | |
double_refreshrate
| Description | Double the streamed refresh rate where the client and pipeline support it. | |
| Default | disabled | |
| Example | double_refreshrate = enabled | |
max_bitrate
| Description | The maximum bitrate (in Kbps) at which Hermes encodes the stream. Set it to 0 to use the bitrate requested by the client. | |
| Default | 0 | |
| Example | max_bitrate = 5000 | |
minimum_fps_target
| Description | Hermes tries to save bandwidth when content on screen is static or a low framerate. Because many clients expect a constant stream of video frames, a certain amount of duplicate frames are sent when this happens. This setting controls the lowest effective framerate a stream can reach. | |
| Default | 0 | |
| Choices | 0 | Use half the stream's FPS as the minimum target. |
| 1-1000 | Specify your own value. The real minimum may differ from this value. | |
isolated_virtual_display_option
| Description | Isolates the virtual display, so the streamed session is the only active output for its duration. note Individual apps can override this through their
note On Linux, this requires a compositor Hermes can drive: KDE/KWin through KScreen, a Wayland compositor implementing the wlr-output-management protocol, or GNOME through Mutter's own DisplayConfig interface. On a compositor that offers none of them, exclusive mode logs a warning and the physical outputs stay on. note On GNOME the layout is applied as temporary after
Mutter's own | |
| Default | disabled | |
| enabled | Disable the physical outputs during the session and restore the previous layout when it ends. Open windows, including a running fullscreen game, move onto the virtual display. | |
Network
upnp
| Description | Hermes will attempt to open ports for streaming over the internet. | |
| Default | disabled | |
| Example | upnp = enabled | |
When enabled, UPnP also attempts forwarding through two routers (double NAT). Hermes selects the discovered
IGD closest to the host's IPv4 address. If that router has a private WAN address and a suitable outer IGD is
also discoverable, it maps the same ports there to the inner router's WAN address. Both hops follow upnp;
there is no separate double-NAT switch. The application default remains disabled. Container installations
seed upnp = enabled only when creating a configuration without that key.
This can avoid manual forwarding on both a personal router and an ISP router, allowing direct remote streaming without a VPN relay. Both routers must offer reachable UPnP services. It does not bypass ISP CGNAT; if the outer IGD cannot be discovered, manual forwarding or another connectivity method is needed. Router selection uses an IPv4 prefix heuristic, not a complete routing-table topology discovery. When two outer IGDs are equally plausible, Hermes skips the external mapping instead of arbitrarily choosing one.
Mappings to other destinations are left untouched. Existing manual mappings to the correct destination
are reused without renewal or removal, even if their description resembles a Hermes-created rule.
Hermes manages a mapping only after creating it successfully or recovering its journal record. Routers
that rewrite descriptions may prevent automatic cleanup: ambiguous permanent mappings remain in the
journal for inspection rather than being assumed removed. Hermes tracks its own rules separately for
each router and checks ownership before cleanup. Routers supporting only permanent leases are used only after recovery intent
has been written to upnp_mappings.journal in the configuration directory. On the next start Hermes
attempts cleanup even if UPnP was disabled; unreachable rules remain recorded for retry.
Some ISP routers report internal port 0 in a specific mapping query. For a locally recorded rule only,
Hermes corroborates the port and destination using a bounded generic enumeration, then repeats the
specific query to verify the exact description and destination before renewal or removal. Generic
descriptions are not used as ownership evidence because these routers may append stale data to them.
Incomplete enumeration, duplicate wildcard entries, changed destinations, or inconsistent leases leave
the rule untouched. This compatibility check never adopts a pre-existing mapping.
UPnP makes the configured streaming ports reachable from outside the LAN. The existing
origin_web_ui_allowed policy still controls whether the Web UI port is mapped. Keep MiniUPnPc updated
through your distribution to receive the XML bounds fixes for CVE-2026-110655 and CVE-2026-110656.
The fixes are in upstream commits 3cfb4fb78d5ac04ed0dadc8dd842fc9e448916db and
64ef08a12aabab57be0bf7e40f047c8f14dedf9c, also backported by ProsperoSunshine.
address_family
| Description | Set the address family that Hermes will use. With both, every port listens on IPv4 and
IPv6 (dual-stack ::), and Hestia clients prefer IPv6 where the network has it. | |
| Default | both | |
| Example | address_family = both | |
| Choices | ipv4 | IPv4 only |
| both | IPv4+IPv6 | |
port
| Description | Set the family of ports used by Hermes. Changing this value will offset other ports as shown in config UI. | |
| Default | 47989 | |
| Range | 1029-65514 | |
| Example | port = 47989 | |
origin_web_ui_allowed
| Description | The origin of the remote endpoint address that is not denied for HTTPS Web UI. The LAN is the private, shared and link-local ranges ( | |
| Default | lan | |
| Example | origin_web_ui_allowed = lan | |
| Choices | pc | Only localhost may access the web ui |
| lan | Only LAN devices may access the web ui | |
| wan | Anyone may access the web ui | |
external_ip
| Description | If no external IP address is given, Hermes will attempt to automatically detect external ip-address. | |
| Default | Automatic | |
| Example | external_ip = 123.456.789.12 | |
lan_encryption_mode
| Description | This determines when encryption will be used when streaming over your local network (what counts as local
is described under warning Encryption can reduce streaming performance, particularly on less powerful hosts and clients. | |
| Default | 0 | |
| Example | lan_encryption_mode = 0 | |
| Choices | 0 | encryption will not be used |
| 1 | encryption will be used if the client supports it | |
| 2 | encryption is mandatory and unencrypted connections are rejected | |
wan_encryption_mode
| Description | This determines when encryption will be used when streaming over the Internet. warning Encryption can reduce streaming performance, particularly on less powerful hosts and clients. | |
| Default | 1 | |
| Example | wan_encryption_mode = 1 | |
| Choices | 0 | encryption will not be used |
| 1 | encryption will be used if the client supports it | |
| 2 | encryption is mandatory and unencrypted connections are rejected | |
ping_timeout
| Description | How long to wait, in milliseconds, for data from the client before shutting down the stream. | |
| Default | 10000 | |
| Example | ping_timeout = 10000 | |
Config Files
file_apps
| Description | The application configuration file path. The file contains a JSON formatted list of applications that can be started by a client. | |
| Default | apps.json | |
| Example | file_apps = apps.json | |
credentials_file
| Description | The file where user credentials for the UI are stored. | |
| Default | hermes_state.json | |
| Example | credentials_file = hermes_state.json | |
log_path
| Description | The path where the Hermes log is stored. | |
| Default | hermes.log | |
| Example | log_path = hermes.log | |
pkey
| Description | The private key used for the web UI and client pairing. For best compatibility, this should be an RSA-2048 private key. warning Not all Moonlight clients support ECDSA keys or RSA key lengths other than 2048 bits. | |
| Default | credentials/cakey.pem | |
| Example | pkey = /dir/pkey.pem | |
cert
| Description | The certificate used for the web UI and client pairing. For best compatibility, this should have an RSA-2048 public key. warning Not all Moonlight clients support ECDSA keys or RSA key lengths other than 2048 bits. | |
| Default | credentials/cacert.pem | |
| Example | cert = /dir/cert.pem | |
file_state
| Description | The file where current state of Hermes is stored. | |
| Default | hermes_state.json | |
| Example | file_state = hermes_state.json | |
Advanced
fec_percentage
| Description | Percentage of error correcting packets per data packet in each video frame. warning Higher values can correct for more network packet loss, but at the cost of increasing bandwidth usage. | |
| Default | 20 | |
| Range | 1-255 | |
| Example | fec_percentage = 20 | |
adaptive_fec
| Description | Size FEC parity from what the client reports losing instead of using A lossy second raises parity as soon as it is counted; lowering waits five seconds, so a single
clean second does not start a sawtooth. Only the client's own reports count as evidence: until
the first report arrives warning Parity is counted against the stream's bitrate budget only at the configured | |
| Default | enabled | |
| Example | adaptive_fec = enabled | |
adaptive_fec_max_percentage
| Description | Highest percentage adaptive FEC may ask for. Keep this at or below what the link can afford:
parity is bandwidth, and a client already losing packets has none to spare. A | |
| Default | 50 | |
| Range | 1-50 | |
| Example | adaptive_fec_max_percentage = 50 | |
qp
| Description | Quantization Parameter. Some devices don't support Constant Bit Rate. For those devices, QP is used instead. warning Higher value means more compression, but less quality. | |
| Default | 28 | |
| Example | qp = 28 | |
min_threads
| Description | Minimum number of CPU threads used for encoding. note Increasing the value slightly reduces encoding efficiency, but the tradeoff is usually worth it to gain the use of more CPU cores for encoding. The ideal value is the lowest value that can reliably encode at your desired streaming settings on your hardware. | |
| Default | 2 | |
| Example | min_threads = 2 | |
limit_framerate
| Description | Limit the host capture/encode framerate to the client's requested rate instead of running unbounded. | |
| Default | disabled | |
| Example | limit_framerate = enabled | |
envvar_compatibility_mode
| Description | Enable a compatibility mode for how environment variables are passed to launched applications, for apps that expect the legacy behavior. | |
| Default | disabled | |
| Example | envvar_compatibility_mode = enabled | |
legacy_ordering
| Description | Use the legacy client/device ordering behavior for compatibility with older clients. | |
| Default | disabled | |
| Example | legacy_ordering = enabled | |
ignore_encoder_probe_failure
| Description | Continue startup even if encoder probing fails, instead of treating a failed probe as fatal. Useful on hosts where probing is unreliable but encoding works. | |
| Default | disabled | |
| Example | ignore_encoder_probe_failure = enabled | |
pyrowave
| Description | Advertise the experimental PyroWave Vulkan codec to compatible Hestia clients. The codec is intra-only,
currently supports SDR YUV 4:2:0, and is intended for high-bandwidth LAN streaming. This option is only
effective when Hermes was built with the optional On Linux the captured image is converted to YCbCr with OpenGL and the encoder reads the result through Vulkan. On a host that encodes with VAAPI (AMD and Intel) the capture's GPU buffers are used in place, without a copy through system memory. On a host that encodes with NVENC, Hermes-KMS virtual displays are captured with a CPU copy and uploaded to the GPU for the conversion. If the GPU cannot share buffers between OpenGL and Vulkan, a capture into system memory is converted on the CPU instead, which costs several milliseconds per frame and more than a 4K frame at 60 fps allows. A frame larger than the stream's forward error correction can protect (about 1.2 MB with the default
| |
| Default | disabled | |
| Example | pyrowave = enabled | |
hevc_mode
| Description | Allows the client to request HEVC Main or HEVC Main10 video streams. warning HEVC is more CPU-intensive to encode, so enabling this may reduce performance when using software encoding. | |
| Default | 0 | |
| Example | hevc_mode = 2 | |
| Choices | 0 | advertise support for HEVC based on encoder capabilities (recommended) |
| 1 | do not advertise support for HEVC | |
| 2 | advertise support for HEVC Main profile | |
| 3 | advertise support for HEVC Main and Main10 (HDR) profiles | |
av1_mode
| Description | Allows the client to request AV1 Main 8-bit or 10-bit video streams. warning AV1 is more CPU-intensive to encode, so enabling this may reduce performance when using software encoding. | |
| Default | 0 | |
| Example | av1_mode = 2 | |
| Choices | 0 | advertise support for AV1 based on encoder capabilities (recommended) |
| 1 | do not advertise support for AV1 | |
| 2 | advertise support for AV1 Main 8-bit profile | |
| 3 | advertise support for AV1 Main 8-bit and 10-bit (HDR) profiles | |
capture
| Description | Force specific screen capture method. | |
| Default | Automatic. Hermes will use the first capture method available in the order of the table above. | |
| Example | capture = kms | |
| Choices | nvfbc | Use NVIDIA Frame Buffer Capture to capture direct to GPU memory. This is usually the fastest method for NVIDIA cards. NvFBC does not have native Wayland support and does not work with XWayland. |
| wlr | Capture for wlroots based Wayland compositors via wlr-screencopy-unstable-v1. It is possible to capture virtual displays in e.g. Hyprland using this method. | |
| kms | DRM/KMS screen capture from the kernel. This requires that Hermes has cap_sys_admin capability. | |
| x11 | Uses XCB. This is the slowest and most CPU intensive so should be avoided if possible. | |
encoder
| Description | Force a specific encoder. | |
| Default | Hermes will use the first encoder that is available. | |
| Example | encoder = nvenc | |
| Choices | nvenc | For NVIDIA graphics cards |
| vaapi | Use Linux VA-API (AMD, Intel) | |
| software | Encoding occurs on the CPU | |
NVIDIA NVENC Encoder
nvenc_preset
| Description | NVENC encoder performance preset. Higher numbers improve compression (quality at given bitrate) at the cost of increased encoding latency. Recommended to change only when limited by network or decoder, otherwise similar effect can be accomplished by increasing bitrate. note This option only applies when using NVENC encoder. | |
| Default | 1 | |
| Example | nvenc_preset = 1 | |
| Choices | 1 | P1 (fastest) |
| 2 | P2 | |
| 3 | P3 | |
| 4 | P4 | |
| 5 | P5 | |
| 6 | P6 | |
| 7 | P7 (slowest) | |
nvenc_twopass
| Description | Enable two-pass mode in NVENC encoder. This allows to detect more motion vectors, better distribute bitrate across the frame and more strictly adhere to bitrate limits. Disabling it is not recommended since this can lead to occasional bitrate overshoot and subsequent packet loss. note This option only applies when using NVENC encoder. | |
| Default | quarter_res | |
| Example | nvenc_twopass = quarter_res | |
| Choices | disabled | One pass (fastest) |
| quarter_res | Two passes, first pass at quarter resolution (faster) | |
| full_res | Two passes, first pass at full resolution (slower) | |
nvenc_spatial_aq
| Description | Assign higher QP values to flat regions of the video. Recommended to enable when streaming at lower bitrates. note This option only applies when using NVENC encoder. warning Enabling this option may reduce performance. | |
| Default | disabled | |
| Example | nvenc_spatial_aq = disabled | |
nvenc_vbv_increase
| Description | Single-frame VBV/HRD percentage increase. By default Hermes uses single-frame VBV/HRD, which means any encoded video frame size is not expected to exceed requested bitrate divided by requested frame rate. Relaxing this restriction can be beneficial and act as low-latency variable bitrate, but may also lead to packet loss if the network doesn't have buffer headroom to handle bitrate spikes. Maximum accepted value is 400, which corresponds to 5x increased encoded video frame upper size limit. note This option only applies when using NVENC encoder. warning Can lead to network packet loss. | |
| Default | 0 | |
| Range | 0-400 | |
| Example | nvenc_vbv_increase = 0 | |
nvenc_h264_cavlc
| Description | Prefer CAVLC entropy coding over CABAC in H.264 when using NVENC. CAVLC is outdated and needs around 10% more bitrate for same quality, but provides slightly faster decoding when using software decoder. note This option only applies when using H.264 format with the NVENC encoder. | |
| Default | disabled | |
| Example | nvenc_h264_cavlc = disabled | |
nvenc_intra_refresh
| Description | Enable NVENC intra-refresh, spreading intra-coded data across frames to smooth bitrate spikes instead of sending full keyframes. note Only applies to the NVIDIA NVENC encoder. | |
| Default | disabled | |
| Example | nvenc_intra_refresh = enabled | |
VA-API Encoder
vaapi_strict_rc_buffer
| Description | Enabling this option can avoid dropped frames over the network during scene changes, but video quality may be reduced during motion. note This option only applies for H.264 and HEVC when using VA-API encoder on AMD GPUs. | |
| Default | disabled | |
| Example | vaapi_strict_rc_buffer = enabled | |
vaapi_quality
| Description | FFmpeg VA-API quality (global_quality) option. -1 leaves the codec default; otherwise 0-8, where lower values mean higher quality. note Only applies when using the VA-API encoder. | |
| Default | -1 | |
| Example | vaapi_quality = 4 | |
vaapi_intra_refresh
| Description | Rolling intra refresh: the encoder refreshes a band of rows in every frame, the whole picture every half second. A frame lost on the network then heals on its own, so Hermes offers reference frame invalidation and a client that lost frames keeps decoding instead of waiting for a key frame. note Only applies when using the VA-API encoder, with an FFmpeg build whose VA-API encoders
have the | |
| Default | enabled | |
| Example | vaapi_intra_refresh = disabled | |
Software Encoder
sw_preset
| Description | The encoder preset to use. note This option only applies when using software encoder. note From FFmpeg. A preset is a collection of options that will provide a certain encoding speed to compression ratio. A slower preset will provide better compression (compression is quality per filesize). This means that, for example, if you target a certain file size or constant bit rate, you will achieve better quality with a slower preset. Similarly, for constant quality encoding, you will simply save bitrate by choosing a slower preset. Use the slowest preset that you have patience for. | |
| Default | superfast | |
| Example | sw_preset = superfast | |
| Choices | ultrafast | fastest |
| superfast | ||
| veryfast | ||
| faster | ||
| fast | ||
| medium | ||
| slow | ||
| slower | ||
| veryslow | slowest | |
sw_tune
| Description | The tuning preset to use. note This option only applies when using software encoder. note From FFmpeg. You can optionally use -tune to change settings based upon the specifics of your input. | |
| Default | zerolatency | |
| Example | sw_tune = zerolatency | |
| Choices | film | use for high quality movie content; lowers deblocking |
| animation | good for cartoons; uses higher deblocking and more reference frames | |
| grain | preserves the grain structure in old, grainy film material | |
| stillimage | good for slideshow-like content | |
| fastdecode | allows faster decoding by disabling certain filters | |
| zerolatency | good for fast encoding and low-latency streaming | |