Skip to main content

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

Metadata

Release files for chromium-cli 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chromium-cli 0.2.0
File Size Uploaded
chromium_cli-0.2.0.tar.gz 15.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chromium-cli 0.2.0
File Interpreter ABI Platform
chromium_cli-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.2 kB

Release files / chromium_cli-0.2.0.tar.gz

Download URL chromium_cli-0.2.0.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f2cb4c4c2a304dbde6c7bf130eb6121da57e3d888c12a5fb00448882c09679b2
BLAKE2b-256 checksum
How to use checksums
62c3c09dee35b3d76cf42f4c26d1293a8b1d228fe12838a87ca495ce8705bc5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / chromium_cli-0.2.0-py3-none-any.whl

Download URL chromium_cli-0.2.0-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5df6188df6d021afabb4950b98f24ab1fcf78dca8ddb6d33588494578b4465b3
BLAKE2b-256 checksum
How to use checksums
ad7e0138e8720ee053e1324af88afcc3b53d15d202e494f5259a980811b2fb84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page