AI & automation8 min readReviewed by the Softivum team,

Is n8n open source, and can a business self-host it for free?

Short answer

Not in the OSI sense. n8n publishes its source code under the Sustainable Use License, a fair-code licence that limits use to internal business, personal or non-commercial purposes. A business can self-host the Community edition free to run its own workflows and to build workflows for clients. Letting outsiders build workflows, white-labelling n8n or selling access to it needs a commercial agreement with n8n.

A developer in an Indian office holds a USB security key over a small server, with a workflow on a laptop and a clipped licence document on the desk.

The key points

  • n8n calls itself fair-code and source available; its licence restricts commercial use, which the Open Source Definition does not allow.
  • The test n8n applies is who controls the workflow logic: your team, or someone outside your business.
  • Files with .ee in the name or folder need an n8n Enterprise License, and paid features unlock only with a licence key.
  • The Community edition is free to self-host, but the server, database, backups, encryption key and updates become your job.

Does n8n meet the Open Source Definition?

No, and n8n does not claim to. Its GitHub README describes n8n as fair-code, distributed under the Sustainable Use License and the n8n Enterprise License, with always visible source code. The Open Source Definition published by the Open Source Initiative sets ten criteria a licence must meet. Two of them settle the question. Criterion 1 says the licence shall not restrict any party from selling or giving away the software, including as a component of a larger software distribution. Criterion 6 says the licence must not restrict anyone from using the program in a specific field of endeavor, and gives use in a business as an example.

The n8n licence page grants the free right to use, modify, create derivative works and redistribute, then adds three limits: use or modify the software only for your own internal business purposes or for non-commercial or personal use; distribute it only free of charge for non-commercial purposes; and keep every licensing and copyright notice intact. A licence that forbids selling the software, and narrows commercial use to your own internal purposes, fails both criteria.

Fair-code is a model, not a licence. The fair-code site describes software that is generally free to use, has its source code openly available, can be extended by anybody, and is commercially restricted by its authors. For a business the practical reading is simple: you can read, run and change n8n at no licence cost, and you cannot turn n8n itself into the thing you sell.

Which parts of the n8n code does the free licence cover?

Most of it, with three exclusions written into the LICENSE.md file. Content on branches other than master is not licensed at all. Source files with .ee. in the filename, or .ee in the folder name, are not covered by the Sustainable Use License; using them requires a valid n8n Enterprise License. Third-party components keep their own original licences.

This matters when a developer forks n8n or copies code out of it. Enterprise features such as SSO, environments and Git version control live behind a licence key, and the licence FAQ lists using enterprise features that ask for a licence key, without an Enterprise licence, as something you cannot do. Patching around the key, or lifting .ee code into your own build, breaks the licence even on a server you own.

What can a business do with the free Community edition?

The licence FAQ reduces it to one sentence: if workflows are only created or modified by you or people in your organisation, you can use n8n under the Community licence for free. Internal business purpose still covers work whose results people outside your business receive or see. The question is never how many customers see the output. It is who builds and edits the workflows.

Three situations show where the line falls. A distributor that runs its own order sync, payment reminders and WhatsApp alerts on a self-hosted instance is inside the licence. A CA firm whose staff build GST deadline reminders for its clients on the firm's instance is inside it too, because the clients receive messages and never open the editor. A software company that lets its customers design their own automations through a custom screen, an API, MCP or an AI agent acting for them is outside it, even when those customers never see the n8n interface. The FAQ says the custom UI layer does not change the nature of the use, and points that architecture to an Enterprise licence.

Using n8n behind the scenes in your own product is allowed when only your backend talks to n8n. Your users can trigger the workflows you built and connect their own accounts to them, as long as they cannot configure the workflow logic. If you are still choosing a tool, comparing Zapier, Make and n8n by volume, data and who maintains the flows comes first.

When does an agency or product company need a commercial licence?

Agency work is explicitly permitted. The licence FAQ allows charging clients for workflow creation, setup, maintenance, training and consultancy, and it sets no limit on the number of clients one instance serves, provided clients receive outputs and not access. You can also install and manage n8n on a client's own server and charge for it, as long as you are not also hosting it for them, because that competes with n8n Cloud. Managing n8n across many client environments is a case n8n asks agencies to raise with license@n8n.io first.

A commercial agreement comes in when the editor itself is part of what you sell. Hosting n8n so clients log in and build their own workflows, white-labelling it by removing n8n branding, or forking it into your own automation product are all on the FAQ's not-allowed list. Surfacing the n8n editor inside your product's interface is a separate OEM integration that requires a commercial agreement with n8n, and n8n branding stays visible even then. Before a commercial product goes to market on n8n, confirm the licence terms with your lawyer and get the architecture confirmed in writing by license@n8n.io.

What does the Community edition leave out?

Less than most people expect. n8n's edition comparison lists the paid features: custom variables, environments, external secrets, external storage for binary data, log streaming, multi-main mode, projects, SSO through SAML or LDAP, sharing of workflows and credentials, and version control using Git. Standard logging and queue mode are included free. Without sharing, only the instance owner and the person who created a workflow or credential can open it.

Registering a Community instance with an email address unlocks folders, debug in editor and custom execution data at no cost. Business and Enterprise unlock paid features with a licence key. n8n's guide to choosing a deployment describes Business as the edition for teams that need SSO, environments and projects, and says its pricing page is the definitive list of what each plan includes.

What does free self-hosting take to run?

No licence fee does not mean no cost. You provide the server and keep it patched. n8n uses SQLite by default, and its queue mode documentation says running queue mode on SQLite is not recommended, so production setups move to PostgreSQL, plus Redis and worker processes once executions need to run in parallel.

The credential encryption key is the part teams lose. n8n creates a random key on first launch and stores it in the .n8n folder; in queue mode every worker needs the same N8N_ENCRYPTION_KEY. The backup and restore guide says a complete backup is the .n8n folder plus the database, and that without the key a restored database cannot decrypt its credentials. n8n's update guidance asks for updates at least once a month, after reading the release notes for breaking changes.

The full production setup, including reverse proxy, webhook security and monitoring, is in self-hosting n8n for business, and the monthly running bill sits alongside other tools in what AI and automation cost to run. Softivum sets n8n up in a cloud account in your name, with PostgreSQL, off-server backups, the encryption key stored apart from the server, and a written runbook, as part of workflow automation. If WhatsApp is the main channel, n8n, Make or Zapier for the WhatsApp Cloud API covers the webhook side.

n8n Cloud vs self-hosted editions

n8n Cloud vs self-hosted editions
Questionn8n CloudSelf-hosted CommunitySelf-hosted Business or Enterprise
Who runs the serversn8nYouYou
Licence termsCloud subscription termsSustainable Use LicenseSustainable Use License plus a paid licence key; Enterprise License for .ee code
Licence feePaid plan after a free trialNonePaid plan
SSO, projects, environments, GitOn the plans that include themNot includedIncluded by plan
Updates and backupsHandled by n8nYour team or your supplierYour team or your supplier
Data locationHosted by n8nYour server, in the region you chooseYour server, in the region you choose
FitsTeams without anyone to run a serverOne business running its own workflows, with someone to maintain the serverSeveral teams that need roles, SSO, shared credentials or a staging environment

Before you self-host n8n for business use

  • Only your own staff create or edit workflows, or n8n has confirmed your case in writing
  • No client or end user can reach the editor, the API or an AI agent that edits workflows
  • Nobody on the team copies .ee code or works around the licence key
  • PostgreSQL is in place before queue mode is switched on
  • The encryption key is stored separately from the server and set on every worker
  • Backups cover the .n8n folder and the database, and a restore has been tested
  • Someone owns the monthly update and reads the release notes first

Sources

Rules and guidance this answer relies on. Policies change, so check the current version before acting on it.

  1. n8n Docs: Community license (Sustainable Use License)
  2. n8n Docs: License FAQ
  3. n8n on GitHub: LICENSE.md
  4. Open Source Initiative: The Open Source Definition
  5. fair-code: What is fair-code
  6. n8n Docs: Compare editions
  7. n8n Docs: Deploy as an OEM integration
  8. n8n Docs: Enable queue mode

Questions people also ask

Yes. The Sustainable Use License lets a company self-host the Community edition at no licence cost to run its own operations and to build workflows for clients, provided only your own people create or edit those workflows.

No. n8n's licence FAQ says the Community licence applies to the self-hosted version only. n8n Cloud is a paid subscription with its own terms, so the rules about who may build workflows come from your Cloud plan and agreement instead.

Yes, for internal business, personal or non-commercial use. The licence allows modifying the code and creating derivative works, but every licensing and copyright notice must stay in place, files marked .ee need an Enterprise licence, and the modified version cannot be sold.

Want this applied to your business?

Tell us what you are planning in a free 30-minute call, or have your current website checked first with no call needed.

Get a Free 2-Minute Website Audit

Free 30 minutes · no obligation

WhatsAppCall