โ† Back to home

Configuration

youtube-music-cli stores its configuration in ~/.youtube-music-cli/config.json.

Configuration File

{
	"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"
}

Options

theme

The visual theme for the TUI.

| Value | Description |

| ---------- | ---------------------------- |

darkDark theme (default)

| midnight | Deep blue theme |

| matrix | Green on black, Matrix-style |

CLI flag: --theme or -t

youtube-music-cli --theme=matrix

volume

Initial playback volume (0-100).

Default: 70

CLI flag: --volume or -v

youtube-music-cli --volume=80

shuffle

Enable shuffle mode on startup.

Default: false

CLI flag: --shuffle or -s

youtube-music-cli --shuffle

repeat

Repeat mode on startup.

| Value | Description |

| ----- | -------------------- |

offNo repeat (default)

| one | Repeat current track |

CLI flag: --repeat or -r

youtube-music-cli --repeat=all

streamQuality

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.

gaplessPlayback

Enable or disable mpv's gapless audio flag. When turned on (default), mpv will avoid inserting silence between tracks when possible.

Default: true

crossfadeDuration

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

equalizerPreset

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

Search Filters (TUI)

Use the Search view's filter shortcuts to narrow down results:

Filters are applied client-side and will immediately update the results list without re-running the API search.

downloadsEnabled

Enable or disable Shift+D downloads in the TUI.

Default: false

downloadDirectory

Base folder where downloaded files are saved.

Downloaded files are organized as:

///.<ext></code></p> <p><strong>Default:</strong> <code><configDir>/downloads</code></p> <h3>downloadFormat</h3> <p>Output format for downloads.</p> <p>| Value | Description |</p> <p>| ----- | ------------------- |</p> <p>| <span class="kbd">mp3</span> | MP3 with ID3 tags |</p> <p>| <span class="kbd">m4a</span> | AAC/M4A tagged file |</p> <p><strong>Default:</strong> <span class="kbd">mp3</span></p> <h2>Config Directory Structure</h2> <pre><code class="lang-">~/.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</code></pre> <h2>Environment Variables</h2> <p>| Variable | Description |</p> <table><thead><tr><th>--------------------------</th><th>--------------------------------</th></tr></thead><tbody></tbody></table> <p>| <code>YOUTUBE_MUSIC_CLI_CONFIG</code> | Override config directory |</p> <p>| <code>DEBUG</code> | Enable debug logging (<code>DEBUG=*</code>) |</p> <h2>Resetting Configuration</h2> <p>Delete the config file to reset to defaults:</p> <pre><code class="lang-bash">rm ~/.youtube-music-cli/config.json</code></pre> <h2>Editing Configuration</h2> <p>You can edit <span class="kbd">config.json</span> directly while youtube-music-cli is not running, or use the Settings menu (<span class="kbd">,</span> key) in the TUI.</p> <h2>Download Metadata</h2> <p>Downloaded files include metadata tags when available:</p> <ul><li><code>title</code></li><li><code>artist</code></li><li><code>album</code></li><li>cover art (thumbnail) when available</li></ul> </section> <footer> <div class="container"> <div class="foot-grid"> <div class="foot-brand"> <a href="../index.html" class="logo"> <span class="logo-mark">๐ŸŽต</span> <span>youtube-music-cli</span> </a> <p>Open-source TUI music player for YouTube Music. Built by Netfly and contributors.</p> </div> <div class="foot-col"> <h5>Product</h5> <ul> <li><a href="../index.html#features">Features</a></li> <li><a href="../index.html#install">Install</a></li> <li><a href="../docs/keyboard-shortcuts.html">Shortcuts</a></li> <li><a href="../docs/PLUGIN_API.html">Plugins</a></li> </ul> </div> <div class="foot-col"> <h5>Resources</h5> <ul> <li><a href="https://github.com/netflyapp/youtube-music-cli" target="_blank" rel="noopener">GitHub</a></li> <li><a href="https://www.npmjs.com/package/@netflyapp/youtube-music-cli" target="_blank" rel="noopener">npm</a></li> <li><a href="../docs/architecture.html">Architecture</a></li> <li><a href="../docs/roadmap.html">Roadmap</a></li> </ul> </div> <div class="foot-col"> <h5>Community</h5> <ul> <li><a href="../docs/support.html">Support</a></li> <li><a href="https://github.com/sponsors/netflyapp" target="_blank" rel="noopener">Sponsor</a></li> <li><a href="https://github.com/netflyapp" target="_blank" rel="noopener">Netfly</a></li> </ul> </div> </div> <div class="foot-bottom"> <span>ยฉ 2026 Netfly ยท MIT License</span> <span>Built with Ink ยท Powered by mpv + yt-dlp</span> </div> </div> </footer> </body> </html>