Suno AI
Use this skill directly from the chat agent when the user wants music generation or a Suno credit check. Do not delegate ordinary Suno generation to a coding agent.
Default flow
Run the skill from its own directory:
CODEBLOCK0
The generator uses:
- - the runtime Python environment in INLINECODE0
- the persistent browser profile in INLINECODE1
- the normalized cookie header in INLINECODE2
- raw cookies in INLINECODE3
- the browser-backed
v2-web Suno flow with hCaptcha solving - output files in INLINECODE5
- debug logs and screenshots in INLINECODE6
Common commands
Simple prompt:
CODEBLOCK1
Lyrics + style:
CODEBLOCK2
Credits only:
CODEBLOCK3
Validate imported cookies:
CODEBLOCK4
Session recovery
If generation fails because the Suno browser session is stale:
- 1. Make sure the local cookie receiver service is running at
http://127.0.0.1:8765/suno/cookies. - Export fresh cookies from the local Suno extension while logged in.
- Retry the generation command.
Do not rebuild the login flow unless the user explicitly asks to repair the skill.
Runtime cookies, logs, screenshots, and other session artifacts must stay under ~/.suno, not inside the skill folder.
Reply format
When generation succeeds, report:
- - track title
- clip ids
- saved MP3 paths
- remaining Suno credits
Suno AI
当用户需要生成音乐或查询Suno积分时,直接从聊天代理使用此技能。请勿将普通的Suno生成任务委托给编码代理。
默认流程
从技能所在目录运行:
bash
cd /home/sebbe/.openclaw/workspace-chat/skills/suno-ai
./rungeneratesong.sh ...
生成器使用:
- - ~/.suno/venv 中的运行时Python环境
- ~/.suno/chromeguiprofile 中的持久化浏览器配置文件
- ~/.suno/sunocookie.txt 中的标准化Cookie头
- ~/.suno/cookies.json 中的原始Cookie
- 支持hCaptcha验证的浏览器后端v2-web Suno流程
- /home/sebbe/.openclaw/workspace-chat/outputmp3 中的输出文件
- ~/.suno/debug 中的调试日志和截图
常用命令
简单提示:
bash
./rungeneratesong.sh \
--prompt 带有明亮琶音的短篇合成波器乐 \
--instrumental \
--json
歌词+风格:
bash
./rungeneratesong.sh \
--lyrics 在电线中,在代码里... \
--tags 赛博朋克, 暗黑合成 \
--title 数字灵魂 \
--json
仅查询积分:
bash
./rungeneratesong.sh --credits-only --json
验证导入的Cookie:
bash
./rungeneratesong.sh \
--import-cookies /path/to/export.txt \
--validate-session \
--json
会话恢复
如果因Suno浏览器会话过期导致生成失败:
- 1. 确保本地Cookie接收服务在http://127.0.0.1:8765/suno/cookies运行。
- 在登录状态下从本地Suno扩展导出新的Cookie。
- 重试生成命令。
除非用户明确要求修复技能,否则不要重建登录流程。
运行时Cookie、日志、截图及其他会话产物必须保存在~/.suno目录下,而非技能文件夹内。
回复格式
生成成功时,报告以下内容:
- - 曲目标题
- 片段ID
- 保存的MP3路径
- 剩余Suno积分