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.
- 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.
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.
- 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.
- Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
- 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.
- Enter a name under App name and leave Use a custom subdomain or zap.cloud enabled. Choose the address where Linkwarden should be available.
- Under App configuration, you’ll see the
LINKWARDEN_DISABLE_REGISTRATIONfield set totrue. 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. - Click Queue installation.
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.
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:
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.
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.
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.
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.
- 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), andlinkwarden-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.
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.
| Minimum | Recommended | |
|---|---|---|
| CPU | 1 vCPU core | 2 vCPU cores |
| RAM | 1 GB | 3 GB |
| Storage | 5 GB | 20 GB or more, depending on the number of archived pages |
You’ll also need:
- Debian or Ubuntu with SSH access; see VPS: First access via SSH.
- Docker with the Compose plugin; see How to Set Up Docker on a Linux Server.
- A domain with an A record pointing to your server, such as
links.example.com.
Linkwarden only needs the web ports to be accessible externally. Open SSH, HTTP, and HTTPS in ufw:
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.
Create a directory and generate a .env file with random passwords:
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:
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.0pins Linkwarden to a fixed version. You can deliberately switch to a new version; see “Update Linkwarden.”NEXTAUTH_URLmust contain the exact address you’ll use later, includinghttps://and the/api/v1/authpath, or login will fail.NEXTAUTH_SECRETsecures login sessions. Don’t change it later, or all users will be logged out.NEXT_PUBLIC_DISABLE_REGISTRATION=falsekeeps registration open only for setup. Set it totrueimmediately after creating the first account../datacontains screenshots, PDFs, and page copies;./pgdatacontains the database; and./meili_datacontains the search index.127.0.0.1:3000:3000makes Linkwarden accessible only on the server itself. The database and Meilisearch don’t have published ports.
Start the containers:
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.
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:
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:
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.
Install nginx and Certbot:
sudo apt install -y nginx certbot python3-certbot-nginx
Create /etc/nginx/sites-available/linkwarden:
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:
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.
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:
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.
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:
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.
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: 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.
- 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.
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.
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.
