{
  "@context": "https://schema.org",
  "@type": "WebPage",
  "name": "Self-host Vaultwarden on Edge | Bitwarden-compatible",
  "headline": "Self-host Vaultwarden on Edge | Bitwarden-compatible",
  "description": "Run Vaultwarden on an Edge VM behind the CDN's automatic SSL. Use the official Bitwarden apps, share with your team and back the vault up nightly to storage.",
  "url": "https://edge.network/solutions/vaultwarden",
  "image": "https://edge.network/og/solutions__vaultwarden.png",
  "inLanguage": "en",
  "publisher": {
    "@type": "Organization",
    "name": "Edge Network",
    "url": "https://edge.network",
    "logo": "https://edge.network/favicon.svg"
  },
  "isPartOf": {
    "@type": "WebSite",
    "name": "Edge Network",
    "url": "https://edge.network"
  },
  "breadcrumb": {
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://edge.network"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Solutions",
        "item": "https://edge.network/solutions"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Vaultwarden",
        "item": "https://edge.network/solutions/vaultwarden"
      }
    ]
  },
  "section": "solutions",
  "articleBody": "For Vaultwarden\n\n Vaultwarden on Edge, Bitwarden you control\n\n A single Rust binary and a SQLite file on a small VM. The official Bitwarden apps connect over HTTPS, vault data is encrypted on each device before it arrives, and a copy lands in Edge Storage every night. Deploy a VM Read the deploy guide The setup on this page costs $19.24 a month, with no egress line.\n\n Why Vaultwarden on Edge\n\n The Bitwarden experience, on a server you own \n\n Your team keeps the apps they know. You keep the server, the backups and the bill. Official Bitwarden apps\n\n Point the Bitwarden browser extensions, desktop and mobile apps at your server URL. Same apps, your server. \n A Rust binary on a small VM\n\n Vaultwarden is light on memory and CPU. A small VM idles along with a whole team on it. \n Organisations and sharing\n\n Organisations, collections, Send and emergency access, with no paid plan to unlock them. \n Two-factor built in\n\n TOTP, FIDO2 WebAuthn, YubiKey OTP, Duo and email codes are all supported. \n Only ciphertext on the server\n\n Vault items are encrypted on the device before they reach the server. The database holds ciphertext, not passwords. \n TLS at the edge, API uncached\n\n The CDN issues the certificate the Bitwarden apps require. Vault API calls are never cached; they go straight to your VM. \n Reference architecture\n\n One container, one SQLite file, nightly backups \n\n One container, one SQLite file. The CDN terminates TLS and passes vault traffic through untouched; a nightly job copies the database and attachments to a private bucket. Visitors Bitwarden apps\n\n browser, desktop, iOS, Android\n\n HTTPS Edge CDN vault.acme.com\n\n TLS; /api, /identity bypass cache\n\n WSS proxied Edge Compute vaultwarden :80\n\n Docker, s-2vcpu-4gb\n\n Rust invite-only local disk Database db.sqlite3\n\n encrypted vault items\n\n /data nightly copy Edge Storage vault-backups\n\n SQLite snapshot, attachments, keys\n\n private Compute Runs the Vaultwarden container, with its SQLite database on the VM&#x27;s NVMe disk.\n\n Storage A private bucket for nightly database snapshots and attachment backups.\n\n CDN Issues and renews TLS, passes WebSocket sync through, and never caches vault API responses.\n\n DNS Anycast DNS for vault.acme.com.\n\n Deploy\n\n A team vault in five steps \n\n Docker Compose, a hashed admin token, a CDN domain with cache bypass rules, and a nightly backup. ~/vault $ edge compute create --name vault \\ \n\n --size s-2vcpu-4gb --image ubuntu-24 \\\n\n --region london --script docker\n\n ✓ vm-c47d08 running, 64.34.86.19\n\n $ docker compose up -d \n\n ✓ vaultwarden started, SQLite at /data\n\n $ edge cdn domains add cdn-a1b2c3 \\ \n\n --domain vault.acme.com \\\n\n --origin https://64.34.86.19\n\n ✓ SSL issued, /api and /identity uncached\n\n Vault encryption E2E vault.acme.com Healthy Server vaultwarden, Rust Database SQLite, 14 MB 01 Create the VM and a private bucket\n\n Generate the admin token hash once on the VM with: docker run --rm -it vaultwarden/server /vaultwarden hash. Store it in .env as ADMIN_TOKEN, in single quotes.\n\n shell Copy $ edge compute create --name vault --size s-2vcpu-4gb \\\n --image ubuntu-24 --region london --script docker\n$ edge storage create vault-backups \n 02 Write the compose file\n\n Sign-ups are off; invite people from the admin page. Add SMTP_* settings so invitation emails can be sent.\n\n docker-compose.yml Copy services:\n vaultwarden:\n image: vaultwarden/server:latest\n env_file: .env # ADMIN_TOKEN=&#x27;$argon2id$...&#x27; and SMTP_*\n environment:\n DOMAIN: https://vault.acme.com\n SIGNUPS_ALLOWED: \"false\"\n INVITATIONS_ALLOWED: \"true\"\n ports: [\"127.0.0.1:8080:80\"]\n volumes: [\"./vw-data:/data\"]\n restart: always \n 03 Start it and put the CDN in front\n\n Proxy :443 on the VM to port 8080. The Bitwarden apps need the HTTPS certificate the CDN issues.\n\n shell Copy $ docker compose up -d\n$ edge cdn create --name vault\n$ edge cdn domains add cdn-a1b2c3 \\\n --domain vault.acme.com \\\n --origin https://<vm-ip> \n 04 Make sure vault traffic is never cached\n\n Most vault calls are POSTs or authenticated, which the CDN won&#x27;t cache anyway. These rules make it explicit.\n\n CDN configuration (JSON) Copy {\n \"caching\": {\n \"respectOriginHeaders\": true,\n \"rules\": [\n { \"path\": \"/api/**\", \"bypassCache\": true },\n { \"path\": \"/identity/**\", \"bypassCache\": true },\n { \"path\": \"/notifications/**\", \"bypassCache\": true },\n { \"path\": \"/admin/**\", \"bypassCache\": true }\n ]\n }\n} \n 05 Back up every night\n\n SQLite&#x27;s .backup command takes a consistent copy while the server runs. The bucket stays private.\n\n /etc/cron.daily/vault-backup Copy #!/bin/sh\nset -e\n. /etc/edge.env # exports EDGE_API_KEY for the Edge CLI\ncd /srv/vault\nsqlite3 vw-data/db.sqlite3 \".backup &#x27;/tmp/db.sqlite3&#x27;\"\ntar czf /tmp/vw.tgz --exclude=&#x27;db.sqlite3*&#x27; vw-data -C /tmp db.sqlite3\nedge storage cp /tmp/vw.tgz \"vault-backups/$(date +%F).tgz\" \n Prefer to hand it off? Give the job to your AI agent or have our engineers do it .\n\n What it costs\n\n A team vault without per-user pricing \n\n Password managers charge per seat. Vaultwarden needs a small VM, and the backups fit inside the free storage tier. No per-user pricing, for a team or a family \n Organisations and 2FA without a paid plan \n Room on the same VM for other small tools \n Zero egress on sync and backups \n See compute pricing Estimated monthly bill on Edge\n\n 25-person team vault, nightly backups\n\n USD Compute $19.24 Standard VM, 2 vCPU, 4 GiB, 80 GB NVMe \n Storage $0.00 30 nightly backups, inside the 5 GB free tier \n CDN $0.00 ~300k requests from the apps, inside 500k free \n DNS $0.00 Zone and records for vault.acme.com \n Egress $0.00 \n Total $19.24 Indicative monthly cost, 25-person team vault\n\n 1Password Business (25 seats) ~$200/mo \n Bitwarden Enterprise (25 seats) ~$150/mo \n Edge (Standard VM) ~$19/mo \n Competitor figures are indicative, based on public per-seat pricing. The Edge figure is the bill above, and it doesn&#x27;t change as you add people.\n\n FAQ\n\n Safety, apps and backups \n\n Something else? Ask an engineer . How does this compare to Bitwarden&#x27;s own cloud? Same apps, your server. Vaultwarden is an independent, community-built implementation of the Bitwarden server API, not an official Bitwarden product. It supports organisations, sharing and two-factor without a paid plan. Is it safe to self-host a password manager? Vault items are encrypted on each device before they reach the server, and your master password never leaves the device. Someone with the database would see ciphertext. Keep the VM patched, sign-ups off and the admin token hashed. Will the official Bitwarden apps work? Yes. The browser extensions, desktop and mobile apps all let you set a self-hosted server URL. Point them at https://vault.acme.com. Does the CDN ever cache vault data? No. Vault traffic is mostly POSTs and authenticated API calls, which the Edge CDN doesn&#x27;t cache, and the bypass rules in step four cover /api, /identity, /notifications and /admin explicitly. How do I back it up and restore? The nightly job copies a consistent SQLite snapshot plus attachments and keys to a private bucket. To restore, unpack the latest archive into vw-data on a fresh VM and start the container. Drop-in services\n\n Around the vault, never inside it \n\n Edge Shield Bot protection POST /siteverify → score: 94 Score requests to any invite or onboarding form you build around the vault. The vault itself stays untouched.\n\n Free forever, with unlimited widgets. No puzzles for visitors. Explore \n Edge Assist AI answers <script src=\"…/assist.js\"> Add answers to your internal IT help pages, from installing the extension to resetting 2FA, with one script tag.\n\n Free tier: 250 answered questions a month Explore \n Related stacks\n\n Other tools worth keeping in-house \n\n All 38 stacks O Outline A team wiki you actually own \n BookStack Open-source documentation platform \n n8n n8n Self-hosted workflow automation \n Docker Run any container on global VMs \n Stand up your vault\n\n Start free. A team or family vault on...",
  "headings": [
    {
      "level": 1,
      "text": "Vaultwarden on Edge, Bitwarden you control"
    },
    {
      "level": 3,
      "text": "Official Bitwarden apps"
    },
    {
      "level": 3,
      "text": "A Rust binary on a small VM"
    },
    {
      "level": 3,
      "text": "Organisations and sharing"
    },
    {
      "level": 3,
      "text": "Two-factor built in"
    },
    {
      "level": 3,
      "text": "Only ciphertext on the server"
    },
    {
      "level": 3,
      "text": "TLS at the edge, API uncached"
    },
    {
      "level": 3,
      "text": "Create the VM and a private bucket"
    },
    {
      "level": 3,
      "text": "Write the compose file"
    },
    {
      "level": 3,
      "text": "Start it and put the CDN in front"
    },
    {
      "level": 3,
      "text": "Make sure vault traffic is never cached"
    },
    {
      "level": 3,
      "text": "Back up every night"
    },
    {
      "level": 2,
      "text": "Stand up your vault"
    }
  ],
  "relatedLinks": [
    {
      "@type": "WebPage",
      "name": "Network",
      "url": "https://edge.network/network"
    },
    {
      "@type": "WebPage",
      "name": "Pricing",
      "url": "https://edge.network/pricing"
    },
    {
      "@type": "WebPage",
      "name": "Docs",
      "url": "https://edge.network/docs"
    },
    {
      "@type": "WebPage",
      "name": "Sign in",
      "url": "https://edge.network/console/access"
    },
    {
      "@type": "WebPage",
      "name": "Solutions",
      "url": "https://edge.network/solutions"
    },
    {
      "@type": "WebPage",
      "name": "Stacks",
      "url": "https://edge.network/solutions/stacks"
    },
    {
      "@type": "WebPage",
      "name": "Read the deploy guide",
      "url": "https://edge.network/docs/compute/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Compute",
      "url": "https://edge.network/compute"
    },
    {
      "@type": "WebPage",
      "name": "Storage",
      "url": "https://edge.network/storage"
    },
    {
      "@type": "WebPage",
      "name": "CDN",
      "url": "https://edge.network/cdn"
    },
    {
      "@type": "WebPage",
      "name": "DNS",
      "url": "https://edge.network/dns"
    },
    {
      "@type": "WebPage",
      "name": "Give the job to your AI agent",
      "url": "https://edge.network/solutions/agentic-development"
    },
    {
      "@type": "WebPage",
      "name": "have our engineers do it",
      "url": "https://edge.network/solutions/expert-services"
    },
    {
      "@type": "WebPage",
      "name": "See compute pricing",
      "url": "https://edge.network/compute/pricing"
    },
    {
      "@type": "WebPage",
      "name": "Ask an engineer",
      "url": "https://edge.network/contact"
    },
    {
      "@type": "WebPage",
      "name": "Shield",
      "url": "https://edge.network/shield"
    },
    {
      "@type": "WebPage",
      "name": "Assist",
      "url": "https://edge.network/assist"
    },
    {
      "@type": "WebPage",
      "name": "Pulse",
      "url": "https://edge.network/pulse"
    },
    {
      "@type": "WebPage",
      "name": "Agent API &amp; MCP",
      "url": "https://edge.network/docs/agent"
    },
    {
      "@type": "WebPage",
      "name": "Academy",
      "url": "https://edge.network/academy"
    },
    {
      "@type": "WebPage",
      "name": "Case Studies",
      "url": "https://edge.network/case-studies"
    },
    {
      "@type": "WebPage",
      "name": "Releases",
      "url": "https://edge.network/releases"
    },
    {
      "@type": "WebPage",
      "name": "Roadmap",
      "url": "https://edge.network/roadmap"
    },
    {
      "@type": "WebPage",
      "name": "Status",
      "url": "https://edge.network/status"
    },
    {
      "@type": "WebPage",
      "name": "About",
      "url": "https://edge.network/about"
    },
    {
      "@type": "WebPage",
      "name": "Environment",
      "url": "https://edge.network/environment"
    },
    {
      "@type": "WebPage",
      "name": "Latest",
      "url": "https://edge.network/latest"
    },
    {
      "@type": "WebPage",
      "name": "Blog",
      "url": "https://edge.network/blog"
    },
    {
      "@type": "WebPage",
      "name": "Careers",
      "url": "https://edge.network/careers"
    },
    {
      "@type": "WebPage",
      "name": "Terms of Service",
      "url": "https://edge.network/terms"
    }
  ],
  "alternateFormats": [
    {
      "@type": "MediaObject",
      "contentType": "text/html",
      "url": "https://edge.network/solutions/vaultwarden",
      "name": "HTML version"
    }
  ],
  "dateModified": "2026-12-03T03:03:58.857Z"
}