Migrate from n8n Cloud to self-hosted n8n: what the move involves
If your team runs workflows on n8n Cloud and needs them on infrastructure you control, the short answer is this: workflow definitions export through the admin dashboard, but credentials, webhook URLs, execution history and the database must be rebuilt and verified on your side. Downloading workflows from the most recent backup is the easy part. Everything that makes a workflow run in production, from stored secrets to the URLs external systems call, has to be planned as a separate piece of work.
Effort depends on three things you can count: the number of workflows, the number of credentials each workflow uses, and how many workflows depend on inbound webhooks that other systems already call. A workflow with three credentials and a public webhook takes more care than one that only runs on a schedule. Do not accept an effort figure from anyone until they have produced a scoped inventory of all three. Ask for that inventory in writing as the first deliverable of any quote, and ask whether the partner will recreate credentials from your own vault or from the values you supply.
Self-hosting n8n is internal use under the Sustainable Use License, which permits use for your own internal business purposes. Confirm with your legal or procurement team that your intended use, including any embedding in a product you sell or distribute, falls inside those terms, and check the n8n LICENSE.md text directly before you commit. Plan the database, encryption key and backup approach before the first import, because those choices determine how much of the Cloud setup can be carried over.
Which n8n Cloud features map to self-hosted n8n and which need rework
This table compares each part of an n8n Cloud workspace with its self-hosted equivalent and notes what moves as-is and what must be rebuilt. Read it before exporting, so you know which items come across in the workflow download and which you must recreate by hand. The main takeaway is that workflows travel, while credentials, execution history and plan-gated features do not.
| Feature | Self-hosted equivalent | Migration notes |
|---|---|---|
| Workflows | Workflow JSON imported into your own instance | Download from the most recent backup under Manage > Export > Download Workflows. Re-check node settings and expressions after import. |
| Credentials | Credentials stored in your own database, encrypted with your instance encryption key | Not carried over in the workflow download. Re-enter each credential on the new instance and retest every node that uses one. |
| Webhook paths | Webhook URLs served from your own domain | Production webhook URLs change with the host. Update every external system that calls them and confirm the old Cloud URL is retired. |
| Executions and history | Execution data stored in your own database, subject to your retention settings | Execution history is not part of the workflow export. Record any run results you need to keep before the trial window closes. |
| Projects and users | Users, roles and projects set up by your administrator | Recreate users and project structure manually. Confirm with n8n which role and project features your edition includes. |
| Variables | Instance or project variables defined in your own environment | Variables are not listed as exported assets in the researched workflow download. Record them manually and confirm with n8n how they transfer. |
| Custom nodes | Custom nodes installed in your instance's custom node directory | Cloud-only installs do not transfer. Package and install each node yourself, and check it against the version you deploy. |
| SSO | SAML or LDAP configured on your instance | Depends on plan tier. SSO and LDAP are listed on the Business and Enterprise plans on n8n's pricing page, so confirm your entitlement before cutover. |
| Git environments | Git-backed environments on your instance | Depends on plan tier. Environments with Git are listed on the Business and Enterprise plans on n8n's pricing page. Confirm before planning a Git-based change process. |
Documented export and import paths for moving off n8n Cloud
The export path starts in the n8n Cloud admin dashboard. Under Manage, choose Export, then Download Workflows. The download uses the most recent backup, so the file reflects the state captured in that backup, which may differ from the live instance if anyone changed a workflow after the backup ran. See n8n's Cloud download guide for the current steps.
- Check the backup time: Confirm which backup the download uses and whether recent edits are included.
- Download inside the window: After a free trial ends, n8n gives 90 days to download workflows before they are permanently deleted.
- Keep your own inventory: Record each workflow's name, owner, trigger type and webhook path, since the export does not replace that context.
- List every credential: Credentials must be recreated on the new instance, so note each service account, API key and token the workflows use.
Before you cancel anything, confirm that every workflow you expect appears in the downloaded files.
After download, the import runs against your self-hosted instance. This page does not describe the import command or its options, because those can change between releases. Confirm the import mechanism for your target version in n8n's documentation, and test it on a non-production instance before any cutover.
- Match the target release: Install the version you plan to run in production and run the import against that version.
- Use a staging instance: Load the files into a throwaway instance to find broken node references, missing credentials and expressions that assumed Cloud-specific settings.
- Re-link credentials: Create each credential on the new instance, using the same names where possible, so imported nodes resolve without manual edits.
- Review active states: Decide which workflows should be active after import, because enabled triggers can start running immediately.
- Leave the source untouched: Keep the Cloud instance running and unchanged until the imported workflows pass your checks.
Run a test execution of each business-critical workflow on the self-hosted instance before you move any production traffic or webhook URLs.
The database shapes what you are moving from and what you are moving to. n8n Cloud runs SQLite on Starter, Pro and legacy Enterprise plans, and runs PostgreSQL only on Enterprise Scaling plans. Self-hosted installs default to SQLite and can also use PostgreSQL, so the target database is a decision you make, not something the import settles for you. Review n8n's database guide before you provision the new host.
- Identify the source plan: Note whether your Cloud instance runs on a plan that uses SQLite or on an Enterprise Scaling plan that uses PostgreSQL.
- Set the target database early: Choose the self-hosted database before the import test so the test matches production.
- Account for queue mode: In queue mode, workers read and write workflow data in PostgreSQL, so plan PostgreSQL from the start if you expect queue mode.
- Plan any later move separately: Changing databases after go-live is its own migration project, so raise it now if you are unsure.
- Ask what carries over: Confirm with n8n whether execution history, settings and users are included in the export or must be handled another way.
Write the source plan and target database into your migration record so the import test uses the same setup as production.
Version alignment is the other variable. n8n uses semantic versioning and ships minor releases roughly weekly, so the Cloud version you exported from may differ from the self-hosted release you install. n8n 2.43, for example, was released on 6 October 2026. Confirm compatibility for your chosen release in the n8n release notes before you import.
- Record both versions: Note the Cloud version at export time and the self-hosted release you plan to run.
- Read breaking changes: Check the release notes for node or behavior changes that affect the workflows you are moving.
- Pin the target release: Install a fixed version so testing and production run the same code.
- Retest after upgrades: A later minor release can change node behavior, so rerun critical workflows after each upgrade.
- Confirm scope gaps: Ask n8n which Cloud settings, such as users, projects and environment configuration, fall outside the workflow export.
Before you cancel the Cloud plan, record the Cloud version, target version and import test results in your migration record.
How to plan the cutover from n8n Cloud, step by step
The sequence moves workflows, credentials and webhook traffic from n8n Cloud to an instance you run, with each stage closed by a check before the next one starts. Checking the download window first keeps the export from becoming the deadline.
Check the download window first
Before anything else, confirm the date your trial ended or the date your Cloud access changes, because after a free trial ends n8n gives 90 days to download workflows before they are permanently deleted. Whoever owns the Cloud account should write that date down and share it with the migration team. Starting the clock check here means the export is not the step that runs out of time. The step is done when the deadline is on the project plan and someone has confirmed the account owner can log in.
Inventory workflows, credentials and webhooks
List every workflow in each Cloud project, the credentials each one uses, and every webhook path that external systems call. Mark which workflows are active, which schedule triggers run, and which depend on another workflow. Record the owner of each external system that posts to a webhook, since those owners must approve the URL change later. The output is a single inventory sheet that the cutover is measured against. It is complete when every active trigger has a named owner and a replacement plan.
Stand up the self-hosted instance and its database
Install your self-hosted n8n in the infrastructure you control and choose the database before any workflow is imported. Self-hosted installs default to SQLite and can use PostgreSQL, and that choice is hard to change later, so decide it with your queue mode and scaling needs in mind. Generate the encryption key and store it in your secrets system, because credentials cannot be read without it. The step is done when the instance starts, the key is backed up in two places, and a test login works behind your proxy and certificate.
Export and import workflows
Download the workflows from the most recent backup in the Cloud admin dashboard under Manage, then Export, then Download Workflows. Keep the downloaded files in version control or an archive with a checksum so the copy can be proven later. Import them into the self-hosted instance in a non-production project, and compare the workflow count and node list against the inventory. Expect imported workflows to reference credentials that do not yet exist. The step is done when every inventory line has a matching imported workflow and the differences are listed.
Recreate credentials and pilot with non-production triggers
Credentials do not move with the workflow export, so recreate each one on the self-hosted instance using the owning team's account or a service account. Attach the new credentials to the imported workflows and run them manually with test data or a sandbox endpoint. Pilot scheduled and webhook triggers against a test target before anything touches production systems. The step is done when every credential has been tested with a successful run and each pilot result is recorded against the inventory.
Run both instances in parallel
Keep the Cloud instance live while the self-hosted instance runs the same workflows in a controlled way, so you can compare outputs. Disable duplicate scheduled triggers on one side so the same job does not run twice and write duplicate data to downstream systems. Watch execution results, error logs and the external systems each workflow writes to during this period. The step is done when outputs match for an agreed set of runs and the owners of each downstream system have signed off in writing.
Cut over webhook URLs
Change each webhook caller to the new self-hosted URL in a planned order, starting with the lowest-risk integration. Deactivate the Cloud version of each workflow as its caller switches, so that no event is processed twice and none is lost. Confirm each external system receives a successful response from the new endpoint. The step is done when every webhook in the inventory points at the self-hosted instance and the Cloud copies of those workflows are inactive.
Verify the export and decommission the Cloud instance
Once the self-hosted instance has run cleanly and the archived export has been checked against the inventory, plan the shutdown of the Cloud account. Retain the verified export and the inventory with the change record for your audit trail. Confirm with the account owner what happens to the Cloud subscription and any data that remains there, and cancel it through the normal process. The step is done when the change record names the final workflow count, the webhook cutover date, the archive location and the person who approved the shutdown.
How the parallel run and webhook cutover fit together
The sequence starts with exporting workflows from the n8n Cloud admin dashboard, then importing them into self-hosted n8n and recreating credentials, since Cloud credentials are not carried in the download. A pilot run tests each workflow; a failed test loops back to credential recreation rather than moving on. Once the pilot passes, both instances run in parallel while traffic still reaches Cloud, and webhook URLs are re-pointed at DNS or the upstream system only after the self-hosted copy is verified. Check that the 90-day deletion window has not expired before decommissioning Cloud.
Phases from Cloud export through webhook cutover and Cloud decommission, with a loop for failed pilot tests.
What drives the effort and cost of the migration
This table lists the factors that change how much work a move from n8n Cloud to a self-hosted instance involves, whether each cost is one-time or recurring, and what to request in a written quote. Use it to scope your own inventory before asking a partner or internal team for an estimate, since most of the effort sits in the drivers rather than the export itself.
| Driver | Why it changes effort or cost | One-time or recurring, and what to ask for |
|---|---|---|
| Workflow count and complexity | Each workflow needs review, re-testing and sometimes redesign for the new host, and branching logic or sub-workflows multiply test cases. | One-time. Ask the quote to state how many workflows are in scope and which ones are excluded. |
| Number and types of credentials | Credentials are not exported with workflows, so each one must be recreated and tested against its target system, and OAuth flows need new redirect registrations. | One-time. Ask for a credential inventory by type and who holds the source secrets. |
| Inbound webhooks | Production URLs change when the instance moves, so every caller must be updated and tested during cutover. | One-time. Ask how many webhook endpoints exist and which external owners must approve changes. |
| External systems that must be updated | Partners, SaaS tools and internal services that point at n8n Cloud URLs, IP allow lists or callback addresses each need a change request. | One-time. Ask for a list of dependent systems and the owner of each change window. |
| Custom code and Code node dependencies | Code nodes that use npm modules, environment variables or external libraries need the new host to provide the same runtime and packages, which may not match Cloud defaults. | One-time for porting, recurring when packages must be patched. Ask which modules are used and how updates will be tested. |
| Team size and approval needs | Review, sign-off and change board steps add coordination time, and each approver adds a waiting period that the build itself does not measure. | One-time. Ask who signs off on cutover and whether the plan includes a rollback review. |
| Parallel running of production | Keeping n8n Cloud and the new instance active at the same time avoids downtime but means duplicate triggers must be prevented and both environments monitored. | Recurring while both run, and this is a cost to plan for. Ask how duplicate executions will be prevented and for how long the overlap should last. |
| Self-hosted operating costs | Hosting, database, backups, monitoring and upgrades become your responsibility once the instance runs on your infrastructure, and n8n plan prices on its pricing page do not cover your own servers. | Recurring. Ask the quote to separate build work from ongoing operations, and check n8n's pricing page for the plan and license terms that apply. |
What usually goes wrong when moving n8n Cloud workflows
Most failed moves from n8n Cloud share a few causes: credentials and keys that never made it across, webhooks still pointing at the old host, and deadlines or plan limits nobody checked. Each card below names one risk and the check that prevents it.
Missing credentials after recreation
Workflow exports contain node configuration but credential secrets are not usable on a new instance, so every node that calls an external system fails until its credential is recreated. Before cutover, list every credential referenced by the exported workflows, record the owning system and account, and recreate each one with the same name so node references resolve. Test each credential once in a non-production run, since a wrong scope or expired token only shows up when a workflow fires.
Download workflows docsWebhook URLs still pointing at Cloud
Webhook URLs include the host name of the instance that serves them, so partners, forms and SaaS apps keep calling n8n Cloud after the move unless each sender is updated. Inventory every trigger node, note its production path and the systems that call it, and plan the DNS and proxy change as one step. Keep the Cloud instance receiving traffic until each sender is confirmed, because a silent webhook failure often goes unnoticed for days.
Lost execution history and audit trail
Downloading workflows moves the definitions, not the execution log, so past runs, error records and the audit trail that auditors may ask for stay behind on n8n Cloud. Decide which history matters for operations or compliance, export or archive the relevant records from the Cloud instance while access still exists, and state in the change record where the old history lives. Confirm with your compliance team what retention they require before you rely on the Cloud copy.
Encryption key not backed up
Self-hosted n8n encrypts stored credentials with an encryption key on the instance, and that key does not come with the workflow export. If the key is lost or differs between the database and the restored instance, saved credentials cannot be decrypted and must all be re-entered. Record the key in your secrets manager before the first start, confirm the new instance reads it, and treat it as a required part of every backup.
Missing the 90-day deletion window
After a free trial ends, n8n gives 90 days to download workflows before they are permanently deleted. Start the export as soon as the trial ends or the decision to leave is made, not at cutover, because the window covers the export, the review and any re-testing. Set an internal deadline well inside the window and assign one owner to confirm the download completed and the files are stored outside the Cloud account.
Plan-tier features assumed but not licensed
Teams often assume SSO, environments with Git and log streaming carry over from their Cloud plan, but on n8n's pricing page these appear only in the Business and Enterprise plans. Check which features your current plan uses, map each one to an edition that includes it, and confirm the self-hosted licensing terms with n8n before planning those controls. Also review the Sustainable Use License, which limits use to internal business purposes and does not match every commercial setup.
n8n pricingQuestions buyers ask before moving off n8n Cloud
How much effort does moving off n8n Cloud take?
The effort depends mostly on how many workflows you run, how many credentials they use, and how many of them depend on webhooks or custom code. Workflow export is the simple part, because the admin dashboard lets an instance owner download workflows from the most recent backup under Manage > Export > Download Workflows. The harder work is recreating credentials on the new instance, re-pointing webhook URLs in every external system that calls them, testing each workflow against its real data, and standing up the server, database, proxy and certificates. Costs split into internal time for your team, any partner fees for a fixed-scope engagement, and infrastructure you will pay for each month after cutover. Ask any quote to list each of these items separately, with the workflow count and credential count it assumes.
How long does a move from n8n Cloud take?
No researched duration is available for this move, so treat any timeline you see elsewhere as unverified until it is tied to your own environment. The main drivers are the number of workflows, the number of credentials that must be re-entered and tested, the count of webhook endpoints that external systems call, any custom nodes or code modules, and how many people must approve each change. Parallel running also adds time, because you want the old and new instances both processing test traffic before you switch. Ask for a written plan that breaks the work into inventory, build, test and cutover phases, with a named owner and a sign-off step for each phase. Your own team's availability often sets the calendar more than the technical work does.
What does the migration need from our team?
Your team needs to supply access, decisions and knowledge that only your organization holds. That means an owner with admin rights on the Cloud instance, someone who can approve the target cloud account or data center, and workflow owners who can confirm what each workflow should do after the move. Credential owners must be available to re-enter secrets, because the workflow download does not carry those values over. Your security team should decide on the encryption key handling, network access, backup location and who may administer the new instance. Finally, the systems that call each webhook need owners who can change the target URL during cutover. Name these people before work starts, since missing owners are a common reason migrations stall.
Can our team move n8n Cloud workflows to self-hosted n8n without a partner?
Yes, a team with Linux, Docker or Kubernetes, PostgreSQL and reverse proxy experience can often do the move internally, and the migration itself is not secret or proprietary. The questions to answer honestly are whether someone has time to inventory every workflow, test each one, and document the result, and whether the team can own the instance afterward for upgrades, backups and security patches. A partner is most useful when the workflow count is large, when many workflows are business critical, when audit evidence is needed, or when the team lacks capacity during the cutover window. If you engage a partner, ask for a fixed-scope written agreement that names deliverables, test evidence and what happens after handover.
What happens to my workflows after the 90-day window?
After a free trial ends, n8n gives 90 days to download workflows before they are permanently deleted. Once that window closes, the workflows cannot be recovered from n8n, so the export must happen before the deadline. Do not rely on the trial end date alone, because the workflows stay in your account until the window closes, not until the trial is cancelled. Check the date your trial ended, put the deadline in your change calendar, and download the workflows early enough to inspect the files. Keep a copy in storage you control, since an export is also your rollback reference if a workflow behaves differently on the new instance. Confirm with n8n how the window applies to your specific account type before you plan around it.
Does SSO carry over when we move to self-hosted n8n?
Plan on configuring SSO again on the self-hosted instance rather than assuming it moves with your workflows. The workflow download covers workflows only, so identity provider settings, user accounts and access roles must be set up on the new instance. SAML single sign-on is available on the Business and Enterprise plans, according to n8n's pricing page, and n8n publishes setup guides for Okta Workforce Identity and Azure AD. Check which plan your self-hosted edition needs before you design the identity setup, because SSO availability depends on the plan you choose. Your identity team should test sign-in, role mapping and deprovisioning in a staging instance before cutover, and confirm with n8n exactly which settings, if any, are included in the Cloud export.
What does the Sustainable Use License allow for internal self-hosting?
The Sustainable Use License allows you to use or modify n8n for your own internal business purposes, which covers running a self-hosted instance for your organization's workflows. It does not allow you to distribute n8n free of charge for commercial purposes, and it is not an OSI open source license. Files with .ee in their name or directory are not covered by the license and require a valid n8n Enterprise License. Read the license text yourself, since a legal review may be needed if you plan to offer n8n-based services to customers or other organizations. Some features also depend on your plan, so match the features you need against the edition you will run before finalizing the design.
Which database should the self-hosted instance use after the move?
Self-hosted n8n defaults to SQLite and can also use PostgreSQL, while n8n Cloud runs SQLite on Starter, Pro and legacy Enterprise plans and PostgreSQL only on Enterprise Scaling plans. For a production instance, PostgreSQL is the usual choice because it supports the database requirements of queue mode, where workers read and write workflow data in PostgreSQL. Decide the database before you import workflows, because changing it later adds work. Your team should also plan the encryption key, which must be kept safe and shared with every worker and webhook processor in queue mode so they can read stored credentials. Back up the database and the key together, and test a restore before you rely on either.
Where data and credentials sit before and after the move
The diagram starts in n8n Cloud, where workflows are downloaded from the admin dashboard as a file. That file carries workflow definitions into your own network, where the self-hosted instance imports it and writes to its database. Credentials are recreated on the new instance, so the encryption key on that host must be set deliberately before any credential is saved. Before cutover, check which database the new instance uses and confirm that external systems send webhook calls to the new host.
Data and credential hand-offs from n8n Cloud into a self-hosted instance.
How DeployOpen scopes the move before any work starts
Most engagements are fixed-scope, so the inventory, written scope, deliverables and timeline are agreed before any migration work begins. The cards below cover what that agreement needs to capture for a move off n8n Cloud, and what remains open for a retainer afterward.
Workflow and credential inventory
Start with a list of every workflow in the Cloud instance, including which are active, which use webhooks or schedules, and which depend on custom code nodes. Record each credential by name and the service it connects to, but do not copy secret values into the inventory. This list sets the effort for the rest of the move, so ask for it to be written down before a quote is final.
- Download window after trial
- 90 days
Target architecture decisions
Agree in writing where the self-hosted instance runs, which database it uses, and whether it needs queue mode with workers. Self-hosted installs default to SQLite, while Cloud Enterprise Scaling plans use PostgreSQL, so the database choice affects the export and import path. Confirm these decisions early because they change the deployment work.
Database choice docsCredential re-creation plan
Exported workflows do not carry live secrets, so every credential must be recreated on the new instance by someone with access to the upstream service. Scope who holds those accounts, how secrets are handed over, and where the encryption key is stored. Ask for a per-credential checklist that the client signs off before cutover.
Webhook re-pointing and cutover
Each production webhook URL changes when the workflow moves to a new domain, so every external caller, form and partner integration needs an updated address. Scope a cutover window, a list of callers to notify, and a rollback step that keeps the Cloud instance available until the new endpoints are confirmed. Agree who approves the switch.
Verification and acceptance tests
Agree the test cases before work starts, such as triggering each critical workflow, checking credential access, confirming scheduled runs and reviewing execution logs. Acceptance should be tied to the inventory so every active workflow has a named test. Ask the partner to state what they will verify and what the client must verify.
Retainer after handover
Fixed-scope work ends at handover, and ongoing support, upgrades and continuous testing can be covered by a separate retainer. Ask for the retainer terms in writing, including response expectations and which upgrades are in scope. Confirm that any SLA you need is stated explicitly, since support tiers differ by n8n plan.
How DeployOpen works on this
DeployOpen plans and builds self-hosted n8n inside your own cloud accounts, data centers or restricted networks, then hands over the instance with its documentation. For a move off n8n Cloud, we start from an inventory of what the Cloud account holds and what the new instance must reproduce.
How we scope
- Inventory every workflow, credential, webhook and schedule exported from the Cloud admin dashboard before any build starts.
- Agree the target database, hosting platform and encryption key handling in a written scope before work begins.
- Confirm the cutover window, the owners who re-point webhooks and the date the 90-day download window closes.
How we build
- Stand up the self-hosted n8n instance in your infrastructure with the database and proxy settings your environment requires.
- Recreate each credential in the new instance and test it against the live service, one integration at a time.
- Re-point webhook URLs and test every trigger path, including schedules, on a staging copy before switching production traffic.
How we hand over
- Document the export steps, restore steps, credential inventory and webhook change log so your team can repeat them.
- Provide a cutover checklist with pass or fail results for each workflow and a rollback path to the Cloud instance.
- Walk your operators through backups, access to the encryption key and where the restored workflows are kept.
How we support
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Ask for a quote based on the written scope, which sets out the number of workflows, credentials and integrations involved.

