Open
Conversation
- HTTP client using Clerk JWT + Browser-Token (timestamp-based) + Device-Id
- Token refresh via POST auth.suno.com/v1/client/sessions/{id}/touch
- Generate flow: c/check → generate/v2-web → feed/v3 polling → WAV conversion
- File-based input (--prompt-file, --tags-file) to avoid shell escaping issues
- WAV URLs returned automatically after generate completes
- Session stored at ~/.config/webctl/sessions/suno/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
webctl sunoadapter with 4 commands:login,generate,download,poll--prompt-file,--tags-file) avoids shell escaping issues with lyrics/Chinese textAuth Flow
Bearer) +Browser-Token(base64 timestamp) +Device-Idper requestPOST auth.suno.com/v1/client/sessions/{id}/touchusing stored Clerk cookieswebctl suno loginto extract all cookies incl.auth.suno.comhttponly onesGenerate Flow
POST /api/c/check— captcha gate (clean IP:required: false, no token needed)POST /api/generate/v2-web/— submits batch, returns 2 clip IDsPOST /api/feed/v3— polls untilstatus: completePOST /api/gen/{id}/convert_wav/+GET /api/gen/{id}/wav_file/— WAV URLPOST /api/billing/clips/{id}/download/— billing trackingTest Plan
suno pollwith existing clip ID returns correct metadatasuno download --format wavreturns CDN WAV URLsuno download(default) returns WAV URLsuno login— requires browser, tested manually via spy session import