TuneIn CLI ๐ป ๐ต โจ #
A command line interface for TuneIn Radio / Radio Browser.
You can search for stations, play them, and see what's currently playing โ right from your terminal.
This package installs the prebuilt tunein binary from the official GitHub releases.
โจ Features #
- ๐ Search and play thousands of radio stations from TuneIn or Radio Browser
- ๐ต Plays all the common Icecast stream formats: MP3, AAC/AAC+, Ogg Vorbis, FLAC and WAV
- ๐ง Powerful DSP (Equalizer, Bass, Treble) based on the Rockbox DSP engine
- ๐ป Interactive TUI: browse categories, favourites, resume last station
- ๐ Real-time audio visualizations: oscilloscope, vectorscope and spectroscope
- ๐ฅ๏ธ OS media controls integration (play/pause/volume from your keyboard's media keys)
- ๐ฐ๏ธ Built-in gRPC server, installable as a systemd service
- ๐ Embedded web UI with a GraphQL API (
tunein web) โ search, browse and listen from your browser
๐ Installation #
Install globally:
npm install -g tunein-cli
Or run it directly without installing:
npx tunein-cli search "BBC Radio 1"
Both expose the tunein command:
tunein --version
๐ Usage #
USAGE:
tunein <SUBCOMMAND>
OPTIONS:
-h, --help Print help information
-p, --provider <provider> The radio provider to use, can be 'tunein' or 'radiobrowser'.
Default is 'tunein' [default: tunein]
-V, --version Print version information
SUBCOMMANDS:
browse Browse radio stations
help Print this message or the help of the given subcommand(s)
play Play a radio station
search Search for a radio station
server Start the server
service Manage systemd service for tunein-cli server
web Start the web UI & GraphQL API server
Search for a radio station:
tunein search "BBC Radio 1"
Result:
BBC Radio 1 | The best new music | id: s24939
BBC Radio 1Xtra | Remi Burgz | id: s20277
Play a radio station:
tunein play "alternativeradio.us"
# Or by station ID
tunein play s221580
Browse stations interactively:
tunein browse
Start the web UI & GraphQL API:
tunein web # listens on http://localhost:8881
tunein web 3000 # custom port
๐ฆ Supported Platforms #
| OS | Architectures |
|---|---|
| macOS | Apple Silicon, Intel |
| Linux | x86_64, aarch64, armv7 |
| FreeBSD | x86_64, aarch64 |
| NetBSD | x86_64, aarch64 |
Windows is not supported. On other platforms, see the installation guide for alternatives (Homebrew, Nix, apt, dnf, AUR, or building from source).
๐ง How It Works #
On install, a postinstall script:
- Detects your OS and CPU architecture.
- Downloads the matching prebuilt binary from the GitHub releases page.
- Verifies its SHA-256 checksum against the published
.sha256file. - Extracts the
tuneinbinary into the package'sbin/directory.
If the install scripts were skipped (e.g. npm install --ignore-scripts), the binary is downloaded automatically on first run instead. The package itself has zero npm dependencies.
๐ Documentation #
- Full documentation, keyboard shortcuts and equalizer guide: github.com/tsirysndr/tunein-cli
- gRPC API reference: buf.build/tsiry/tuneinserverapis