setup-browser-cookies

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

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/LGJ-Jonathan/Jonathan_Global_Claude_Skills --skill setup-browser-cookies-lgj-jonathan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-browser-cookies
Source: https://github.com/LGJ-Jonathan/Jonathan_Global_Claude_Skills/tree/main/gstack/setup-browser-cookies
Command: npx skills add https://github.com/LGJ-Jonathan/Jonathan_Global_Claude_Skills --skill setup-browser-cookies-lgj-jonathan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Headless browser sessions start with no login state, so QA testing authenticated pages fails or requires manual re-login. This Skill imports cookies from your real Chromium browser into the headless browse 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 by specifying a domain (e.g., github.com) to import cookies for that site directly. - CDP mode detection: Detects when browse is already connected to your real browser via CDP and skips the import entirely. - Use Case: Before running QA tests on a staging site that requires login, import your session cookies from Chrome so the headless browser can access authenticated pages. ## Quick Start Ask the assistant to import cookies from your browser so you can test 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 cookies into a headless browser for testing?

Run the cookie-import-browser command from the gstack browse binary. It detects installed Chromium browsers and opens a picker UI where you select which domains to import into the Playwright session.

How do I test authenticated pages without logging in again?

Import your existing browser session cookies into the headless browse session before testing. The imported cookies persist between commands, so authenticated pages work immediately in subsequent browse commands.

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 cookies for just that domain from the specified browser.

Why does macOS show a Keychain dialog when importing 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 browse is connected via CDP?

No. When browse runs in CDP mode it is connected to your real browser, so your cookies and sessions are already available. The skill detects this and stops without importing.