A simple command-line interface to play lofi music in your terminal, written in Go.
- Go 1.21 or higher
- MPV media player installed on your system
-
Install MPV media player if you haven't already:
# On Ubuntu/Debian sudo apt-get install mpv # On macOS brew install mpv # On Arch Linux sudo pacman -S mpv # On Windows reconsider your life
-
Install the CLI tool globally:
go install github.com/Jesse-Lucas1996/lofi-cli@latest
-
Important: Add Go's bin directory to your PATH (one-time setup):
For bash users:
echo 'export PATH=$PATH:$(go env GOPATH)/bin' >> ~/.bashrc source ~/.bashrc
For zsh users:
echo 'export PATH=$PATH:$(go env GOPATH)/bin' >> ~/.zshrc source ~/.zshrc
For fish users:
fish_add_path (go env GOPATH)/bin
-
Verify installation:
lofi-cli list # or use the alias lofi list
If you've already installed lofi-cli and want to update to the latest version:
go clean -modcache
go install github.com/Jesse-Lucas1996/lofi-cli@latest
git clone https://github.com/Jesse-Lucas1996/lofi-cli.git
cd lofi-cli
go build -o $(go env GOPATH)/bin/lofi-cliPlay lofi music (default station):
lofi playPlay a specific station:
lofi play --station groove-salad
# or use the short flag
lofi play -s drone-zoneList all available stations:
lofi listPlay with a beautiful audio visualizer (requires cava):
lofi play --visualize
# or use the short flag
lofi play -v -s deep-spaceTo install cava:
# Ubuntu/Debian
sudo apt-get install cava
# macOS
brew install cava
# Arch Linux
sudo pacman -S cava- lofi-girl: Classic lofi beats radio
- chilled-cow: Relaxing lofi music stream
- boxlofi: Box Lofi radio stream
- the-chillout: The Chillout station
- smooth-jazz: Smooth jazz radio
- deep-focus: Radio Paradise Mellow (perfect for focus)
- groove-salad: Ambient/downtempo grooves (SomaFM)
- drone-zone: Atmospheric ambient music (SomaFM)
- deep-space: Deep space ambient sounds (SomaFM)
- defcon: Hacker/cyber ambient music (SomaFM)
- Press
Ctrl+Cto stop playback
- 🎵 Simple and intuitive CLI interface
- 📻 10 verified lofi/chill music stations
- 🎨 Optional audio visualizer mode (cava integration)
- ⚡ Clean and efficient Go implementation
- 🚀 Easy installation and usage
- 🎧 Multiple music genres: lofi, jazz, ambient, synthwave
MIT License