| name | export-browser-cookies |
| version | 1.0.0 |
| description | Export cookies from your real browser (Comet, Chrome, Arc, Brave, Edge).
|
| allowed-tools | ["Bash","Read"] |
Setup Browser Cookies
Import logged-in sessions from your real browser into the headless browse session.
Quick start
Export all non-expired cookies from Chrome:
$B ./export-cookies --browser chrome
Export only one domain:
$B ./export-cookies --browser chrome --domain .github.com
Command format
$B ./export-cookies [--browser <name>] [--domain <domain1,domain2,...>] [--profile <profile>] [--import-by <target>] [--help]
Parameters
--browser
- Purpose: Select which browser to read cookies from.
- Default:
chrome
- Supported values:
comet, perplexity, chrome, google-chrome, arc, brave, edge
- Typical usage:
$B ./export-cookies --browser arc
--domain
- Purpose: Filter cookies by exact domain list.
- Format: Comma-separated domains, no spaces.
- Behavior when omitted: Export all non-expired cookies.
- Important: Domain matching is exact (
host_key), usually with leading dot (for example .github.com).
- Typical usage:
$B ./export-cookies --browser chrome --domain .github.com,.google.com
--profile
- Purpose: Select browser profile directory.
- Default:
Default
- Common values:
Default, Profile 1, Profile 2
- Use when your login is stored in a non-default profile.
- Typical usage:
$B ./export-cookies --browser chrome --profile "Profile 1" --domain .github.com
--import-by
- Purpose: Choose where cookies are imported after export.
- Supported values in this skill:
agent-browser: Import cookies for agent-browser automation flow.
pinchtab: Import cookies for PinchTab flow.
- Typical usage:
$B ./export-cookies --browser chrome --domain .github.com --import-by agent-browser
$B ./export-cookies --browser chrome --domain .github.com --import-by pinchtab
--help / -h
- Purpose: Show command help and examples.
- Typical usage:
$B ./export-cookies --help
Common usage patterns
Export all cookies from a browser:
$B ./export-cookies --browser brave
Export specific domains and import to agent-browser:
$B ./export-cookies --browser chrome --domain .github.com,.openai.com --import-by agent-browser
Export cookies from a specific profile and import to PinchTab:
$B ./export-cookies --browser edge --profile "Profile 1" --domain .github.com --import-by pinchtab
How it works
- Locate browser cookie database by browser and profile.
- Read and decrypt non-expired cookies from local browser storage.
- Filter by
--domain when provided.
- Export cookies and optionally import by
--import-by.
Notes
- First run per browser may trigger a macOS Keychain dialog. Click "Allow" or "Always Allow".
- Only domain names and cookie counts are shown in interactive flow; cookie values are not displayed.
- This tool is intended for Chromium-based browsers on macOS.