← ClaudeAtlas

setup-browser-cookieslisted

Import cookies from your real Chromium browser into the headless browse session. Opens an interactive picker UI where you select which cookie domains to import. Use before QA testing authenticated pages.
timurgaleev/vibestack · ★ 6 · Web & Frontend · score 79
Install: claude install-skill timurgaleev/vibestack
## When to invoke Use when asked to "import cookies", "login to the site", or "authenticate the browser". ## Preamble ```bash eval "$(~/.vibestack/bin/vibe-slug 2>/dev/null)" 2>/dev/null || SLUG="unknown" _LEARN_FILE="${VIBESTACK_HOME:-$HOME/.vibestack}/projects/${SLUG:-unknown}/learnings.jsonl" if [ -f "$_LEARN_FILE" ]; then _LEARN_COUNT=$(wc -l < "$_LEARN_FILE" 2>/dev/null | tr -d ' ') echo "LEARNINGS: $_LEARN_COUNT entries loaded" if [ "$_LEARN_COUNT" -gt 5 ] 2>/dev/null; then ~/.vibestack/bin/vibe-learnings-search --limit 5 2>/dev/null || true fi else echo "LEARNINGS: none yet" fi ``` {{include lib/snippets/session-host.md}} {{include lib/snippets/decision-brief.md}} {{include lib/snippets/working-protocols.md}} {{include lib/snippets/state-protocols.md}} # Setup Browser Cookies Import logged-in sessions from your real Chromium browser into the headless browse session. ## CDP mode check First, check if browse is already connected to the user's real browser: ```bash $B status 2>/dev/null | grep -q "Mode: cdp" && echo "CDP_MODE=true" || echo "CDP_MODE=false" ``` If `CDP_MODE=true`: tell the user "Not needed — you're connected to your real browser via CDP. Your cookies and sessions are already available." and stop. No cookie import needed. ## How it works 1. Find the browse binary 2. Run `cookie-import-browser` to detect installed browsers and open the picker UI 3. User selects which cookie domains to import in their browser 4. Cookies are decrypte