360 Secure SkillHub
360 安全技能中心

Suno AI

该 Skill 通过本地浏览器会话调用 Suno,支持提示词或歌词加风格生成歌曲、纯音乐、查询剩余额度,并在会话失效时导入 Cookie 恢复。成功时返回曲目标题、clip id、MP3 路径和剩余额度。

分类:创作
mySebbe
mySebbe
热度 10.65
最近更新 2026-05-11 14:23:25

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add mySebbe/suno-ai
兼容性
OpenClaw 专属
联网要求
需要联网
数据出网
必须出网
Metadata
name
suno-ai
description
Generate music via Suno with the local browser-backed flow. Use when the user wants Suno songs, instrumental tracks, lyric-based songs, Suno credit checks, or Suno session recovery.

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:

cd /home/sebbe/.openclaw/workspace-chat/skills/suno-ai
./run_generate_song.sh ...

The generator uses:

  • the runtime Python environment in ~/.suno/venv
  • the persistent browser profile in ~/.suno/chrome_gui_profile
  • the normalized cookie header in ~/.suno/suno_cookie.txt
  • raw cookies in ~/.suno/cookies.json
  • the browser-backed v2-web Suno flow with hCaptcha solving
  • output files in /home/sebbe/.openclaw/workspace-chat/output_mp3
  • debug logs and screenshots in ~/.suno/debug

Common commands

Simple prompt:

./run_generate_song.sh \
  --prompt "short synthwave instrumental with bright arpeggios" \
  --instrumental \
  --json

Lyrics + style:

./run_generate_song.sh \
  --lyrics "In the wires, in the code..." \
  --tags "cyberpunk, dark synth" \
  --title "Digital Soul" \
  --json

Credits only:

./run_generate_song.sh --credits-only --json

Validate imported cookies:

./run_generate_song.sh \
  --import-cookies /path/to/export.txt \
  --validate-session \
  --json

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.
  2. Export fresh cookies from the local Suno extension while logged in.
  3. 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