codex-router-media

codex-router-media is a skill for Codex from duolahypercho/codex-router. It costs 97 tokens per session (790 once invoked), scanned A, original, MIT.

A command-line tool that uses a connected MiniMax subscription to generate videos, music, speech, or images.

In plain words
What is it for?
Use it when explicitly creating a video, song, speech recording, or image with the MiniMax media service.
Why use it?
It gives supported sessions one consistent way to request media and save the generated file. The instructions also explain how to avoid exposing the subscription credential and wasting paid quota.

Skill for Codex

Written for Codex: reads ~/.codex or $CODEX_HOME. Also seen: mentions Codex.

Good fit Use it when explicitly creating a video, song, speech recording, or image with the MiniMax media service.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/duolahypercho/codex-router/codex-router-media
About the project

Codex Router is a local model-routing setup that connects Codex and several other coding agents to external providers such as Kimi, DeepSeek, Anthropic, xAI, and GitHub Copilot. It is for users who want to configure routed models and manage provider credentials locally across supported agent clients. Its catalogue entries provide skills and instructions for installing and operating the router.

duolahypercho/codex-router · 3,140 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 duolahypercho/codex-router --skill codex-router-media
Clone the repo
git clone --depth 1 https://github.com/duolahypercho/codex-router

Made for: Codex.

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 codex-router-media

README.md
[![agentmods](https://agentmods.dev/badge/skills/duolahypercho/codex-router/codex-router-media/github.svg)](https://agentmods.dev/skills/duolahypercho/codex-router/codex-router-media)
Your own site
<a href="https://agentmods.dev/skills/duolahypercho/codex-router/codex-router-media"><img src="https://agentmods.dev/badge/skills/duolahypercho/codex-router/codex-router-media/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 codex-router-media

Your own site · 80×15
<a href="https://agentmods.dev/skills/duolahypercho/codex-router/codex-router-media"><img src="https://agentmods.dev/badge/skills/duolahypercho/codex-router/codex-router-media.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 790 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: 1 finding, up to medium

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 →

  • medium Rogue Agent · line 3
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00097 $0.00790
Opus 5 $0.00048 $0.00395
Sonnet 5 $0.00019 $0.00158
Haiku 4.5 $0.00010 $0.00079

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

Security

Grade A, and why

codex-router-media 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 10d ago.

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.

skills/codex-router-media/SKILL.md · 58 lines

How it starts

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

MiniMax media generation (codex-router)

The router stores the operator's MiniMax Token Plan API key. The media command resolves that key itself — you never see or handle the credential. Each call spends the operator's paid MiniMax quota, so generate only what the user explicitly asked for, once, and reuse the downloaded file for retries of later steps.

How to call it

Run the router CLI through the shell tool. Locate it once per session: the install root is the current.sourceRoot field of ~/.codex/codex-router/install-manifest.json (%USERPROFILE% on Windows), and the command is <sourceRoot>/bin/media (<sourceRoot>\model-router.ps1 codex media on Windows). Quote the path; it may contain spaces. If the manifest is missing, try ~/.local/share/codex-router/bin/media.

Always pass --json so the result is machine-readable, and --out so the file lands where the user wants it (default: the current directory).

Actions

media video  --prompt "TEXT" [--duration 6] [--resolution 768P|1080P] [--image PATH_OR_URL] [--out clip.mp4] --json
media music  --prompt "style, mood, scenario" (--lyrics "[verse]..." | --instrumental) [--out track.mp3] --json
media speech --text "TEXT" [--voice male-qn-qingse] [--speed 1.0] [--out voice.mp3] --json
media image  --prompt "TEXT" [--ratio 16:9] [--count 1] [--out picture.jpeg] --json
media status --task-id ID --json
  • video is asynchronous upstream: the command submits a task and polls until the clip is rendered (typically 1–3 minutes; it blocks until done and downloads the mp4). If it exits saying the task is still rendering, wait and run media status --task-id ID — never resubmit the same prompt.
  • video model: the default MiniMax-Hailuo-02 is the one the Token Plan serves. MiniMax-H3 is refused on this subscription; the command already explains that, so do not retry with H3.
  • music needs either --lyrics (use section tags like [verse], [chorus]) or --instrumental.
  • --image turns video generation into image-to-video from a first frame (local file path or URL).

Read the full file on GitHub · 58 lines

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. 10d ago First seen · 58 lines · 97 tokens per session scan A cc2d2af346e4

Subscribe to this mod's changes

codex-router-media is a skill published in the GitHub repository duolahypercho/codex-router (3,140 stars, last pushed yesterday), licensed MIT. It adds 97 tokens to every session and 790 once invoked, about $0.0005 per session on Opus 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

Other skills, from other repositories

ppt-designer

A guide for planning and designing PowerPoint presentations. It covers slide structure, layouts, visual choices, animation suggestions, and speaker notes.

dongsheng123132/u-claw · 29 tokens

image-compress

A local tool for shrinking images, changing their dimensions, and converting between JPG, PNG, and WebP formats. It can process one image or all matching images in a folder.

dongsheng123132/u-claw · 34 tokens

qrcode-maker

A local, offline QR-code generator for websites, text, contact details, and Wi-Fi connection information. A QR code is a square image that phones can scan to read stored data.

dongsheng123132/u-claw · 24 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openinterpreter/openinterpreter · 113 tokens

qa-testing

Verify your work by actually operating the app or website you changed, instead of assuming it works. Strongly recommended whenever you build, modify, or debug a web app, website, or desktop GUI app. Drive real browsers with the agent-browser CLI and native desktop apps with the cua-driver CLI. These are installed on…

openinterpreter/openinterpreter · 77 tokens

image-generation

Generate or edit images from text prompts. Use when the user asks to create, draw, design, or edit an image, illustration, photo, icon, poster, or any visual content.

zhayujie/CowAgent · 41 tokens