Skip to main content
ArchiveBox

ArchiveBox Proxy

Browse once. Archive in the background. Replay from your collection.

HTTPS caching · Automatic captures · HTTP/3 · Archive replay

Get started · Connect a browser · CLI & configuration

Tests MIT License

① Your browser ② Proxy ③ ArchiveBox
The original authenticated X Likes session after scrolling → Cache

Hook →

← Capture requests
Reuse cache
The resulting ArchiveBox snapshot with preserved X posts and images
Browse and scroll to populate the cache. Cache → archive → upstream ArchiveBox runs its normal capture and saves the snapshot.

Browse through the proxy. ArchiveBox saves your visits in the background and reuses what your browser already downloaded.

  • 🌐 Browse normally. Your visits populate the HTTP/HTTPS response cache.
  • 📸 Archive automatically. Top-level navigations trigger normal ArchiveBox captures, with your plugins and authentication persona.
  • ⚡ Reuse what you already downloaded. ArchiveBox reads through the same cache; additional resources go upstream through the same proxy.
  • ⏪ Replay from your collection. Browse saved content from your ArchiveBox collection when it is available.

Installation

Linux & macOS · ARM64 & AMD64 · Python 3.11+

Install with uv, trust the certificate, and start:

uv tool install archivebox-proxy
archivebox-proxy --install-ca
archivebox-proxy --socks

Already using a Python environment? Install with uv pip install archivebox-proxy or pip install archivebox-proxy instead.

Look for ArchiveBox Proxy is ready, then connect your browser.

Archive pages as you browse: install ArchiveBox and initialize a collection, then select it:

archivebox-proxy --socks --archivebox ~/archivebox/data

For authenticated pages, add --persona NAME to use the same saved session as your browser. Captures reuse the proxy cache, and saved snapshots become available for replay.

Docker Compose

Download this repository and run docker compose up -d --build. Look for ArchiveBox Proxy is ready in docker compose logs.

Export its certificate and trust it on your computer:

docker compose exec -T proxy archivebox-proxy --export-ca > proxelar-ca.pem
archivebox-proxy --install-ca proxelar-ca.pem

To include ArchiveBox, set ARCHIVEBOX_DATA to your initialized collection and use the capture configuration. It uses archivebox/archivebox:dev. The archive configuration mounts an existing collection for replay.

Configuring an HTTPS Client

On macOS, open System Settings → Wi-Fi → Details → Proxies. Enable SOCKS proxy, enter 127.0.0.1, port 8080, and click OK. Chrome uses these settings automatically.

macOS SOCKS proxy setup with server 127.0.0.1 and port 8080

Browse normally. With --archivebox, your visits also become ArchiveBox snapshots.

Connect using Setup
HTTP/HTTPS Start with --http; set both browser proxy fields to 127.0.0.1:8080
SOCKS5 Start with --socks; use 127.0.0.1:8080 and enable proxy DNS in your browser
WireGuard Start with --wireguard; import the generated configuration shown at startup into WireGuard

For another device or a Wi-Fi hotspot, use this computer's LAN address, e.g. --bind 192.168.1.189. Export the certificate with --export-ca proxelar-ca.pem and trust it on the other computer with archivebox-proxy --install-ca proxelar-ca.pem. For WireGuard, also set --wireguard-endpoint 192.168.1.189:8080.

ArchiveBox's capture tools receive their proxy and certificate settings automatically.

Modes

One command selects how clients connect:

Command Transport
archivebox-proxy --http HTTP/HTTPS proxy; default
archivebox-proxy --socks SOCKS5
archivebox-proxy --wireguard WireGuard tunnel
archivebox-proxy --reverse --target https://news.ycombinator.com Reverse proxy
archivebox-proxy --dns DNS proxy
archivebox-proxy --udp --target 1.1.1.1:53 UDP forwarding

HTTP/3 capture and replay are available in reverse mode with an http3:// target. WebSocket connections are supported.

Turn recording, caching, and archive replay on or off:

Setting CLI Environment
Automatically archive page visits --record / --no-record PROXY_RECORD=true / false
Proxy response cache --cache / --no-cache PROXY_CACHE=true / false
Replay from the ArchiveBox collection --replay / --no-replay PROXY_REPLAY=true / false

All three are enabled by default. Select a collection with --archivebox PATH for capture and replay, or --archive PATH for replay only.

Cache settings and advanced options
Option Default
--policy auto Fresh cache → ArchiveBox archive → upstream
--policy record Upstream; replace matching cache entries
--policy replay Cache, including expired entries → archive → upstream
--policy offline Cache, including expired entries → archive → HTTP 504 on a miss
--cache-gb 50 50 GiB disk budget, least-recently-used eviction
--body-limit 67108864 64 MiB per request or response body
--data PATH Your user's application data directory
--port 8080 Browser listener
--worker-port 8082 Capture listener

Cached responses are reused for at least 24 hours. Sites can allow longer reuse. Use --policy record to fetch fresh responses, or --no-cache to turn caching off.

Options also accept PROXY_ environment variables: --data → PROXY_DATA, --port → PROXY_PORT, and --archivebox-dir → PROXY_ARCHIVEBOX_DIR. CLI flags take precedence. Run archivebox-proxy --help for all options.

Use --hook to run your own command when you visit a page. See archivebox-proxy --help for its arguments.

MIT. Powered by Proxelar and ArchiveBox.

Metadata

Release files for archivebox-proxy 0.1.0

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

Built distributions (wheels)

Table of built distributions (wheels) for archivebox-proxy 0.1.0
File Actions
archivebox_proxy-0.1.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for archivebox_proxy-0.1.0-py3-none-manylinux_2_28_x86_64.whl
archivebox_proxy-0.1.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for archivebox_proxy-0.1.0-py3-none-manylinux_2_28_aarch64.whl
archivebox_proxy-0.1.0-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details for archivebox_proxy-0.1.0-py3-none-macosx_11_0_x86_64.whl
archivebox_proxy-0.1.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for archivebox_proxy-0.1.0-py3-none-macosx_11_0_arm64.whl

Total release size: 28.2 MB

Release files / archivebox_proxy-0.1.0-py3-none-manylinux_2_28_x86_64.whl

Download URL archivebox_proxy-0.1.0-py3-none-manylinux_2_28_x86_64.whl
Size 7.2 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
23569df60a14eb15fa9271ffbafa664ee2a5400fd6af33a3fc6a52383dbe8b51
BLAKE2b-256 checksum
How to use checksums
d736200162187d6d7e84ec7856988f9ebcf4c06a58c9a8de6de330fc1cd62593
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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}

Release files / archivebox_proxy-0.1.0-py3-none-manylinux_2_28_aarch64.whl

Download URL archivebox_proxy-0.1.0-py3-none-manylinux_2_28_aarch64.whl
Size 7.2 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
6e9904f27fdf567cb50eb54606ea507cd12157582d280304c8842476ed6cc4b7
BLAKE2b-256 checksum
How to use checksums
226273b0f9f59e295855c318753e598c42a39bfa21d65552e63b0c6962690440
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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}

Release files / archivebox_proxy-0.1.0-py3-none-macosx_11_0_x86_64.whl

Download URL archivebox_proxy-0.1.0-py3-none-macosx_11_0_x86_64.whl
Size 7.1 MB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
4fc1ef46a3c7d5e664cf72682a5cf49f509e9896de85ea0f41ba7206df767cea
BLAKE2b-256 checksum
How to use checksums
ad48264aae1f5810447fefc87be6e61f08c95cf1d00a8cd20b68f220892dbe41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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}

Release files / archivebox_proxy-0.1.0-py3-none-macosx_11_0_arm64.whl

Download URL archivebox_proxy-0.1.0-py3-none-macosx_11_0_arm64.whl
Size 6.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d27ab2450b3ab4edd3a953a368e280bb349b59aaedc44485e92ee4038e5954f2
BLAKE2b-256 checksum
How to use checksums
a7a0d556c11b743ac3d54b8899c5a08b9aaaa4217f3af39d80224c5b7f1f3e47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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}

Security for archivebox-proxy 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

4 release files No provenance

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