On this page 10 sections
Vaultwarden is a lightweight server that speaks the Bitwarden API. That means the official Bitwarden browser extensions, desktop apps and phone apps work against a password manager you host yourself.
A working install needs the vaultwarden/server Docker image, a Postgres database for the vault, and an HTTPS address, which the web vault requires before it will run its in-browser encryption. On Ownkube the Vaultwarden template sets all three up in one click, for about $10 a month.
The short version
- Vaultwarden is a self-hosted Bitwarden server. Your team keeps using the Bitwarden clients and points them at your URL.
- The Vaultwarden template deploys the official image with a managed Postgres database, a generated admin token and an
ownkube.apphostname with automatic HTTPS. - Sign-ups start open. Create your accounts, then close them with one variable.
- Turn on database backups on day one, since every vault item lives in that database.
Why people self-host a password manager
Searches for a self-hosted password manager, a self-hosted Bitwarden or a 1Password alternative tend to come from the same few reasons. People want the vault in a database they control, a flat cost that stays put as the family or team grows, and the option to move it somewhere else later.
Vaultwarden is a single small server written in Rust. It supports organizations and shared collections, and the clients are the same Bitwarden apps people already know.
Every vault item is encrypted in the client before it reaches the server. The server stores ciphertext, so the master password never leaves the user’s device.
The fastest way: the Vaultwarden template
The Vaultwarden template on the Ownkube Marketplace creates a Postgres 18 database, deploys the official image, wires the connection string into DATABASE_URL and generates an ADMIN_TOKEN. You can reveal the token on the deployment when you need it.
Deploy it, open the hostname and create your account. The same install also runs from the terminal:
okctl regions listokctl boxes list --kind databaseokctl marketplace deploy vaultwarden-postgres --region <region-id> --db-box <box-id>Ownkube Compute runs in two regions, Germany and Mumbai, so a team in Europe can keep its vault in Germany.
The template keeps the vault in Postgres but does not attach a volume to the app, so file attachments and Sends do not survive a redeploy, and users sign in again afterwards. If your team stores files in the vault, use the manual path below and attach a volume at /data.
The Marketplace sets up other self-hosted apps the same way. We have guides for DocuSeal, Open WebUI and Metabase.
Day one settings
Close sign-ups once your accounts exist
The template starts with SIGNUPS_ALLOWED=true so you can create the first account. Anyone who finds the URL can register while it stays on. Create your own account and your team’s, then turn it off:
okctl vars set <app> SIGNUPS_ALLOWED=falseYou can still invite people later from the admin page, and an invited email address can register while open sign-ups stay off.
Open the admin page
Vaultwarden’s admin page lives at /admin on your hostname and asks for the ADMIN_TOKEN. From there you can invite users, see users and organizations, and run the diagnostics page. Keep lasting settings in environment variables with okctl vars set, so they survive every redeploy and stay visible on the deployment.
Turn on database backups
On the Personal and Team plans, database storage includes 7-day backups with point-in-time restore. They’re off by default and you turn them on per database. Do it on the Vaultwarden database first.
Clients can also export the vault to an encrypted file, which is a good second copy to keep somewhere offline.
Use your own domain
The ownkube.app hostname works from the first deploy. Most teams want something like vault.example.com, which is what people will type into their Bitwarden apps for years. Custom domains need the Personal or Team plan, take two DNS records per host, and your DNS stays at your provider:
okctl domains add <app> vault.example.comPick the final domain before people set up their clients. Changing it later means every user updates the server URL in every app.
Connect the Bitwarden clients
In any Bitwarden app, choose the self-hosted option on the login screen and enter your server URL, for example https://vault.example.com. That applies to the browser extension, the desktop app, the mobile apps and the Bitwarden CLI.
Organizations, shared collections and the password generator work as they do on a Bitwarden-hosted account. Some features that depend on Bitwarden’s own cloud services can behave differently against Vaultwarden, so check the Vaultwarden wiki if a client option looks greyed out.
Email for invites and verification
Vaultwarden sends invites and verification mail only when SMTP is configured. Set the SMTP_HOST, SMTP_FROM, SMTP_PORT, SMTP_SECURITY, SMTP_USERNAME and SMTP_PASSWORD variables with okctl vars set, and store the password with --secret. When you set up email, also set DOMAIN to your full HTTPS URL so the links in those emails point to the right place.
The manual path
Use the manual path to keep attachments, to pin a different version, or to see what the template set up.
- Create a database box on Ownkube. Boxes start at $4 a month, plus storage at $0.25 per GB per month.
- Create a web app from
vaultwarden/serverwith the version tag you want. The container listens on port80, and/alivemakes a good readiness check. - Attach a persistent volume at
/data, where Vaultwarden keeps attachments, Sends and the key that signs user sessions. - Set the variables:
DATABASE_URL=postgresql://<user>:<password>@<host>:5432/<database>ADMIN_TOKEN=<a-long-random-string>SIGNUPS_ALLOWED=trueFlip SIGNUPS_ALLOWED to false once your accounts exist, as above.
The docker compose equivalent
If you’re comparing this with a Vaultwarden docker compose install on a VPS, here’s the same setup as a compose file. The postgres service becomes the managed database box and the vaultwarden service becomes the web deployment. The ownkube.app hostname replaces the reverse proxy and the certificate, which matter more here than for most apps because the web vault refuses to run over plain HTTP.
services: postgres: image: postgres:17 environment: POSTGRES_DB: vaultwarden POSTGRES_USER: vaultwarden POSTGRES_PASSWORD: change-me volumes: - pgdata:/var/lib/postgresql/data
vaultwarden: image: vaultwarden/server:latest ports: - "8080:80" environment: DATABASE_URL: postgresql://vaultwarden:change-me@postgres:5432/vaultwarden DOMAIN: https://vault.example.com ADMIN_TOKEN: change-me-too SIGNUPS_ALLOWED: "false" volumes: - vw-data:/data depends_on: - postgres
volumes: pgdata: vw-data:On a VPS the compose file leaves you to set up the reverse proxy, the certificate and its renewals, Postgres backups, OS updates and restarts after a reboot. With a password manager those chores carry more weight, because an expired certificate locks every client out until someone notices.
Sizing and cost
Vaultwarden is small. A family or a small team fits on a Spark 1 box at $5 a month, or on metered pricing billed per minute, which costs very little for an app that mostly sits idle between syncs.
Add the smallest database box at $4 a month and 5 GB of storage at $1.25. The total comes to about $10 a month for the whole team, and on a flat Spark box the price stays the same as people join.
If you run vaults for clients, the same app can move into a client’s own AWS account with no rewrite, and logs, metrics and health checks come with it.
FAQ
Is Vaultwarden the same as Bitwarden?
Vaultwarden is a separate, community-built server that implements the Bitwarden API. Bitwarden the company doesn’t make it, and the same Bitwarden clients work with both.
Is it safe to put a password manager on a public URL?
The clients encrypt every item before it leaves the device, so the server only ever holds ciphertext. The parts you control are the ones in this guide: close sign-ups, keep the admin token private, turn on backups and keep the image up to date.
Does Vaultwarden need Postgres?
It can run on SQLite, MySQL or Postgres. Postgres on a managed database box keeps the vault off the app container and turns backups into a setting you switch on.
Can I use it as a 1Password alternative for a team?
Yes, for the core of it: shared vaults through organizations and collections, browser autofill, mobile apps and a password generator. The Bitwarden web vault imports exports from 1Password and most other password managers, so a move starts with an export and an import.
How do I update Vaultwarden?
Change the image tag on the deployment and redeploy. Vaultwarden runs its database migrations on start. Pin a version so an upgrade is a step you choose and can roll back.
Where Ownkube fits
A password manager needs HTTPS before it will start, a database you can restore and a hostname that never changes. Ownkube Compute provides each of those on servers we run. Deploy the template, create your accounts, close sign-ups and turn on backups. See Ownkube pricing for the per-minute wallet model, from $5 a month. Deploy my first app.