Stream music anywhere. Host it yourself.
Best for: Anyone with Docker installed. No setup required.
Prerequisite: Install Docker Desktop first.
docker run -d -p 8000:8000 biohaphazard/freedify:latest
Then open http://localhost:8000 🎵
Best for: Fastest performance, local file access, no cost.
winget install ffmpeg via PowerShell.brew install ffmpeg via Terminal.pip install -r app/requirements.txt
python -m uvicorn app.main:app --host 0.0.0.0 --port 8000
Best for: Running directly on your Android phone/tablet.
pkg install python ffmpeg git
pip install -r app/requirements.txt
git clone https://github.com/BioHapHazard/Freedify
cd Freedify
python -m uvicorn app.main:app --host 0.0.0.0 --port 8000
http://localhost:8000 in your phone's browser 🎵~/.freedify_cache. Use CACHE_DIR=~/path to customize.
Best for: Mobile access, Hi-Res audio, zero maintenance.
Best for: Free hosting, if you only need standard 16-bit FLAC.
pip install -r app/requirements.txtpython -m uvicorn app.main:app --host 0.0.0.0 --port $PORTUnlock AI playlists, Drive sync, and Hi-Res audio by finding these keys.
| Variable Name | Purpose | How to find it |
|---|---|---|
GEMINI_API_KEY |
AI Features (DJ, Smart Playlists) | Google AI Studio → Create API Key. |
LISTENBRAINZ_TOKEN |
Scrobbling (History) | Create account at ListenBrainz. Check your email for the API Key after signing up. |
DAB_SESSION |
Hi-Res Audio (24-bit) | Log in to Dab Music. F12 → Application → Cookies → Copy 'session' value. |
DAB_VISITOR_ID |
Hi-Res Audio (Required) | Same as above. Copy 'visitor_id' value from cookies. |
GOOGLE_CLIENT_ID |
Google Drive Sync | Google Cloud Console → Credentials → OAuth 2.0 Client ID. |
.env in the folder and paste them like KEY=VALUE.Freedify supports Spotify playlist URLs. To import your Apple Music playlists, use a free transfer tool:
| Tool | Free Limit |
|---|---|
| Soundiiz | 200 songs |
| TuneMyMusic | 500 songs |
| FreeYourMusic | Desktop app |
Steps: Transfer playlist to Spotify (free account works!) → Copy Spotify URL → Paste in Freedify → Stream in lossless! 🎵