360 Secure SkillHub
360 安全技能中心

Mux

这是基于Python的Mux视频管理工具,需配置MUX_TOKEN_ID和MUX_TOKEN_SECRET环境变量,兼容Python3.10+且无额外依赖。核心功能包括视频资产的增删改查、直播流管理、播放ID管理、查看视频观看数据及指标等。支持CLI命令操作,输出默认JSON,加--human参数可获可读格式结果,适用于批量管理视频资源、监控直播状态等场景。

aiwithabidi
aiwithabidi
热度 62.98
最近更新 2026-05-10 17:41:24
分类:开发依赖:代码执行 / 第三方 API应用场景:API 集成 / 自动化脚本 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add mux
Metadata
name
mux
description
Mux video — manage assets, live streams, playback IDs, and analytics via REST API
homepage
https://www.agxntsix.ai
license
MIT
compatibility
Python 3.10+ (stdlib only — no dependencies)
metadata
{"openclaw":{"emoji":"🎬","requires":{"env":["MUX_TOKEN_ID","MUX_TOKEN_SECRET"]},"primaryEnv":"MUX_TOKEN_ID","homepage":"https://www.agxntsix.ai"}}

🎬 Mux

Mux video — manage assets, live streams, playback IDs, and analytics via REST API

Requirements

Variable Required Description
MUX_TOKEN_ID ✅ API token ID
MUX_TOKEN_SECRET ✅ API token secret

Quick Start

# List assets
python3 {{baseDir}}/scripts/mux.py assets --limit <value>

# Get asset
python3 {{baseDir}}/scripts/mux.py asset-get id <value>

# Create asset
python3 {{baseDir}}/scripts/mux.py asset-create --url <value> --playback_policy <value>

# Delete asset
python3 {{baseDir}}/scripts/mux.py asset-delete id <value>

# Get input info
python3 {{baseDir}}/scripts/mux.py asset-input-info id <value>

# List playback IDs
python3 {{baseDir}}/scripts/mux.py asset-playback-ids id <value>

# List live streams
python3 {{baseDir}}/scripts/mux.py live-streams

# Get live stream
python3 {{baseDir}}/scripts/mux.py live-stream-get id <value>

All Commands

Command Description
assets List assets
asset-get Get asset
asset-create Create asset
asset-delete Delete asset
asset-input-info Get input info
asset-playback-ids List playback IDs
live-streams List live streams
live-stream-get Get live stream
live-stream-create Create live stream
live-stream-delete Delete live stream
live-stream-reset-key Reset stream key
uploads List uploads
upload-create Create direct upload
views List video views
metrics Get metrics
monitoring Monitoring metrics

Output Format

All commands output JSON by default. Add --human for readable formatted output.

python3 {{baseDir}}/scripts/mux.py <command> --human

Script Reference

Script Description
{{baseDir}}/scripts/mux.py Main CLI — all commands in one tool

Credits

Built by M. Abidi | agxntsix.ai YouTube | GitHub Part of the AgxntSix Skill Suite for OpenClaw agents.

📅 Need help setting up OpenClaw for your business? Book a free consultation