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.
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-cookiesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/garrytan/gstack /tmp/gstack && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/gstack/setup-browser-cookies ~/.gemini/antigravity-cli/skills/setup-browser-cookiesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install setup-browser-cookies in Antigravity CLI
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 →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
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.
