/media-os:media-cloud-upload [service] [file]from media-os
Uploads processed media to cloud platforms: Cloudflare, Mux, Bunny, YouTube, AWS S3, Vimeo, rclone. Supports direct and TUS resumable uploads. Use for publishing finished encodes to CDNs or video platforms.
Ships in media-os. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Context: $ARGUMENTS
| Service | Env vars | Notes |
|---|---|---|
| Cloudflare Stream | CF_TOKEN, CF_ACCOUNT_ID | API token with Stream:Edit |
| Mux | MUX_TOKEN, MUX_SECRET | Access-token pair (Basic Auth) |
| Bunny Stream | BUNNY_KEY, BUNNY_LIB_ID | Library-level AccessKey |
| AWS S3 | AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY | Or ~/.aws/credentials |
| YouTube Data API | OAuth 2.0 client JSON + stored refresh token | Upload costs 1600 quota units |
| Vimeo | VIMEO_TOKEN | Personal access token, upload scope |
| rclone | rclone config remote | Token stored in ~/.config/rclone |
Never commit tokens. Read from env only. Rotate leaked tokens immediately.
# Universal: curl (present), rclone, aws CLI
brew install curl rclone awscli # macOS
# YouTube + Vimeo
pip install google-api-python-client google-auth-oauthlib PyVimeo
# Resumable uploads (Cloudflare Stream / Vimeo TUS)
pip install tuspy
Check everything with:
uv run ${CLAUDE_SKILL_DIR}/scripts/cloud.py check
Direct upload (≤ 200 MB):
curl -X POST -H "Authorization: Bearer $CF_TOKEN" \
-F "[email protected]" \
"https://api.cloudflare.com/client/v4/accounts/$CF_ACCOUNT_ID/stream"
TUS resumable (any size, required > 200 MB):
# 1. Create upload URL
curl -X POST -H "Authorization: Bearer $CF_TOKEN" \
-H "Tus-Resumable: 1.0.0" \
-H "Upload-Length: $(stat -f%z video.mp4)" \
-H "Upload-Metadata: name $(echo -n video.mp4 | base64)" \
"https://api.cloudflare.com/client/v4/accounts/$CF_ACCOUNT_ID/stream?direct_user=true" -D -
# 2. Then PATCH the returned Location with tus-js-client or `tuspy`
Response includes uid; playback URLs:
https://customer-<code>.cloudflarestream.com/<uid>/manifest/video.m3u8 # HLS
https://customer-<code>.cloudflarestream.com/<uid>/manifest/video.mpd # DASH
https://customer-<code>.cloudflarestream.com/<uid>/downloads/default.mp4 # MP4
https://customer-<code>.cloudflarestream.com/<uid>/thumbnails/thumbnail.jpg
# 1. Create direct upload slot
curl -X POST -u $MUX_TOKEN:$MUX_SECRET \
-H "Content-Type: application/json" \
-d '{"new_asset_settings":{"playback_policy":["public"]},"cors_origin":"*"}' \
https://api.mux.com/video/v1/uploads
# Response → .data.url
# 2. PUT the file to that signed URL
curl -X PUT --data-binary @video.mp4 "$SIGNED_URL"
# 3. Poll upload → asset_id → playback_ids[0].id
Playback: https://stream.mux.com/<playback_id>.m3u8, thumbnail https://image.mux.com/<playback_id>/thumbnail.jpg.
# 1. Create video shell
curl -X POST -H "AccessKey: $BUNNY_KEY" -H "Content-Type: application/json" \
-d '{"title":"My Clip"}' \
"https://video.bunnycdn.com/library/$BUNNY_LIB_ID/videos"
# Response → .guid (VIDEO_ID)
# 2. Upload bytes
curl -X PUT -H "AccessKey: $BUNNY_KEY" --upload-file video.mp4 \
"https://video.bunnycdn.com/library/$BUNNY_LIB_ID/videos/$VIDEO_ID"
Playback: https://iframe.mediadelivery.net/embed/$BUNNY_LIB_ID/$VIDEO_ID or HLS at https://vz-<hash>.b-cdn.net/$VIDEO_ID/playlist.m3u8.
aws s3 cp video.mp4 s3://my-bucket/videos/clip.mp4 \
--content-type video/mp4 --acl public-read --cache-control "max-age=31536000"
Pre-signed URL for private buckets:
aws s3 presign s3://my-bucket/videos/clip.mp4 --expires-in 3600
CloudFront: create a distribution with the bucket as origin, enable CORS, use the CloudFront URL (https://d12345.cloudfront.net/videos/clip.mp4).
Requires OAuth 2.0 (installed-app flow). Run once with the user present to get a refresh token; subsequent runs are silent:
uv run ${CLAUDE_SKILL_DIR}/scripts/cloud.py youtube \
--file video.mp4 --title "My Title" --description "desc" \
--tags demo,ffmpeg --privacy unlisted
Uses googleapiclient.http.MediaFileUpload with resumable chunked upload.
import vimeo, os
v = vimeo.VimeoClient(token=os.environ["VIMEO_TOKEN"])
uri = v.upload("video.mp4", data={"name": "Clip", "description": "..."})
print(v.get(uri + "?fields=link,player_embed_url").json())
PyVimeo uses TUS under the hood and resumes automatically.
rclone config # one-time setup
rclone copy --progress video.mp4 gdrive:videos/ # upload
rclone link gdrive:videos/video.mp4 # get public URL (providers that support it)
rclone mount gdrive: /mnt/gdrive # stream-mount for ffmpeg to read directly
Supports Google Drive, OneDrive, Dropbox, Backblaze B2, S3, R2, Azure Blob, FTP, SFTP, WebDAV, and many more behind one CLI.
curl -I <playback_url> — expect 200 and a video content-type (or application/vnd.apple.mpegurl for HLS).ffplay or mpv to smoke-test playback.curl -s "$PLAYBACK_URL" | head -40
status: ready before sharing the link — the upload returns before the transcode finishes.scripts/cloud.py — unified CLI: check, cloudflare-stream, mux, bunny, s3, rclone, youtube, vimeo. Stdlib + system curl/rclone/aws. --dry-run prints the command, --verbose dumps full JSON.references/cloud.md for: service comparison, upload-protocol cheatsheet (direct POST vs TUS vs signed URL vs multipart), auth method per service, webhook/callback patterns, the exact shape of playback URLs, and end-to-end recipes (post-encode → Cloudflare, podcast → S3 → CloudFront, CI → Mux on merge)..env, never echo in dry-run unless explicitly asked.?direct_user=true).GET /video/v1/assets/<id> until status == "ready" or use webhooks.playback_policy. public = open HLS URL; signed = you must mint a JWT per play (HS256 with signing key from Mux). Pick public unless you really need DRM-lite.~/.config/yt-upload-token.json (gitignored). yt-dlp --cookies-from-browser chrome works for personal re-auth but violates YouTube ToS for commercial use./me → upload_quota before large jobs.<video> tag needs a CORSRule allowing GET from your origin. HLS needs Range in AllowedHeaders.--transfers 8 --checkers 16 --fast-list for big batches; --progress for live ETA.ls *.mp4 | parallel -j 4 'rclone copy {} myremote:path/' is the simplest many-file pattern.curl -w "\ntime: %{time_total}s\n" measures upload wall clock without extra tooling.curl -I or ffprobe before claiming the job is done.ffmpeg -i master.mov -c:v libx264 -crf 20 -preset slow -c:a aac -b:a 192k encoded.mp4
uv run ${CLAUDE_SKILL_DIR}/scripts/cloud.py cloudflare-stream --file encoded.mp4
# → prints { uid, playback: { hls, dash }, thumbnail }
uv run ${CLAUDE_SKILL_DIR}/scripts/cloud.py mux --file out.mp4 --verbose
# Wait for webhook `video.asset.ready`, then embed https://stream.mux.com/<id>.m3u8
rclone copy --progress --transfers 8 render/ b2:my-bucket/renders/2026-04-17/
uv run ${CLAUDE_SKILL_DIR}/scripts/cloud.py s3 \
--file ep42.mp3 --bucket my-podcast --key 2026/ep42.mp3 --acl public-read
# https://my-podcast.s3.amazonaws.com/2026/ep42.mp3
401 Unauthorized on Cloudflare StreamCause: CF_TOKEN lacks Stream:Edit scope or targets the wrong account.
Solution: Create a scoped token at https://dash.cloudflare.com/profile/api-tokens; verify $CF_ACCOUNT_ID matches the dashboard URL.
ffprobe on playback URL failsCause: The asset is still transcoding. Mux creates the playback ID immediately but the manifest is not written until encoding finishes.
Solution: Poll GET /video/v1/assets/{asset_id} until status == "ready", or subscribe to the video.asset.ready webhook.
quotaExceededCause: Daily 10,000-unit quota consumed (≈ 6 uploads). Solution: Wait until Pacific midnight reset, or request a quota increase at https://support.google.com/youtube/contact/yt_api_form.
SignatureDoesNotMatch on S3 uploadCause: System clock skew, wrong region in endpoint, or credentials for a different AWS account.
Solution: aws configure list, sync clock (sudo sntp -sS time.apple.com), ensure --region matches the bucket.
404Cause: VIDEO_ID not created first, or BUNNY_LIB_ID wrong.
Solution: POST to .../library/$BUNNY_LIB_ID/videos first, capture the guid, then PUT to that exact ID.
rclone: failed to create file system for Google DriveCause: OAuth token expired or client_id/client_secret misconfigured.
Solution: rclone config reconnect <remote>: and complete the browser flow.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub damionrashford/media-os --plugin media-os110 skills in this plugin
/audio-coreaudioManipulate macOS audio at the Core Audio HAL layer: afinfo (audio file metadata), afplay (play), afconvert (convert format/rate/bit-depth/channel layout), say (TTS), SwitchAudioSource (change default input/output/system device — brew install switchaudio-osx), audiodevice CLIs (npm/Go variants), AppleScript via osascript to drive System Preferences Sound. HAL plugins at /Library/Audio/Plug-Ins/HAL/ load virtual drivers (BlackHole 2ch/16ch/64ch, Loopback, Background Music). Aggregate Device (drift-corrected multi-in) and Multi-Output Device via Audio MIDI Setup.app or AudioHardwareCreateAggregateDevice. Use when the user asks to change default macOS audio device, route audio between apps on Mac, install BlackHole, build an Aggregate Device, convert audio files with afconvert, or script Mac audio from the terminal.
/audio-jackRoute professional low-latency audio with JACK Audio Connection Kit (jackaudio.org): jackd server (ALSA/CoreAudio/PortAudio/ASIO backends), jack_control (D-Bus JACK2 config), jack_lsp (list ports/connections), jack_connect/jack_disconnect (manage links), jack_cpu_load, jack_samplerate, jack_bufsize (runtime period size), jack_transport, jack_rec (multi-channel WAV recording), jack_iodelay (round-trip latency), jack_wait, jack_midi_dump. JACK1 C maintenance vs JACK2 C++ multicore. Modern Linux swaps jackd for PipeWire's libjack shim — same client API. JackTrip for uncompressed multichannel UDP over the Internet. Use when the user asks to run a JACK server, connect audio clients, measure roundtrip latency, record from JACK ports, set JACK period size, or bridge JACK over the network with JackTrip.
Other plugins' skills for the same job