Self-Hosting
Move your n8n to a server you control.
I moved n8n from Railway to a self-hosted n8n on Coolify, keeping its workflows and saved credentials working. The part to get right is the encryption key: without the old one, saved credentials cannot be read.
From $375 for one n8n instance. See what is included.
Why saved credentials stop working after a move
- n8n encrypts the credentials you save, such as API keys and logins, with an encryption key. A new n8n server makes its own key unless you give it the old one.
- With the wrong key, n8n says "Credentials could not be decrypted. The likely reason is that a different encryptionKey was used to encrypt the data." The same question appears again and again on n8n's community forum.
- The key is the setting N8N_ENCRYPTION_KEY. It has to be copied from the old n8n and set on the new one before the new one starts.
- Workflows and credentials do not move by themselves. They are exported from the old n8n and imported into the new one.
What I move, and how
- The encryption key
- Copied from the old n8n and set as N8N_ENCRYPTION_KEY on the new one before it starts, so saved credentials stay readable. A stray space in the key can break it, so I check for that.
- Workflows
- Exported from the old n8n, cleaned up, and imported into the new one with n8n's own commands.
- Credentials
- Exported and imported the same way, then tested by running the workflows that use them.
- How the export runs
- In my own move the n8n command line was not available on the old host, so I ran the export from inside n8n with its Execute Command node and downloaded the file with a Read/Write File node.
- Run history
- Not moved. In my own move the old run history was not needed. If you need it, raise it on the free call.
- The database
- The n8n I moved used SQLite. If you run Postgres, tell me on the free call.
How the move runs
-
01
Back up the key
Copy the encryption key from the old n8n and keep it safe.
-
02
Export
Export your workflows and credentials from the old n8n.
-
03
Clean the files
Remove what the import does not need from the exported files.
-
04
Set up the new n8n
Run n8n on your Coolify server with the same encryption key set before it starts.
-
05
Import
Load the cleaned workflows and credentials into the new n8n.
-
06
Test
Run your workflows on the new n8n and confirm they work.
A move I did: 35 workflows and 20 credentials
I moved about 35 workflows and 20 credentials from n8n on Railway to a self-hosted n8n on Coolify, with minimal downtime. The old run history was not moved because it was not needed.
I wrote up the method on LinkedIn: my article on moving n8n with its encrypted credentials.
What it costs
From $375 for one n8n instance with up to 50 workflows. The final price is set after a free assessment, once I have seen your setup.
Included in the starting price
- One n8n instance with up to 50 workflows
- Your saved credentials, with the encryption key carried across
- The new n8n set up on your Coolify server
- A test of your workflows on the new server
What changes the price
- How many workflows and credentials you have
- Whether n8n runs on SQLite or Postgres
- Whether your Coolify server already exists
- Whether you need the run history moved
Work beyond the agreed scope is billed at $75 an hour. No Coolify server yet? I can set one up for you; that is quoted separately. Book a free call and I will give you a fixed price for your n8n.
What running n8n costs each month
This is an indicative comparison, not a client result and not a quote. The figures are indicative only, based on prices checked 30 Oct 2026. n8n Cloud prices are as n8n publishes them, in euros and billed annually. I have deliberately not included a server figure. Prices are indicative and change often. Check current prices with your VPS provider before you decide, and look at the renewal price, not just the first-term price.
| Option | What you get | Cost, per month |
|---|---|---|
| n8n Cloud Starter | 2.5K executions a month | €20 |
| n8n Cloud Pro | 10K executions a month | €50 |
| Self-hosted n8n on your own server | A small VPS of about 2 vCPU and 4 GB of RAM | Varies by provider |
Prices checked on October 30, 2026. The self-hosted figure does not include the time spent running the server or the move itself, so cost is rarely the only reason to leave n8n Cloud.
What to expect
- Downtime was minimal in my own move. Your window depends on your webhooks and how many workflows you run.
- Any webhook address that an outside service calls has to point at the new n8n. We agree how on the free call.
- I need login access to your old n8n and access to the Coolify server where the new one will run.
Want to see how a move went in practice? See a real example: n8n for think3, from Railway to Coolify.
Wondering whether leaving Railway pays off beyond n8n? See the alternatives to Railway and what Railway costs at current prices.
FAQ
Questions about moving n8n
William Correia
DevOps and infrastructure consultant in Kolkata, in IT since 1999. About William