Skip to main content

Extract and display cookies from macOS browsers (Chrome, Safari)

Project description

cookietuner

Extract and display cookies from macOS browsers.
Decrypts Chrome's macOS Keychain entries and parses Safari's binary cookie store.

GitHub · Sponsor

PyPI License Stars


Get Started

Run without installing:

uvx cookietuner

Or install permanently:

uv tool install cookietuner

What is cookietuner?

A command-line tool that reads cookies straight from your local macOS browser stores. It decrypts Chrome's encrypted cookie database via the macOS Keychain (Chrome 130+ format) and parses Safari's binary Cookies.binarycookies file directly. No browser automation, no extensions.

Features

  • Chrome support — decrypts cookies using macOS Keychain, Chrome 130+ format.
  • Safari support — parses the binary cookies format with SameSite detection.
  • Multiple output formats — table, short, line, and JSON.
  • Domain filtering — filter by partial domain match.
  • Profile selection — choose which browser profile to read from.
  • Cookie metadata — expiration, Secure, HttpOnly, and SameSite flags.

Usage

List cookies

# Chrome cookies (browser flag is required)
cookietuner cookies -b chrome

# Safari cookies
cookietuner cookies -b safari

# Filter by domain
cookietuner cookies -b chrome -d google.com

# Pick a Chrome profile
cookietuner cookies -b chrome -p "Profile 1"

Output formats

Format Flag Use case
Full table (default) -o table Browsing all cookie details
Short table -o short Just domain, name, value
Line -o line Space-separated, for shell scripting
JSON -o json Piping into jq or another tool

List browser profiles

# All profiles
cookietuner profiles

# Filter by browser
cookietuner profiles -b chrome

Requirements

  • macOS (the tool reads macOS-specific cookie stores).
  • Python 3.14+.
  • Chrome and/or Safari.

Development

git clone https://github.com/alltuner/cookietuner.git
cd cookietuner
uv sync
uv run pytest
uv run cookietuner

License

MIT

Support the project

cookietuner is an open source project built by David Poblador i Garcia through All Tuner Labs.

If this project was useful to you, consider supporting its development.


Built by David Poblador i Garcia with the support of All Tuner Labs.
Made with ❤️ in Poblenou, Barcelona.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cookietuner-0.1.4.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cookietuner-0.1.4-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file cookietuner-0.1.4.tar.gz.

File metadata

  • Download URL: cookietuner-0.1.4.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cookietuner-0.1.4.tar.gz
Algorithm Hash digest
SHA256 37d42f90102e44cd4dee3af4c5dbf00cd2b3c5053068aa6d262af07d690efb1d
MD5 506f9912535452ad918f40c1df907e21
BLAKE2b-256 500609b2fca1756d62a0af6bb6b8857f248e3d5cc0c09fcf80096b95b135cb58

See more details on using hashes here.

File details

Details for the file cookietuner-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: cookietuner-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cookietuner-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0983dd7cda54acfd52002d0e24fa088f7568c660cd52b8a89f1e6812238189b1
MD5 1e11f094fcbdaffd4ca876a012d6c006
BLAKE2b-256 cd78d89a959000b893905c1d73c7ea8c5ec3ca68dac65ba668309b41953181eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page