English
Get started

← All templates · Feeds and bookmarks

Deploy ArchiveBox in one click

Save web pages, videos and articles as HTML, PDF, screenshots and media files, your own web archive

A self-hosted alternative to Wayback Machine and archive.today.

What is ArchiveBox?

ArchiveBox is an open-source web archiver, a Wayback Machine of your own. Give it a link, a feed or a bookmarks file, and it saves each page several ways at once: the original HTML, a single-file HTML copy, a PDF, a screenshot, a WARC and the article text. Videos and audio come down with yt-dlp, and GitHub or GitLab links are cloned with git. Imports can run on a schedule, and tags and full-text search keep a large collection findable.

People self-host it so the pages they rely on outlive the sites that published them, including pages behind a login that public archives cannot reach. Each snapshot is a folder of ordinary files indexed in SQLite, readable without ArchiveBox. It suits anyone keeping evidence for a legal case, research sources or years of bookmarks. The catch: big sites such as Reddit and Twitter block archiving bots, and getting past them takes cookies or extra setup.

Hosting ArchiveBox on Pethost

  1. You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
  2. New project opens at ArchiveBox. You fill in what it asks for and click Create project: Admin password.
  3. In a minute or two ArchiveBox is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
  4. It is a project like any other: you or your agent can change it, roll it back or restore it.

Questions about ArchiveBox

Is ArchiveBox free and open source?

Yes. ArchiveBox is free and open source under the MIT License. The project operates as a US 501(c)(3) nonprofit through fiscal sponsorship and takes tax-deductible donations.

Does ArchiveBox send my links to archive.org?

Yes, by default: ArchiveBox submits each URL to the Wayback Machine as a backup copy and saves the link it gets back. Setting ARCHIVEDOTORG_ENABLED to False keeps a private archive local only.

Can ArchiveBox archive pages behind a login or paywall?

Yes. Import a signed-in Chrome profile into a persona, or give it a cookies.txt file, and ArchiveBox archives as that account. Anyone who can view the archive may see those cookies and session tokens, so keep it private.

Can I import my bookmarks into ArchiveBox?

Yes. ArchiveBox reads browser bookmark exports, RSS and Atom feeds, and HTML, JSON or text lists of URLs. Its README links the export steps for Pinboard, Instapaper, Shaarli, Wallabag and other services.

Is there an ArchiveBox browser extension or mobile app?

Yes. The extension for Chrome, Firefox and Edge, and ArchiveBox.app for iPhone, iPad and Mac with its Safari extension, save pages to your server with an API key. The extension can also archive pages matching URL patterns automatically.

How much memory and disk does ArchiveBox need?

ArchiveBox is moderate: about 1 GB while Chromium saves a page; each page takes megabytes, a video far more. On Pethost the Grow plan is enough for it, with room for other apps beside it.

ArchiveBox Docker Compose file

The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written.

Containers: archivebox (archivebox/archivebox:0.9.73).

Volumes, in the nightly backup: data, out.

services:
  archivebox:
    image: archivebox/archivebox:0.9.73
    restart: unless-stopped
    environment:
      # One host, so archived pages are replayed without their JavaScript.
      BASE_URL: ${URL}
      SERVER_SECURITY_MODE: safe-onedomain-nojsreplay
      # Made at the first start; changing them later has no effect.
      ADMIN_USERNAME: admin
      ADMIN_PASSWORD: ${ADMIN_PASSWORD}
      # Nothing is seen or added without signing in.
      PERMISSIONS: private
      PUBLIC_INDEX: "False"
      PUBLIC_ADD_VIEW: "False"
    # Chrome needs more shared memory than Docker's 64 MB.
    shm_size: 1gb
    # Both folders the image declares as volumes: the collection and its exports.
    volumes:
      - data:/data
      - out:/out

volumes:
  data:
  out:

More in Feeds and bookmarks