Moving off SQLCipher in Open WebUI before the upgrade
If your Open WebUI instance keeps its database encrypted with SQLCipher, you must decrypt that database and move it to a new home before you upgrade to release 0.9 or later. The effort depends on four inputs: the size of the database, the number of users and their accounts, how many integrations read from or write to the instance, and how much regression testing your team can run before cutover. Estimate those four inputs first, because they decide whether this is a short maintenance window or a staged project with a rehearsed rollback.
The documentation available for this page does not describe a SQLCipher importer, so treat the work as a planned decryption and re-platforming exercise that your team designs, runs and verifies. Confirm the exact breaking change in the release notes for your target version before you schedule anything, because those notes state what the upgrade expects from the database. Then choose the destination: PostgreSQL, where encryption at rest is handled by the platform, or an encrypted filesystem under the data directory. The Open WebUI scaling guide requires PostgreSQL for multi-instance deployments and allows SQLite only for a single replica on locally attached SSD or NVMe storage.
Before you change anything, take a full backup of the database and the data directory, and record the secret key the instance uses. Restore the backup to a staging host, decrypt the copy there, and confirm that users, chats, files and knowledge bases open correctly after the move. If you bring in a partner, ask the quote to itemize the decryption work, the database move, integration retesting and a rollback rehearsal, and state which of these costs are one-time and which recur.
Which SQLCipher database contents map cleanly to Open WebUI
This table lists the main data classes in an Open WebUI database and the likely target for each on PostgreSQL or an encrypted filesystem. Read each row as a verification item: the target is where the data should land, and the notes say what to check before cutover. Items outside the relational database, such as vectors, uploads, and tokens, need separate checks.
| Data class | PostgreSQL target | Encrypted filesystem target | Migration notes |
|---|---|---|---|
| Users and roles | Relational tables in PostgreSQL after import of the decrypted records | Existing database file on an encrypted volume, single replica only | Confirm password hashes, roles and group membership after import, using a sample of accounts. |
| Chats and messages | Imported as rows, so table size grows with history | Same database file on an encrypted volume | Compare message counts and spot-check chat IDs on both sides before retiring the source. |
| Settings and configuration | Partly rebuilt from environment variables and admin settings | Retained in the database file | Environment variables may override stored values. Record both sources before cutover. |
| Files and knowledge | Metadata in PostgreSQL, file contents on shared storage | Upload directory on an encrypted volume | Uploads often live outside the database, so copy the data directory separately and check paths. |
| Vectors and embeddings | Not copied as vectors. Re-index knowledge in the target vector store. | Embedded vector files are separate and need their own verification | The scaling guide warns that default ChromaDB crashes in multi-process setups. Plan re-indexing. |
| API keys, sessions and tokens | Depends on the secret key and Redis. Confirm what imports and what must be reissued. | Depends on the same secret key stored with the data directory | Without Redis, sign-out does not revoke tokens, which stay valid until expiry, by default 4 weeks. |
Documented paths and sources for the move
Four sources shape this move: the release notes for the target version, the scaling guide for multi-instance requirements, the features documentation for vector database support, and the license page for any branding obligations that come with newer releases. No documented SQLCipher decryption tool or importer was supplied for this topic, so the team has to confirm with the project what exists before planning the work.
Target release notes
Read the release notes for the exact version you will upgrade to, since 0.9 or later is the boundary that matters here. The notes show whether the SQLCipher database is still read, what migration runs at startup and which settings changed. Check whether the release notes name SQLCipher at all before you schedule the decryption window. Record the version you test against so the rehearsal and the production upgrade match.
Open WebUI releasesConfirm any supported export path
No documented SQLCipher decryption tool or importer was supplied for this topic. Ask the Open WebUI project, through its public channels or documentation, whether a supported export or decryption path exists for your version. If the answer is no, treat decryption as a controlled procedure your team owns, with its own key handling, a copy of the original file and written verification steps.
Scaling guide for PostgreSQL
The scaling guide requires PostgreSQL instead of SQLite for multi-instance deployments because SQLite does not handle concurrent writes from several processes well. If your target is PostgreSQL, the guide is the reference for connection settings and the reason a single-file database is not the end state for a multi-replica service. Use it to decide whether PostgreSQL is a destination or only a transit step.
Scaling guideRedis and shared storage expectations
For multiple replicas the scaling guide expects Redis for sessions, websocket connections and application state, plus shared file storage so uploads and knowledge stay reachable from every replica. Without Redis, signing out does not revoke tokens, which remain valid until expiry, by default after 4 weeks. Confirm these requirements are met before the encrypted database is put back into service.
Supported vector databases
The features documentation lists 13 supported vector databases, including PGVector, ChromaDB, Qdrant, Milvus and Elasticsearch. Pick the target before the move because the scaling guide warns that the default ChromaDB crashes in multi-process setups. If you choose PGVector, confirm that your PostgreSQL build and extension are available in the environment you plan to run.
Features documentationLicense terms for newer releases
Code from v0.6.6 onward is distributed under the Open WebUI License, which restricts altering or removing branding in deployments above 50 users in any rolling 30-day period unless an enterprise license or written contributor permission applies. Check this before upgrading a shared instance, because the license change applies on the same upgrade path as the database move. Confirm the terms with the project rather than relying on this summary.
Open WebUI LicenseHow the decryption step fits before the upgrade
The order of operations matters more than any single command. The SQLCipher database has to be opened with its key, its contents read into a plaintext or re-encrypted target, and that target verified before the upgraded Open WebUI release is pointed at it. If the upgrade runs first, the application will try to open a file it cannot read, and the failure can look like a broken login or an empty chat history rather than a clear decryption error. Treat the window as a sequence of gates: source opens, target is populated, row counts and sample records match, and only then does the application configuration change. Confirm the exact pragmas and key-handling behavior for your SQLCipher build against the SQLCipher documentation, because cipher defaults and compatibility settings differ between major versions.
Key custody decides who can read the database during the window. The SQLCipher key is the single item that turns the encrypted file into readable data, so every copy of it is a copy of the data. Before starting, record where the key is stored today (an environment variable, a secrets manager, a file on the host), who can read it, and where the decrypted output will land. Limit the people and service accounts with access to the key and the plaintext target to the named migration operators, keep the plaintext on a restricted path rather than in a shared volume, and plan its deletion once verification is signed off. Ask your team to confirm whether any backups or container images already hold the key, since those copies remain in scope for the same controls.
Keep the original encrypted file untouched as the rollback source. Copy the SQLCipher file to a separate location and never write to the original during decryption. The untouched file, with its key, is what lets you restore the previous release if the upgraded instance fails verification. After cutover, check two things that migrations often miss: the WEBUI_SECRET_KEY value must be identical to the one used before, or stored tokens and encrypted fields will not validate, and any sessions or API keys stored in the database need a test sign-in and a test API call. Confirm the specific secret handling and token behavior for your release in the Open WebUI releases notes before you change anything.
The sequence: inventory, pilot, parallel run and cutover
This sequence moves the data off SQLCipher without touching the only copy of the original. Each phase produces evidence that the decrypted data, the target platform and the cutover plan work before the old database is retired.
Inventory the database, files, vectors and integrations
The platform owner lists everything the installation depends on: the encrypted database, the upload and knowledge files in the data directory, any vector store contents, the secret key and other environment values, model server connections, SSO settings and tool or search integrations. Each item gets an owner and a note on whether it moves, is rebuilt or stays as is. The inventory is done when a second engineer can rebuild the installation from it without asking the original operator anything.
Decrypt a copy of the database
Work on a copy of the encrypted database file, never the original, and keep the original and its key material in place until decommissioning. Record the SQLCipher settings and key source used to open the copy, and confirm the copy opens and returns expected row counts for users, chats, groups and configuration tables. Confirm with the Open WebUI release notes for version 0.9 or later how the project expects this step to be handled, because the project's own procedure governs the order. The step is done when the decrypted copy passes the row-count and sample-record checks.
Load the copy into a pilot on the target platform
Load the decrypted copy into a pilot environment built on the storage platform you have chosen, either PostgreSQL with encryption controls or an encrypted filesystem under the data directory. Restore the file store and the secret key the instance expects, then start Open WebUI at the target version. Log in as an administrator, open a sample of chats and knowledge bases, and confirm that uploads open. The pilot is done when the platform starts cleanly and the sampled records match the source.
Run a parallel instance with representative users
Run the pilot alongside the production instance with a small group of users who represent the real mix of roles, groups and models, and have them complete their normal tasks. Compare sign-in behavior, permissions, model responses and file access against the production instance, and log every difference. If the production design uses several replicas, the pilot must match that topology: the scaling guide requires PostgreSQL for multi-instance deployments, Redis for shared session state and shared file storage, and an external vector database. A single replica on locally attached SSD or NVMe storage can use a simpler layout. The step is done when the logged differences are resolved or accepted in writing.
Plan the cutover window and rollback path
Write a cutover runbook that lists the freeze on writes to the original instance, the final copy and decryption, the load into the target, the DNS or proxy change, the post-cutover checks and the named person who approves each go or no-go decision. The rollback plan keeps the untouched encrypted original and its key material available, and states who decides to roll back and how the proxy is pointed back. Agree the window length with the business owners, since this document does not supply a duration. The plan is done when the runbook has been rehearsed once against the pilot.
Decommission the old database and key material
After the agreed period of stable operation on the new platform, retire the SQLCipher database, its backups and the key material that opened it, and record each removal in the change log. Keep a dated archive of the encrypted original under the organization's retention policy if one applies, stored with access controls that match its sensitivity. Confirm that backups of the new platform run and that restore tests pass before the old copies go. The step is done when the removal is logged, the archive location is recorded and the old key material is no longer accessible to the running service.
How the decryption, target choice and cutover fit together
The path starts by confirming the target version and its breaking change, then inventorying data and encryption keys. Decryption produces a verified copy, and the original stays untouched throughout. A single replica can keep the SQLite file on an encrypted local volume, while multiple replicas need PostgreSQL with its own encryption, plus Redis and shared file storage. Pilot and parallel run results decide cutover, and a failed check leaves the original database in place for rollback.
Decision path from decryption through target choice to cutover or rollback.
What drives the effort and the cost of this move
This table lists the factors that raise or lower the effort of decrypting a SQLCipher database and moving to encrypted storage. Read each row for what changes the work, whether the cost is one-time or recurring, and what to ask for in a written quote. Figures come from the written scope, not from this page.
| Driver | Why it changes effort or cost | One-time or recurring | What to ask for in the quote |
|---|---|---|---|
| Database size and table count | Larger databases take longer to export, decrypt, verify and load, and more tables mean more row-count and integrity checks | One-time | Table inventory, row counts from your copy, and the verification method and sample sizes |
| Files, uploads and knowledge bases | Upload files live on disk outside the database, so each file must be located, checked and reattached to its record after the move | One-time | File count, total storage size, and how orphaned or missing files will be reported |
| Vector store choice and re-indexing | If vectors must be rebuilt in a new store, embedding time and downtime grow with the knowledge base size | One-time, with possible repeat if the embedding model changes | Whether re-indexing is in scope, the target vector store, and the embedding model used |
| Users, sessions and API keys | Active sessions, user records and API keys must be carried over or deliberately invalidated, and users may need to sign in again | One-time | Whether sessions and API keys will be preserved or reset, and the user communication plan |
| SSO and group integrations | OIDC, LDAP or SCIM settings reference user identifiers that must still match after the move | One-time, and ongoing if provisioning continues | Identity provider list, which settings are checked, and the test sign-in plan |
| Replica count and shared state | Multiple replicas need PostgreSQL, Redis and shared file storage, which adds configuration and testing beyond the decryption itself | One-time for setup, recurring for infrastructure you run | Replica count, target database and Redis design, and whether these services are already in place |
| Access to the SQLCipher key | If the team holds the key and the original configuration, decryption can start quickly; if not, recovery work and delays are likely | One-time | Who supplies the key, where it is stored, and how key handling and deletion are documented |
| Test cycles in the change window | Each rehearsal on a copy of production data adds effort, and a short window may need more rehearsals to reach confidence | One-time | Number of rehearsal cycles included, rollback test scope, and how results are reported before cutover |
What usually goes wrong when encrypted data is moved
Moving data out of an encrypted SQLCipher database touches keys, secrets, sessions, files and rollback paths at once. Most failures happen where one of these is handled separately from the database, so each card below names a failure and the check that prevents it.
Lost or mismatched SQLCipher key
The database cannot be opened without the exact key it was created with, and a key that was rotated, typed differently or stored only on an old host blocks the whole export. Before any work starts, confirm which key opens the current webui.db by opening it in a scratch environment, and record where that key is held and who can retrieve it. Do not begin the decryption until the key has been verified on a copy.
Decrypted copy left unprotected
A plaintext export is the most sensitive artifact in this project, because it holds chats, accounts and settings in readable form. Teams often leave it in a working directory, a shared volume or a backup job that runs nightly. Write the decrypted file only to a restricted path, set a deletion step in the runbook, and confirm that backup tooling excludes it or that its retention is controlled.
Changed secret key breaks sessions
Open WebUI uses a secret key to sign tokens and protect some stored values, so a new environment with a different key can log every user out or make encrypted fields unreadable. Carry the original WEBUI_SECRET_KEY value into the new configuration exactly, and treat it as a secret held in your secrets manager. Test a login and a read of a previously encrypted setting before the cutover is declared complete.
Tokens valid after sign-out
Without Redis, signing out does not revoke tokens, which then stay valid until they expire, by default after 4 weeks. A migrated deployment that adds replicas without a shared state store inherits this gap silently. Decide whether Redis is part of the target architecture before cutover, and test that a token copied before sign-out is rejected afterward.
Scaling docsUploads and vectors left behind
The database holds references to files and knowledge base content, but the files and vector data sit in separate locations. Moving only webui.db leaves chat attachments and retrieval collections unreachable or broken. Inventory the data directory and the vector store as separate items, move each one with the database, and check that a sample knowledge base answers a query after the move.
Cutover with no tested rollback
A migration that overwrites or deletes the original database leaves no way back if the new instance fails a check. Keep the untouched original file, with its checksum recorded, in a separate location until the new deployment has passed its acceptance checks. Rehearse the rollback on a copy so the restore steps, including any restart order, are known before production downtime begins.
Choosing PostgreSQL encryption or an encrypted filesystem
PostgreSQL is the option to choose when Open WebUI runs more than one instance. The Open WebUI scaling guide requires PostgreSQL instead of SQLite for multi-instance deployments, because SQLite does not handle concurrent writes from multiple processes well. Open WebUI does not provide database-level encryption of its own for this case, so encryption at rest comes from the platform and storage layer you control, not from the application.
- Encryption at rest: Depends on your hosting platform, the volume or disk layer and any managed database service you use. Confirm which options your platform offers and how they are enabled.
- Encryption in transit: Configure TLS between Open WebUI and PostgreSQL and confirm the server certificate is validated by the client.
- Key management: Decide who owns the encryption keys, where they are stored and how rotation is performed. Keys must be available to the database after a restart.
- Backups: Backups inherit the encryption requirements of the live database. Confirm that dumps and snapshots are encrypted and that restore has been tested with the same keys.
- Access control: Restrict database roles to the Open WebUI service account and separate administrative access.
Before committing, confirm each encryption feature with the PostgreSQL and storage vendor documentation for your versions.
An encrypted filesystem protects the Open WebUI data directory and the SQLite database file on a host that runs a single replica. It is a host-level control: the operating system or storage layer encrypts the bytes on disk, and Open WebUI reads and writes them normally. It does not replace PostgreSQL when you run multiple replicas, because the scaling guide requires PostgreSQL and shared state for that topology.
- Single-replica scope: Use it for one instance with the database and uploads on the same encrypted volume.
- Storage type: The scaling guide says SQLite is acceptable for single-replica use only when the database file sits on locally attached SSD or NVMe storage rather than network storage. Choose an encrypted volume that meets that condition.
- Key unlock at boot: Plan how the volume is unlocked after a reboot, including whether unattended restarts are possible.
- Backups: Snapshots and copies of the data directory must be encrypted or stored under equivalent controls.
- Scope limits: Encryption protects data at rest on that host. It does not protect data in memory or data sent to model providers.
Confirm the encryption method, supported key sources and performance characteristics with your filesystem or volume vendor documentation.
The deciding factor is topology. A single-replica host with local SSD or NVMe storage can use an encrypted filesystem for SQLite. A deployment with several replicas, or a plan to add replicas, needs PostgreSQL, Redis and shared file storage, and the encryption design must cover all of them. Many teams start on an encrypted filesystem and move to PostgreSQL when they scale, so plan that second migration now.
- Replica count: One replica points to an encrypted filesystem. Two or more points to PostgreSQL.
- Growth plans: If scaling is likely within your planning horizon, start with PostgreSQL.
- Control ownership: Choose the option whose keys and backups your security and operations teams can run.
- Review evidence: Auditors and security reviewers will ask where keys live and how they are rotated. Prepare that answer for either option.
- Vendor confirmation: Verify encryption features with each vendor's current documentation before you record the decision.
Record the chosen option, its key owner and its backup procedure in your change record before the SQLCipher decryption step.
Questions teams ask before moving off SQLCipher
How much does moving off SQLCipher cost?
The cost depends on the written scope, and DeployOpen does not publish a price list, so a quote follows from that scope. The main components are assessment of the current database and key handling, decryption and export, setup of the target (PostgreSQL or an encrypted filesystem), test runs against a copy, the cutover window, a rollback plan and handover documentation. Most of this is one-time work. Recurring costs sit in your own infrastructure and in any retainer you choose for later upgrades. Ask the quote to list each component separately, state who performs it, and name what is excluded, such as storage changes or later Open WebUI upgrades.
How long does a SQLCipher to encrypted storage move take?
Duration is set by the factors that vary most between installations: the size of the database, how many accounts and chats it holds, whether the SQLCipher key is available and verified, whether the target database or encrypted volume is ready, how many test cycles the team needs, and the downtime window the business accepts. No duration has been established for this work, so confirm the timeline after the environment is reviewed. If you plan to run several replicas, the scaling guide requires PostgreSQL, Redis and shared file storage, which adds setup work and lengthens the schedule.
What must our team provide before the migration starts?
Four things determine whether the work can start on schedule. First, the SQLCipher key and a record of who holds it, because the database cannot be decrypted without it. Second, a copy of the database file taken while Open WebUI is stopped. Third, access to the host or container platform, the data directory and the secret key used by the installation. Fourth, a written test plan with acceptance checks such as user counts, chat history, uploads and login tests. Also confirm the change window and the people who approve it, so cutover is not delayed by approvals.
Can our own team handle the SQLCipher move internally?
Yes, if the team has database administration skills, container or host access, and time to test before cutover. The work is decrypt, export, import into the target, then checks on row counts, users, files, knowledge bases and logins, all against a copy first. Internal teams usually stall on the key custody step, on verifying that the export is complete, and on rollback rehearsal. A fixed-scope engagement moves those responsibilities into a written deliverable list, and the team can still keep ownership of the production cutover. Decide which side owns each step before the work begins.
Is there a documented importer for SQLCipher databases?
The supplied material does not confirm that Open WebUI ships a documented importer for SQLCipher databases, so do not plan around one until you verify it. Check the release notes for the exact version you are moving to, then search the official documentation for database migration guidance. If no importer exists, the usual path is a controlled export script run against a copy, using SQLCipher tooling to read the database with the key, followed by schema and row validation before any data reaches the new database. Keep the original encrypted file unchanged throughout.
What happens to existing sessions and API keys after the move?
Sessions depend on how the deployment is built. The scaling guide says that without Redis, signing out does not revoke tokens, which stay valid until they expire, by default after 4 weeks. After a move, plan a forced sign-in for all users at cutover, and confirm the token lifetime configured in your installation. API keys are stored in the application database, so they should move with it, but verify this on the test copy by making a call with a known key before and after the import. Record which keys belong to integrations, since those owners must be told if a key changes.
What does a rollback look like if the SQLCipher move fails?
A rollback returns the installation to the state it had before cutover. Keep the original encrypted database file, its backup and the previous container image unchanged until acceptance is signed off. To roll back, stop Open WebUI, restore the original database and data directory with the same secret key, point the configuration back to the old storage, start the previous version and check sign-in, one chat and one file retrieval. Write the rollback steps and their time limit into the scope and rehearse them on the test copy, so the team knows the procedure works before it is needed.
How DeployOpen scopes and delivers this migration
DeployOpen approaches moving off SQLCipher in Open WebUI as a written, fixed-scope migration on infrastructure you control. The work starts with an inventory of your current database, encryption setup and target platform, then moves through a tested decryption and cutover plan with documented verification steps.
How we scope
- Inventory the SQLCipher database, its key handling, the Open WebUI version in use and the planned target.
- Confirm whether the target is PostgreSQL with database-level encryption or an encrypted filesystem under the data directory.
- Agree in writing the deliverables, the environments covered and the acceptance checks before any work begins.
How we build
- Rehearse decryption and data copy on a copy of your database in a non-production environment first.
- Verify row counts, user accounts, chats, settings and the secret key handling before any production cutover.
- Test the upgrade to Open WebUI 0.9 or later and the rollback path against the rehearsed backup.
How we hand over
- Deliver a runbook covering each step, the commands used, the checks performed and the rollback procedure.
- Document where decryption keys, backups and the encrypted storage configuration are held and who controls them.
- Walk your operations team through the cutover record so they can repeat or audit the steps later.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after the migration is complete.
- Include a post-cutover review of backups, logs and access to the database and encryption keys.
- Ask your team to confirm the support boundaries and response expectations in the written scope.

