setup-browser-cookies

Import Chromium browser cookies into a Playwright headless session.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/24601/gastack-pre-fork --skill setup-browser-cookies-24601
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-browser-cookies
Source: https://github.com/24601/gastack-pre-fork/tree/main/setup-browser-cookies
Command: npx skills add https://github.com/24601/gastack-pre-fork --skill setup-browser-cookies-24601

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables transferring authenticated browser sessions from a user's real Chromium browser into the headless browse session so QA and automation can access logged-in pages without re-authentication.

Core Features & Use Cases

  • Interactive cookie picker: Opens a browser UI to select which domains' cookies to import.
  • Direct domain import: Accept a domain argument to skip the UI and import cookies directly.
  • Playwright integration: Decrypts cookies and loads them into the Playwright headless session so subsequent automated browsing uses imported sessions.
  • Use case: Run before QA runs to test authenticated pages, or when asked to import cookies, log in to the site, or authenticate the browser in automated workflows.

Quick Start

Run the setup-browser-cookies skill to open the cookie picker and import selected domains from your Chromium browser into the headless session.

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 Chromium cookies into a Playwright headless session?

To import Chromium cookies into a Playwright headless session, this skill detects your installed browser, decrypts the cookies, and loads them directly into the automated browsing context.

Can I run Playwright automated tests on authenticated pages without logging in?

Yes, you can run QA tests on authenticated pages without logging in by transferring an active browser session. This skill decrypts your existing Chromium cookies and applies them to the headless environment.

What is the best way to transfer an authenticated browser session for QA automation?

The best way to transfer an authenticated browser session for QA is importing cookies from a real Chromium browser. You can use an interactive picker or specify a domain directly to load them into Playwright.

Do I need any specific binaries to decrypt and load browser cookies for testing?

Yes, decrypting and loading browser cookies requires the gstack browse binary to be built and accessible in your environment. It also requires an installed Chromium browser to extract the authentication data.

Does the cookie import process support selecting specific domains?

Yes, the cookie import process supports selecting specific domains. It offers an interactive domain picker UI to choose which sites' cookies to import, or accepts a direct domain argument to skip the UI entirely.

Why are my imported cookies not working in the headless browse session?

Imported cookies may not work if the gstack browse binary is not built or accessible, or if the source Chromium browser lacks the active authenticated sessions needed to decrypt and load the login state.