Self-host KeeWeb
A self-hostable web and desktop client for KeePass kdbx vault files — not a sync server. You host a single-page app behind your own domain and point it at a vault stored on local disk, WebDAV, or a cloud drive, so there is no database and no account system to run.
Key facts
KeeWeb solves a different problem from everything else in this category, and getting that straight is the whole decision: it is a client, not a server. It opens KeePass kdbx files that you already keep on disk, WebDAV, or a cloud drive, and it stores nothing itself — no accounts, no server-side vault, no sync of its own. Self-host it when you are already committed to the kdbx format and want a good browser and desktop client on your own domain instead of someone else's. If what you actually want is a vault your devices sync through, none of this applies and Vaultwarden is the pick.
What you need
- Any VPS with at least 256 MB of RAM
- A domain you control — most self-hosted setups need HTTPS in front of them
- Under an hour if you've used Docker before
Install
Run these commands on your server:
# KeeWeb — official container, serves the app over HTTPS on 443
docker run -d --restart=unless-stopped -p 443:443 \
--name keeweb -v ${PWD}/keeweb:/config \
ghcr.io/keeweb/keeweb:latest
# No database — your kdbx file lives on disk, WebDAV, or a cloud driveWhat you take on
It is the cheapest thing here to run, which makes it easy to overlook what you're taking on:
An alternative to
More in Password manager
Common questions
Is KeeWeb a self-hosted password server?
No — KeeWeb is a client, and that distinction matters before you deploy it. It opens and edits existing KeePass kdbx files (or creates new ones), but it stores nothing itself: there is no user database, no sharing model, and no server-side vault. Self-hosting KeeWeb means hosting the app, not your passwords.
Where does KeeWeb store my vault?
Wherever you point it: a local file you open in the browser, a WebDAV share, or a cloud drive such as Dropbox, Google Drive, or OneDrive. Sync is whatever that storage backend already does, so two people editing the same kdbx concurrently is on you to avoid.
Can I use KeeWeb with KeePass and KeePassXC?
Yes — it reads and writes the standard kdbx format, so the same file works across KeeWeb, KeePass, and KeePassXC. That is the main reason to pick it: it is a nicer front end for a vault format you may already be committed to.
How much does it take to run KeeWeb?
Very little — the container is a static web app plus a service worker for offline use, so a 256 MB box is comfortable and the smallest VPS tier will do. Put it behind TLS anyway, since it handles vault contents in the browser.