Skip to content

feat: add passkey automation scripts and setup guide#274

Open
papavini wants to merge 1 commit intogcui-art:mainfrom
papavini:feature/passkey-automation
Open

feat: add passkey automation scripts and setup guide#274
papavini wants to merge 1 commit intogcui-art:mainfrom
papavini:feature/passkey-automation

Conversation

@papavini
Copy link
Copy Markdown

Summary

  • scripts/passkey-server.mjs — HTTP server on :3099 with bookmarklet UI. The bookmarklet patches turnstile.execute in the real user browser and POSTs the captured P1_ token to localhost. Cloudflare-safe because it runs in an undetected browser session.
  • scripts/refresh-passkey.mjs — Playwright-based automated passkey capture with xvfb/system-Chrome CDP fallback for Linux headless environments.
  • SETUP.md — comprehensive setup guide covering cookie extraction, passkey renewal, API endpoints, systemd deployment, and troubleshooting.
  • package.json — 6 new npm scripts: passkey-server, passkey-server:rebuild, passkey-server:restart, refresh-passkey, refresh-passkey:rebuild, refresh-passkey:restart.
  • SunoApi.ts — fix BASE_URL to studio-api-prod.suno.com, update DEFAULT_MODEL to chirp-fenix, bypass broken Playwright CAPTCHA flow, align generate payload with current web client format.

Test plan

  • Run npm run passkey-server, open http://127.0.0.1:3099/, drag bookmarklet to browser bar
  • Visit suno.com/create, click bookmarklet, click Create — verify token arrives and .env is updated
  • Run npm run build && npm start and verify generation endpoint works
  • On Linux: verify xvfb-run -a node scripts/refresh-passkey.mjs --rebuild

🤖 Generated with Claude Code

- scripts/passkey-server.mjs: HTTP server on :3099 with bookmarklet UI for
  easy SUNO_PASSKEY_TOKEN renewal via real browser (Cloudflare-safe)
- scripts/refresh-passkey.mjs: Playwright-based automated passkey capture
  with xvfb/system-Chrome fallback for Linux headless environments
- SETUP.md: comprehensive setup guide covering cookie extraction, passkey
  renewal, API usage, systemd deployment, and troubleshooting
- package.json: add 6 npm scripts for passkey management
- SunoApi.ts: fix BASE_URL to studio-api-prod.suno.com, update DEFAULT_MODEL
  to chirp-fenix, add CAPTCHA bypass, align generate payload with web client

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 11, 2026

Someone is attempting to deploy a commit to the Linkly AI LLC's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant