Skip to main content

Configuration

Open the Hermes Web UI

Open configuration (new tab)

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

OSLocation
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​

DescriptionThe locale used for Hermes's user interface.
Defaulten
Examplelocale = en
ChoicesbgBulgarian
csCzech
deGerman
enEnglish
en_GBEnglish (UK)
en_USEnglish (United States)
esSpanish
frFrench
itItalian
jaJapanese
koKorean
plPolish
ptPortuguese
pt_BRPortuguese (Brazilian)
ruRussian
svSwedish
trTurkish
ukUkranian
zhChinese (Simplified)
zh_TWChinese (Traditional)

sunshine_name​

DescriptionThe name shown by Hestia and other compatible clients.
DefaultPC hostname
Examplesunshine_name = Hermes

min_log_level​

DescriptionThe minimum log level printed to standard out.
Defaultinfo
Examplemin_log_level = info
Choicesverbose

All logging message.

warning

This may negatively affect streaming performance.

debug

Debug log messages and higher.

warning

This may negatively affect streaming performance.

infoInformational log messages and higher.
warningWarning log messages and higher.
errorError log messages and higher.
fatalOnly fatal log messages.
noneNo 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[]
Exampleglobal_prep_cmd = [{"do":"xrandr --output HDMI-1 --mode 1920x1080","undo":"xrandr --output HDMI-1 --mode 3840x2160"}]

global_state_cmd​

DescriptionCommands run on host state transitions (e.g. session start/stop), analogous to global_prep_cmd but tied to host state changes.
Default[]
Exampleglobal_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 server_cmd permission, which then asks for one by name. A client without that permission is not told they exist.

note

Also reachable over the Hestia API as GET /api/hestia/v1/commands and POST /api/hestia/v1/commands/run, with the same permission.

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[]
Exampleserver_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.

Defaultdisabled
Examplenotify_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.

Defaultenabled
Exampleannouncements = enabled

system_tray​

DescriptionShow icon in system tray and display desktop notifications
Defaultenabled
Examplesystem_tray = enabled

hide_tray_controls​

DescriptionHide interactive controls in the system-tray menu, leaving only status entries.
Defaultdisabled
Examplehide_tray_controls = enabled

enable_pairing​

DescriptionAllow new clients to pair with the host. Disable to lock the host to already-paired clients.
Defaultenabled
Exampleenable_pairing = disabled

enable_discovery​

DescriptionAdvertise the host for discovery (mDNS) so clients can find it automatically on the network.
Defaultenabled
Exampleenable_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 org.freedesktop.ScreenSaver on the D-Bus session bus. The inhibition is released when the last client disconnects.

note

This option applies to Linux only. It needs a desktop screensaver service implementing org.freedesktop.ScreenSaver on the same D-Bus user bus as Hermes. The desktop must honor the request; a manual lock or administrator-enforced lock is not overridden. If the service restarts, Hermes attempts to restore the inhibition. Use Save and Apply in the web UI (which restarts Hermes) after changing this setting; saving alone does not change an already-running stream.

Defaultdisabled
Exampleinhibit_screen_lock = enabled

Input​

controller​

DescriptionWhether to allow controller input from the client.
Defaultenabled
Examplecontroller = 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.

Defaultauto
Examplegamepad = auto
Choicesgeneric

Generic HID gamepad

note

This option applies to Linux only.

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

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

Defaultauto
Examplelinux_gamepad_backend = auto
ChoicesautoInput events for Xbox; native HID for PlayStation/Switch
nativePrefer native HID and advanced features
uinputInput-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.

Defaultenabled
Exampleds4_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.

Defaultenabled
Examplemotion_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.

Defaultenabled
Exampletouchpad_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.

Defaultenabled
Examplevirtualhid_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.

Defaultenabled
Examplevirtualhid_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
Exampleback_button_timeout = 2000

keyboard​

DescriptionWhether to allow keyboard input from the client.
Defaultenabled
Examplekeyboard = enabled

key_repeat_delay​

Description

The initial delay, in milliseconds, before repeating keys. Controls how fast keys will repeat themselves.

Default500
Examplekey_repeat_delay = 500

key_repeat_frequency​

Description

How often keys repeat every second.

tip

This configurable option supports decimals.

Default24.9
Examplekey_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.

Defaultdisabled
Examplekey_rightalt_to_key_win = enabled

mouse​

DescriptionWhether to allow mouse input from the client.
Defaultenabled
Examplemouse = 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.

Defaultenabled
Examplehigh_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.

Defaultenabled
Examplenative_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.

Defaultenabled
Exampleisolated_ignore_mouse_wiggle = disabled

isolated_hide_hid_gamepads​

Description

Switch Pro, DualShock 4 and DualSense emulation are HID devices that a kernel driver (hid-nintendo, hid-playstation) turns into a gamepad. Steam reads them through hidraw and does not grab that gamepad, so a game that reads it too gets every press twice: raw, and through Steam Input. When enabled, an isolated session (Gamescope or KWin virtual backend) gets only their hidraw nodes, and games see Steam Input's controller alone. A game run without Steam Input then has no controller.

Defaultdisabled
Exampleisolated_hide_hid_gamepads = enabled

enable_input_only_mode​

DescriptionAllow input-only sessions, where a client sends input without receiving a video/audio stream.
Defaultenabled
Exampleenable_input_only_mode = disabled

forward_rumble​

DescriptionForward controller rumble/force-feedback events from the host back to the client gamepad.
Defaultenabled
Exampleforward_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

keybindings needs to have a multiple of two elements.

note

This option is not available in the UI. A PR would be welcome.

Default
[
0x10, 0xA0,
0x11, 0xA2,
0x12, 0xA4
]
Example
keybindings = [
0x10, 0xA0,
0x11, 0xA2,
0x12, 0xA4,
0x4A, 0x4B
]

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:


pacmd list-sinks | grep "name:"

Linux + pipewire:


pactl info | grep Source
# in some causes you'd need to use the `Sink` device, if `Source` doesn't work, so try:
pactl info | grep Sink
DefaultHermes will select the default audio device.
Exampleaudio_sink = alsa_output.pci-0000_09_00.3.analog-stereo

stream_audio​

DescriptionWhether to stream audio or not. Disabling this can be useful for streaming headless displays as second monitors.
Defaultenabled
Examplestream_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).

Defaultdisabled
Examplestream_mic = enabled

keep_sink_default​

DescriptionKeep 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.
Defaultenabled
Examplekeep_sink_default = disabled

auto_capture_sink​

DescriptionAutomatically capture from the current default audio sink rather than a fixed device. Disable to always capture the configured audio sink.
Defaultenabled
Exampleauto_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.

ls /dev/dri/renderD* # to find all devices capable of VAAPI
# replace ``renderD129`` with the device from above to list the name and capabilities of the device
vainfo --display drm --device /dev/dri/renderD129 | \
grep -E "((VAProfileH264High|VAProfileHEVCMain|VAProfileHEVCMain10).*VAEntrypointEncSlice)|Driver version"

To be supported by Hermes, it needs to have at the very minimum: VAProfileH264High : VAEntrypointEncSlice

DefaultHermes will select the default video card.
Exampleadapter_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:

Info: Detecting displays
Info: Detected display: DVI-D-0 (id: 0) connected: false
Info: Detected display: HDMI-0 (id: 1) connected: true
Info: Detected display: DP-0 (id: 2) connected: true
Info: Detected display: DP-1 (id: 3) connected: false
Info: Detected display: DVI-D-1 (id: 4) connected: false

You need to use the id value inside the parenthesis, e.g. 1.

DefaultHermes will select the default display.
Exampleoutput_name = 0

virtual_display_backend​

Description

Selects which Linux virtual-display driver Hermes uses for new virtual-display sessions: evdi (stable default), hermes_kms (zero-copy, experimental), or none.

Several features exist only with hermes_kms: zero-copy capture on AMD/Intel, HDR10 on a virtual display, hermes_kms_multi_output, hermes_kms_isolated_sessions, streaming before login, and the driver's capture counters in diagnostics. It needs Hermes-KMS v0.4.0 or newer; Hermes does not fall back to EVDI when it is selected but unavailable.

none is for a host that has no virtual-display device and does not want one, because the output it streams already exists - a headless compositor session is the usual case. It also stops Hermes reporting readiness problems for a driver that host never uses. headless is accepted as an older spelling of none.

Defaultevdi
Examplevirtual_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 initial_enabled=0 outputs=2.

Defaultfalse
Example
virtual_display_backend = hermes_kms
hermes_kms_multi_output = true

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 (hermes_kms_session_compositor = plasma) runs on a virtual KWin output instead; every other isolated session gets its own Hermes-KMS DRM card on its own private DRM seat, its own compositor, its own Wayland socket, its own capture pipeline, and its own set of virtual input devices, tagged so that one client's keyboard and mouse cannot enter another client's desktop. Sessions isolated with Gamescope use Gamescope; KWin virtual ones use a session compositor chosen with hermes_kms_session_compositor. This half is what separates what each client sees and controls, and it does not depend on the session broker.

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 hermes-session-broker, a small root service, and it is optional.

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 - hermes-s01 upwards, derived from a slot and never from anything the client sent - and the session runs as that user in a transient systemd unit. The account has a private 0700 home under /var/lib/hermes/sessions, kept across reconnections so saves and settings survive; a runtime directory, user manager and session bus of its own; no shell and no sudo; and membership in none of wheel, video, input or render. Its GPU access comes from its own card's per-card access_uid. It is in the hermes-session group, which the shipped polkit rule refuses every action to - without that rule a session on a local seat would count as "active and local" to polkit and be handed over a hundred passwordless actions, including powering the host off and mounting its disks. The session's log goes to the journal, under journalctl -u hermes-session-N.

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 gamescope that can scan out on another device than it renders with (--prefer-drm or --drm-device, as in Hermes' own Gamescope build), the chosen session compositor, and one packaged hermes-kms-seatd@N.service private broker per device, which hermes-kms-setup configures for the Hermes user. The Hermes user must be a member of the seat group. Hermes maps device N to /run/hermes-kms-seatd/N/seatd.sock. hermes_kms_multi_output may be enabled at the same time. Shared-host launches continue to use host compositor outputs, while independent launches allocate private session devices. Audio follows the same split. A session that shares the Hermes user gets a sink of its own, named after the session; its applications play into it, capture records it by name, and the host's default sink is never moved - so the client hears its own session and not the machine. A session that has a Unix account of its own does not yet: it gets an audio server of its own along with its user manager, which Hermes cannot reach through a 0700 runtime directory, so that case still hears the host's audio and says so in the log.

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.

Defaultfalse
Example
virtual_display_backend = hermes_kms
hermes_kms_isolated_sessions = true

Install the driver's broker (hermes-kms-seatd-git, or sudo make INSTALL_BROKER=1 dkms-install from a clone) and configure the session pool as the user Hermes runs as: sudo /usr/lib/hermes-kms/hermes-kms-setup configure --user auto That configures one seat0 host card plus private session cards (four by default, --session-devices N for up to eight) and starts their brokers, asking for one reboot when a different module topology is already loaded. Joining the seat group and enabling hermes-kms-seatd@N.service by hand is no longer needed; the helper removes that older enablement. A driver with UAPI 12 or newer can create cards at runtime instead, so the pool no longer has to be sized in advance. That is what the packaged card broker is for: with it enabled, an exhausted pool is answered by a new card on a private seat rather than by a refusal.

echo hermes | sudo tee /etc/hermes/card-broker.allow
sudo systemctl enable --now hermes-kms-card-broker.socket

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:

echo hermes | sudo tee /etc/hermes/session-broker.allow
sudo systemctl enable --now hermes-session-broker.socket

Both brokers are authorized the same way and neither uses polkit: the caller's uid comes from the kernel through SO_PEERCRED, so it cannot be claimed in a request, and it is checked against a file only root can write. The session broker additionally refuses to create an account at all while the hermes-session group is missing, so an account cannot come to exist on a machine where the polkit rule that confines it is not yet installed. Accounts are never removed implicitly - a client that unpairs keeps its account and its home, because a save game outliving an accidental unpair is worth more than a tidy passwd file. Removing one is a deliberate act:

sudo systemctl stop hermes-session-broker.socket
sudo userdel --remove hermes-s01

gamescope_backend​

Description

Backend used when launching a desktop application through Gamescope. auto nests Gamescope in the current Wayland compositor; wayland, sdl or drm force a specific backend.

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 virtual-display-layout of mirror (clone the desktop) or exclusive, or enable isolated_virtual_display_option globally.

note

Ignored in a standalone Gamescope session (e.g. SteamOS Game Mode), where the application runs directly in the existing session.

Defaultauto
Examplegamescope_backend = wayland

hermes_kms_session_compositor​

Description

Which desktop the kwin_virtual isolation method starts. The default, plasma, is the user's own Plasma desktop on KWin's virtual backend (see below). Any other name replaces KWin with a compositor profile file, looked up first in ~/.config/hermes/session-compositors/ and then in the profiles Hermes ships; a profile declares the command line, any environment it needs, and whether it is told its Wayland socket name or names its own, and the compositor runs on a private Hermes-KMS DRM seat.

note

Hermes ships weston and labwc profiles as opt-in fallbacks for machines without Plasma 6. Neither is required. Dropping in a profile for a third compositor needs no code change and is supported by nobody but you.

note

Of the two profiles, weston is the one to use with Hermes-KMS. It takes KMS nodes only, for both its display and its rendering device, and the sole KMS node backed by a real GPU belongs to seat0 - which a session on a private seat cannot open - so a session under weston composites in software. wlroots takes the two separately, which is what labwc is for; but it allocates an output's scanout buffers on the display device's own render node, and Hermes-KMS's is capture-only with no Mesa driver behind it, so every swapchain fails. Use labwc only with a KMS device whose render node Mesa can drive.

note

plasma is not a profile file. It starts the user's own Plasma desktop: stock KWin on the virtual output of its virtual backend, run as the same user in a transient unit of the user's systemd manager, with a private D-Bus and runtime directory. It shares the user's home, files and settings, so changes made in it are real; it has no DRM device and no libinput, so it never wakes or rearranges a physical monitor and the keyboard and mouse at the machine never reach it. Hermes captures it through KWin's screencast protocol and drives its input through KWin's fake-input protocol. Its frames are copied through system memory rather than exported as DMA-BUFs. It needs KWin and Plasma 6, plasma-wayland-protocols at build time, and dbus-run-session. PowerDevil does not run inside it, so the host's alone manages the monitors and sleep. It runs the app's command, if any, inside the desktop. If it cannot start, the error names the reason and suggests weston as a fallback.

note

The labwc profile sets the mode the client asked for with wlr-randr, which is a separate package. It is best-effort: without it the session still starts, but keeps whatever mode wlroots preferred. Hermes-KMS 0.4.0 and later mark only the requested mode preferred, so that is normally the right one; drivers up to 0.3.2 marked two and the larger won.

Defaultplasma
Examplehermes_kms_session_compositor = weston

isolation_method​

Description

How a session is isolated when a client requests a virtual display, with hermes_kms_isolated_sessions enabled. An app's isolation-method overrides it.

  • gamescope: Gamescope with a virtual display. The app runs alone on its own Hermes-KMS card and private DRM seat. An app with no command gets the kwin_virtual desktop.
  • kwin_virtual: KWin's virtual backend, a virtual output with input through KWin's fake-input protocol, running the desktop chosen by hermes_kms_session_compositor. The app's command starts inside it.
note

An app on the default method with an explicit extend, mirror or exclusive virtual-display-layout stays on the host desktop.

Defaultgamescope
Exampleisolation_method = kwin_virtual

fallback_mode​

DescriptionResolution/mode to fall back to when the requested virtual-display mode cannot be applied. Empty leaves the fallback unset.
Default
Examplefallback_mode = 1920x1080x60

default_scale_factor​

DescriptionHost-side default resolution scale factor, in percent, applied to virtual-display sessions. 100 leaves the resolution unchanged. Range 20-200.
Default100
Exampledefault_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​

DescriptionRun without requiring a physical display attached to the host. Useful for dedicated/headless streaming hosts.
Defaultdisabled
Exampleheadless_mode = enabled

double_refreshrate​

DescriptionDouble the streamed refresh rate where the client and pipeline support it.
Defaultdisabled
Exampledouble_refreshrate = enabled

max_bitrate​

DescriptionThe maximum bitrate (in Kbps) at which Hermes encodes the stream. Set it to 0 to use the bitrate requested by the client.
Default0
Examplemax_bitrate = 5000

minimum_fps_target​

DescriptionHermes 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.
Default0
Choices0Use half the stream's FPS as the minimum target.
1-1000Specify 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 virtual-display-layout field in apps.json: exclusive forces this behaviour for that app, while extend, primary or mirror keep the physical outputs on even when this option is enabled. primary is extend with the virtual display as the primary output for the session, so applications and games open in the stream; on KDE/KWin only, elsewhere it behaves like extend.

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 VERIFY accepts it, and the layout found at the start is submitted again when the session ends. Before the monitors go dark Hermes also writes a physical-only layout to $XDG_STATE_HOME/hermes/saved-mutter-layout and replays it at the next start, so a crash mid-session cannot leave a desktop with every screen off.

Defaultdisabled
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​

DescriptionHermes will attempt to open ports for streaming over the internet.
Defaultdisabled
Exampleupnp = 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​

DescriptionSet 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.
Defaultboth
Exampleaddress_family = both
Choicesipv4IPv4 only
bothIPv4+IPv6

port​

Description

Set the family of ports used by Hermes. Changing this value will offset other ports as shown in config UI.

Default47989
Range1029-65514
Exampleport = 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 (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10, 169.254.0.0/16, fc00::/7, fe80::/64) and any address on a subnet one of the host's interfaces is attached to, such as an IPv6 global address of the home network. A VPN that gives the host a single-address route (/32, /128, as Tailscale does) adds nothing to it. The same rule picks between lan_encryption_mode and wan_encryption_mode.

Defaultlan
Exampleorigin_web_ui_allowed = lan
ChoicespcOnly localhost may access the web ui
lanOnly LAN devices may access the web ui
wanAnyone may access the web ui

external_ip​

DescriptionIf no external IP address is given, Hermes will attempt to automatically detect external ip-address.
DefaultAutomatic
Exampleexternal_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 origin_web_ui_allowed).

warning

Encryption can reduce streaming performance, particularly on less powerful hosts and clients.

Default0
Examplelan_encryption_mode = 0
Choices0encryption will not be used
1encryption will be used if the client supports it
2encryption 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.

Default1
Examplewan_encryption_mode = 1
Choices0encryption will not be used
1encryption will be used if the client supports it
2encryption is mandatory and unencrypted connections are rejected

ping_timeout​

DescriptionHow long to wait, in milliseconds, for data from the client before shutting down the stream.
Default10000
Exampleping_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.

Defaultapps.json
Examplefile_apps = apps.json

credentials_file​

DescriptionThe file where user credentials for the UI are stored.
Defaulthermes_state.json
Examplecredentials_file = hermes_state.json

log_path​

DescriptionThe path where the Hermes log is stored.
Defaulthermes.log
Examplelog_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.

Defaultcredentials/cakey.pem
Examplepkey = /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.

Defaultcredentials/cacert.pem
Examplecert = /dir/cert.pem

file_state​

DescriptionThe file where current state of Hermes is stored.
Defaulthermes_state.json
Examplefile_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.

Default20
Range1-255
Examplefec_percentage = 20

adaptive_fec​

Description

Size FEC parity from what the client reports losing instead of using fec_percentage for every frame. Clients send SS_FRAME_FEC_STATUS for each block that needed parity or was dropped; the host keeps the worst of the last ten seconds and asks for the smallest redundancy that leaves a block unrecoverable less than 0.1% of the time.

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 fec_percentage stands as configured, and the first trustworthy second of reports starts the five-second hold. A second counts once it covers at least three quarters of a second, because jitter makes a rollover land slightly early; while no trustworthy second is in the window the last value stands, since a stall is not a clean link.

warning

Parity is counted against the stream's bitrate budget only at the configured fec_percentage, so adaptive parity may briefly exceed it under heavy loss.

Defaultenabled
Exampleadaptive_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 fec_percentage above it applies until the client's first report; turn adaptive_fec off to keep it for the whole stream.

Default50
Range1-50
Exampleadaptive_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.

Default28
Exampleqp = 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.

Default2
Examplemin_threads = 2

limit_framerate​

DescriptionLimit the host capture/encode framerate to the client's requested rate instead of running unbounded.
Defaultdisabled
Examplelimit_framerate = enabled

envvar_compatibility_mode​

DescriptionEnable a compatibility mode for how environment variables are passed to launched applications, for apps that expect the legacy behavior.
Defaultdisabled
Exampleenvvar_compatibility_mode = enabled

legacy_ordering​

DescriptionUse the legacy client/device ordering behavior for compatibility with older clients.
Defaultdisabled
Examplelegacy_ordering = enabled

ignore_encoder_probe_failure​

DescriptionContinue startup even if encoder probing fails, instead of treating a failed probe as fatal. Useful on hosts where probing is unreliable but encoding works.
Defaultdisabled
Exampleignore_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 pyrowave-shared dependency and a compatible Vulkan device is available.

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 fec_percentage) is sent without it, so bitrates above roughly 550 Mbps at 60 fps are more sensitive to packet loss.

Defaultdisabled
Examplepyrowave = 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.

Default0
Examplehevc_mode = 2
Choices0advertise support for HEVC based on encoder capabilities (recommended)
1do not advertise support for HEVC
2advertise support for HEVC Main profile
3advertise 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.

Default0
Exampleav1_mode = 2
Choices0advertise support for AV1 based on encoder capabilities (recommended)
1do not advertise support for AV1
2advertise support for AV1 Main 8-bit profile
3advertise support for AV1 Main 8-bit and 10-bit (HDR) profiles

capture​

DescriptionForce specific screen capture method.
Default

Automatic. Hermes will use the first capture method available in the order of the table above.

Examplecapture = kms
Choicesnvfbc

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.

kmsDRM/KMS screen capture from the kernel. This requires that Hermes has cap_sys_admin capability.
x11Uses XCB. This is the slowest and most CPU intensive so should be avoided if possible.

encoder​

DescriptionForce a specific encoder.
DefaultHermes will use the first encoder that is available.
Exampleencoder = nvenc
ChoicesnvencFor NVIDIA graphics cards
vaapiUse Linux VA-API (AMD, Intel)
softwareEncoding 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.

Default1
Examplenvenc_preset = 1
Choices1P1 (fastest)
2P2
3P3
4P4
5P5
6P6
7P7 (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.

Defaultquarter_res
Examplenvenc_twopass = quarter_res
ChoicesdisabledOne pass (fastest)
quarter_resTwo passes, first pass at quarter resolution (faster)
full_resTwo 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.

Defaultdisabled
Examplenvenc_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.

Default0
Range0-400
Examplenvenc_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.

Defaultdisabled
Examplenvenc_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.

Defaultdisabled
Examplenvenc_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.

Defaultdisabled
Examplevaapi_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
Examplevaapi_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 intra_refresh option and a driver that refreshes rows (Mesa radeonsi). Otherwise nothing changes.

Defaultenabled
Examplevaapi_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.

Defaultsuperfast
Examplesw_preset = superfast
Choicesultrafastfastest
superfast
veryfast
faster
fast
medium
slow
slower
veryslowslowest

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.

Defaultzerolatency
Examplesw_tune = zerolatency
Choicesfilmuse for high quality movie content; lowers deblocking
animationgood for cartoons; uses higher deblocking and more reference frames
grainpreserves the grain structure in old, grainy film material
stillimagegood for slideshow-like content
fastdecodeallows faster decoding by disabling certain filters
zerolatencygood for fast encoding and low-latency streaming