setup-browser-cookies

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

107|7|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/no-session/pstack --skill setup-browser-cookies-no-session
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-browser-cookies
Source: https://github.com/no-session/pstack/tree/main/setup-browser-cookies
Command: npx skills add https://github.com/no-session/pstack --skill setup-browser-cookies-no-session

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Headless browser sessions start with no logged-in state, so QA testing authenticated pages fails or requires manual login every time. This Skill imports cookies from your real Chromium browser into the headless session so authenticated pages work immediately. ## Core Features & Use Cases - Interactive Cookie Picker: Opens a browser-based UI where you search domains and select which cookies to import, without exposing cookie values. - Direct Domain Import: Skip the UI and import cookies for a specific domain with a single command, e.g. for github.com. - CDP Mode Detection: Detects when you are already connected to your real browser via CDP and skips the import entirely. - Use Case: Before running QA tests on pages behind a login, import your session cookies from Chrome or Comet so the headless browser can access authenticated routes. ## Quick Start Ask the AI to import cookies from your browser so you can test logged-in 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 cookies into a headless browser for testing?

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

How do I test authenticated pages with Playwright without logging in?

Import cookies from your real browser session into the headless session first. Once imported, the browse session persists cookies between commands, so authenticated pages work immediately in subsequent tests.

Can I import cookies for a specific domain only?

Yes, pass the domain directly, for example cookie-import-browser comet --domain github.com. This skips the picker UI and imports only that domain's cookies from the specified browser.

Why does macOS show a Keychain dialog when importing browser cookies?

Chromium encrypts cookies using a key stored in the macOS Keychain, so the first import per browser triggers an access prompt. Click Allow or Always Allow to let the tool decrypt the cookies.

Do I need to import cookies if my browser is connected via CDP?

No. When the browse session is connected to your real browser via CDP, your cookies and sessions are already available, so the import step is skipped entirely.