A terminal music player for curated YouTube channels. Syncs channels once via yt-dlp into a local SQLite library — search is instant, offline, and never hits an API. Streams via mpv and exposes an MCP server so Claude can control playback and curate playlists.
- Local-first SQLite library — 8000+ tracks synced from curated channels (lofi, chill, trap, hip-hop, pop). Search with FTS5, no API calls, no rate limits, works offline
- Stream instantly via mpv — no downloads required, background audio
- Download tracks to
~/Music/tuitubeon demand - Favorites & playlists — space to favorite, Claude can curate playlists via MCP
- Autoplay queue — enter on a track builds a queue from the current view
- Seek, pause, next — full playback control from the keyboard
- Matrix & synthwave visualizers — press
vto cycle (matrix mode requires a unicode/Nerd Font — Menlo/Consolas will show blocks) - 14 themes — cycle with
ctrl+t, live preview in the command palette - Claude MCP server — play, search, create playlists, sync channels without opening the TUI
- Bubble Tea v2 — TUI framework
- Lip Gloss v2 — styling and layout
- modernc.org/sqlite — pure Go SQLite, no CGo
mpv— headless audio playback with IPC socketyt-dlp— channel sync and audio downloads
| Screen | Description |
|---|---|
| Library | Searchable track table. Browse 8000+ songs, filter favorites, open playlists. |
| Playlists | Lobby — Favorites, user playlists, and stations. Enter to browse any collection. |
| Settings | Active theme and build info. |
| Help | Full keybinding reference. |
| Logs | App events + Claude agent activity log. |
| Key | Action |
|---|---|
enter |
Play selected track (pause/resume if already playing) |
n |
Next track in queue |
p |
Pause / resume |
space |
Toggle favorite |
f |
Filter to favorites only |
d |
Download to ~/Music/tuitube |
/ |
Search — live FTS, esc to clear |
← → |
Seek ±5 seconds |
v |
Cycle visualizer (matrix → synthwave → off) |
s |
Toggle sidebar |
ctrl+t |
Cycle theme |
ctrl+k |
Command palette |
? |
Help screen |
q |
Quit |
Platform: Linux and macOS only. Windows is not supported (mpv IPC uses Unix sockets).
paru -S mpv yt-dlp # Arch / CachyOS
brew install mpv yt-dlp # macOS# Download the latest release for your platform
gh release download --repo gitcoder89431/tuitube --pattern "tuitube_*_darwin_arm64.tar.gz"
tar -xzf tuitube_*.tar.gz
# Move binary to PATH, then bootstrap from the extracted directory
sudo mv tuitube /usr/local/bin/
tuitube bootstrap --catalog ./catalog.db # run from extracted directory
tuitubegit clone https://github.com/gitcoder89431/tuitube
cd tuitube
go build -o tuitube ./cmd/tuitube
tuitube bootstrap # catalog.db is found automatically next to the binary
tuitubetuitube add-station --url "https://www.youtube.com/@ChannelName/videos" --name "Display Name"
tuitube synctuitube sync # all stations
tuitube sync --station ID # one stationtuitube exposes 11 MCP tools so Claude can manage your library without the TUI open.
| Tool | Params | What it does |
|---|---|---|
search_tracks |
query, favorites_only, limit |
Search library by artist/title |
play_track |
youtube_id, title |
Stream a track via mpv |
stop_playback |
— | Stop current track |
toggle_favorite |
track_id |
Favorite or unfavorite a track |
list_playlists |
— | List all playlists with track counts |
create_playlist |
name |
Create a new playlist |
add_to_playlist |
playlist_id, track_ids[] |
Add multiple tracks at once |
list_playlist_tracks |
playlist_id |
List tracks in a playlist |
list_stations |
— | List all synced YouTube channels |
add_station |
url, name, sync_now |
Add a YouTube channel |
sync_station |
station_id |
Pull new uploads from a channel |
Example prompts:
- "Make me a 20-track late night playlist and start playing it"
- "Add the NCS channel and sync it — https://www.youtube.com/@NCSMusic"
- "Search for something melancholic by Conan Gray and favorite it"
Setup (one-time):
claude mcp add tuitube tuitube mcpOr manually in ~/.claude.json:
{
"mcpServers": {
"tuitube": {
"command": "/path/to/tuitube",
"args": ["mcp"]
}
}
}Then ask Claude to play songs, create playlists, or sync channels — no TUI required.
tuitube keeps data in two places:
- Bundled catalog — ships with each release, contains all pre-seeded stations and tracks. Updated when new channels are added upstream.
- Your library — your playlists, favorites, and downloads. Never touched on upgrade.
- Linux:
~/.local/share/tuitube/tuitube.db - macOS:
~/Library/Application Support/tuitube/tuitube.db
- Linux:
On launch, tuitube automatically pulls any new tracks from the bundled catalog into your library. New music appears, nothing you've saved is changed. You can also add your own channels at any time with tuitube add-station.
- elpdev —
tuitheme,tuimod,tuilayout,tuipalette— the component system this is built on - bjarneo/cliamp — matrix and synthwave visualizers, ported from MIT-licensed source
- KraXen72/shira —
CleanTitletitle normalisation function, ported from MIT-licensed source
go run ./cmd/tuitube # run with local DB
go test ./... # tests
go build ./cmd/tuitube # build check
./scripts/export_catalog.sh # export catalog.db for a release