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
55711 skills11 commands

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
@mixpeek
Ships withamux

The agent control plane: run Claude Code, Codex and Gemini CLI agents in parallel with a shared task board, schedules and usage-limit recovery. Native iPhone, iPad and Mac apps plus a web dashboard. Self-host (Rust + SQLite, Tailscale remote access) or use amux Cloud. MIT + Commons Clause.

Stars on GitHub

Momentum

stars in total
557
Star history of mixpeek/amux on GitHub, a chart by star-history.com

Other commands on amux.

aissue

aissue

Command

Pick up an open issue from the amux issue tracker, mark it doing, work it, and mark it done.

@mixpeek@mixpeekInstall Command
amux-board

amux-board

Command

Use when the user says "add to board", "create a task", or wants to track a todo on the amux kanban board

@mixpeek@mixpeekInstall Command
amux

amux

Command

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

@mixpeek@mixpeekInstall Command
bad-guy

bad-guy

Command

Before shipping, play the bad guy: run a fixed checklist of 14 attacks against your OWN app with test accounts and test data,…

@mixpeek@mixpeekInstall Command
chrome-cdp

chrome-cdp

Command

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…

@mixpeek@mixpeekInstall Command
cleanup

cleanup

Command

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

@mixpeek@mixpeekInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command