Migrate from LastPass to self-hosted Bitwarden

Moving a LastPass Business account to a self-hosted Bitwarden server is a staged migration, not a single import. This page covers what moves cleanly, what must be rebuilt by hand and how to plan the cutover.

On this page

Migrate from LastPass to self-hosted Bitwarden: what the move involves

The move from LastPass to a self-hosted Bitwarden server is a staged migration of vault data, members, enterprise policies and SSO, not a single export and import. Most teams start with an export, then rebuild the organization on the new server, and treat the cutover as the last step rather than the first. The work is usually led by an IT or security owner with a platform engineer who installs and runs the server, and it often starts when a LastPass renewal, a pricing change or a data residency requirement forces the question.

The export step depends on the admin Prohibit export policy in the LastPass Business admin console. If that policy is on, members cannot export vault contents and the administrator must lift it before the export can run, so the first check is who holds admin rights and whether the change is approved internally. Bitwarden's documented path for a cloud to self-hosted move is to export the organization's data, download the license for paid features, create the self-hosted account with the same email address and import the data. Confirm the current steps against Bitwarden's migration guide and the LastPass import documentation before you schedule anything, because the import tooling and what it carries can change between releases.

Effort and risk sit in the parts the import does not cover. Attachments, member invitations, enterprise policies and SSO must be configured again by hand, and SSO on a self-hosted server depends on the paid license file tied to your installation ID. Treat the vault export file as a set of plaintext credentials while it exists, restrict where it is stored and delete it after verification. Ask your team to estimate effort from the number of shared folders, attachments and SSO integrations in your own tenant, since no fixed duration applies to every organization.

Which LastPass features map cleanly to self-hosted Bitwarden

This table maps each LastPass Business capability to its self-hosted Bitwarden equivalent and marks it as clean, needs rework or gap. Read the rework rows as work your team must plan and budget for before cutover, not as optional polish.

LastPass capabilitySelf-hosted Bitwarden equivalentStatus
Vault items (logins, notes, secure notes)Vault items imported through the Bitwarden clients or CSV, with the same item types for common loginsClean for standard logins, confirm field-by-field in a test import
Shared foldersShared folders arrive as organization collections, and access must be reassigned to members or groupsNeeds rework
AttachmentsNot carried by the export or direct import, so each file must be re-uploaded by hand into the new vaultNeeds rework
TOTP seedsConfirm in your own test import whether the seed is carried into the Bitwarden authenticator field for each itemConfirm in test import
Custom fieldsConfirm in your own test import whether each custom field maps to a Bitwarden custom field or must be re-enteredConfirm in test import
Members and groupsMember invitations and group assignments are redone on the self-hosted server, since the cloud migration path does not move themNeeds rework
Enterprise policiesPolicies such as master password requirements and two-step login are configured again on the new serverNeeds rework
SSO loginSSO on a self-hosted server uses the SSO modules under the Bitwarden License, which need a license file tied to the installation ID for production useGap without paid license
Admin console and exportBitwarden admin console and export work on the self-hosted server, but the LastPass Prohibit export policy must be lifted firstClean after policy change

Lifting the Prohibit export policy and choosing an import path

The export starts with a LastPass administrator lifting the Prohibit export policy, because until that change is made, members cannot pull vault data out of LastPass by any route. Before the change, record who holds admin rights, which users or groups the policy covers, and who approves the change. An export produces an unencrypted copy of credentials outside the vault, so treat the window as temporary: lift the policy for the migration, run the export, then restore the policy. Confirm the current behavior and scope of this setting in your own LastPass tenant, because admin console options can change between releases and a secondhand summary is not a substitute for checking. Once the export is possible, the team chooses between two paths into the self-hosted server.

The first path is direct import through the Bitwarden clients, which reads from LastPass without asking you to shape a file by hand. It is the path to test first for logins, notes and folder structure. The second path is a CSV exported from the LastPass browser extension, imported through the Bitwarden web vault or CLI. The CSV is easy to inspect, but it carries only the fields the LastPass extension exports, so anything outside that set must be verified in your output, not assumed. Neither path carries attachments. Bitwarden's migration documentation lists attachments as something to redo by hand on the new server. For each path, confirm which item types, shared folder assignments and TOTP values arrive in your tenant's output.

Test both paths on a sample vault before committing. Build a small test account in LastPass with one shared folder, a login that has a TOTP seed, an item with a custom field, a secure note and an attachment. Run each path into a test organization on a non-production self-hosted server, then compare item counts, collection assignments and field values side by side. Record every loss in a short table that the migration owner signs off. Delete each CSV after import, since it holds passwords in readable form, and keep it out of shared drives and chat. Commit to the path that loses the least of your actual data and that your team can repeat on the production export.

Data to move and integrations to rebuild

Bitwarden's migration path moves vault data in bulk, but several parts of the LastPass setup must be rebuilt by hand on the self-hosted server. The cards separate what imports from what you recreate, including the directory and SSO work that depends on the paid license. Plan the server's own email and TLS setup before invitations go out, because they depend on it.

Vault items and folders

Logins, notes, cards and identities make up most of a LastPass export. They can be brought in through Bitwarden's direct importer or through a CSV exported from the browser extension. Check item counts and folder names with a sample import first, and confirm which fields the CSV keeps, because the export leaves out some data. Compare the imported vault against the LastPass source for a sample of items before you plan to retire LastPass access.

Migration guide

Shared folders as collections

LastPass shared folders arrive as Bitwarden collections, so the access each group held determines who sees what after the move. Map every shared folder to a collection name, then confirm which members and groups keep read, edit or manage rights. Shared credentials used by admin or service accounts deserve a second review, because a collection can import cleanly and still grant wider access than the original folder did.

Attachments re-uploaded by hand

Bitwarden's migration guide states that attachments must be redone on the self-hosted server, and the CSV path does not carry them. Build an inventory of every item with a file attached before cutover, and record its owner and collection. Upload each attachment again in the new vault and verify it opens. Keep the originals access-controlled until the re-upload is confirmed, since attachments often hold certificates, keys or onboarding documents.

Migration guide

Member and group invitations

A self-hosted organization starts empty, so members are invited again and groups are recreated. The migration guide says invitations must be redone. Invitation emails depend on the server's own SMTP and TLS setup, so test mail delivery before inviting anyone. Match each invited user to the collections they held in LastPass, and keep a record of who completed account setup so later access reviews have a clear starting point.

Enterprise policies and SSO

Enterprise policies do not move with the data, so each policy you set in LastPass must be configured again in the admin console. SSO is also rebuilt on the new server. Bitwarden's SSO integration sits in the bitwarden_license directory, which requires a paid subscription and a license file for production use. Confirm the license and identity provider settings before staff are told to stop using LastPass logins.

Licensing for paid features

Directory sync with Directory Connector

Bitwarden Directory Connector syncs users and groups from AD, LDAP, Azure, Google Workspace or Okta, and it is licensed under GPL-3.0. Identify which directory source your LastPass setup used, then decide whether directory groups will replace the groups you recreated by hand. Treat any directory connection from LastPass as a setup you verify again on the new server. Test a sync against a non-production organization before allowing it to remove or deactivate members.

Directory Connector repository

The extra step for LastPass SSO accounts

SSO users need a separate pass because the self-hosted server starts with no SSO configuration of its own. Bitwarden's SSO integration sits in the bitwarden_license directory, which is under a source-available license, so it needs a paid subscription for production use. On the new server, the organization must configure SSO again, and each user must be onboarded with the same email address they use in the identity provider and in the LastPass account. If the email differs, the user lands in a new, empty vault and the imported items do not follow them. Plan a test user who signs in through the self-hosted SSO flow before any production user is moved.

The paid features, SSO included, need a license file downloaded from the cloud web app under Admin Console, Billing and Subscription. That file is tied to the installation ID you obtain for the self-hosted server, and the data region of the installation must match the region of the cloud organization. Confirm with Bitwarden which region the organization is in and which installation ID the license will bind to before you request the license, because a mismatch blocks the paid features. Ask Bitwarden how a license is reissued if the installation ID changes after a rebuild.

Before cutover, confirm with your identity provider team the redirect or callback values the self-hosted server will need, whether the IdP application can carry a second set of URLs during the transition, and who owns the SSO application settings after go-live. Also confirm how account recovery works for users whose SSO login fails, since a master password recovery path may not match your LastPass policy. Check these items against the current Bitwarden SSO documentation, because the configuration fields and the required IdP settings can change between releases.

The migration sequence from inventory to decommission

This sequence moves a LastPass Business account to a self-hosted Bitwarden server in an order that keeps credentials accessible and gives the team evidence at each gate. Each step closes with a named artifact that the next step depends on.

  1. Inventory users, folders, attachments and policies

    The administrator lists every LastPass user, shared folder, group, attachment, and enterprise policy, and records which items carry TOTP seeds or custom fields that a standard export may not capture. Identify who owns each shared folder and whether any SSO accounts exist, since those need an extra login step. Confirm with Bitwarden's migration guidance which items must be recreated by hand, such as attachments and member invitations. The output is an inventory sheet with one row per user, folder, and policy, signed off by the account owner. Do not start the export until this sheet exists.

  2. Pilot with a test organization and sample vault

    Stand up the self-hosted Bitwarden server in a non-production environment, using a license file tied to the installation ID if paid features such as SSO or policies are needed. Create a test organization, import a sample LastPass export that mirrors the inventory, and check that shared folders arrive as collections with the expected permissions. Test one SSO login end to end and one attachment re-upload. The output is a pilot report listing each imported item class, each failed or manual item, and the decisions taken on them.

  3. Run a parallel period with both systems

    Point a pilot group of client devices at the self-hosted server while LastPass stays live, and agree on a defined window with the security owner before it starts. Record which credentials are created or changed during this window and where, so no item is lost between the two vaults. Review helpdesk tickets for login, sync, and autofill problems. The output is a parallel-run log and a list of open items that must be resolved before cutover.

  4. Cut over with a frozen LastPass export

    Lift the Prohibit export policy in LastPass only for the administrator performing the export, then freeze changes in LastPass by announcing a write freeze to all users. Generate the final export, import it into the production organization, recreate attachments, invitations, policies, and SSO settings, and confirm the counts match the inventory sheet. Store the export under the same controls as the vault itself and then delete working copies. The output is a signed cutover checklist covering counts, owners, and who approved each item.

  5. Verify access and rotate sensitive credentials

    Ask a sample of users from each group to sign in, retrieve a shared credential, and confirm autofill works on their devices. Rotate credentials that were stored in LastPass and are high risk, such as administrative, financial, and infrastructure accounts, and record the rotation in the new vault. Confirm the server backup job restores to a test host before relying on it. The output is a verification record showing sign-in results, rotated items, and a tested restore.

  6. Decommission LastPass after verified backups

    Keep LastPass in read-only status for the period your internal policy requires, then remove users and disable the account once the self-hosted vault and its backups have been verified. Retain the inventory sheet, cutover checklist, and verification record in your records system, since auditors and assessors may ask for them. Confirm with LastPass the contractual steps for account closure and data handling. The output is a decommission record with dates, approvals, and the location of retained evidence.

How data and licenses flow during the cutover

The cutover starts with the LastPass admin export, which either goes through the Bitwarden importer or a CSV file from the browser extension, and lands in a self-hosted Bitwarden server with its own database and attachments store. The license file is downloaded from the cloud Admin Console and bound to the installation ID, so the server and its data region must line up before paid features work. Before users switch, the organization recreates members, SSO and enterprise policies by hand, and attachments are re-uploaded because they do not travel with the import.

Data, attachments and license paths from LastPass export to a self-hosted Bitwarden server.

What drives migration cost and duration

This table lists the factors that change how much staff time, infrastructure and licensing a move from LastPass Business to self-hosted Bitwarden will take. Read each row as a question to answer about your own vault before requesting a quote. The main takeaway is that item counts, attachments and SSO design usually matter more than the server itself.

DriverWhy it mattersHow to reduce it
Vault items and shared foldersEvery item is exported, mapped and checked. Shared folders become collections with their own member access, so folder sprawl multiplies review work.Remove stale and duplicate entries in LastPass before export. Agree a collection structure on paper before import.
Attachments needing manual re-uploadBitwarden's migration guidance says attachments must be redone, and the LastPass CSV export does not carry them. Each file is a manual step.Inventory attachments in LastPass first. Move only files still in use and store the rest in an approved archive.
TOTP seeds and custom fieldsThe LastPass CSV export leaves out TOTP codes and custom fields, so these must be re-created by hand and tested against each login.List every login that uses MFA or custom fields. Assign a named owner to re-enroll each one.
SSO and directory complexityBitwarden's SSO and directory sync features sit in the bitwarden_license code, which needs a paid license for production. Enterprise policies and SSO must be configured again after the move.Document which users sign in through SSO and which use master passwords. Confirm the license scope and directory connector setup with Bitwarden before cutover.
Paid license file requirementPaid features need a license file downloaded from the cloud admin console and tied to the installation ID. Its data region must match the cloud organization's region.Confirm the license tier, region and installation ID early. Ask the vendor how renewals and license re-issuance work for your installation.
Infrastructure sizingBitwarden's Linux install guide lists minimum and recommended RAM and storage and requires Docker Engine 26 or later. The default MSSQL Express image has a 10 GB database limit.Size to the recommended values in the install guide. Check the database growth against that 10 GB limit, and plan a larger database if the vault and attachments need more room.
Backup and monitoring setupYour team becomes responsible for encrypted database backups, restore tests, TLS certificates and uptime checks. Cutover cannot finish until restores are proven.Define backup frequency, retention and a tested restore procedure before import. Assign alerting for service and database health.
User training and onboardingStaff must install Bitwarden clients, move from the LastPass extension and accept new sharing rules. Gaps here generate support tickets after cutover.Run a pilot group first. Prepare short guides for the browser extension, collections and account recovery.

What usually goes wrong and how to prevent it

Most failed LastPass to Bitwarden migrations do not fail in the import itself. They fail in the steps around it: the export policy, folder mapping, data the export does not carry, sign-in paths, licensing and the decommissioning decision. Each card below names one of these failure points and the check that prevents it.

Exporting before lifting the policy

LastPass admins can set the Prohibit export policy, which blocks members from exporting their vaults. If it is still on when the migration starts, the people who hold the data cannot produce the CSV, and the delay surfaces late in the project. Before the cutover window, confirm in the LastPass admin console that the policy is off for every user who will export, and record who performed each export so the files can be tracked and deleted after import.

Bitwarden migration docs

Shared folders not mapped to collections

A LastPass shared folder does not become a Bitwarden collection on its own. Items imported without a collection mapping end up in personal vaults, and teams lose access to credentials they relied on. Build a table of every shared folder, its members and the intended collection name and permissions before import, then confirm after import that each collection holds the expected items and that a sample of users can see only what they should.

Assuming attachments and TOTP carry over

The LastPass CSV export does not include attachments, TOTP codes or custom fields. Teams that assume the import is complete will find that certificates, license files and authenticator seeds are missing after LastPass is closed. Inventory these items from each vault before export, then re-upload attachments and re-create TOTP entries and custom fields by hand in the new server, and check each one against the source.

Locking out SSO users

Accounts that sign in to LastPass through SSO follow a different path from password-based accounts. On a self-hosted Bitwarden server, SSO is an enterprise module that depends on a license file, and the sign-in configuration must be set up before users can get in. Test SSO sign-in with a pilot group on the new server, confirm which users need a master password fallback, and keep an admin account that does not depend on SSO for recovery.

License tied to the wrong region

Paid features on a self-hosted Bitwarden server require a license file downloaded from the cloud web app and tied to the installation ID. The installation's data region must match the cloud organization's region, so a license downloaded from the wrong organization or region will not work. Before purchasing or downloading, confirm the cloud organization and region, the installation ID from the self-host setup, and the license scope with Bitwarden, and check the license against a test install first.

Licensing for paid features

No tested restore before decommissioning LastPass

Teams often shut down the old vault once the import looks complete, which removes the fallback if the new server fails. A self-hosted server holds the encrypted vault database, attachments and configuration, and each of these must be restored successfully before LastPass access is removed. Run a restore test into a separate environment, sign in with a sample of accounts, confirm that items and attachments open, and document the result before any decommissioning decision.

How the migration differs by team size and starting point

A small team with a single administrator usually has one LastPass Business account, a modest number of shared folders and few integrations. The main work is getting the export right and keeping the server simple enough that one person can operate it. The admin often has to lift the Prohibit export policy first, because without that change the vault cannot be exported at all.

  • Export policy: Confirm who can change the Prohibit export policy in LastPass and do it before the migration window opens.
  • Hosting footprint: Decide whether a single Docker host is enough. Bitwarden's lite deployment is documented for personal use and home labs, not business use, so a small business should plan on the standard installation instead.
  • Account setup: Create the self-hosted account with the same email address used in the cloud organization, since the migration path depends on it.
  • Manual items: Plan to re-upload attachments and re-invite members by hand, because the migration guidance says these do not move automatically.
  • Backups: Set up and test a restore of the database before users depend on the server.

Before starting, confirm which LastPass items are attachments or TOTP seeds and how many shared folders must become collections, because that count sets the manual effort.

Questions buyers ask before moving from LastPass to self-hosted Bitwarden

What drives the cost and effort of moving from LastPass to self-hosted Bitwarden?

The cost is set mainly by the components you pay for: the server hardware or virtual machines, the database, backups, the paid license file if you need SSO or enterprise policies, and the people who do the work. Self-hosting the Bitwarden server itself is free, but paid features need a license file downloaded from the cloud web app and tied to your installation ID. One-time costs include the initial install, the migration and rebuilding attachments and policies. Recurring costs include the infrastructure, patching, backups and staff time to operate the server. The size of your vault count, the number of shared folders and attachments, and whether you need SSO drive the effort up or down. Ask any quote to split these components separately.

How long does a LastPass to self-hosted Bitwarden move take?

The duration depends on the size and shape of your LastPass estate, the readiness of your server, and how quickly your team can complete the manual steps. Installation is set by your infrastructure process, including obtaining the installation ID and key from bitwarden.com/host with a valid email address. The data import itself is usually the shorter part. The longer work is re-creating attachments by hand, redoing member invitations and enterprise policies, configuring SSO, and validating that users can log in and reach their shared collections. Your timeline should come from a written scope that lists these items, not from a generic estimate.

What does the migration need from our admins?

Your admins need to lift the Prohibit export policy in LastPass so that an export is possible, and they need an owner who can export the vault data, download the license and create the self-hosted account with the same email address. They also need access to the server host, DNS and TLS certificates, and an SMTP route for invitations. Bitwarden's migration guidance says member invitations, enterprise policies and SSO must be redone on the new server, so admins should plan time for that configuration. Confirm the exact admin roles and approvals required in your own tenant before the work starts.

Can our own team run the migration without outside help?

A small team with a Linux administrator and someone who understands your LastPass shared folders can often complete a basic migration, provided they follow Bitwarden's install guide and migration documentation. The harder decisions are about infrastructure, backups, TLS, high availability and who patches the server after go-live. Teams without a regular Docker or database operations skill tend to find those tasks take longer. Outside help is usually bought as a fixed-scope engagement with written deliverables, or as an ongoing retainer for upgrades and testing. Ask DeployOpen or any other provider for a written scope so you can compare it with your internal effort.

Do attachments and TOTP seeds move from LastPass to Bitwarden?

Attachments do not move automatically through the standard export path, so they must be re-uploaded by hand on the new server. Bitwarden's migration documentation lists attachments among the items that must be redone after moving servers. Confirm with your own export what your LastPass account actually provides, because TOTP seeds and custom fields can be missing from a CSV export. Plan to inventory any item that carries a TOTP seed or attachment before cutover, and treat those items as manual work in the scope and the rotation plan.

How do SSO and the Bitwarden license file work for a self-hosted server?

The main server code is licensed under AGPL 3.0, but enterprise modules such as SSO sit in the bitwarden_license directory under the Bitwarden License. That license is source-available, not open source under the OSI definition, and production use requires a paid subscription. Paid features need a license file downloaded from the cloud web app, in the Admin Console under Billing and Subscription, and tied to your installation ID. The installation ID's data region must match the cloud organization's region. Ask your procurement team to confirm the subscription terms and whether SSO is required for your users before you plan the cutover.

How do the 2022 LastPass disclosures affect the move?

The 2022 LastPass incidents matter for credentials you stored before the move, because the risk attaches to the data that was in LastPass when its backups were taken, not to the software you choose next. Moving to a self-hosted Bitwarden server changes who holds the encrypted vault and backups, but it does not make old credentials safe. Plan to rotate high-value credentials, including administrative, financial and infrastructure accounts, and reset MFA seeds where the vault held them. Confirm with LastPass's own incident disclosures which data categories were affected, and write the rotation work into your migration scope.

How DeployOpen works on this

DeployOpen plans and implements self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For a LastPass to self-hosted Bitwarden move, we agree the scope in writing first, then build, test, document and hand over the server and the migrated vault.

How we scope

  • Confirm which LastPass Business or Teams features are in use, including shared folders, SSO and admin policies.
  • Agree the Bitwarden server, database and hosting location, and the data region that must match your license.
  • Define who receives the Bitwarden license file and how the installation ID is handled under your accounts.
  • Record in the written scope which items are moved, which are re-created by hand, and who performs each step.

How we build

  • Deploy the self-hosted Bitwarden server in your environment with TLS, SMTP and backups configured to your standards.
  • Run the LastPass export and Bitwarden import in a test organization, then compare item counts and collections.
  • Re-create attachments, member invitations and enterprise policies, and test SSO sign-in before any production cutover.
  • Review access control, admin accounts and audit logging so your security and compliance teams can inspect the setup.

How we hand over

  • Deliver written runbooks for installation, upgrades, backups, restores and the license renewal process.
  • Provide a migration record listing what moved, what was re-created, and what still needs rotation or owner review.
  • Walk your administrators through member onboarding, collection management and day-to-day operation of the server.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Confirm with DeployOpen which support level and upgrade cadence the retainer covers before signing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.