Usage
Listing cookies
The cookies command extracts cookies from a browser. The browser flag is required.
Basic usage
Filter by domain
Use -d or --domain to filter cookies by domain (partial match):
Select a Chrome profile
Chrome supports multiple profiles. Use -p or --profile to select one:
# List available profiles first
uvx cookietuner profiles -b chrome
# Then use a specific profile
uvx cookietuner cookies -b chrome -p "Profile 1"
Output formats
Use -o or --output to change the output format.
Table (default)
Full table with all cookie details:
Shows: Domain, Name, Value, Expires, Flags (Secure, HttpOnly, SameSite)
Short
Compact table with essential info only:
Shows: Domain, Name, Value
Line
Space-separated format, one cookie per line (full value, no truncation):
Output format: domain name value
Scripting
The line format is useful for shell scripting:
JSON
Machine-readable JSON output:
Example output:
[
{
"domain": ".github.com",
"name": "logged_in",
"value": "yes",
"path": "/",
"expires": "2027-01-27T12:00:00Z",
"is_secure": true,
"is_httponly": true,
"same_site": "lax",
"is_expired": false
}
]
Piping JSON
Combine with jq for filtering:
Listing profiles
The profiles command shows available browser profiles:
Command reference
cookies
Usage: cookietuner cookies [OPTIONS]
Options:
-b, --browser [chrome|safari] Browser to extract from (required)
-d, --domain TEXT Filter by domain (partial match)
-p, --profile TEXT Browser profile name [default: Default]
-o, --output [table|short|line|json] Output format [default: table]
--help Show this message and exit.