Browse once. Archive in the background. Replay from your collection.
HTTPS caching · Automatic captures · HTTP/3 · Archive replay
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 --socksAlready 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/dataFor 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.pemThe included docker-compose.yml starts both ArchiveBox Proxy and archivebox/archivebox:dev. Open archivebox.localhost:8000 to browse your snapshots. Your collection is saved in ~/archivebox/data; set ARCHIVEBOX_DATA to use another location.
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.
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.
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.

