setup-browser-cookies

Import cookies from Chromium-based browsers into headless Playwright sessions.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/caraseli02/MoldovaDirect --skill setup-browser-cookies-caraseli02
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-browser-cookies
Source: https://github.com/caraseli02/MoldovaDirect/tree/main/.claude/skills/gstack/setup-browser-cookies
Command: npx skills add https://github.com/caraseli02/MoldovaDirect --skill setup-browser-cookies-caraseli02

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Import cookies from your real Chromium-based browsers into a headless Playwright session to preserve authenticated states during automated testing.

Core Features & Use Cases

  • Interactive cookie picker to choose which domains to import
  • Supports Comet, Chrome, Arc, Brave, and Edge browsers
  • Injects cookies into the Playwright context for immediate test use

Quick Start

Launch the setup-browser-cookies skill to import cookies from your real browser into the headless session and open the interactive picker.

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 headless Playwright session?

To import real browser cookies into a headless Playwright session, use an interactive picker to select domains from your local Chromium-based browsers. The tool handles secure decryption and injects the authenticated cookies directly into the test context.

Can I use my existing Chrome or Arc authenticated state for QA automation?

Yes, you can use your existing authenticated state for QA automation. The tool supports cookie import from Comet, Chrome, Arc, Brave, and Edge, allowing you to preserve login sessions across your automated testing environments.

How do I target specific domains when injecting cookies into Playwright?

You can target specific domains when injecting cookies into Playwright by using the interactive picker UI or via optional domain targeting flags in the CLI. This ensures only the required authenticated cookies are loaded into the test context.

What is the best way to test authenticated pages in headless testing without logging in each time?

The best way to test authenticated pages in headless testing without repeated logins is importing existing browser cookies. This bypasses authentication flows by directly loading decrypted cookies from your real browser profile into the Playwright context.

Does this cookie import approach work with browsers other than Chromium?

This cookie import approach currently works only with Chromium-based browsers. It explicitly supports cookie detection and decryption from Comet, Chrome, Arc, Brave, and Edge to inject into your Playwright session.

Why do my Playwright authenticated tests fail when running headless?

Playwright authenticated tests often fail headless because the session lacks valid cookies. Importing real browser cookies from your local profiles into the headless context preserves the authenticated state needed for QA automation.