playwright-profiles

Manage Playwright authentication profiles for Claude Code — both per-project role-based profiles and global persistent auth for external services.
Note: This repo is now the auth-only distribution. The full QA workflow plugin, including these auth/profile capabilities plus workflow generators, Playwright converters, QA agents, and CI helpers, lives in neonwatty/qa-skills.
Use this plugin when you only need reusable authenticated browsing. Use qa-skills when you also want QA workflow generation, Playwright conversion, runners, agents, audits, and CI scaffolding.
What it does
Per-project profiles (role-based)
/setup-profiles — Interactive command to create authenticated browser profiles for each user role in your project. Opens a headed Playwright browser, lets you log in manually, then saves the session state.
use-profiles skill — Automatically discovers and loads saved auth profiles when Claude does browser work, so you don't have to log in every session.
Global auth browsing (service-based)
/setup-auth-browse — One-time setup to install the sign-in script and authenticate to external services (Cloudflare, Sentry, PostHog, Supabase, Vercel, AWS, etc.).
auth-browse skill — Browse external service dashboards using playwright-cli with persistent auth. Uses real Chrome with automation flags stripped to bypass Google OAuth and Cloudflare Turnstile bot detection.
Custom app auth (capture-auth)
capture-auth skill — Capture and reuse authenticated sessions for your own web apps (deckchecker, seatify, client portals, staging environments, etc.). Register a custom app with a name, login URL, and post-login pattern, then sign in once and browse authenticated from any Claude session.
Prerequisites
- Claude Code
@playwright/mcp (installed automatically via npx) — for per-project profiles
playwright-cli — for auth-browse (installed separately)
- Google Chrome — for auth-browse (uses real Chrome, not bundled Chromium)
This plugin bundles its own Playwright MCP server config. If you also have the official playwright@claude-plugins-official plugin installed, disable it to avoid running two MCP server instances. The Playwright MCP server runs in headed mode by default, which is required for interactive login.
Usage
Per-project profiles
In any project directory:
/setup-profiles
Claude will:
- Ask what user roles you need (e.g., admin, planner, speaker)
- Ask for the login URL
- Open a browser for each role — log in manually
- Save the authenticated state to
.playwright/profiles/
- Update
.gitignore to prevent committing auth data
- Add a Playwright Profiles section to
CLAUDE.md
Once set up, just mention a role when asking Claude to do browser work:
- "Test the admin dashboard"
- "Check the speaker view"
- "Browse the site as a planner"
Claude automatically loads the right profile before navigating.
Global auth browsing
First-time setup:
/setup-auth-browse
Claude will install the sign-in script at ~/.playwright-cli/ and walk you through authenticating to your services.
For subsequent sign-ins, run in a terminal:
node ~/.playwright-cli/sign-in.mjs login cloudflare
node ~/.playwright-cli/sign-in.mjs login sentry
node ~/.playwright-cli/sign-in.mjs login https://any-site.com
The script opens real Chrome (automation flags stripped), you sign in manually, and it auto-detects completion and saves auth state.
Then ask Claude to browse any authenticated service:
- "Open the Cloudflare dashboard"
- "Check Sentry errors"
- "Browse PostHog analytics"
Claude uses playwright-cli with the persistent Chrome profile — all services are authenticated in a single session.
Built-in sites: github, cloudflare, vercel, sentry, posthog, supabase, aws, netlify, railway, render
Add custom sites:
node ~/.playwright-cli/sign-in.mjs add myapp https://myapp.com/login myapp.com/dashboard
Check auth status:
node ~/.playwright-cli/sign-in.mjs check
Multi-user / QA profiles
For apps where you need separate sessions for different users (e.g., admin vs planner), use --profile to isolate Chrome profiles:
# Register each user as a separate site
node ~/.playwright-cli/sign-in.mjs add myapp-admin https://myapp.com/login /dashboard
node ~/.playwright-cli/sign-in.mjs add myapp-planner https://myapp.com/login /dashboard
# Sign in with isolated profiles (run in separate terminal)
node ~/.playwright-cli/sign-in.mjs login myapp-admin --profile myapp-admin
node ~/.playwright-cli/sign-in.mjs login myapp-planner --profile myapp-planner