← 返回 Skills 市场
ivangdavila

Udio

作者 Iván · GitHub ↗ · v1.0.0
linuxdarwinwin32 ✓ 安全检测通过
377
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install udio
功能描述
Generate AI music with Udio via API wrappers or browser automation, with prompt engineering and song extensions.
使用说明 (SKILL.md)

Setup

On first use, read setup.md for integration guidelines.

When to Use

User wants to generate music with Udio. Agent can use API wrappers for programmatic generation, browser automation for direct platform interaction, or guide prompt engineering.

Architecture

Memory at ~/udio/. See memory-template.md for structure.

~/udio/
├── [memory.md]       # Created on first use: preferences, auth token location
├── [projects/]       # Per-project song tracking
└── [songs/]          # Downloaded audio files

Quick Reference

Topic File
Setup setup.md
Memory memory-template.md
API usage api.md
Browser automation browser.md
Prompt crafting prompts.md
Style tags styles.md
Lyrics guide lyrics.md

Core Rules

1. Choose the Right Approach

Situation Method
Programmatic generation, batch jobs API wrapper
User wants to browse and listen Browser automation
Just need prompt help Prompt engineering only

2. API Requires Auth Token

Udio has no official public API. Community wrappers use the internal API:

  • Token: sb-api-auth-token cookie from udio.com
  • Token expires: refresh if 401 errors occur
  • See api.md for setup instructions

3. Structure Prompts in Layers

[genre] [subgenre] [mood] [instruments] [voice] [era/influence]

Example: "indie folk melancholic acoustic guitar female vocals 90s"

4. Extend Songs Strategically

Udio generates ~30 second clips. Build full songs:

  1. Create initial clip with strong hook
  2. Extend 2-3 times with consistent style
  3. Add outro with ending indicators
  4. Target 2-4 minutes total

5. Save Successful Seeds

Same prompt + different seed = different result. When close to desired output:

  • Note the seed number
  • Try adjacent seeds (seed +/- 1)
  • Document working combinations

API Integration

Python Wrapper (Recommended)

pip install udio_wrapper
from udio_wrapper import UdioWrapper

# Initialize with auth token
udio = UdioWrapper("your-sb-api-auth-token")

# Create a song
song = udio.create_song(
    prompt="electronic ambient downtempo dreamy synth pads",
    seed=-1,  # -1 for random
    custom_lyrics="Optional lyrics here"
)

# Extend the song
extended = udio.extend(
    prompt="add drums and bass, building energy",
    audio_conditioning_path=song['song_path'],
    audio_conditioning_song_id=song['id']
)

# Add outro
outro = udio.add_outro(
    prompt="gentle fade out, conclusion",
    audio_conditioning_path=extended['song_path'],
    audio_conditioning_song_id=extended['id']
)

TypeScript/Node Wrapper

npm install udio-wrapper
import { createUdioWrapper } from 'udio-wrapper';

const client = await createUdioWrapper('your-auth-token');

const song = await client.createSong({
    prompt: 'indie rock upbeat energetic guitar',
    seed: 12345,
    customLyrics: 'Optional lyrics'
});

const completed = await client.waitForCompletion(song.id);
console.log('Download URL:', completed.url);

Complete Song Sequence

# Generate intro + extensions + outro in one call
complete = udio.create_complete_song(
    short_prompt="peaceful acoustic guitar melody",
    extend_prompts=[
        "add piano and soft strings",
        "introduce light percussion, building"
    ],
    outro_prompt="gentle resolution, fading",
    num_extensions=2,
    custom_lyrics_short="Opening verse...",
    custom_lyrics_extend=["Middle section...", "Bridge..."],
    custom_lyrics_outro="Final words..."
)

Browser Automation

When API isn't available or user prefers visual interaction:

Navigate to Udio

browser action=open targetUrl="https://www.udio.com" profile=openclaw

Get Auth Token (for API use)

  1. Open DevTools: Cmd+Option+I (Mac) or F12 (Windows)
  2. Go to Application tab > Cookies > udio.com
  3. Find sb-api-auth-token
  4. Copy the value

Generate Music via UI

  1. Navigate to create page
  2. Enter prompt in text field
  3. Adjust settings (instrumental, duration)
  4. Click generate
  5. Wait for completion (~30-60 seconds)
  6. Download or extend

Prompt Patterns

By Genre

Genre Prompt Pattern
Electronic electronic [subgenre] [mood] synth [texture] [era]
Rock [sub]rock [energy] [guitars] [drums] [vocals] [decade]
Hip Hop hip hop [subgenre] [beat style] [sample type] [era]
Jazz jazz [subgenre] [instruments] [setting] [mood]
Classical classical [period] [ensemble] [mood] [dynamics]

Mood Combinations

Energy Mood Stack
High + Positive euphoric energetic uplifting triumphant
Low + Positive peaceful calm serene contemplative
High + Negative aggressive chaotic intense dark
Low + Negative melancholic somber mournful introspective
Complex bittersweet nostalgic hopeful yearning

Voice Control

# Female vocals
female vocals ethereal soprano breathy

# Male vocals  
male vocals deep baritone raspy emotional

# Choir
choir harmonies gospel powerful anthemic

# No vocals
instrumental only no singing no vocals

Common Traps

Trap Problem Solution
Vague prompts "good music" = random Be specific: genre, mood, instruments
Contradictions "upbeat sad" confuses model Pick consistent descriptors
Token expiry 401 errors Re-extract from browser cookies
Too many keywords 20+ terms dilute focus Use 5-10 key descriptors
No seed tracking Can't reproduce good results Log seeds for successful generations
Abrupt extensions Jarring transitions Match style/key in extend prompts

Extension Strategy

Building Full Tracks

Phase Duration Prompt Additions
Intro 0-30s "intro, building, atmospheric"
Verse/Main 30s-2m Original prompt
Bridge 2m-2:30 "variation, bridge, key change"
Outro Final 30s "outro, ending, fade, resolution"

Ending Indicators

Add to final extend/outro:

  • "fade out" / "fading"
  • "song ending" / "conclusion"
  • "final chorus" / "last verse"
  • "resolution" / "outro"

Data Storage

This skill creates ~/udio/ on first use:

  • memory file — Preferences, successful prompts, token location reference
  • projects folder — Per-project tracking with seeds and URLs
  • songs folder — Downloaded audio files (optional)

All data stays local. Auth tokens should be stored in system keychain, not plain text.

Scope

This skill does:

  • Generate music via community API wrappers (requires auth token)
  • Navigate udio.com with browser automation (user must be logged in)
  • Craft optimized prompts for Udio's model (no token needed)
  • Track projects, seeds, and successful patterns locally
  • Download generated audio files to ~/udio/songs/

This skill does NOT:

  • Store auth tokens in plain text (must use keychain/credential manager)
  • Bypass Udio's rate limits or terms of service
  • Access files outside ~/udio/
  • Auto-extract tokens without user guidance

Security Notes

Auth Token: The sb-api-auth-token cookie grants API access to your Udio account. Handle it like a password:

  • Store in system keychain, never in plain text
  • Token expires after ~7 days of inactivity
  • Re-extract if you get 401 errors

Community Wrappers: The Python and Node wrappers are community-maintained (not official Udio software). Review their source code before installing:

  • Python: github.com/flowese/UdioWrapper
  • Node: github.com/josephgodwinkimani/udio-wrapper

Prompt-Only Mode: If you prefer not to use API or share tokens, this skill works in prompt-only mode — just help with crafting effective prompts without any API calls.

External Endpoints

Endpoint Data Sent Purpose
api.udio.com Prompts, lyrics Music generation (via wrappers)
udio.com Browser session Direct platform access

Auth token is sent with API requests. No other data leaves the machine.

Trust

By using this skill with API wrappers, prompts and lyrics are sent to Udio's servers for music generation. Only use if you trust Udio with your creative content. Review Udio's terms of service at udio.com/terms.

Related Skills

Install with clawhub install \x3Cslug> if user confirms:

  • audio — Audio processing and editing
  • video — Combine music with video content
  • ffmpeg — Audio format conversion

Feedback

  • If useful: clawhub star udio
  • Stay updated: clawhub sync
安全使用建议
This skill is internally consistent with its purpose, but it requires your Udio session cookie (sb-api-auth-token) to use the undocumented/internal API. That token effectively grants account access, so only provide it if you understand and accept the risk. Follow the skill's advice: store the token securely (OS keychain or an environment variable), do not paste the token into chat or memory files, and inspect the community wrapper repos (github.com/flowese/UdioWrapper and josephgodwinkimani/udio-wrapper) before installing. If you later want to revoke access, log out of udio.com or re-authenticate (which will invalidate the cookie). Finally, be aware this uses community-maintained wrappers and browser automation (not an official public API), so review terms of service and the wrapper code before use.
功能分析
Type: OpenClaw Skill Name: udio Version: 1.0.0 The skill is designed to facilitate AI music generation with Udio, transparently outlining its use of community API wrappers and browser automation. Crucially, the documentation across multiple files (SKILL.md, api.md, browser.md, memory-template.md, setup.md) repeatedly and emphatically instructs the AI agent to never store the `UDIO_AUTH_TOKEN` in plain text, instead guiding users to store it securely in environment variables or system keychains. All file system interactions are confined to the designated `~/udio/` directory, and external endpoints are clearly declared. While the skill involves package installation (`pip install`, `npm install`) and browser automation, these actions are directly aligned with its stated purpose, and the skill explicitly advises users to review the source code of community wrappers, demonstrating a strong commitment to security and transparency rather than malicious intent.
能力评估
Purpose & Capability
Name/description match the contents: the skill focuses on generating music via either API wrappers or browser automation. Requesting a Udio session token (sb-api-auth-token exposed as UDIO_AUTH_TOKEN) and recommending python3 (because the skill shows Python wrapper usage) are reasonable for this purpose. The skill documents community wrappers and links to GitHub/NPM repositories rather than requesting unrelated cloud credentials or OS-level access.
Instruction Scope
The runtime instructions explicitly walk the agent through extracting the sb-api-auth-token from the user's browser cookies (DevTools/console) and using it for API wrapper calls, plus creating a ~/udio/ memory and project directory. These actions are within the music-generation scope, but extracting/providing a session cookie is sensitive — the instructions repeatedly state not to store token values in plain text and to only record the token location (keychain/env).
Install Mechanism
This is instruction-only (no install spec). The skill suggests installing community wrappers via pip/npm and links to GitHub repos and NPM package names; those are standard package sources (git/github/npm), not arbitrary downloads. No automatic or embedded installers are included in the skill itself.
Credentials
The only required environment credential is UDIO_AUTH_TOKEN (declared as primaryEnv). That is proportionate for driving an internal/non-public API. It is nonetheless a full session credential (a cookie) and grants account-level access to udio.com, so treating it as sensitive is important; the skill advises storing the token in a keychain or env var and not in memory files.
Persistence & Privilege
The skill does create and use a local memory directory (~/udio/) for preferences, prompts, and downloaded songs, and it explicitly warns not to save token values in plain text. always is false and the skill does not request system-wide or cross-skill configuration changes. Note: since the agent may invoke the skill autonomously, providing a valid UDIO_AUTH_TOKEN would allow the skill to act with that token (normal but worth considering).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install udio
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /udio 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug udio
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Udio 是什么?

Generate AI music with Udio via API wrappers or browser automation, with prompt engineering and song extensions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 377 次。

如何安装 Udio?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install udio」即可一键安装,无需额外配置。

Udio 是免费的吗?

是的,Udio 完全免费(开源免费),可自由下载、安装和使用。

Udio 支持哪些平台?

Udio 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 Udio?

由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.0。

💬 留言讨论