youtube-music-cli stores its configuration in ~/.youtube-music-cli/config.json.
{
"theme": "dark",
"volume": 70,
"shuffle": false,
"repeat": "off",
"streamQuality": "high",
"gaplessPlayback": true,
"crossfadeDuration": 0,
"equalizerPreset": "flat",
"downloadsEnabled": false,
"downloadDirectory": "D:/Music/youtube-music-cli",
"downloadFormat": "mp3"
}
The visual theme for the TUI.
| Value | Description |
| ---------- | ---------------------------- |
| dark | Dark theme (default) |
|---|
| midnight | Deep blue theme |
| matrix | Green on black, Matrix-style |
CLI flag: --theme or -t
youtube-music-cli --theme=matrix
Initial playback volume (0-100).
Default: 70
CLI flag: --volume or -v
youtube-music-cli --volume=80
Enable shuffle mode on startup.
Default: false
CLI flag: --shuffle or -s
youtube-music-cli --shuffle
Repeat mode on startup.
| Value | Description |
| ----- | -------------------- |
| off | No repeat (default) |
|---|
| one | Repeat current track |
CLI flag: --repeat or -r
youtube-music-cli --repeat=all
Audio streaming quality.
| Value | Bitrate | Description |
| -------- | --------- | ---------------------- |
| low | ~64kbps | Save bandwidth |
| medium | ~128kbps | Balanced |
| high | ~256kbps+ | Best quality (default) |
Note: Change via Settings menu (, key) in the TUI.
Enable or disable mpv's gapless audio flag. When turned on (default), mpv will avoid inserting silence between tracks when possible.
Default: true
Sets the duration in seconds used for mpv's acrossfade filter between tracks. The Settings menu cycles through Off (0s), 1s, 2s, 3s, and 5s values.
Default: 0
Selects a preconfigured mpv equalizer stack (flat, bass_boost, vocal, bright, warm). The menu cycles through the presets so you can tailor tonal balance.
Default: flat
Use the Search view's filter shortcuts to narrow down results:
short <3m, medium 3-5m, long >5m).Filters are applied client-side and will immediately update the results list without re-running the API search.
Enable or disable Shift+D downloads in the TUI.
Default: false
Base folder where downloaded files are saved.
Downloaded files are organized as:
Default:
Output format for downloads.
| Value | Description |
| ----- | ------------------- |
| mp3 | MP3 with ID3 tags |
| m4a | AAC/M4A tagged file |
Default: mp3
~/.youtube-music-cli/
โโโ config.json # Main configuration
โโโ favorites.json # Favorite tracks collection
โโโ downloads/ # Default download folder
โโโ plugins/ # Installed plugins
โ โโโ adblock/
โ โโโ lyrics/
โโโ plugin-permissions.json # Plugin permissions
| Variable | Description |
| -------------------------- | -------------------------------- |
|---|
| YOUTUBE_MUSIC_CLI_CONFIG | Override config directory |
| DEBUG | Enable debug logging (DEBUG=*) |
Delete the config file to reset to defaults:
rm ~/.youtube-music-cli/config.json
You can edit config.json directly while youtube-music-cli is not running, or use the Settings menu (, key) in the TUI.
Downloaded files include metadata tags when available:
titleartistalbum