← Back to Skills Marketplace
francemichaell-15

Background Music

by francemichaell-15 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
64
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install background-music
Description
add video files into music-backed videos with this skill. Works with MP4, MOV, AVI, WebM files up to 500MB. content creators use it for adding background mus...
README (SKILL.md)

Getting Started

Share your video files and I'll get started on AI music addition. Or just tell me what you're thinking.

Try saying:

  • "add my video files"
  • "export 1080p MP4"
  • "add calm background music that matches"

Getting Connected

Before handling any user request, establish a connection to the backend API. Show a brief status like "Connecting...".

If NEMO_TOKEN is in the environment, use it directly and create a session. Otherwise, acquire a free starter token:

  • Generate a UUID as client identifier
  • POST to https://mega-api-prod.nemovideo.ai/api/auth/anonymous-token with the X-Client-Id header
  • The response includes a token with 100 free credits valid for 7 days — use it as NEMO_TOKEN

Then create a session by POSTing to https://mega-api-prod.nemovideo.ai/api/tasks/me/with-session/nemo_agent with Bearer authorization and body {"task_name":"project","language":"en"}. The session_id in the response is needed for all following requests.

Tell the user you're ready. Keep the technical details out of the chat.

Background Music — Add Music to Your Videos

This tool takes your video files and runs AI music addition through a cloud rendering pipeline. You upload, describe what you want, and download the result.

Say you have a 2-minute travel vlog in MP4 format and want to add calm background music that matches the mood of my video — the backend processes it in about 30-60 seconds and hands you a 1080p MP4.

Tip: shorter clips allow the AI to match music tempo and mood more accurately.

Matching Input to Actions

User prompts referencing background music, aspect ratio, text overlays, or audio tracks get routed to the corresponding action via keyword and intent classification.

User says... Action Skip SSE?
"export" / "导出" / "download" / "send me the video" → §3.5 Export
"credits" / "积分" / "balance" / "余额" → §3.3 Credits
"status" / "状态" / "show tracks" → §3.4 State
"upload" / "上传" / user sends file → §3.2 Upload
Everything else (generate, edit, add BGM…) → §3.1 SSE

Cloud Render Pipeline Details

Each export job queues on a cloud GPU node that composites video layers, applies platform-spec compression (H.264, up to 1080x1920), and returns a download URL within 30-90 seconds. The session token carries render job IDs, so closing the tab before completion orphans the job.

Headers are derived from this file's YAML frontmatter. X-Skill-Source is background-music, X-Skill-Version comes from the version field, and X-Skill-Platform is detected from the install path (~/.clawhub/ = clawhub, ~/.cursor/skills/ = cursor, otherwise unknown).

Every API call needs Authorization: Bearer \x3CNEMO_TOKEN> plus the three attribution headers above. If any header is missing, exports return 402.

API base: https://mega-api-prod.nemovideo.ai

Create session: POST /api/tasks/me/with-session/nemo_agent — body {"task_name":"project","language":"\x3Clang>"} — returns task_id, session_id.

Send message (SSE): POST /run_sse — body {"app_name":"nemo_agent","user_id":"me","session_id":"\x3Csid>","new_message":{"parts":[{"text":"\x3Cmsg>"}]}} with Accept: text/event-stream. Max timeout: 15 minutes.

Upload: POST /api/upload-video/nemo_agent/me/\x3Csid> — file: multipart -F "files=@/path", or URL: {"urls":["\x3Curl>"],"source_type":"url"}

Credits: GET /api/credits/balance/simple — returns available, frozen, total

Session state: GET /api/state/nemo_agent/me/\x3Csid>/latest — key fields: data.state.draft, data.state.video_infos, data.state.generated_media

Export (free, no credits): POST /api/render/proxy/lambda — body {"id":"render_\x3Cts>","sessionId":"\x3Csid>","draft":\x3Cjson>,"output":{"format":"mp4","quality":"high"}}. Poll GET /api/render/proxy/lambda/\x3Cid> every 30s until status = completed. Download URL at output.url.

Supported formats: mp4, mov, avi, webm, mkv, jpg, png, gif, webp, mp3, wav, m4a, aac.

Reading the SSE Stream

Text events go straight to the user (after GUI translation). Tool calls stay internal. Heartbeats and empty data: lines mean the backend is still working — show "⏳ Still working..." every 2 minutes.

About 30% of edit operations close the stream without any text. When that happens, poll /api/state to confirm the timeline changed, then tell the user what was updated.

Backend Response Translation

The backend assumes a GUI exists. Translate these into API actions:

Backend says You do
"click [button]" / "点击" Execute via API
"open [panel]" / "打开" Query session state
"drag/drop" / "拖拽" Send edit via SSE
"preview in timeline" Show track summary
"Export button" / "导出" Execute export workflow

Draft field mapping: t=tracks, tt=track type (0=video, 1=audio, 7=text), sg=segments, d=duration(ms), m=metadata.

Timeline (3 tracks): 1. Video: city timelapse (0-10s) 2. BGM: Lo-fi (0-10s, 35%) 3. Title: "Urban Dreams" (0-3s)

Error Codes

  • 0 — success, continue normally
  • 1001 — token expired or invalid; re-acquire via /api/auth/anonymous-token
  • 1002 — session not found; create a new one
  • 2001 — out of credits; anonymous users get a registration link with ?bind=\x3Cid>, registered users top up
  • 4001 — unsupported file type; show accepted formats
  • 4002 — file too large; suggest compressing or trimming
  • 400 — missing X-Client-Id; generate one and retry
  • 402 — free plan export blocked; not a credit issue, subscription tier
  • 429 — rate limited; wait 30s and retry once

Common Workflows

Quick edit: Upload → "add calm background music that matches the mood of my video" → Download MP4. Takes 30-60 seconds for a 30-second clip.

Batch style: Upload multiple files in one session. Process them one by one with different instructions. Each gets its own render.

Iterative: Start with a rough cut, preview the result, then refine. The session keeps your timeline state so you can keep tweaking.

Tips and Tricks

The backend processes faster when you're specific. Instead of "make it look better", try "add calm background music that matches the mood of my video" — concrete instructions get better results.

Max file size is 500MB. Stick to MP4, MOV, AVI, WebM for the smoothest experience.

Export as MP4 for widest compatibility across platforms and devices.

Usage Guidance
This skill appears to be what it says: it will upload your video files to mega-api-prod.nemovideo.ai to add background music and return rendered MP4s. Before installing or running: 1) Only provide a NEMO_TOKEN if you trust that backend (tokens authorize uploads/exports). 2) The skill may perform trivial checks for install directories (~/.clawhub/, ~/.cursor/skills/) and mentions ~/.config/nemovideo/ in its frontmatter — if you prefer, run it in an environment without sensitive files. 3) Because the skill has no source/homepage and is instruction-only, network calls to the listed API are the only runtime behavior — review and confirm you’re comfortable sending your media to that domain. If you want higher assurance, ask the publisher for provenance or a project homepage before granting a real NEMO_TOKEN.
Capability Analysis
Type: OpenClaw Skill Name: background-music Version: 1.0.0 The skill is a legitimate-appearing wrapper for a cloud-based video editing service (nemovideo.ai). It provides instructions for an AI agent to handle authentication via tokens, upload user video files, and manage processing sessions through a specific API (mega-api-prod.nemovideo.ai). While it involves network communication and file uploads, these actions are strictly aligned with the stated purpose of adding background music to videos, and there is no evidence of data exfiltration, unauthorized access, or malicious intent in SKILL.md or _meta.json.
Capability Assessment
Purpose & Capability
Name, description, and runtime instructions all focus on uploading videos, creating a session, sending SSE messages, and exporting rendered MP4s. The single required credential (NEMO_TOKEN) is appropriate for authorizing calls to the described backend. One minor inconsistency: the registry metadata reported no required config paths, but the SKILL.md frontmatter mentions a configPaths entry (~/.config/nemovideo/). This appears minor and does not contradict the skill's purpose, but it is an inconsistency worth noting.
Instruction Scope
The SKILL.md explicitly instructs the agent to use NEMO_TOKEN (if present) or to obtain an anonymous token by POSTing to the provided endpoint, to upload files (multipart or URL), to stream SSE, poll render status, and return download URLs — all appropriate for a cloud render workflow. It also instructs the agent to determine an X-Skill-Platform header by checking common install paths (~/.clawhub/, ~/.cursor/skills/) which implies presence checks on those filesystem locations; this is low-impact but outside the core upload/convert flow and should be understood by users who care about local filesystem checks.
Install Mechanism
No install spec or downloadable code is present; the skill is instruction-only (lowest install risk). Nothing is written to disk by the skill itself according to the provided files.
Credentials
Only one credential is requested (NEMO_TOKEN) and it is directly used to authorize API calls to the described nemo backend. The SKILL.md also defines a safe fallback anonymous-token flow that generates a short-lived token; this is proportionate for a cloud service. The earlier-noted frontmatter configPaths entry is the only extra locator mentioned and may cause harmless path checks.
Persistence & Privilege
The skill is not always-enabled and does not request elevated or persistent system privileges. It does not instruct modifying other skills or system-wide settings. Autonomous invocation is allowed (platform default) but is not combined with any broad credential set or 'always: true' privilege.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install background-music
  3. After installation, invoke the skill by name or use /background-music
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
background-music 1.0.0 — initial public release - Add background music to your video files (MP4, MOV, AVI, WebM up to 500MB) in the cloud. - Automatic token management: use NEMO_TOKEN or get 100 free credits via anonymous signup. - Upload videos, describe the mood/music you want, and export 1080p MP4 files in 30-90 seconds. - Intuitive keyword-based workflow: upload, edit, check credits, and export with simple prompts. - Cloud GPU rendering with live progress, error handling, and session state tracking included. - Supports batch and iterative editing with persistent sessions.
Metadata
Slug background-music
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Background Music?

add video files into music-backed videos with this skill. Works with MP4, MOV, AVI, WebM files up to 500MB. content creators use it for adding background mus... It is an AI Agent Skill for Claude Code / OpenClaw, with 64 downloads so far.

How do I install Background Music?

Run "/install background-music" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Background Music free?

Yes, Background Music is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Background Music support?

Background Music is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Background Music?

It is built and maintained by francemichaell-15 (@francemichaell-15); the current version is v1.0.0.

💬 Comments