Installation Guide
Relevant source files
The following files were used as context for generating this wiki page:
abx-dl is an all-in-one CLI tool designed to download and extract content from URLs using the ArchiveBox plugin ecosystem. It acts as a simplified interface to various scraping and archiving tools like wget, puppeteer, and yt-dlp.
The installation process covers both the core Python package and a dynamic dependency management system that lazily installs external binaries (e.g., Chrome, media downloaders) as they are required by specific plugins. This guide outlines the setup for end-users, developers, and the automated binary resolution logic used by the system.
Sources: README.md:1-12, pyproject.toml:4-10, skills/abx-dl/SKILL.md:1-10
Core Installation Methods
The primary package is written in Python (>=3.11) and can be installed via standard Python package managers.
Standard Installation
Users can install abx-dl directly from PyPI:
pip install abx-dl
Sources: README.md:105-106, pyproject.toml:7
One-Time Execution (uvx)
For users who prefer not to install the package globally, uvx can be used to run the CLI instantly:
uvx abx-dl 'https://example.com'
Sources: README.md:109-110, skills/abx-dl/SKILL.md:27-29
Development Setup
For contributors, the project uses uv for dependency management and environment isolation.
# Clone the repository and sync dependencies
uv sync --extra dev
# Activate the virtual environment
source .venv/bin/activate
Sources: CLAUDE.md:8-12, pyproject.toml:86-102
Automated Binary Dependency Management
abx-dl features a multi-phase installation logic. While the Python package provides the orchestration, many functional plugins (like chrome or wget) require external binaries.
The Dependency Pipeline
The system resolves these requirements through a series of specific events and hooks:
- Install Phase: Reads
config.json > required_binariesfrom enabled plugins. - BinaryRequest Hooks:
on_BinaryRequest__*hooks from provider plugins resolve or install binaries. - Binary Resolution: Emits
Binaryrecords once a valid path is found.
The diagram shows how the system lazily resolves binary dependencies before proceeding to the crawl phase.
Sources: README.md:52-60, abx_dl/cli.py:840-880, TODOs.md:13-25
Default Installation Locations
Dependencies are isolated from the system and stored in architecture-specific directories:
- Base Directory:
~/.config/abx/lib/{arch}/ - Python (Pip):
~/.config/abx/lib/{arch}/pip/venv/ - Node (NPM):
~/.config/abx/lib/{arch}/npm/
Sources: README.md:173-177, abx_dl/cli.py:53
CLI Commands for Installation
Users can manually trigger dependency installation or inspect the status of available plugins.
| Command | Description |
|---|---|
abx-dl install | Pre-installs all dependencies for enabled plugins. |
abx-dl install [plugin] | Installs dependencies for a specific plugin (e.g., wget, chrome). |
abx-dl plugins | Lists all plugins and shows which dependencies are missing/available. |
abx-dl --no-install | Runs the downloader but skips any plugins with missing dependencies. |
Sources: README.md:144-160, abx_dl/cli.py:1001-1015, skills/abx-dl/SKILL.md:33-45
Configuration and Environment
Installation behavior is modified via environment variables or the persistent configuration file.
Configuration Storage
- User Config:
~/.config/abx/config.env(stores user-provided values). - Derived Cache:
~/.config/abx/derived.env(stores resolved binary paths and install timestamps).
Sources: README.md:71-78, abx_dl/cli.py:85-101
Key Installation Variables
| Variable | Default | Description |
|---|---|---|
LIB_DIR | ~/.config/abx/lib | Root directory for installed binary dependencies. |
CONFIG_DIR | ~/.config/abx | Root directory for configuration files. |
ABX_PLUGINS_DIR | - | Override path to find ArchiveBox plugins. |
{PLUGIN}_BINARY | - | Hardcoded path to a specific binary (skips auto-resolution). |
Sources: README.md:183-184, skills/abx-dl/SKILL.md:92-98, abx_dl/models.py:530-535
Summary
abx-dl installation is designed to be minimal. The Python package acts as a bootstrap that identifies required tools based on the user's plugin selection. By default, it manages a self-contained environment for binaries in ~/.config/abx/, ensuring that complex dependencies like Chromium or yt-dlp do not conflict with system-level packages. For stable production use, running abx-dl install is recommended to verify the environment before initiating large crawl sessions.