Skip to content

How to Set Up Linkwarden on a Linux Server – Safely Store Bookmarks and Copies of Web Pages

Set up Linkwarden as a One-Click App or with Docker Compose on your VPS, and save bookmarks with screenshots, PDFs, and copies of web pages that you can search on all your devices.

1 December 202611 min read0 Views0 helpful

Introduction

Linkwarden is a self-hosted bookmark manager. Unlike browser bookmarks, Linkwarden doesn’t just save the link—it also archives the page as a screenshot, a PDF, a readable text version, and a complete copy of the website. If the original page later disappears or its content changes, you’ll still have your copy. Organize links into collections and add tags, search their full text, and share collections with other people.

This guide shows you two ways to get started: the easy way, as a One-Click App on your VPS, and manual installation with Docker Compose. After that, you’ll learn how to save links, import existing bookmarks, and connect the browser extension or smartphone app.

When Linkwarden Makes Sense on a VPS

  • Bookmarks that won’t disappear: Articles, guides, or product pages remain available as copies, even if the page goes offline or disappears behind a paywall.
  • One place for all your devices: Save links from your PC, laptop, or phone and find them everywhere, without depending on a particular browser.
  • Full-text search: Linkwarden searches not just titles and tags, but also the text of archived pages.
  • Collect links together: Share research, project links, or recipes with family, friends, or your team as a collection.
  • Your data stays with you: Links and copies are stored on your own server, not with a third-party service.

Linkwarden is less suitable if you only want to sync a few bookmarks between your browsers. Your browser’s sync feature is enough for that. You’ll also need significantly more storage for very large archives with tens of thousands of pages, since every archived page takes up space.

The Easy Way: Linkwarden as a One-Click App

With your VPS’s One-Click Apps, Linkwarden will be up and running at its own address with HTTPS in just a few minutes. The app sets up the database, search, and an admin account with a secure password for you. Registration is disabled by default: you create additional accounts as an admin.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See VPS: One-Click Apps for instructions.
  • At least 1 GB RAM, 1 vCPU core, and 5 GB storage. 3 GB RAM and 2 vCPU cores are recommended. Linkwarden opens each new page in a built-in browser to archive it, which temporarily increases memory usage. Disk space usage grows with each archived page.
  • An address for Linkwarden: either a free subdomain on zap.cloud or your own domain, such as links.example.com.

Install

  1. Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
  2. Search the App catalog for “Linkwarden.” You’ll see two cards with this name. Choose the card with the green ZAP badge and click Install app.
  3. Enter a name under App name and leave Use a custom subdomain or zap.cloud enabled. Choose the address where Linkwarden should be available.
  4. Under App configuration, you’ll see the LINKWARDEN_DISABLE_REGISTRATION field set to true. Leave it as is to keep registration disabled. The app generates the four passwords under Automatically generated values for the database, search, sessions, and admin account.
  5. Click Queue installation.
Info: Two cards named Linkwarden

This guide covers the card with the ZAP badge. Only this card creates an admin account and disables registration. The second card, without a badge, is a general template: registration is open, and the first account to register becomes the admin. The steps in this guide do not apply to that card.

On first startup, the app downloads its images and sets up the database. After a few minutes, the app’s status will show Online. Open the login page using the app card’s Access link.

First Login: Find Your Login Details

The app creates the admin account before its first startup. Under Login, the app card notes that the username is predefined but doesn’t show it. The username is always:

Code
admin

You can find the password in the app settings (gear icon) under App environment > Automatically generated values, in the SERVICE_PASSWORD_LINKWARDENADMIN field. Click the eye icon to show it or the copy icon to copy it. Enter both on the login page under Username and Password.

After logging in, you’ll land on the Dashboard, which shows your latest links, pinned links, and counts for collections and tags.

The interface is initially in English. To switch to another language, such as German, go to Settings > Account, choose it under Language, and confirm with Save Changes.

Info: Change your password

Set a custom password in Linkwarden under Settings > Password. The value in the app environment will no longer apply. The other fields under Automatically generated values are the database and search passwords, as well as the key for login sessions. Don’t change them, or the app may no longer start properly or all users may be logged out.

Create Additional Accounts

Registration is disabled. Anyone who knows the address can’t create an account, and Linkwarden will respond with “Registration is disabled.” As an admin, you can create additional accounts: Open your account menu at the bottom left (Admin), select Server Administration, and click the plus icon in the top right under User Administration. In the Create New User window, enter a display name, username, and password, then confirm with Create User. Share the login details with the person and ask them to change their password after their first login.

If you do want to enable registration, set the LINKWARDEN_DISABLE_REGISTRATION field to false in the App environment and click Save. The app will restart with the new setting. To disable registration again, follow the same steps and set it to true.

Warning: Only enable registration if you intend to

Anyone who registers on an open instance can create links and use your server to retrieve and archive any website. Keep registration disabled and create accounts yourself.

Updates and Backups

  • App updates: The app runs a fixed version of Linkwarden (currently 2.17.0). In the app settings (gear icon) > App update, click Check for updates to see whether a new version of the app is available, then install it with Apply update. Linkwarden automatically updates the database on startup. Your links, copies, and accounts will remain intact.
  • Backups: A VPS backup from the Backups tab also backs up the app’s volumes: the database (accounts, links, collections, and tags), linkwarden-data (screenshots, PDFs, and page copies), and linkwarden-meili (search index).
  • Uninstalling: Under App actions > Uninstall app, you can also delete the data volumes. If you do, all links and archived pages will be permanently deleted.

Manual Installation

The rest of this guide covers manual installation of Linkwarden with Docker Compose, for example on a server without One-Click Apps. You’ll run Linkwarden, PostgreSQL, and Meilisearch in containers, initially make Linkwarden available only locally, create your account, disable registration, and then make Linkwarden accessible through nginx with a Let’s Encrypt certificate.

Requirements

MinimumRecommended
CPU1 vCPU core2 vCPU cores
RAM1 GB3 GB
Storage5 GB20 GB or more, depending on the number of archived pages

You’ll also need:

Prepare the Firewall

Linkwarden only needs the web ports to be accessible externally. Open SSH, HTTP, and HTTPS in ufw:

Code
sudo apt install -y ufw
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable

Don’t open Linkwarden’s port (3000). Docker bypasses ufw rules for published ports, so you’ll bind it to 127.0.0.1 in the Compose file. For more information about firewall rules, see VPS: Open Ports and Manage the Firewall on Linux.

Install with Docker Compose

Create a directory and generate a .env file with random passwords:

Code
sudo mkdir -p /opt/linkwarden
cd /opt/linkwarden
echo "POSTGRES_PASSWORD=$(openssl rand -hex 16)" | sudo tee .env
echo "MEILI_MASTER_KEY=$(openssl rand -hex 16)" | sudo tee -a .env
echo "NEXTAUTH_SECRET=$(openssl rand -hex 32)" | sudo tee -a .env
sudo chmod 600 .env

Then create /opt/linkwarden/docker-compose.yml. Replace links.example.com with your domain:

Code
services:
  postgres:
    image: postgres:16-alpine
    restart: unless-stopped
    environment:
      - POSTGRES_USER=linkwarden
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
      - POSTGRES_DB=linkwarden
    volumes:
      - ./pgdata:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U linkwarden -d linkwarden"]
      interval: 10s
      timeout: 5s
      retries: 5

  meilisearch:
    image: getmeili/meilisearch:v1.13.3
    restart: unless-stopped
    environment:
      - MEILI_MASTER_KEY=${MEILI_MASTER_KEY}
      - MEILI_NO_ANALYTICS=true
    volumes:
      - ./meili_data:/meili_data

  linkwarden:
    image: ghcr.io/linkwarden/linkwarden:v2.17.0
    restart: unless-stopped
    depends_on:
      postgres:
        condition: service_healthy
      meilisearch:
        condition: service_started
    environment:
      - NEXTAUTH_URL=https://links.example.com/api/v1/auth
      - NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
      - DATABASE_URL=postgresql://linkwarden:${POSTGRES_PASSWORD}@postgres:5432/linkwarden
      - MEILI_HOST=http://meilisearch:7700
      - MEILI_MASTER_KEY=${MEILI_MASTER_KEY}
      - NEXT_PUBLIC_DISABLE_REGISTRATION=false
    volumes:
      - ./data:/data/data
    ports:
      - "127.0.0.1:3000:3000"

Important lines:

  • ghcr.io/linkwarden/linkwarden:v2.17.0 pins Linkwarden to a fixed version. You can deliberately switch to a new version; see “Update Linkwarden.”
  • NEXTAUTH_URL must contain the exact address you’ll use later, including https:// and the /api/v1/auth path, or login will fail.
  • NEXTAUTH_SECRET secures login sessions. Don’t change it later, or all users will be logged out.
  • NEXT_PUBLIC_DISABLE_REGISTRATION=false keeps registration open only for setup. Set it to true immediately after creating the first account.
  • ./data contains screenshots, PDFs, and page copies; ./pgdata contains the database; and ./meili_data contains the search index.
  • 127.0.0.1:3000:3000 makes Linkwarden accessible only on the server itself. The database and Meilisearch don’t have published ports.

Start the containers:

Code
sudo docker compose up -d
sudo docker compose logs -f linkwarden

On first startup, Linkwarden creates the database. The app is ready when Ready appears in the log. Press Ctrl+C to exit the log view.

Create Your First Account and Disable Registration

Warning: The first account is the admin

Linkwarden makes the first account created an admin. Create it while Linkwarden is only accessible locally, then disable registration.

Create the account directly on the server. The command will prompt for your password without displaying it. It must be at least 8 characters long and must not contain quotation marks or backslashes:

Code
read -rp "Benutzername: " LW_USER
read -rsp "Passwort: " LW_PASS; echo
curl -s -X POST http://127.0.0.1:3000/api/v1/users \
  -H 'Content-Type: application/json' \
  -d "{\"name\":\"$LW_USER\",\"username\":\"$LW_USER\",\"password\":\"$LW_PASS\"}"
unset LW_PASS

The response will show "id":1. Now set the line in docker-compose.yml to NEXT_PUBLIC_DISABLE_REGISTRATION=true and restart Linkwarden:

Code
sudo docker compose up -d

From now on, Linkwarden will respond to new registration attempts with “Registration is disabled.” As an admin, you can create additional accounts under Server Administration > User Administration.

Access via HTTPS Through a Reverse Proxy

Install nginx and Certbot:

Code
sudo apt install -y nginx certbot python3-certbot-nginx

Create /etc/nginx/sites-available/linkwarden:

Code
server {
    listen 80;
    server_name links.example.com;

    client_max_body_size 50m;

    location / {
        proxy_pass http://127.0.0.1:3000;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_read_timeout 300s;
    }
}

client_max_body_size 50m allows you to upload PDFs and images and import larger bookmark files. Enable the site and obtain the certificate:

Code
sudo ln -s /etc/nginx/sites-available/linkwarden /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d links.example.com

You can then sign in at https://links.example.com. Find the basics of nginx and certificates in VPS: Set Up a Reverse Proxy with nginx on Linux and VPS: Create an SSL Certificate (Let’s Encrypt) for Linux Servers.

Back Up Your Data

The easiest way to back up everything is to briefly stop the containers and archive the entire directory. This ensures the database, copies, and search index are in sync:

Code
cd /opt/linkwarden
sudo docker compose stop
sudo tar czf /root/linkwarden-$(date +%F).tar.gz -C /opt linkwarden
sudo docker compose start

The archive also contains .env with all your passwords. Store it securely and not only on the same server.

Update Linkwarden

Create a backup before each update. Then read the notes for the new version on GitHub, change the image: ghcr.io/linkwarden/linkwarden:v2.17.0 line in docker-compose.yml to the new version, and restart:

Code
cd /opt/linkwarden
sudo docker compose pull
sudo docker compose up -d

Linkwarden automatically updates the database on startup. Keep Meilisearch and PostgreSQL on their current versions unless the notes for the new Linkwarden version say otherwise. Upgrading either service to a new major version requires a separate data migration.

Use New Link to enter an address and select a collection and tags. Linkwarden visits the page in the background and archives it. After a few seconds, the link card shows small icons for the archived versions: website copy, screenshot, PDF, and readable text version. You can choose which versions Linkwarden creates by default and which one opens when you click a link under Settings > Preference.

Collections work like folders and can be nested. Tags let you organize links across collections. Use the search box at the top left to find links by title, address, tag, or text from the archived page.

Import Existing Bookmarks

On the Dashboard, click Import Links. Linkwarden can import:

  • A browser bookmark file (From Bookmarks HTML file), which you can export from Chrome, Firefox, Edge, or Safari using the bookmark manager.
  • Exports from Pocket (CSV), Wallabag (JSON), and Omnivore (ZIP).
  • A backup from another Linkwarden instance.

Folders in the bookmark file become collections. If you have many links, it may take a while for Linkwarden to archive all the pages because it retrieves them one at a time.

Browser Extension, Smartphone, and Other Tools

  • Browser extension: There’s an official Linkwarden extension for Chrome and Firefox. Enter your instance’s address and your login details, then save the current page with one click.
  • Smartphone: The Linkwarden app for iOS and Android connects to your own instance. Enter your address instead of the cloud service when signing in. You can then share links to Linkwarden from any app.
  • Other tools: Under Settings > Access Tokens, create access tokens for scripts and other services. Treat them like passwords.
  • RSS: Under Settings > RSS Subscriptions, subscribe to feeds. New posts will then be added automatically as links in a collection.

Limitations

  • Pages behind a login: Linkwarden visits pages without your login details. As a result, it usually can’t fully archive content behind a login or paywall.
  • Some sites block requests: Some websites detect requests from a server and show only an error page or a challenge. In that case, the copy won’t be useful either.
  • No email delivery by default: Without email delivery set up, there’s no email option for resetting forgotten passwords. Make sure to keep your admin password safe.
  • Storage usage grows: Every archived page takes up space, and PDFs and screenshots often take several megabytes each. Check your VPS’s available storage from time to time.
Tip: Assign tags automatically

Linkwarden can suggest tags using AI. You’ll need a language model for this, such as your own model with Ollama. See How to Set Up Ollama with Open WebUI on a Linux Server for instructions on setting up Ollama on a VPS.

Conclusion

With Linkwarden, your bookmarks are all in one place, along with a copy of every saved page that you can search and access from all your devices. The quickest way to get started is with the One-Click App: the admin account, database, search, and HTTPS are ready in just a few minutes, and registration is disabled from the start. Then import your existing bookmarks and connect your browser extension and smartphone.

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

For most people, the One-Click App is the quickest option: the database, search, HTTPS, and an admin account with a secure password are ready in just a few minutes, and registration is disabled from the start. Manual installation with Docker Compose makes sense if your server doesn’t have One-Click Apps or you want to choose versions, storage locations, and other settings yourself.
For the One-Click App, the username is always admin. The app card doesn’t show it under Login; it only notes that the username is predefined. You can find the password in the app settings (gear icon) under App environment > Automatically generated values, in the SERVICE_PASSWORD_LINKWARDENADMIN field. If you later change the password in Linkwarden, the value there will no longer apply.
No. Registration is disabled for the One-Click App with the ZAP badge (the LINKWARDEN_DISABLE_REGISTRATION field is set to true in the app environment). For a manual installation, disable registration by setting NEXT_PUBLIC_DISABLE_REGISTRATION=true immediately after creating the first account. As an admin, create additional accounts using the plus icon under Server Administration > User Administration.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.