Skip to main content

CLI tool for accessing Chromium browser data (tabs, history, bookmarks)

Project description

chromium-cli

Command-line tool for accessing Chromium browser data (tabs, history, bookmarks).

Works with Brave, Chrome, and Chromium.

Installation

# Using uvx (recommended)
uvx chromium-cli

# Or install with pip
pip install chromium-cli

System Requirements

Requires the LevelDB library (inherited from chromium-sync-mcp):

# macOS
brew install leveldb

# Ubuntu/Debian
sudo apt-get install libleveldb-dev

# Fedora
sudo dnf install leveldb-devel

First Run

On first run, chromium-cli will automatically detect installed browsers and prompt you to select one:

$ chromium-cli status

🔍 Multiple browser profiles detected:

  1. brave      /Users/you/Library/Application Support/BraveSoftware/Brave-Browser/Default
  2. chrome     /Users/you/Library/Application Support/Google/Chrome/Default

Select a browser [1]: 1

💾 Save as default? [Y/n]: y
✓ Saved to ~/.config/chromium-sync/profile

Commands

Configuration

# Show current configuration
chromium-cli config show

# Interactively select a browser
chromium-cli config set

# Manually set profile path
chromium-cli config set-path /path/to/profile

Tabs

# Show local browser tabs
chromium-cli tabs local

# Show tabs from all synced devices
chromium-cli tabs synced

# JSON output
chromium-cli tabs local --json

History

# Search by text (substring match)
chromium-cli history -q github

# Search by regex pattern
chromium-cli history -p "docs\\.python\\.org"

# Limit results
chromium-cli history -q python -l 50

# Filter by date
chromium-cli history --days 7
chromium-cli history --after 2026-01-01
chromium-cli history --before 2026-02-01

# JSON output
chromium-cli history -q python --json

Bookmarks

# List all bookmarks
chromium-cli bookmarks list

# Search bookmarks
chromium-cli bookmarks search python

# Filter by folder ID
chromium-cli bookmarks list --folder 123

# JSON output
chromium-cli bookmarks search python --json

Status

# Check what data is accessible
chromium-cli status

Environment Variables

Set CHROMIUM_PROFILE_PATH to override auto-detection:

export CHROMIUM_PROFILE_PATH=~/.config/google-chrome/Default
chromium-cli status

How It Works

This tool uses the chromium-sync-mcp library to read directly from your browser's local profile files:

  • History: SQLite database
  • Bookmarks: JSON file
  • Synced Tabs: LevelDB (contains tabs from all your synced devices)

No authentication or network requests required.

License

Apache 2.0

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

chromium_cli-0.2.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

chromium_cli-0.2.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file chromium_cli-0.2.0.tar.gz.

File metadata

  • Download URL: chromium_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for chromium_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f2cb4c4c2a304dbde6c7bf130eb6121da57e3d888c12a5fb00448882c09679b2
MD5 3600fea0cdfb4e41f5265f4f6c16249b
BLAKE2b-256 62c3c09dee35b3d76cf42f4c26d1293a8b1d228fe12838a87ca495ce8705bc5c

See more details on using hashes here.

File details

Details for the file chromium_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: chromium_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for chromium_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5df6188df6d021afabb4950b98f24ab1fcf78dca8ddb6d33588494578b4465b3
MD5 f58964974f5d2c0b83e3781ebd325cb0
BLAKE2b-256 ad7e0138e8720ee053e1324af88afcc3b53d15d202e494f5259a980811b2fb84

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