xpu-container-run

xpu-container-run is a skill for Claude Code from intel/gpu-ai-skills. It costs 146 tokens per session (1,891 once invoked), scanned A, original, Apache-2.0.

A command procedure for starting Docker containers with Intel GPU access on Linux. It passes the host's Direct Rendering Manager device files and required group access into the container.

In plain words
What is it for?
Use it to open interactive containers for vLLM, SGLang, PyTorch, or Transformers with one or more Intel GPUs, optional GPU selection, and a mounted Hugging Face model cache.
Why use it?
Intel GPUs do not use Docker's NVIDIA-specific GPU option, so ordinary container commands can leave the GPU unavailable. This procedure supplies the device, permissions, shared memory, and selected GPU settings needed by supported workloads.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the intel-gpu-ai-skills plugin — 26 skills, 1 agent shipped together

Good fit Use it to open interactive containers for vLLM, SGLang, PyTorch, or Transformers with one or more Intel GPUs, optional GPU selection, and a mounted Hugging Face model cache.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/intel/gpu-ai-skills/xpu-container-run
About the project

Intel GPU AI Skills is a collection of agent skills for setting up, running, benchmarking, and profiling Hugging Face models on Intel GPUs. It supports workflows involving PyTorch, vLLM-XPU, SGLang-XPU, llama.cpp-SYCL, and migration from CUDA to XPU. The catalogue contains the project's skills, instructions, agent, and plugin.

intel/gpu-ai-skills · 54 stars · on GitHub

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 intel/gpu-ai-skills --skill xpu-container-run
Clone the repo
git clone --depth 1 https://github.com/intel/gpu-ai-skills

Made for: Claude Code.

Or install intel-gpu-ai-skills, the plugin that ships this one along with the rest of its 26 skills, 1 agent.

Its marketplace also offers this one on its own, as the plugin xpu-container-run — /plugin install xpu-container-run 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 xpu-container-run

README.md
[![agentmods](https://agentmods.dev/badge/skills/intel/gpu-ai-skills/xpu-container-run/github.svg)](https://agentmods.dev/skills/intel/gpu-ai-skills/xpu-container-run)
Your own site
<a href="https://agentmods.dev/skills/intel/gpu-ai-skills/xpu-container-run"><img src="https://agentmods.dev/badge/skills/intel/gpu-ai-skills/xpu-container-run/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for xpu-container-run

Your own site · 80×15
<a href="https://agentmods.dev/skills/intel/gpu-ai-skills/xpu-container-run"><img src="https://agentmods.dev/badge/skills/intel/gpu-ai-skills/xpu-container-run.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 146 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,891 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 22 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 3
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 19
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 20
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 44
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 56
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 106
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 17
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 54
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 70
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 90
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 42
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 61
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 71
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 93
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 98
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 74
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 79
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 123
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • medium MCP Rug Pull · line 3
    Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
    Fix: Pin the image: image:tag or image@sha256:abc123
  • medium MCP Rug Pull · line 17
    Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
    Fix: Pin the image: image:tag or image@sha256:abc123
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.00146 $0.01891
Opus 5.5 $0.00058 $0.00756
Sonnet 5.5 $0.00029 $0.00378
Haiku 4.5 $0.00015 $0.00189

Measured today against content hash b1ae7d89d9e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

xpu-container-run scanned grade A with 0 findings 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 today.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/intel-gpu-ai-skills/skills/xpu-container-run/SKILL.md · 135 lines

How it starts

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

xpu-container-run

Intel GPUs do not plug into Docker via --gpus all. There is no nvidia-container-toolkit equivalent. Pass the kernel's Direct Rendering Manager (DRM) character devices into the container and grant the right group ownership.

CUDA → Intel cheat sheet

CUDA Intel
docker run --gpus all --device /dev/dri --group-add "$(getent group render | cut -d: -f3)"
docker run --gpus '"device=0"' -e ZE_AFFINITY_MASK=0
--ipc=host same
--shm-size=16g same (alternative to --ipc=host)
--runtime nvidia nothing — xe/i915 is in-kernel
nvidia-smi inside container xpu-smi discovery

No "Intel container toolkit" needed; passing the DRM nodes is enough.

Image source

Comes from the runner skill:

  • vLLM serving → vllm-xpu-run (vllm/vllm-openai-xpu:latest)
  • SGLang → sglang-xpu-run (lmsysorg/sglang:v<X.Y.Z>-xpu; that skill pins a validated tag — there is no latest-xpu)
  • PyTorch / Transformers → torch-xpu-run

<image> below is whichever you picked.

Quickstart — interactive shell, one GPU

Confirm the image name with the user before running — this binds host GPU devices into the container.

docker run --rm -it \
    --device /dev/dri \
    --group-add "$(getent group render | cut -d: -f3)" \
    --ipc=host \
    -e ZE_AFFINITY_MASK=0 \
    -e HF_TOKEN="$HF_TOKEN" \
    -v "$HOME/.cache/huggingface:/root/.cache/huggingface" \
    --entrypoint /bin/bash \
    <image>
Flag Why
--rm -it Interactive shell, removed on exit. -it needs a real terminal — from CI, an agent, or ssh host cmd, drop it (see Common errors).
--device /dev/dri Pass every Intel GPU's DRM nodes. Use --device /dev/dri/renderD128 for just the first GPU's render node (least privilege).
--group-add "$(getent group render | cut -d: -f3)" Joins the container user to the host's render group by GID (not name) so it works in images where a render group with a different GID — or no render group at all — exists. Required when nodes are mode 0660/0640. Skip causes EACCES on Level Zero init.
--ipc=host vLLM and torch.distributed use /dev/shm and POSIX semaphores. --shm-size=16g is a private-IPC alternative.
-e ZE_AFFINITY_MASK=0 Pin to GPU 0. See xpu-discover for IDs. Always set explicitly.
-v ~/.cache/huggingface:... Share the host model cache; avoid re-download.
--entrypoint /bin/bash Override server-image autostart for interactive use.

Read the full file on GitHub · 135 lines

Files

What ships with it

1 file 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. today Changed b1ae7d89d9e2
  2. 1mo ago Changed · +8 lines 543b24fcc905
  3. 2mo ago Changed · -10 lines 24ce6e8dad19
  4. 2mo ago Changed · +10 lines cfe8627abb77
  5. 3mo ago First seen · 127 lines · 146 tokens per session scan A 156b37202ef1

Subscribe to this mod's changes

xpu-container-run is a skill published in the GitHub repository intel/gpu-ai-skills (54 stars, last pushed yesterday), licensed Apache-2.0. It adds 146 tokens to every session and 1,891 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

xpu-container-run compared with skills from other repositories

xpu-container-run next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
xpu-container-runintel/gpu-ai-skillsSkill54yesterdayApache-2.0A146Claude Code
holoscan-install-containerNVIDIA/skillsSkill4.3kyesterdayApache-2.0A30Claude Code, Codex
holoscan-install-sourceNVIDIA/skillsSkill4.3kyesterdayApache-2.0A35Claude Code, Codex
doca-urom-svcNVIDIA/skillsSkill4.3kyesterdayApache-2.0A153Claude Code
doca-dtsNVIDIA/skillsSkill4.3kyesterdayApache-2.0A240Claude Code
hsb-setupNVIDIA/skillsSkill4.3kyesterdayApache-2.0B78Claude Code
rat-setupbabyworm/rtl-agent-teamSkill72yesterdayMITA37Claude Code