setup-browser-cookies

Import Chromium cookies into a CDP-enabled Playwright headless session.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Import cookies from your real Chromium browser into the headless browse session, enabling authenticated test flows without repeated logins.

Core Features & Use Cases

  • Interactive cookie picker to select which cookie domains to import into the headless session.
  • Decrypts and loads cookies into Playwright sessions for deterministic QA testing.
  • Use cases include QA runs that require logged-in access to multiple domains and quick rehydration of sessions between tests.

Quick Start

Run the setup-browser-cookies skill to import cookies into your headless browser 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 real browser cookies into a Playwright headless session?

You can import real browser cookies into Playwright headless sessions by running this skill to decrypt and load them, enabling authenticated test flows without repeated logins. It bridges your real Chromium profile with the test environment.

Can I use cookies from my real Chromium browser for QA automation?

Yes, you can use cookies from your real Chromium browser for QA automation. The skill decrypts cookies from your local profile and loads them into the headless browser, allowing tests to run with authenticated pages across multiple domains.

How do I select specific domains when importing cookies for automated testing?

To select specific domains when importing cookies for automated testing, use the interactive cookie picker provided by the skill. This picker lets you choose exactly which domains to import into the headless session for deterministic QA testing.

Do I need CDP enabled to load cookies into Playwright?

Yes, you need CDP enabled to load cookies into Playwright. The skill enforces a CDP-enabled Playwright session to properly decrypt and transfer cookies from your real Chromium browser into the headless environment.

What is the best way to rehydrate logged-in sessions between Playwright tests?

The best way to rehydrate logged-in sessions between Playwright tests is to import real cookies into the headless session. This approach skips repeated logins and ensures tests run with authenticated access across required domains.

Why are my authenticated Playwright tests failing with headless browser sessions?

Authenticated Playwright tests fail in headless browser sessions because headless instances start without login state. This skill solves the problem by importing and decrypting cookies from your real Chromium browser to load authenticated pages.