---
name: suno-download
description: Download a Suno workspace as lossless WAV + full-metadata sidecar JSON by running scripts/download.mjs. Use when the user wants to download Suno songs, export a workspace, fetch WAV files, grab generated tracks, or invokes "/suno-download". Do NOT drive the browser turn by turn - launch the script, which resolves the workspace, waits for rendering clips, converts, downloads with size verification, writes sidecars and _download_result.json in one process. Shares the persistent Chrome profile (and one-time --login) with suno-submit. A model-driven Claude in Chrome loop remains as the documented fallback in references/path-b.md.
version: 2.8.0
---
# Suno Download
Download every song (or a subset) from a Suno workspace as **lossless WAV** (48 kHz / 16-bit /
stereo PCM) plus a **complete metadata sidecar JSON** per track.
## What this skill does
**Run the script. Do not drive the browser by hand.** `scripts/download.mjs` performs the whole
job in one process; your part is to launch it with the right arguments and report from
`_download_result.json`. A 60-clip workspace costs ~2 model turns this way versus ~25 driving
the API calls yourself (and the tool channel blocks the signed download URLs, which forced a
browser-download detour on every manual run).
Path B (the model-driven Claude-in-Chrome loop) lives in **`references/path-b.md`** and is the
**fallback**, not an equal option. Read it only when the script fails and the download is
urgent — then fix the script.
---
## Workflow
### Step 1 · Resolve the arguments
- **workspace** — the exact name, or a distinctive substring (case-insensitive). The script
stops and lists candidates if the substring is ambiguous; pick and re-run.
- **`--out`** — where the files land. Use the project's `audio/` folder when one exists
(`<project>/audio`); otherwise ask. **Always pass it** — the default is the current directory.
- **`--only a,b`** (optional) — each item matches a clip id exactly or a title substring.
### Step 2 · Dry run when the workspace is unfamiliar
```bash
node "<skill>/scripts/download.mjs" "<workspace>" --out "<dir>" --dry-run
```
<!-- ‹guest · 2026-12-04› -->
~20 s, opens Chrome, lists every clip with status, duration and the planned filename, downloads
nothing. Skip this when the workspace was just created by `/suno-submit` in this session.
### Step 3 · Run it in the background
Conversion + download of a full workspace takes minutes (first-run WAV conversion is server-side
and not instant; 112 clips took ~3–4 min just to convert). **Always `run_in_background: true`.**
You will be notified when it exits.
```bash
node "<skill>/scripts/download.mjs" "<workspace>" --out "<dir>" # + --only … if used
```
**Do not poll it** — checking progress every few seconds spends the turns this script exists to
save. How you wait depends on whether anything can wake you back up:
- **In the main conversation**, ending your turn IS how you wait. Say what you launched, then
stop; the completion notification arrives as a new message and resumes you with full context.
Do not invent an "active wait" (`echo waiting`, a sleep loop, repeated `jobs`/`ls` checks).
- **As a subagent, nothing resumes you** — ending your turn ends the job, and the report never
gets written. Either run the script in the **foreground** with a generous `timeout` (10 min
covers a few clips; a whole workspace needs more), or launch it in the background and then make
**one** blocking call that waits for the result file, e.g.
`until [ -f "<dir>/_download_result.json" ]; do sleep 10; done`. One blocking call is not
polling; a stream of status checks is.
Do not start a second run while one is in flight either: both would open the same Chrome profile
and the second is refused (the profile is file-locked). `/suno-submit` shares that profile, so the
same applies across the two skills.
The script **waits for rendering clips** (up to 20 min, `--wait-timeout <min>` to change,
`--no-wait` to download only what is complete). Launching it right after `/suno-submit` is fine.
### Step 4 · Report from the result file
Read `<dir>/_download_result.json`. Report `ok / selected`, and surface every entry with
`ok: false` (its `error` says why: still rendering, convert refused, size mismatch after 3
tries). Exit `0` means **every selected clip is on disk and passed the size check**.
<!-- ‹guest · 2026-12-04› -->
Re-running is safe and cheap: files already on disk that pass verification are **skipped**, so
a partial run is resumed by launching the same command again.
**How much to verify yourself:** the script already checks every file's size against its duration
and its embedded clip id, and `_download_result.json` records the outcome per clip — so reading
that file is normally the whole job. One independent spot-check of a single file (`ffprobe` for
codec/duration, or the `RIFF` header) is worth it when the result matters or something looked odd.
Beyond that, stop: re-verifying all of them by hand duplicates what the script just did.
### Notes on invocation
- `<skill>` is this skill's own directory — the script sits beside this file.
- **First use, and again after every plugin update**, needs `npm install && npx playwright install chrome`
in the plugin root — `<skill>/../..`, the directory holding `package.json`. For a marketplace
install that is the versioned plugin cache (`~/.claude/plugins/cache/<marketplace>/suno-toolkits/<version>/`),
not a repo, and each update lands in a new directory without `node_modules`. If the script reports
playwright missing it prints the exact `cd … && npm install …` line: run that (foreground, it is
quick), then retry. After that comes a one-time sign-in, which survives updates (the profile lives
outside the plugin). If the script prints `sign-in required (no TTY)`, give the user
the command it printed and ask them to run it with a `! ` prefix in this session:
`! node "<skill>/scripts/download.mjs" --login`
(the same profile serves `/suno-submit`, so a sign-in done there counts here).
- Pass paths through verbatim, quoted — workspace names carry spaces and CJK.
---
## What the script guarantees
- **Download caps are respected the sanctioned way.** Since 2026-09-03 Suno caps downloads per
plan (Free 7 lifetime · Pro 20/mo · Premier 60/mo) but exempts Suno Studio for Premier. The
script resolves WAVs through the Studio download endpoint
(`GET /api/studio/clip/{id}/download?format=wav`), which serves the same 48 kHz/16-bit file
and was measured not to touch `download_usage` (see `docs/2026-09-suno-download-limits.md`).
It prints the allowance before and after the run (`Downloads : used/limit` and
`this run was not counted`). Accounts without Studio access fall back to the legacy
`convert_wav` + `wav_file/` route with a warning — **that route is counted server-side**
(measured 2026-09-09: 2 clips → `downloads_used` 0 → 2), so there a batch larger than the
remaining allowance is refused unless `--force`; prefer `--only` to download just the chosen
takes. A longform's 60 takes would consume a Premier month on the legacy route.
If `/api/billing/info/` cannot be read at all the script **stops** rather than guessing the
<!-- ‹guest · 2026-12-04› -->
route — an unreadable response is indistinguishable from "no Studio access", and guessing wrong
means silently spending the month's allowance. Re-run, or pass `--legacy-wav --force` to accept
the counted route unguarded.
- **A quota tripwire catches the rules changing mid-batch.** "Studio is uncounted" is a
measurement, not a promise — Suno closed the legacy route's gap within five days. So after the
1st and 5th file land, the script re-reads the allowance; if it moved, it **stops the rest of
the batch** (the ~8 transfers already in flight still finish) and says so, instead of letting
you find out from the closing summary with the month already gone. Everything downloaded stays
and verifies, so a re-run resumes. `--force` overrides the stop; `stoppedByQuotaTripwire` in the
result file records why.
- **Sidecar = the clip object from `/api/project/{id}`.** Verified identical (41 keys) to what
`/api/feed/` returns, so there is no second metadata round-trip.
- **Filename** `{workspace} - {title}_{a|b}.wav` — the takes of a title ordered by
`created_at`, then `id`. **Never by `batch_index`**: that field is transient (present right
after a Create, gone from the same endpoint a day later), so a name built from it cannot be
reproduced and a re-run silently swaps a/b under existing files. A title with >2 clips (double
submit) gets `_c`, `_d`, …. Illegal characters → `_`; paths over 240 chars drop the prefix.
- **Verification catches truncation AND the wrong take.** A cut-off download keeps a valid
`RIFF` header and only shows up as a short file — the script checks
`size ≈ duration × 192000 + 44` (±3 %). Two takes of one title are often within 3 % of each
other, so it also reads the clip id Suno embeds in every WAV (`ICMT … id=<clip id>`) and
requires it to equal the clip being downloaded. Failures retry up to 3 times with a **fresh**
signed URL (the old one may have expired). On a re-run, only files passing both checks are
skipped.
- **Rate-limit safe.** `studio-api` calls run 5-wide while the renders are kicked off and up to
8-wide once the download pool is polling for its own URLs, all with 429 backoff; transfers run 8-wide
against the CDN, which is a separate system.
- **Never spends generation credits** — downloading only re-renders an existing clip as WAV;
nothing new is generated. It can still consume the monthly **download allowance**, which is a
separate budget: on the Studio route it does not (measured), on `--legacy-wav` it does. WAV
export needs a paid plan (a `401/403` while preparing a clip is reported per clip).
## Options
`--out <dir>` · `--only a,b` · `--dry-run` · `--no-wait` · `--wait-timeout <min>` (20) ·
`--legacy-wav` (old convert_wav route) · `--force` (ignore the allowance guard on the legacy
route) · `--login` · `--profile "<dir>"` · `--headless` (headed is the default; same fingerprint
reasoning as `submit.mjs`).
## Output
<!-- ‹guest · 2026-12-04› -->
`<dir>/{name}.wav` + `<dir>/{name}.json` per clip, and `<dir>/_download_result.json`:
`{ workspace, projectId, outDir, wavRoute: "studio"|"legacy", downloadUsage: { before, after },
stoppedByQuotaTripwire, selected, ok, skipped, failed, at, clips: [{ id, title, variant, file,
duration, ok, size | error, skippedByTripwire? }] }`.
## References
- `references/path-b.md` — the model-driven Claude-in-Chrome procedure and its JS blocks
(workspace/clip listing, convert+poll, URL-map export, sidecar bundle). Fallback only.
- `<repo>/lib/session.mjs` — the shared Chrome profile / login / `api()` helper, used by both
skills (so one `--login` serves `/suno-submit` too).
- `<repo>/extension/src/core/` — the pure logic (filenames, `--only`, paging, WAV verification,
billing/quota, poll reading), imported by `scripts/download.mjs` through
`<repo>/lib/download-core.mjs` and loaded verbatim by the Chrome extension, so the two can
never name or verify the same clip differently.
- A user who would rather click than type has the same downloader as a **Chrome extension**
(`<repo>/extension/`, see the *Extension* section of the repo README) — no Node, no plugin.
It is an alternative for the user, not for you: when this skill is invoked, run the script.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.