jellytop

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

jellytop

A terminal admin console for Jellyfin. Live sessions, the activity log, users, libraries and scheduled tasks — without leaving the shell.

Every other Jellyfin TUI is a player. This one is the dashboard.

jellytop  muse · 10.11.11 · http://127.0.0.1:8096                                    15:42:03
 1 Sessions   2 Activity   3 Users   4 Libraries   5 Tasks

  USER       NOW PLAYING                        DEVICE              STREAM       BITRATE
▶ ada        Severance S01E03 — In Perpetuity   Jellyfin Web · Mac  Direct Play  13.8 Mbps (avg)  ████████░░░░  24:11/45:02
⏸ linus      Dune: Part Two (2024)              Infuse · Apple TV   Transcode     4.0 Mbps        ███░░░░░░░░░  18:40/2:46:09
○ grace      idle                               Jellyfin · iPhone   —                    —                      seen 3h

3 sessions · 2 streaming · 17.8 Mbps out (avg)                                                          updated 1s ago
enter details  ·  s stop playback  ·  m message  ·  r refresh  ·  tab next  ·  ? help  ·  q quit

What it does

Tab Shows Actions
Sessions who's connected, what's playing, direct play vs transcode, per-session bitrate and the total going out, live progress stop playback, send a message to a client, full session detail
Activity the server activity log, paged and filterable filter, page, per-entry detail
Users accounts, admin/disabled state, last login and last seen enable/disable, grant/revoke admin
Libraries configured libraries, their paths and refresh state trigger a scan
Tasks scheduled tasks, last result, live progress run now, cancel a running task

Sessions refresh every 2s, tasks every 2s while one is running. Only the visible tab polls, so an idle jellytop costs the server one request every few seconds.

Every action that changes server state asks first.

Install

Download a prebuilt binary for Linux, macOS or Windows from the latest release, unpack it and put jellytop somewhere on your PATH. On macOS the binary is unsigned, so clear the download quarantine once:

xattr -d com.apple.quarantine jellytop

Or with Go installed:

go install github.com/NilssonMandola/jellytop@latest

Or build it yourself:

git clone https://github.com/NilssonMandola/jellytop
cd jellytop
go build .

Setup

jellytop authenticates with a Jellyfin API key. In Jellyfin: Dashboard → Advanced → API Keys → +.

Then either export it:

export JELLYFIN_URL=http://127.0.0.1:8096
export JELLYFIN_TOKEN=<key>
jellytop

…or write ~/.config/jellytop/config:

url   = http://127.0.0.1:8096
token = <key>

Flags beat the environment, which beats the config file:

jellytop -url https://jf.example.com -token <key>

The key needs administrator rights — the activity log, user policies and scheduled tasks are all admin-only endpoints.

Keys

Key Does
1…5 jump to a tab
tab / shift+tab cycle tabs
j / k, arrows move the cursor
g / G top / bottom
pgup / pgdn page
enter detail view, or run the selected task
r refresh now
? help
q quit

Per tab: s stop playback and m message a client (Sessions) · / filter and n/p page (Activity) · d enable/disable and a toggle admin (Users) · S scan libraries (Libraries) · x cancel a running task (Tasks).

Notes and limits

  • Bitrate is nominal, not measured. Figures are megabits per second — the sum of the media source's stream bitrates, as Jellyfin reports them. A transcoding session reports its real outbound bitrate; a direct-play session shows the file's average bitrate, which is what the client pulls in the steady state but not a packet-level measurement. Averaged figures are tagged (avg) so the two are never confused, and one averaged component tags the total. Jellyfin exposes no per-session throughput counter. Divide by 8 for MB/s: 13.8 Mbps ≈ 1.7 MB/s.
  • Direct-play bitrates are cached for five minutes, not forever. A media source ID is stable across the file behind it being replaced — for a single-version movie the media source ID is the item ID — so an *arr upgrading 1080p to 4K would otherwise leave a stale figure on screen indefinitely.
  • Activity filtering is page-local. / filters the 100 entries currently loaded, not the whole log — Jellyfin's activity endpoint has no search parameter.
  • Library scans are all-or-nothing. Jellyfin exposes no per-library scan, so S triggers a scan of every library.
  • No live now-playing history. jellytop shows the present and the activity log; for long-term playback statistics use Streamystats or Jellystat.
  • Tested against Jellyfin 10.11. The client models only the fields it renders, so a newer server adding fields is harmless.

Prior art

jellyctl and JellyRoller cover similar ground as scriptable CLIs — reach for those in scripts, and jellytop when you want to watch.

License

MIT — see LICENSE.

Documentation

Overview

Command jellytop is a terminal admin console for a Jellyfin server: live sessions, the activity log, users, libraries and scheduled tasks.

Directories

Path Synopsis
internal
config
Package config resolves jellytop's server URL and API token from flags, the environment, and a small config file, in that order of precedence.
Package config resolves jellytop's server URL and API token from flags, the environment, and a small config file, in that order of precedence.
jellyfin
Package jellyfin is a small, purpose-built client for the subset of the Jellyfin server API that jellytop needs.
Package jellyfin is a small, purpose-built client for the subset of the Jellyfin server API that jellytop needs.
ui
Package ui implements jellytop's terminal interface: a tabbed admin console over the Jellyfin server API.
Package ui implements jellytop's terminal interface: a tabbed admin console over the Jellyfin server API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL