Configuration
Pass an INI file with --config; it is not loaded automatically. Templates
are in config/. Relative file paths are resolved from the process working
directory, not from the INI file’s directory. Use separate server and client
files: physical controller profiles belong on the client.
Ordinary settings use CLI values, then INI values, then defaults. Credentials
have the special rules below. An explicit --joystick-index 0 overrides the
INI index. Other numeric zero settings may still use their default-merging
behavior. Put comments on separate lines; inline comments are not enabled.
Client Settings
INI section/key |
CLI flag |
Default and meaning |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
No default; plaintext password or encoded PBKDF2 hash. |
|
|
No default; takes precedence over plaintext credentials. |
|
|
|
|
|
No default; validated client JSON controller profile. |
|
|
|
|
|
Enabled by default for TCP; mandatory for UDP control. |
|
|
System trust store if omitted; CA bundle or trusted self-signed certificate. |
|
|
|
TCP prompts for a password when none is supplied. UDP does not prompt: provide credentials through configuration, CLI or environment before starting it. The client never rewrites its INI password.
Server Settings
INI section/key |
CLI flag |
Default and meaning |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
Required; plaintext or encoded PBKDF2 hash. There is no server |
|
|
|
|
|
|
|
INI only |
|
|
|
|
|
|
|
|
|
Enabled for TCP by default; cannot be disabled for UDP. |
|
|
Default server certificate; custom certificate and key must be supplied together. |
|
|
Default private key; custom paths must already contain a matching pair. |
TCP prompts for missing credentials; UDP fails without them. Both CLI server modes require a nonempty password. The default connection limit is one pending or authenticated client; there is no CLI/INI option to raise it.
In UDP mode, max_requests is the per-IP token-bucket capacity, refilled over
rate_limit_window. It is not a TCP input-message limit. A separate login
budget uses min(max_requests, 10) attempts per IP per 60 seconds. Global UDP
capacity is 12000; login capacity is 1000. These global capacities and the 1024-IP
storage cap are not CLI options. Full semantics are in Security.
An explicit INI max_requests = 100 remains 100 after changing protocol
to UDP. For 60 Hz, use 6000 or another budget above the sustained packet rate.
For 120 Hz, at least 7200 tokens per 60 seconds are needed before headroom;
increasing the per-IP setting does not raise the global capacity.
Credentials and Environment
Variable |
Behavior |
|---|---|
|
Supplies a plaintext password or encoded hash at runtime. |
|
Supplies an encoded PBKDF2 credential. |
|
Log directory; default |
|
Enables debug logs for |
Set only one credential form to avoid surprising precedence:
On the client, any selected
password_hashwins overpassword. Environment variables replace the corresponding CLI/INI field; a configured hash can therefore still win overPASSWORD.On the server, nonempty
PASSWORDwins overPASSWORD_HASH; either wins over CLI and INI credentials. The server does not read an INIpassword_hashkey: store an encoded hash in[server] passwordinstead.A nonempty plaintext server INI password is hashed and written back only when selected for this run. CLI or environment credentials skip migration; empty INI passwords are not hashed. ConfigParser rewrites the file without preserving comments; write failures are logged.
To generate an encoded hash without placing the password in shell history:
from getpass import getpass
from padrelay.security.auth import Authenticator
print(Authenticator.hash_password(getpass("Password: ")))
Protect the output as a credential. A hash supplied to the client must be a copy of the server’s exact hash. Bounds are 100000–600000 iterations and 16–128 ASCII salt characters. There is no INI iteration-count setting. Use valid generated hashes, not abbreviated examples containing ellipses. In POSIX shell assignments, single-quote a literal hash so its dollar signs are not expanded.
TLS Paths
Default identity files are ~/.padrelay/certs/server.crt and server.key
(%USERPROFILE%\.padrelay\certs\ on Windows). With no custom paths, both
are generated only when both are absent. Incomplete, invalid or mismatched
identities stop startup. Trust and renewal instructions have one home:
TLS and Certificate Trust.
Controller Mapping
Physical maps and calibration live in a versioned client JSON profile selected
with --controller-profile or [joystick] profile. Run padrelay-keymapper
on the physical-controller machine to generate it. SDL-recognized controllers
work without a profile; an explicit profile replaces automatic capture.
See Controller Profiles for format ownership and calibration.
Protocol 2.0 deliberately rejects old server [button_mapping_*],
[axis_mapping] and [axis_options] sections. Regenerate a client profile
and remove these sections instead of silently reusing physical indices. Server
[vgamepad] type selects only the virtual output target, not the physical model.
Use padrelay-client --help, padrelay-server --help or
padrelay-keymapper --help for the installed command’s complete flag list.