Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

setup-browser-cookies

Skill by garrytan

Imports cookies from a real Chromium browser into gstack's headless browse session. It is for users who need signed-in sessions when testing a website with an AI assistant.

  • Score 94
  • 143k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install setup-browser-cookies

Built from the published package, never by AI.

git clone --depth 1 https://github.com/garrytan/gstack /tmp/gstack && mkdir -p ~/.claude/skills && cp -r /tmp/gstack/setup-browser-cookies ~/.claude/skills/setup-browser-cookies

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install setup-browser-cookies in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

setup-browser-cookies is a gstack skill that imports cookies from a real Chromium browser into the headless browse session used by gstack's $B browser. It first checks whether Aside already has the user's signed-in sessions, and ends if so. Otherwise it asks the user to choose the source browser, profile directory, domains and target URL before running any browser command.

The import runs through a picker or a direct command, with one domain per run. Optional flags add sign-in verification, which checks a CSS selector against an expected identity, and clearing of stale localStorage and sessionStorage. The skill reports the import receipt as a cookie count, storage status and sign-in status. It is aimed at users who need an authenticated session to test a site with an AI assistant.

Written from the project's SKILL.md and checked against it.

What it can do

  • Aside checkChecks whether Aside already has the user's signed-in sessions, so no import is needed.
  • Browser cookie importImports cookies from a chosen Chromium browser and profile into gstack's headless browser.
  • Picker or direct importLets the user confirm the browser, profile and domains in a picker, or run a direct import command.
  • Sign-in verificationOptionally checks a CSS selector against an expected identity after the target page reloads.
  • Stale storage clearingOptionally clears localStorage for the target origin and sessionStorage for the target tab on Chromium.
  • Import reportingReports the import receipt as imported count, storage reset status and sign-in status.

What you need

  • A Chromium-based browser with signed-in sessions to import from
  • gstack installed with the browse tool, built if the check reports setup is needed
  • On Windows, DPAPI-compatible cookies only

Try asking

  • Import my signed-in cookies from Chrome for example.com into the test browser
  • Set up an authenticated session on the staging site using my Default profile
  • Import cookies from my browser and verify I am logged in before testing

Good to know

  • Imported cookies apply to the whole browser context, not one tab.
  • Storage clearing works only on Chromium; other engines reject the reset but still import.
  • Windows does not support all App-Bound Encryption, so native extraction stays disabled.
  • Closing Chrome cannot bypass Chrome 136+ default-directory protection, including numbered profiles.

Security check

B
  • Allowed to use Bash without limitsIn SKILL.md

Checked automatically: setup-browser-cookies/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: BashReadAskUserQuestionBash(~/.claude/skills/gstack/bin/gstack-skill-load:*)

  • SKILL.md8 KB
  • SKILL.md.tmpl5 KB

Alternatives to setup-browser-cookies

All alternatives →

Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser

setup-browser-cookies: common questions

Does it import all cookies from my browser?

Only if the user explicitly consents to the --all option. It cannot be combined with a domain or with clearing storage, and by default the user chooses specific domains.

Does a cookie count prove I am signed in?

No. The source says cookie counts, zero imports and HTTP 200 never prove sign-in. Sign-in is verified only when the optional selector and expected identity match.

Can it use my real browser sessions directly?

If the Aside probe returns READY, the skill says no import is needed. If $B reports Mode: cdp, it is attached to the user's real browser and already has its sessions.

How do I install setup-browser-cookies?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is setup-browser-cookies free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is setup-browser-cookies safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use bash without limits). Review the code before you install. How grades work.

What are alternatives to setup-browser-cookies?

Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.

setup-browser-cookies Install

Add to stack

Loading.