Gharmonize
Download, convert, and tag media, then stream your music library to a browser or Android. This guide covers packaged desktop builds, Docker Compose, and Player setup.
Features
- Download media with yt-dlp, convert audio and video with FFmpeg, and edit metadata and cover art.
- Rip DRM-free discs, prepare ringtones, and use hardware encoding when your system supports it.
- Play your own library using Gharmonize Player in a browser, on an Android phone, or on Android TV.
- Use supported music catalogs to find track metadata and match media sources.
Desktop installation
- From GitHub Releases, download the Windows Setup EXE, Linux AppImage, or the DEB, RPM, or Arch package for your distribution.
- Run the Windows installer or install the Linux package with your package manager. For AppImage, run the commands below from the download folder.
- Open Gharmonize. The packaged Electron app includes Node.js. On first launch, let Gharmonize finish preparing its media tools.
- Read the initial password from
INITIAL_ADMIN_PASSWORD.txtand change it in Settings after signing in. The desktop profile is under~/.config/Gharmonize/on Linux and%APPDATA%on Windows, inside the Gharmonize folder.
Install the latest release
.pkg.tar.zst Arch Linux, Manjaro, EndeavourOS
curl -fsSL https://api.github.com/repos/G-grbz/Gharmonize/releases/latest \
| jq -r '.assets[] | select(.name | endswith("-x64.pkg.tar.zst")) | .browser_download_url' \
| xargs -r sudo pacman -U
.deb Debian, Ubuntu, Linux Mint
curl -fsSL https://api.github.com/repos/G-grbz/Gharmonize/releases/latest \
| jq -r '.assets[] | select(.name | endswith("-amd64.deb")) | .browser_download_url' \
| xargs -r curl -fLo /tmp/gharmonize.deb \
&& sudo apt install /tmp/gharmonize.deb
.rpm Fedora and other RPM-based distributions
curl -fsSL https://api.github.com/repos/G-grbz/Gharmonize/releases/latest \
| jq -r '.assets[] | select(.name | endswith(".rpm")) | .browser_download_url' \
| xargs -r sudo dnf install -y
.AppImage Any x86-64 distribution. Saved to ~/Applications and opened.
mkdir -p ~/Applications \
&& curl -fsSL https://api.github.com/repos/G-grbz/Gharmonize/releases/latest \
| jq -r '.assets[] | select(.name | endswith(".AppImage")) | .browser_download_url' \
| xargs -r curl -fLo ~/Applications/Gharmonize.AppImage \
&& chmod +x ~/Applications/Gharmonize.AppImage \
&& ~/Applications/Gharmonize.AppImage
Setup .exe Installer. Download it and run it.
Portable .exe No installation needed. Download it and run it.
.apk Gharmonize Player client. Download it on the phone and open it; Android may ask you to allow installs from this source.
Linux commands need curl and jq. They always download the latest release from GitHub.
AppImage launch
chmod +x ./Gharmonize-*.AppImage
./Gharmonize-*.AppImage
Run from source on Linux
Install Node.js 22.12 or newer. Use npm run server in an installed checkout for the browser-only server on port 5174.
Source installation commands
git clone https://github.com/G-grbz/Gharmonize
cd Gharmonize
BUILD_ELECTRON=1 npm install
npm start
Docker Compose deployment
Use Docker Engine with the Compose plugin on a Linux host. The supplied stack pulls the official image from ghcr.io/g-grbz/gharmonize and serves the web interface.
Prepare a fresh installation
Docker directory setup commands
git clone https://github.com/G-grbz/Gharmonize
cd Gharmonize
sudo install -d -m 700 -o "$(id -u)" -g "$(id -g)" /opt/gharmonize
mkdir -p /opt/gharmonize/{uploads,outputs,temp,cache,cookies,local-inputs}
touch /opt/gharmonize/.env
chmod 600 /opt/gharmonize/.env
In the cloned checkout, save Compose values in .env. Replace the example user and group IDs with the output of id -u and id -g. Gharmonize reads its own optional settings from /opt/gharmonize/.env.
Compose environment example
PUID=1000
PGID=1000
PORT=5174
MUSIC_DIR=/opt/gharmonize/local-inputs
Start and check the service
Docker Compose start commands
docker compose config --quiet
docker compose pull
docker compose up -d
docker compose ps
- Open
http://localhost:5174on the host. To use YTLive, open/ytlive.htmlon the same server. - Get the initial password from
/opt/gharmonize/cache/INITIAL_ADMIN_PASSWORD.txt, change it in Settings, and then remove the one-time credential file. - Preserve the cache volume and its encryption key across upgrades. For a remote deployment, use HTTPS and protect access to the published port.
For a pinned deployment, use a version tag from GHCR. For NVIDIA/NVENC or a source-built image, use the corresponding instructions in the Docker guide.
Docker options, upgrades and NVIDIAEnvironment variables
All variables are optional; defaults are used when a value is left empty. Set them in .env or from the Settings panel. In Docker use the Compose environment; in the desktop app edit ~/.config/Gharmonize/.env on Linux or %APPDATA%/Gharmonize/.env on Windows. Restart after changing directory settings.
Docker and server
| Variable | Default | What it does |
|---|---|---|
PUIDPGID | 1000 | Select the container user and group. Match the owner of the writable host directories. |
RUN_ | 65534 | Extra group added to the container user so it can read mounted media (for example removable drives under /run/media). |
PORT | 5174 | Sets both the service port and the port the stock Compose file publishes. The default is 5174. |
MUSIC_ | /opt/gharmonize/local-inputs | Mounts a host music directory at /music. In-place retagging requires write permission on that directory. |
RETAG_ | /music | Restricts the directories offered for in-place retagging. Without it, /music, LOCAL_INPUT_DIR and the actual outputs directory are offered. |
NODE_ | production | Runtime mode set by the stock Compose file. Keep production for deployments. |
GHARMONIZE_ | 1 | Lets the Docker image download and manage FFmpeg, yt-dlp and the other tools automatically. |
NVIDIA_NVIDIA_ | — | Commented out in the stock Compose file. Set them to all and compute,video,utility with the NVIDIA runtime to use NVENC hardware encoding. |
Data directories
| Variable | Default | What it does |
|---|---|---|
DATA_ | — | Root directory for application storage. Empty uses the working directory (Node/Docker) or the profile directory (packaged desktop app). The stock Compose stack uses /usr/src/app inside the container; to move host downloads, change the source of the outputs bind mount. Restart after changing it. |
OUTPUTS_ | — | Changes the path shown in the interface. The outputs bind mount determines where files are written. |
LOCAL_ | local-inputs | Directory under DATA_DIR for browsing and converting server-local files. Requires an administrator session. |
GHARMONIZE_CACHE_JOBS_YTLIVE_ | — | Optional overrides for the cache, saved job state and YTLive download lists. By default they live under DATA_DIR/cache. |
ENV_ENV_ | — | Selects which .env file is loaded and where Settings saves changes. Empty uses the .env in the working directory. |
Interface and general
| Variable | Default | What it does |
|---|---|---|
FRONTEND_ | classic | Interface served at /: classic, ytlive or player. Direct routes stay available. |
UPLOAD_ | 2500mb | Limits upload size. For example, UPLOAD_MAX_BYTES=100mb. |
YOUTUBE_ | 50 | Maximum playlist entries queued by the YTLive playlist + action (1–100). |
YOUTUBE_ | 0 | Enables verbose server logs for YTLive discovery. |
YTLIVE_YTLIVE_ | Gharmonize Music / Youtube Live | Title and subtitle shown in the YTLive interface. |
TRACK_ | 1 | Shows the Gharmonize Track Extractor shortcut in the Windows/Linux context menu. 1 = on, 0 = off. |
HOMEPAGE_ | — | Key for the Homepage dashboard widget. Generate it in Settings and send it in the X-Widget-Key header. |
Desktop app
| Variable | Default | What it does |
|---|---|---|
GHARMONIZE_ | 0 | Set to 1 to disable GPU acceleration in the desktop app if a graphics driver has rendering problems. Increases CPU usage. |
GHARMONIZE_ | — | Selects the Linux display backend: x11 or wayland. Empty chooses automatically. |
GHARMONIZE_ | — | Executable-capable parent directory for tool temporary files. Defaults to tmp/ inside the managed binary cache; do not use a shared or world-writable directory. |
Preview and fetch limits
| Variable | Default | What it does |
|---|---|---|
PREVIEW_ | 1000 | Maximum entries shown in an Automix or playlist preview. |
AUTOMIX_ | 60000 | Timeout for fetching a whole Automix list at once. Falls back to paged mode when exceeded. |
AUTOMIX_ | 60000 | Timeout for each paged Automix request. |
PLAYLIST_ | 35000 | Timeout for fetching a whole playlist with --flat-playlist. |
PLAYLIST_ | 25000 | Timeout for each paged playlist request. |
PLAYLIST_ | 15000 | Timeout for fetching playlist metadata such as the title and item count. |
PLAYLIST_ | 15000 | Timeout for the fallback metadata attempt that uses only the first item. |
PREVIEW_ | 1800000 | How long preview results stay in memory (30 minutes by default). |
Tools and yt-dlp
| Variable | Default | What it does |
|---|---|---|
YTDLP_ | — | Path to the yt-dlp executable. Leave empty to use the managed copy. |
FFMPEG_ | — | Path to the ffmpeg executable. Leave empty to use the managed copy. |
FFPROBE_MKVMERGE_MKVPROPEDIT_DENO_ | — | Paths to the other helper tools. Leave empty to use the managed copies. |
GHARMONIZE_ | stable | FFmpeg update channel. stable picks the newest compatible release build; master opts in to the latest development snapshot. |
YTDLP_ | — | Extra yt-dlp arguments for audio downloads, separated by spaces. |
YTDLP_ | — | Alternative name used when YTDLP_EXTRA is not set. |
YTDLP_ | 999999500K | Download speed limit for single-video audio downloads, passed as --limit-rate. The default is effectively unlimited. |
YTDLP_ | Chrome 127 UA | User-Agent string yt-dlp sends to YouTube. |
Spotify, Deezer and matching
| Variable | Default | What it does |
|---|---|---|
SPOTIFY_SPOTIFY_ | — | Optional Spotify Web API credentials for metadata lookup. Keep the secret in the protected application configuration. |
SPOTIFY_ | US | Default country code for Spotify requests. |
SPOTIFY_ | GB,DE,FR | Comma-separated markets tried in order when a track is unavailable in SPOTIFY_MARKET. |
SPOTIFY_ | 0 | Logs market selection and fallbacks in detail. |
DEEZER_ | — | Deezer arl session cookie for personalized smart tracklists. Stored encrypted; treat it like a password. |
PREFER_ | 1 | Prefers Spotify metadata over YouTube when writing tags. |
ENRICH_ | 1 | Enriches YouTube conversions with Spotify data such as genre, label, year and ISRC. |
YT_ | 3 | Number of YouTube results checked per track match. 2 is faster, 3 is safer. |
YT_ | 25000 | Timeout for each matching search. |
YT_ | 180 | Delay between parallel searches to avoid throttling. 0 disables it. |
YOUTUBE_ | 0 | YouTube request guard: maximum videos fetched per hour (30–2000, 250 recommended). 0 keeps it off. |
MAPPED_MAPPED_ | — | Override the duration tolerances used when matching catalog tracks to YouTube (default 45 s or 22%, 12 s or 6% for weak matches). |
Title cleaning
| Variable | Default | What it does |
|---|---|---|
TITLE_ | 1 | When a title contains |, keeps only the part after the last one. |
CLEAN_ | topic,official | Comma-separated suffixes removed from the end of titles. |
CLEAN_ | official channel,Official Video | Phrases removed wherever they appear in a title. |
CLEAN_ | official,topic | Words that remove the whole parenthesized part they appear in. |
YouTube cookies, language and region
| Variable | Default | What it does |
|---|---|---|
YT_ | 0 | Master switch: 1 disables both YTDLP_COOKIES and YTDLP_COOKIES_FROM_BROWSER. |
YTDLP_ | — | Path to a cookies.txt file, needed for age-restricted and members-only videos. |
YTDLP_ | — | When no cookies.txt exists, imports cookies from a browser on the same machine, such as chrome or firefox. |
YT_ | 0 | Keeps YouTube lists consistent in the interface while YT_STRIP_COOKIES=1. Does not affect downloads. |
YTM_ | — | YouTube Music account index for browser-cookie sign-in (0, 1, 2…). Empty uses the default account. |
YT_ | en-US | Locale emulated for YouTube requests. |
YT_ | en;q=0.8 | Exact Accept-Language header sent to YouTube. |
YT_ | US | Country code passed as --geo-bypass-country for region-locked videos. |
YT_ | 1 | Forces YouTube requests over IPv4. |
YT_ | 0 | Enables special handling for HTTP 403 errors from YouTube. |
YTM_ | 1 | Keeps the shared YouTube Music cache on disk. 0 keeps it in memory only. |
YTM_ | 600000 | How long personal YouTube Music Home results stay fresh. |
YOUTUBE_ | 900000 | How long discovery results stay fresh. |
YTM_ | 500 | Minimum gap between YouTube Music API requests. |
YTM_ | 5000 | Retry delay after partial Home errors. |
Tagging
| Variable | Default | What it does |
|---|---|---|
MEDIA_ | Gharmonize | Text written to the comment tag of generated files. |
MP3_ | — | MP3 duration and seek headers are written by default. The legacy value 0 disables them only for constant-bitrate conversions; leaving it unset is recommended. |
Access and security
| Variable | Default | What it does |
|---|---|---|
GHARMONIZE_ | 127.0.0.1 | Listen address. 127.0.0.1 allows only this computer, 0.0.0.0 the home network. Docker sets 0.0.0.0. |
TRUST_ | 0 | Trusts forwarded headers from additional reverse-proxy networks. Loopback proxies are trusted automatically. |
TRUSTED_ | 127.0.0.1/32,::1/128 | Proxy networks trusted when TRUST_PROXY is on. |
GHARMONIZE_ | none | none opens the app normally; admin requires an administrator or approved temporary session first. |
GHARMONIZE_ | 0 | In admin mode, lets visitors request temporary access from a signed-in administrator. |
GHARMONIZE_GHARMONIZE_GHARMONIZE_GHARMONIZE_ | 1 / 0 / 0 / 0 | Duration of a temporary access grant. The values are added together, capped at five years. |
GHARMONIZE_ | — | Encryption key for stored secrets, given directly as a 32-byte hex/base64 value. |
GHARMONIZE_ | DATA_DIR/.gharmonize-key | Points to the encryption key used for stored secrets. Back up the key and keep it readable by the application user. |
GHARMONIZE_ | — | Writable location for the one-time initial admin password file, for read-only deployments. |
ADMIN_ADMIN_ | — | ADMIN_PASSWORD is only a legacy migration input; Gharmonize stores the scrypt hash in ADMIN_PASSWORD_HASH. Do not add a plaintext password to new installs. |
GHARMONIZE_ | 0 | Allows remote URLs that point to private or LAN addresses. Enable only for intentional LAN media sources. |
GHARMONIZE_ | 0 | Allows yt-dlp options that are blocked as unsafe in the extra-argument settings. |
Gharmonize Player
| Variable | Default | What it does |
|---|---|---|
GHARMONIZE_ | 0 | Enables the Player service. While 0, nothing Player-related runs. |
GHARMONIZE_ | 0 | Starts a separate Player-only listener on all interfaces, so phones can connect while Gharmonize listens on 127.0.0.1. |
GHARMONIZE_ | 5175 | Port of the separate Player listener. |
GHARMONIZE_ | off | Access from outside the local network: off, tailscale, tunnel or any. The local network always works. |
GHARMONIZE_ | quick | Cloudflare Tunnel type: quick needs no account but the address changes on restart; token uses a named tunnel. |
GHARMONIZE_ | — | Token of the named Cloudflare tunnel. |
GHARMONIZE_ | — | Public HTTPS address of the named tunnel. |
GHARMONIZE_ | 5185 | Local Player origin port used by Cloudflare Tunnel. |
No variables match your search.
Detailed configuration reference with examplesPlayer and Android pairing
- In Gharmonize settings, enable Gharmonize Player and open
/player/. - Create the first Player account using your administrator credentials. Add folders in Administration → Libraries and scan them.
- Install the
Gharmonize-Player-ClientAPK from GitHub Releases. Open device pairing in the web Player and scan the QR code from the Android app. - For desktop LAN listening, enable the dedicated Player listener, normally on port 5175. Docker clients can use the existing published port, normally 5174.

