setup-browser-cookies

Import cookies from a real Chromium browser into a headless Playwright browse session.

Updated Mar 23, 2026
One-click install
npx skills add https://github.com/dhnpmp-tech/project-agent --skill setup-browser-cookies-dhnpmp-tech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-browser-cookies
Source: https://github.com/dhnpmp-tech/project-agent/tree/main/.claude/skills/gstack/setup-browser-cookies
Command: npx skills add https://github.com/dhnpmp-tech/project-agent --skill setup-browser-cookies-dhnpmp-tech

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Headless browser automation cannot access authenticated pages without valid session cookies, forcing manual logins or brittle credential handling. This Skill imports cookies directly from your installed Chromium browsers so the headless session inherits your existing logins. ## Core Features & Use Cases - Interactive Cookie Picker: Opens a browser-based UI to search domains and select which cookies to import, without exposing cookie values. - Direct Domain Import: Import cookies for a specific domain via a single command, skipping the picker UI. - Cross-Browser Detection: Auto-detects installed Chromium browsers and handles platform decryption (macOS Keychain, Linux libsecret). - Use Case: Before QA testing an authenticated dashboard, import your github.com or app session cookies so the headless browser can navigate logged-in pages immediately. ## Quick Start Ask the AI to import cookies from your browser so the headless session can access authenticated pages, then pick the domains in the picker UI that opens.

Frequently Asked Questions about setup-browser-cookies

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I import browser cookies into a headless browser session?

Run the cookie-import-browser command, which detects installed Chromium browsers and opens an interactive picker UI. Select the domains you want, and the cookies are decrypted and loaded into the Playwright session automatically.

How to authenticate a headless browser for QA testing without logging in manually?

Import cookies from your real browser profile into the headless session before testing. The imported session cookies persist between commands, so authenticated pages work immediately without re-entering credentials.

Can I import cookies for a specific domain without the picker UI?

Yes, pass the domain directly, for example cookie-import-browser comet --domain github.com. Replace the browser name with whichever installed Chromium browser holds the session you need.

Does cookie import work on macOS and Linux?

Yes. On macOS the first import per browser may trigger a Keychain dialog where you click Allow. On Linux, v11 cookies may require secret-tool or libsecret access, while v10 cookies use Chromium's standard fallback key.

Are my cookie values exposed when using the cookie picker?

No. The picker UI only shows domain names and cookie counts, never cookie values. Cookies are decrypted locally and loaded directly into the browse session.