$XDG_CONFIG_HOME/fosclient/config.txt, or ~/.config/fosclient/config.txt
One option per line, written as on the command line. The leading -- can be left
out, and a line starting with # is a comment:
# Join a friend's server and start with the matte theme.
endpoint=https://fos-app.com/invite/AsdfwFSw
theme=matte
mute-notifications
If any line of a file can't be used, the client ignores that whole file, says why on stderr, and
starts without it. When the client closes, it saves mute, deafen
and the window options to config.txt.
Connection
--endpoint=address
The server to connect to: host, host:port, or an invite link
(https://fos-app.com/invite/code,
fos-app.com/invite/code or fos://invite/code).
The port is 12366 if you leave it out. For an invite link, the client
looks up the address at fos-app.com only, whatever host the link names.
Without it: FOS_ENDPOINT, then
default-config.txt
--login=user:password--login user:password
Logs in as soon as the client is connected. Only the first : separates the
two parts, so a password can contain :. Can be given only once. The
credentials aren't passed to the client's child processes.
--aes--chacha
Encrypts the connection only with AES-256-GCM (--aes) or only with
ChaCha20-Poly1305 (--chacha). Pick one, not both.
Default: either, as negotiated
--transport=udp|quic
How the client talks to every server it connects to while it runs. quic
checks the server's key before anything is sent, which udp can't do, and
needs a server that serves QUIC (1549 or newer, not started with
--no-quic) and its key's fingerprint: an invite link brings it, otherwise
give it with --endpoint-pin. There is no fallback: if the server doesn't
serve QUIC or its key is not the one expected, the client says so and connects to
nothing. Start it again with --transport=udp for such a server.
Default: udp
--endpoint-pin=fingerprint
For --transport=quic: the fingerprint of the server's key (64 hex
digits, the spki_sha256 the endpoint prints at startup), for the server
--endpoint names, with its QUIC port
(host:12367). The client keeps the fingerprint it first connected
with in endpoint-pins.json next to config.txt and refuses a
server whose key changed until that server's entry is removed from the file (with
the client closed).
Without it: from the invite link, or as kept
--ignore-config launch only
Reads neither config.txt nor default-config.txt, so a scripted
launch runs with exactly the options it was given. Such a run also doesn't hand over to a
client that is already open, and doesn't register fos:// links.
Audio
--mute
Starts with your microphone muted. The client saves whatever the mute button is set to
when it closes.
--deafen
Starts deafened: you hear no one. The client saves it when it closes, like
mute.
--mute-ui
Doesn't play the client's own sounds: clicks, login, mute, deafen, share.
--mute-notifications
Doesn't play the sounds about others: someone joining or leaving, going live, a stream
ending, a chat message.
Microphone processing
The stages your voice goes through before it is sent. The switches take on or
off (or true / false) and need a value.
--aec=on|off
Echo cancellation: removes what your speakers play from what your microphone hears.
Default: on
--noise-suppression=on|off
RNNoise noise suppression.
Default: on
--vad=on|off
Voice activity detection: only frames with a voice in them are sent.
Default: on
--vad-threshold=0…1
The score a frame needs to count as voice. Higher lets less through.
Default: 0.5
--vad-release=ms
How long detection stays open after the last voice, in milliseconds, so the ends of
words aren't cut off.
Default: 500
--noise-gate=on|off
Doesn't send frames quieter than the threshold.
Default: on
--noise-gate-threshold=dBFS
The level of the noise gate, from -60 to 0. The client's noise
gate slider starts here.
Default: -45
Video & sharing
--video-codec=auto|vp9|h264|h265--vp9--h264--h265
The codec your screen share is sent in. auto lets Fos pick; the others force
that codec. --vp9 is the same as --video-codec=vp9, and so on.
Two different codecs together are an error.
Default: auto
--screenshare
Starts sharing your screen once you are logged in.
--screenshare-audio
Includes your computer's sound in a screen share.
Default: off
--spectate
Opens the full-screen watch view of the stream you are subscribed to, the same as clicking
its LIVE badge.
Theme & window
The client saves the window options to config.txt when it closes, so the next start
opens the window where you left it. Sizes and positions are in pixels.
--theme=default|matte
The look of the client.
Default: default
--window_width=px--window_height=px
The size of the window when it isn't maximized.
Default: 1024 × 720
--window_x=px--window_y=px
Where the window's top-left corner is. Negative values are on a display left of or
above the primary one.
Default: 0, 0
--window_maximized[=true|false]
Opens the window maximized. On its own, it means true.
Default: false
--initial-show-state=normal|minimized|maximized
How the window first appears. On macOS it can also be hidden. Overrides
window_maximized.
Default: normal
--window_zoom=factor
How far the page is zoomed (Ctrl and the mouse wheel), from 0.25 to
5. 1 is 100 %.
Default: 1
--chat_width=px--chat_height=px
The size the chat was dragged to. 0 leaves it to the theme. Only the default
theme's chat can be resized vertically.
Default: 0
Diagnostics
For tracking down a problem. You won't need these day to day.
--no-video-ring
Hands received video to the page one message per frame instead of through the
shared-memory ring. A fallback for a system where the ring doesn't work.
--shm-probe[=report.json]
Tests whether the shared memory that the video ring needs works on this system, writes a
report, and closes the client.
Report without a path: fosclient-shm-probe.json in the
temp directory
endpoint
Fos endpoint
The server you host for your friends. Options go on the command line only, as
--name value or --name=value. The endpoint has no config file. An option it
doesn't know prints the usage and exits with code 2.
A server with a name and a logo, on a port of its own, with both ports forwarded by hand:
On Linux (x86-64, any distribution with glibc 2.28 or newer), unzip the download and start it
from its folder, where it keeps its endpoint.db. Open UDP ports 12366 and 12367 in
the server's firewall (12367 is QUIC, see Network):
unzip fosendpoint_linux_x64.zip
cd fosendpoint
./endpoint
Network
--address ip:port
The address and port to listen on, e.g. 0.0.0.0:12366 or
[::]:12400. The default listens on IPv6 and IPv4 at once, or only on IPv4
(0.0.0.0:12366) if the machine has no IPv6.
Default: [::]:12366
--quic-address ip:port
Where to serve clients started with --transport=quic: a UDP port of its
own besides --address, so a self-hosted endpoint needs two UDP ports open
(12366 and 12367 by default). Its key is kept in endpoint.db and its
fingerprint printed at startup (spki_sha256=) and with
--list-accounts; the invite link hands it to clients. Keep the database
private: losing it changes the key, and clients that kept the old one refuse the
new one.
Default: [::]:12367
--no-quic
Serves udp clients only. QUIC clients are refused and say so; nothing
changes for the others. The invite link stops handing out the QUIC port.
--no-upnp
Doesn't map the endpoint's ports on your router with UPnP. Forward both UDP ports
yourself instead.
Default: both mapped while the endpoint runs, removed when it stops
Identity
What players see for your server in their server list. A name or logo that can't be used stops
the endpoint at startup.
--name name
Your server's name: 1 to 32 bytes, no control characters. Spaces at either end are
trimmed.
Default: no name
--logo path
A PNG file, at most 64 KiB, sent to every client after it logs in. A 128 × 128 logo is far
below that.
Default: no logo
Accounts
--db path
The accounts database, created if it doesn't exist.
Default: endpoint.db in the working directory
--user user:passwordrepeatable
An account that exists for this run only, under exactly that name. It isn't saved to
the database and gets a new identity at every login. Give it once per account.
Invite link
An endpoint downloaded with an invite link comes with a registration.txt. With it, the
endpoint keeps its link at fos-app.com pointed at its current address, like a dynamic DNS, so
your friends need neither your IP nor a DNS name.
Already running an endpoint without one? Generate an invite
link and its registration.txt, with nothing to download again.
--registration path
Where to read the registration from.
Default: registration.txt next to the executable
--no-registration
Doesn't register anywhere: the invite link no longer follows this endpoint.
--noupdate--no-update
For an endpoint at a static IP: tells fos-app.com its address again only when the port
changes. The UPnP mapping is still renewed.
Default: reported every 5 minutes
Updates
--no-version-check
Doesn't ask whether a newer endpoint was released. Without it, the endpoint asks at
startup and then daily, and logs the answer. An update marked critical is logged on
stderr as CRITICAL UPDATE. Without --auto-update it never
downloads or replaces anything.
--auto-update
Updates the endpoint by itself. It asks every hour, downloads a newer release for its
system from fos-app.com, checks it, puts it in place of its own executable and
restarts: once nobody is logged in, or after 24 hours at the latest, and about a minute
after a critical update arrives. Logged-in users are disconnected and reconnect on
their own. It never installs an older release, needs no key, and keeps your
registration.txt and accounts.
The endpoint keeps running in the same terminal. On Linux it keeps its process id, so a
systemd service stays up. On Windows the process you started stays as a small launcher
that starts the new version. The folder the executable is in has to be writable.
Default: off
--bundles target dir
The directory whose bundle/release/os client bundles this endpoint
distributes, so clients update to the build you serve.
Default: ~/source/repos/foscore/target
Testing
For trying things out. Don't run a server for your friends with these on.
--loopback
Lets a user watch their own stream and take control of their own controller, so one
client can test both sides.
--delay ms
Holds every incoming packet this many milliseconds, to simulate a distant server.
Default: 0
--jitter ms
Holds each incoming packet up to this many milliseconds more, at random, which also
reorders packets, as on a real network.
Default: 0
--loss 0…1
The share of packets dropped in each direction: 0.05 is 5 %.