Skip to content
Development
Command

/playwright-auth

Use when the user needs to log into a website for browser automation, save auth cookies, or sync browser profiles to cloud

From plugin
amux
45411 skills11 commands

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/playwright-auth

Context preview

What this command does when you run it.

Use when the user needs to log into a website for browser automation, save auth cookies, or sync browser profiles to cloud

Command definition

playwright-auth.md
description: Use when the user needs to log into a website for browser automation, save auth cookies, or sync browser profiles to cloud
allowed-tools: Bash
argument-hint: [capture|sync|status]

/playwright-auth — Browser Auth Profile Manager

Manages Playwright browser auth profiles so Claude sessions (local and cloud) can access authenticated sites.

How It Works

  • **capture** — opens a real headed browser; you log into GitHub, Google, Notion, etc.; profile is saved to `~/.amux/playwright-auth/profile/` and automatically synced to cloud
  • **sync** — ships the saved profile to the cloud VM via gcloud IAP
  • **status** — shows profile age and whether it's been synced

Instructions

The user's request is: **$ARGUMENTS**

Parse the argument:

`capture` or empty

Run the capture command and wait for completion:

amux playwright-auth capture

This opens a browser. Inform the user to log into any sites they need, then close the browser. It will automatically sync to cloud when done.

`sync`

Sync the existing local profile to cloud:

amux playwright-auth sync

Report the output — confirm success or surface any errors.

`status`

Check the current profile state:

# Profile location and age
ls -lh ~/.amux/playwright-auth/profile/ 2>/dev/null && \
  echo "Last modified: $(stat -f '%Sm' -t '%Y-%m-%d %H:%M' ~/.amux/playwright-auth/profile 2>/dev/null || stat -c '%y' ~/.amux/playwright-auth/profile 2>/dev/null)" || \
  echo "No profile found. Run: amux playwright-auth capture"

Always report clearly:

  • Whether a profile exists and how old it is
  • Whether the last sync succeeded
  • Next steps if something needs attention

Gotchas

  • `capture` opens a **headed** (visible) browser — it cannot run in a headless/SSH session.
  • The profile directory at `~/.amux/playwright-auth/profile/` is locked while a browser is using it — don't run capture while another Playwright instance is open.
  • Auth cookies expire — if automated tasks start getting 401s, the profile needs a fresh capture.
  • `sync` requires `gcloud` CLI and IAP tunnel access to the cloud VM; it will fail if the VM is down.
Read more
Ships withamux

Open-source control plane for AI coding agents. Run an AI engineering team: parallel Claude Code, Codex, and Gemini workers with a shared board, atomic tasks, schedules, loops, origin-stamped messaging, model switching, and self-healing recovery. One dashboard, or your phone. MIT, single Rust binary.

Get the whole plugin
Stats
456
Stars
51
Forks
Active
Maintenance
Rust
Language
46m ago
Last commit
6mo ago
Created

Repo: mixpeek/amux

Other commands on amux.

amux
Command

amux

Use when you need to interact with the amux system — manage board tasks, check sessions/workers, send emails, message via Telegram, automate browsers, work…

@mixpeek@mixpeekView Command
chrome-cdp
Command

chrome-cdp

Use when the user asks to interact with a web page, take a screenshot of a site, click or type in Chrome, scrape content, or debug a web UI. Connects to real…

@mixpeek@mixpeekView Command
cleanup
Command

cleanup

Repo/branch/file hygiene sweep — stray artifacts, doc drift, stale branches, worktrees, upstream sync, backup sprawl, duplicate build caches. Verifies before…

@mixpeek@mixpeekView Command