Raspberry Pi Spotify Connect Without Screen or Keyboard
In this article
Yes, a Raspberry Pi running Spotify Connect can work completely without a screen or keyboard. You set it up once with a monitor and keyboard (or a computer over the network), then run it headless—no display, no input devices—and control it entirely from the Spotify app on your phone, tablet, or computer.
What Headless Means for a Raspberry Pi
Running a Raspberry Pi headless means operating it without a connected monitor, keyboard, or mouse. The Pi still runs its operating system and software, but you interact with it remotely—usually over your local network via SSH (Secure Shell) for setup and maintenance, and through the Spotify app for day-to-day playback. This is a common setup for music players, home automation hubs, and servers because it saves space, power, and clutter.
How Spotify Connect Works on a Raspberry Pi
Spotify Connect is a feature built into the Spotify app that lets one device (your phone) control playback on another device (the Pi). The Pi runs a lightweight program that registers itself as a Spotify Connect device on your network. When you open Spotify on your phone and tap the Devices icon, the Pi appears as an available speaker. You select it, and Spotify streams the audio directly to the Pi, which outputs it through the Pi's audio jack, HDMI, or a USB DAC (digital-to-analog converter).
The key point is that the Pi does not need any local interface for this. The Spotify app on your phone handles all the browsing, playlist selection, and volume control. The Pi just receives the audio stream and plays it. This is why a screen and keyboard are only needed for the initial installation and configuration.
Setting Up the Pi Without a Screen or Keyboard
You have two main paths for the initial setup. The first is the traditional method: connect a monitor and keyboard, install the operating system, run a few commands, and then disconnect them. The second is a fully headless setup from the start, which requires a computer with an SD card reader.
- Flash the operating system – Download Raspberry Pi OS Lite (the version without a desktop) and write it to an SD card using a tool like Raspberry Pi Imager.
- Enable SSH – Before inserting the SD card into the Pi, create an empty file named
sshin the boot partition. This enables SSH on first boot. - Configure Wi-Fi (optional) – If you are not using an Ethernet cable, create a file named
wpa_supplicant.confin the boot partition with your network name and password. This lets the Pi join your Wi-Fi automatically. - Boot and connect – Insert the SD card, power on the Pi, and find its IP address from your router's admin page. Then from your computer, run
ssh pi@<IP address>(default password israspberry). - Install Spotify Connect software – Once logged in, install a Spotify Connect client. Popular open-source options include
librespotandspotifyd. For example, withspotifyd, you install the package, create a config file with your Spotify username and password (or use a premium account's credentials), and start the service. - Set it to auto-start – Configure the Spotify client to start automatically on boot, so the Pi becomes a Spotify device every time it powers on.
After this, you can unplug the monitor and keyboard. The Pi will appear as a Spotify Connect device whenever it is on, and you control it entirely from the Spotify app.
Choosing the Right Software and Hardware
Several Spotify Connect clients exist, and the best choice depends on your needs. librespot is a well-known open-source library that many projects build on. spotifyd is a lightweight daemon that runs in the background and is easy to configure. Both require a Spotify Premium account, as Spotify restricts the Connect API to premium subscribers.
For hardware, any Raspberry Pi model from the Zero 2 W upward can handle Spotify Connect. The Pi 4 and Pi 5 are overkill for this task but work fine. The main consideration is audio output quality. The built-in 3.5mm jack on older models is notoriously noisy. For better sound, use a USB DAC (a small external sound card) or output through HDMI to a receiver or TV. The Pi Zero 2 W is popular for this because it is small, cheap, and has built-in Wi-Fi.
Common Problems and How to Fix Them
Three issues come up most often with headless Spotify Pi setups.
- Device not appearing in Spotify app – This usually means the Pi and your phone are on different network segments (e.g., one on 2.4 GHz and the other on 5 GHz with client isolation enabled). Make sure both are on the same Wi-Fi network and that your router does not block device-to-device communication.
- Audio cutting out or stuttering – This is often a Wi-Fi signal issue. Move the Pi closer to the router, or use an Ethernet cable for a stable connection.
- No sound at all – Check the output device in the Spotify client config. If you are using the headphone jack, make sure the volume is not muted at the system level. You can test with
speaker-testover SSH.
Costs and Power Consumption
A Raspberry Pi Zero 2 W costs around $15, while a Pi 4 or 5 is $35–$75. You will also need a microSD card (about $5–$10) and a power supply ($8–$12). If you want better audio, a USB DAC adds $10–$30. Total cost is roughly $30–$100, depending on the model and accessories. Power consumption is low—a Pi Zero 2 W draws about 1–2 watts under load, and a Pi 4 draws 3–6 watts. Running 24/7, this adds only a few dollars a year to your electricity bill.
Alternatives to a Raspberry Pi
If you do not want to build your own, several commercial products do the same thing. Many network streamers, smart speakers, and even some AV receivers have Spotify Connect built in. These are more expensive but require zero setup. On the software side, you could run Spotify Connect on an old laptop, a mini PC, or even a Docker container on a NAS. The Raspberry Pi is popular because it is cheap, silent, and uses very little power, but it is not the only option.
Frequently Asked Questions
Do I need a Spotify Premium account?
Yes. Spotify restricts the Connect API to Premium subscribers. Free accounts can only stream to the device running the Spotify app itself, not to external devices like a Raspberry Pi.
Can I control the Pi with a physical remote or buttons?
Yes, but that requires extra hardware and software. You can connect GPIO buttons to the Pi and write a script that sends play/pause or next-track commands to the Spotify client. This is a more advanced project and is not needed for basic operation.
Will the Pi work if my phone is on cellular data?
No. Spotify Connect requires both the controlling device (your phone) and the playback device (the Pi) to be on the same local network. If your phone is on cellular data, it cannot see the Pi.
Can I use this setup with multiple rooms?
Yes, you can set up multiple Pis, each running Spotify Connect, and group them in the Spotify app. This lets you play the same music in different rooms with synchronized playback, as long as all Pis are on the same network.
What if I don't have a computer with an SD card reader?
You can still do the initial setup by connecting a monitor and keyboard to the Pi. The monitor and keyboard are only needed once; after the software is installed, you can disconnect them and run headless.