plex

plex is a skill for Claude Code from jmagar/claude-homelab. It costs 76 tokens per session (1,821 once invoked), scanned A, original, MIT.

A guide for controlling and querying Plex Media Server, a home media app that stores and plays films, television, music, and photos.

In plain words
What is it for?
Browsing libraries, searching for media, viewing recently added items, checking what is playing, seeing continue-watching items, and listing available players.
Why use it?
It lets the coding agent inspect the media server through its API without changing library content or playback settings.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the homelab-core plugin — 18 skills, 5 commands, 1 agent shipped together

Good fit Browsing libraries, searching for media, viewing recently added items, checking what is playing, seeing continue-watching items, and listing available players.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jmagar/claude-homelab/plex
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jmagar/claude-homelab --skill plex
Clone the repo
git clone --depth 1 https://github.com/jmagar/claude-homelab

Made for: Claude Code.

Or install homelab-core, the plugin that ships this one along with the rest of its 18 skills, 5 commands, 1 agent.

Its marketplace also offers this one on its own, as the plugin plex/plugin install plex after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for plex

README.md
[![agentmods](https://agentmods.dev/badge/skills/jmagar/claude-homelab/plex.svg)](https://agentmods.dev/skills/jmagar/claude-homelab/plex)
Your own site
<a href="https://agentmods.dev/skills/jmagar/claude-homelab/plex"><img src="https://agentmods.dev/badge/skills/jmagar/claude-homelab/plex.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,821 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.01821
Opus 5 $0.00038 $0.00911
Sonnet 5 $0.00015 $0.00364
Haiku 4.5 $0.00008 $0.00182

Measured 8d ago against content hash f37ab6bafd5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

plex scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (load-env.sh, scripts/plex-api.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

# Or raw curl
skills/plex/SKILL.md · 239 lines

How it starts

The opening of the file, as written. The whole thing — 239 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Plex Media Server Skill

⚠️ MANDATORY SKILL INVOCATION ⚠️

YOU MUST invoke this skill (NOT optional) when the user mentions ANY of these triggers:

  • "Plex library", "search Plex", "what's on Plex"
  • "Plex sessions", "who's watching", "active streams"
  • "browse Plex", "check Plex", "Plex status"
  • Any mention of Plex Media Server or querying media

Failure to invoke this skill when triggers occur violates your operational requirements.

Control and query Plex Media Server using the Plex API. Browse libraries, search media, and monitor active sessions.

Purpose

This skill provides read-only access to your Plex Media Server:

  • Browse library sections (Movies, TV, Music, Photos)
  • Search for specific media
  • View recently added content
  • Check what's currently playing (active sessions)
  • View "On Deck" (continue watching)
  • List available clients/players

All operations are GET-only and safe for monitoring/browsing.

Setup

Add your Plex server credentials to ~/.claude-homelab/.env:

# Plex Media Server
PLEX_URL="http://192.168.1.100:32400"
PLEX_TOKEN="<your_plex_token>"
  • PLEX_URL: Your Plex server URL with port (default: 32400)
  • PLEX_TOKEN: Your Plex authentication token

Getting your Plex token:

  1. Go to plex.tv → Account → Authorized Devices
  2. Click on any device, then "View XML"
  3. Find X-Plex-Token in the URL
  4. Or: Open any media in Plex Web, click "Get Info" → "View XML" and find token in URL

Commands

All commands output JSON. Use jq for formatting or filtering.

The plex-api.sh helper script simplifies API access. Located at: skills/plex/scripts/plex-api.sh

Server Info

# Using helper script
./skills/plex/scripts/plex-api.sh info

# Or raw curl
curl -s "$PLEX_URL/?X-Plex-Token=$PLEX_TOKEN" -H "Accept: application/json"

Browse Libraries

List all library sections:

# Using helper script
./skills/plex/scripts/plex-api.sh libraries

# Or raw curl
curl -s "$PLEX_URL/library/sections?X-Plex-Token=$PLEX_TOKEN" -H "Accept: application/json"

Read the full file on GitHub · 239 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 239 lines · 76 tokens per session scan A f37ab6bafd5e

Subscribe to this mod's changes

plex is a skill published in the GitHub repository jmagar/claude-homelab (77 stars, last pushed 1mo ago), licensed MIT. It adds 76 tokens to every session and 1,821 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.