Command Palette

Search for a command to run...

Назад к скиллам
скилл № 14475

jellyfin

Jellyfin is a free, open-source media server that streams a personal library of movies, shows, music and books to browsers, TVs and phones, with a REST API…

БесплатноБез исполняемых скриптов
TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Установить jellyfin в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Jellyfin — self-hosted media server for your own movies, shows and music

Overview

Jellyfin serves a folder of media files as a browsable, streamable library. It fetches posters and metadata, remembers watch progress per user, transcodes with ffmpeg when a device cannot play a file directly, and exposes everything over a REST API. The server and its web client are one container.

What an agent does well here: deploy the container, complete the first-run wizard over HTTP, create an API key, add libraries that point at mounted folders, trigger scans, and query items. What stays with a human: signing in with TVs and phones, choosing hardware acceleration for a specific GPU, and curating metadata in the web UI.

Everything below was run against jellyfin/jellyfin:12.4 (release 12.4) on a throwaway Docker container bound to 127.0.0.1. Pin the tag you deploy: latest follows major version bumps.

Instructions

Deploy with Docker Compose

Image tags: latest (newest stable), 12 (major), 12.4 (minor), and a build tag such as 12.4.20261026-211555 (there is no 12.4.0 tag). The image is also on ghcr.io/jellyfin/jellyfin.

# docker-compose.yml
services:
  jellyfin:
    image: jellyfin/jellyfin:12.4
    container_name: jellyfin
    restart: unless-stopped
    ports:
      - "127.0.0.1:8096:8096/tcp"
    volumes:
      - ./config:/config
      - ./cache:/cache
      - type: bind
        source: /srv/media
        target: /media
        read_only: true
mkdir -p config cache
docker compose up -d
curl -s http://127.0.0.1:8096/System/Info/Public
curl -s http://127.0.0.1:8096/health

Before setup, System/Info/Public returns "StartupWizardCompleted": false. /health returns the text Healthy. Config (database, users, API keys) lives in /config; back it up. The media mount can be read-only because Jellyfin only reads media files. To expose it to other devices, put a reverse proxy in front instead of publishing the port on all interfaces. The Compose example in the official docs also maps 7359/udp for client auto-discovery; leave it out if you do not need that.

Name folders the way the metadata scanner expects: Movies/Title (Year)/Title (Year).mp4, Shows/Series Name/Season 01/.... Wrong names produce wrong matches.

Complete the startup wizard through the API

These endpoints need no authentication while the wizard is open. All return 204 on success.

BASE=http://127.0.0.1:8096
JSON='Content-Type: application/json'

curl -s -X POST $BASE/Startup/Configuration -H "$JSON" \
  -d '{"UICulture":"en-US","MetadataCountryCode":"US","PreferredMetadataLanguage":"en"}'
curl -s $BASE/Startup/User            # touch it first; returns the placeholder user
curl -s -X POST $BASE/Startup/User -H "$JSON" \
  -d "{\"Name\":\"admin\",\"Password\":\"$JELLYFIN_ADMIN_PASSWORD\"}"
curl -s -X POST $BASE/Startup/RemoteAccess -H "$JSON" \
  -d '{"EnableRemoteAccess":false,"EnableAutomaticPortMapping":false}'
curl -s -X POST $BASE/Startup/Complete

JELLYFIN_ADMIN_PASSWORD is a password you choose and keep in your secret store. After Startup/Complete, System/Info/Public reports StartupWizardCompleted: true and the Startup/* endpoints are closed.

Authenticate and create an API key

Every request after setup carries an Authorization header in the MediaBrowser scheme. Log in once as the admin to get a user token, then mint a named API key for scripts.

AUTH='MediaBrowser Client="media-agent", Device="ops-box", DeviceId="ops-box-01", Version="1.0"'
TOKEN=$(curl -s -X POST $BASE/Users/AuthenticateByName -H "$JSON" -H "Authorization: $AUTH" \
  -d "{\"Username\":\"admin\",\"Pw\":\"$JELLYFIN_ADMIN_PASSWORD\"}" | jq -r .AccessToken)

curl -s -o /dev/null -w "%{http_code}\n" -X POST "$BASE/Auth/Keys?app=media-agent" \
  -H "Authorization: MediaBrowser Token=\"$TOKEN\""
export JELLYFIN_API_KEY=$(curl -s $BASE/Auth/Keys \
  -H "Authorization: MediaBrowser Token=\"$TOKEN\"" | jq -r '.Items[] | select(.AppName=="media-agent") | .AccessToken')

Use the key like this on every call:

KEYAUTH="Authorization: MediaBrowser Token=\"$JELLYFIN_API_KEY\""
curl -s -H "$KEYAUTH" $BASE/Users | jq '.[].Name'

Since 12.0 legacy authorization is off by default (release notes), so only this header form works. A ?api_key= query parameter, X-Emby-Token and X-MediaBrowser-Token headers are the legacy forms and return 401, so do not copy older tutorials that use them. Revoke a key with DELETE /Auth/Keys/{key}.

Add a library and scan it

curl -s -o /dev/null -w "%{http_code}\n" -X POST \
  "$BASE/Library/VirtualFolders?name=Movies&collectionType=movies&refreshLibrary=false" \
  -H "$KEYAUTH" -H "$JSON" \
  -d '{"LibraryOptions":{"PathInfos":[{"Path":"/media/Movies"}]}}'

curl -s -o /dev/null -w "%{http_code}\n" -X POST $BASE/Library/Refresh -H "$KEYAUTH"

Path is the path inside the container. collectionType values include movies, `tvsho

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • _scores.json

FAQ

Что делает скилл jellyfin?

Jellyfin is a free, open-source media server that streams a personal library of movies, shows, music and books to browsers, TVs and phones, with a REST API for automation. Use this skill to deploy Jellyfin with Docker Compose, finish the startup wizard through the API, create API keys, add libraries, trigger scans and list or search items from scripts. Triggers: "self-host a media server", "Plex alternative", "jellyfin docker compose", "jellyfin API key", "scan jellyfin library", "stream my movie collection at home".

Как установить скилл jellyfin?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл jellyfin запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить jellyfin с