Skip to content

Configuration

Randy Northrup edited this page Nov 26, 2026 · 3 revisions

Configuration and environment variables

Everything you normally change is in Settings (Ctrl+,), as in Teams. Most settings roam with your account through Teams' own settings services, so they follow you to Teams and back. This page covers the command line, the environment variables OST reads, and the files it keeps on your computer.

ost-desktop command line

Command What it does
ost-desktop Opens OST's window, or brings back the one already running (one window per profile).
ost-desktop -h / --help Prints the options and exits.
ost-desktop -V / --version Prints the version (ost-desktop 0.2.1) and exits.
ost-desktop --room Runs as a Teams Rooms device (see Room mode); the same as OST_ROOM=1.

OST has other arguments for its test harness (screenshots and scripted checks). They're for development, built in only with the test-harness cargo feature, and listed in docs/desktop.md. Release packages don't have them: there, any other argument is refused with unrecognized option and exit status 2 (Qt's own options such as -platform still work). See Building from source.

Several accounts

Each account is a profile. In OST, select your picture ▸ Add another account; OST signs the new account in and opens it in its own window. To start a profile yourself:

OST_PROFILE=work ost-desktop
OST_PROFILE=work teams-cli tui

Profile names may contain letters, digits, - and _. Run one OST window per profile at a time; launching the same profile again brings its window forward. Each profile has its own sign-in, settings folder, drafts, outbox, log and web storage (the embedded apps' cookies and site data), so a new profile signs in to the embedded apps on its own.

Environment variables

Variable Effect
OST_PROFILE=<name> Use that account profile (see above).
OST_NO_KEYRING=1 Don't use the system keyring: keep the tokens in config.toml, readable only by you (0600) but not encrypted. An explicit, weaker opt-in for headless machines and CI; without it and without a keyring, the tokens stay in memory until OST quits. See Sign-in storage.
OST_SYSTEM_FRAME=1 Use your desktop's own window frame instead of Teams' title bar buttons.
OST_SYSTEM_NOTIFICATIONS=1 Use the desktop's notifications instead of Teams' banners.
OST_MIC_DEVICE=<name> / OST_SPEAKER_DEVICE=<name> This instance's microphone / speaker, by the name Settings lists or a PipeWire node name.
OST_CAMERA_DEVICE=/dev/videoN or pipewire:<node name> This instance's camera instead of Settings ▸ Devices' choice: a V4L2 device, or a PipeWire camera by its node name.
OST_CAMERA_PORTAL=1 Get the cameras through the desktop's camera portal, as the Flatpak always does, instead of from PipeWire directly. OST then lists and opens only what the portal offers.
OST_SCREENCAST_RESTORE=<file> Share the same screen or window again without the desktop's picker (keeps the portal's restore token in that file).
OST_ROOM=1 Room mode: run as a Teams Rooms device.
OST_ROOM_AUTO_ACCEPT=disabled|intenant|all In room mode, which proximity invitations the room accepts by itself (default intenant).
OST_ROOM_VIDEO=0 In room mode, join without the camera.
OST_BT_ADAPTER=hciN The Bluetooth adapter Room audio's Nearby scans and room mode advertises on (default: the first).
OST_ROAM_DRAFTS=1 Roam drafts between devices even where Teams' feature flag is off for your tenant.
OST_QML_DIR=<dir> Development, test-harness builds only: load QML from that folder instead of the compiled-in copy.
RUST_LOG=info More logging to stderr. Logs keep to shapes and states, not message text, and tokens, cookies and token, code and signature parameters are removed from every line before it is written.
QT_SCALE_FACTOR=1.5 Qt's own scaling.

XDG_CONFIG_HOME, XDG_STATE_HOME, XDG_CACHE_HOME, XDG_DATA_HOME and XDG_DOWNLOAD_DIR move OST's files as usual.

Research and test variables

These exist for protocol research and OST's own tests. Some write message contents or call details to disk: use them only on test accounts.

Variable Effect
OST_DUMP_RTP=<file>, OST_DUMP_RTP_PT=<n> Append decrypted RTP packets of one payload type (default 113) to a file.
OST_OFFER_MUCH=1 Offer Teams' per-speaker meeting audio even with spatial audio off.
OST_TROUTER_DUMP_DIR=<dir> Write every push frame (and call SDP) there; contains message text and call links.
OST_DUMP_MIC=<file> Write the processed microphone, as sent in calls (raw s16le mono).
OST_APM=off Turn off echo cancellation, noise suppression and gain control.
OST_AUDIO_CODEC=pcmu Send G.711 instead of Opus.
OST_VOICE_PROFILE_WAV=<file> test-harness builds only: use that WAV as your voice profile's recording for voice isolation.
OST_BT_ASSUMED_RSSI=<dBm> The signal strength assumed when the Bluetooth adapter reports none (emulated adapters).
OST_CQF_ALWAYS=1 test-harness builds only: ask the call quality survey after every call.
OST_CALLING_ENDPOINT_ID, OST_LOKI_REGION, OST_NOTES_SECRET, OST_PICKER_DEBUG Calling endpoint, profile service region, meeting notes and people picker diagnostics.

See docs/desktop.md for details.

Files OST keeps

Path What
~/.config/ost/desktop.json This computer's desktop settings (theme, window, devices, downloads and other device settings)
~/.config/ost/ddv.json The Diagnostic data viewer's state
~/.config/teams-cli/config.toml Account settings shared by the desktop app and teams-cli, including auth_flow, how the profile signs in (browser sign-in or device code). No tokens, unless you chose Stay signed in without a keyring or set OST_NO_KEYRING=1
~/.config/teams-cli/calling-endpoint-id A random ID for this device's calls, kept across runs as Teams keeps its own (paired Teams phones know the PC by it)
~/.config/teams-cli/profiles/<name>/ The same for each extra account (profile)
~/.config/teams-cli/accounts.json, hub.json, hub-pins.json The accounts on this computer, each account's summary for Activity in other accounts and orgs, and pinned orgs
System keyring (Secret Service) Sign-in tokens: service ost, one entry per profile (see Sign-in storage)
~/.local/share/OST/QtWebEngine/ost-apps/, ~/.cache/OST/QtWebEngine/ost-apps/ The web profile of the sign-in page and the embedded apps: cookies, site storage, cache and service workers (ost-apps-<profile> for other profiles). Deleted when you sign out
~/.local/state/ost/drafts.json Unsent drafts, with their formatting (drafts-<profile>.json for other profiles)
~/.local/state/ost/outbox.json Messages being sent, failed or queued offline (outbox-<profile>.json for other profiles)
~/.local/state/ost/downloads.json The Downloads flyout's history
~/.local/state/ost/ost-desktop.log The app's log (ost-desktop-<profile>.log for other profiles; with Extended diagnostics data on, older parts move to ost-desktop.previous.log)
~/.cache/ost/photos/ Profile and team pictures (refreshed daily)
~/.cache/ost/i18n/ Language catalogs built from Teams' strings (Translations)
~/.cache/ost/models/ Downloaded models (voice isolation and others)
~/.cache/ost/backgrounds/ Teams' video backgrounds, downloaded when picked
~/.cache/ost/feedback/<time>/ A feedback report's OST report details.txt, screenshots and files, for you to review and attach (see Help and feedback)
~/.cache/ost/ (other files) Cached service settings and app link data
~/.local/share/ost/backgrounds/uploads/ Video backgrounds you added
~/Downloads (or $XDG_DOWNLOAD_DIR) Downloaded files (Settings ▸ Files and links ▸ Downloads can change it)
~/.config/autostart/ost-desktop.desktop Only with Auto-start OST on
~/.config/wireplumber/wireplumber.conf.d/ost-hfp-calls.conf, /etc/dbus-1/system.d/ost-hfp-calls.conf Only after the Bluetooth headset setup (see Bluetooth headsets)
~/.local/share/ost/hfp-calls/ Only after the Bluetooth headset setup: what it changed (files it replaced, folders it created, ModemManager's earlier state), so --uninstall can put it back

Tokens are kept only in the system keyring (GNOME Keyring, KWallet or another Secret Service). Without a keyring they stay in memory until OST quits; only with Settings ▸ Accounts and orgs ▸ Stay signed in without a keyring or OST_NO_KEYRING=1 are they written to config.toml, readable by you only (0600) but not encrypted. See Sign-in storage.

To start over, quit OST, then delete ~/.config/ost, ~/.config/teams-cli, ~/.local/state/ost, ~/.cache/ost, ~/.local/share/OST and ~/.cache/OST, and remove the ost entries from your keyring.

Clone this wiki locally