Skip to content
Back to skills

Setup Browser Cookies

ASecurity

Import browser cookies from a real Chromium browser into the headless browse session, so browse can test a logged-in site. Use when the person says import browser cookies, log in to the test site, or set up an authenticated session. Runs on the gstack browse engine, an Add-on.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentsgo

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add foxrun-ai/foxrun --skill setup-browser-cookies --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Setup Browser Cookies?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Setup Browser Cookies
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/foxrun-ai-setup-browser-cookies/badge)](https://www.skillsdirectory.com/skills/foxrun-ai-setup-browser-cookies)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: setup-browser-cookies
description: "Import browser cookies from a real Chromium browser into the headless browse session, so browse can test a logged-in site. Use when the person says import browser cookies, log in to the test site, or set up an authenticated session. Runs on the gstack browse engine, an Add-on."
kind: driving
---

# setup-browser-cookies

Copy logged-in sessions from the person's real Chromium browser into the headless browse session.
The `browse` skill then reaches pages behind a login without a password typed by the agent.

**Add-on:** the gstack browse engine, the same one as `browse`. Foxrun ships this skill, not the engine.
The person installs the engine from the tool guide page `tools/cli/gstack-browse.md`.
**Mac-only:** no. The engine reads cookies on macOS (Keychain) and Linux (libsecret).

## Trigger phrases

`import browser cookies` · `log in to the test site` · `set up an authenticated session`

## Steps

1. Find the engine with step 1 of the `browse` skill.
   Done when you have `READY: <path>` in `$B`.
   On `NO_ENGINE`, stop. Tell the person the gstack engine is an Add-on and give the install page.

2. Check if browse already uses the real browser.

   ```sh
   $B status 2>/dev/null | grep -q "Mode: cdp" && echo "CDP_MODE=true" || echo "CDP_MODE=false"
   ```

   With `CDP_MODE=true`, the real browser's sessions are already there. Say so and stop.
   Done when you know the mode.

3. Pick the domains.
   If the person named a domain, import it directly:

   ```sh
   $B cookie-import-browser <browser> --domain <domain>
   ```

   With no domain, open the picker: `$B cookie-import-browser`.
   The picker opens in the person's browser. They choose the domains, then tell you they are done.
   Done when the import command exits 0, or the person says the picker is done.

4. Verify.

   ```sh
   $B cookies
   ```

   Report the domains and the cookie count for each. Never print a cookie value.
   Done when each requested domain shows one or more cookies.

## Gotchas

- On macOS, the first import from a browser shows a Keychain prompt. The person clicks Allow. The agent never clicks it.
- Import only the domains the person named. Cookies are logins; more domains means more risk.
- The picker shows domain names and counts only. Keep it that way in the report.
- The headless session keeps cookies only while the engine runs, unless the person opts in to `BROWSE_PERSIST_STATE=1`.

## Stop

Close only the picker tab you opened.
Never import a domain the person did not name or pick.

Files in this skill

  • SKILL.md2.5 KB
  • replays/read-no-cookie-values.json220 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.