You keep hearing n8n recommended for AI agents and automation, usually next to the words "free" and "open source." Neither is quite right, and the gap matters if you plan to run it for a business or for clients.
This guide explains what n8n is, how a workflow runs, what the Community Edition license actually allows, what the cloud plans cost, and how n8n compares with Zapier and Make. We also installed n8n and ran a small workflow from the command line, so the setup steps below are tested, not copied from a README.
What is n8n?
n8n is a workflow automation platform. You build a workflow by connecting nodes on a canvas: a trigger node that starts the run, such as a new form entry, a schedule or an incoming webhook, followed by nodes that read, change and send data between apps. When the built-in nodes do not cover something, you drop in a Code node and write JavaScript or Python.
Two things set it apart from most automation tools. First, you can run it yourself: the Community Edition is self-hosted on your own server, so your workflows, execution logs and stored credentials stay on infrastructure you control. Second, it is built for technical users. n8n's own comparison with Zapier (opens in a new tab) lists JavaScript and Python (via Pyodide) code steps, AI workflows built on LangChain, an MCP trigger and support for local models through Ollama.
The company behind it, n8n GmbH, is based in Berlin and was founded in 2019 by Jan Oberhauser, according to Wikipedia's n8n entry (opens in a new tab). The same entry reports an October 2025 Series C of $180 million that valued the company at $2.5 billion. The name is a numeronym of "nodemation," which is why it is spelled with an 8.
| n8n | |
|---|---|
| What it is | Visual workflow automation with optional code |
| Ways to run it | n8n Cloud (paid) or self-hosted Community Edition (free license) |
| Pricing unit | One full workflow execution, however many steps it has |
| Code | JavaScript and Python in Code nodes |
| License | Sustainable Use License (fair-code, source-available) |
| Best for | Developers, technical ops teams, AI and data workflows |
How n8n works
Every n8n workflow follows the same shape, and understanding it makes the pricing and the comparisons below easier to follow.
- A trigger starts the run. It can be manual, on a schedule, a webhook from another app, or an event such as a new row in a spreadsheet.
- Data moves as items. Each node receives a list of items (JSON objects), does its job, and passes a new list on. Ten new rows become ten items flowing through the rest of the workflow.
- Nodes act on the items. App nodes talk to services like Slack or Google Sheets, logic nodes branch, merge and filter, and Code nodes run your own JavaScript or Python.
- The run is logged as one execution. n8n stores the input and output of every node, so you can open a past run and see exactly what happened at each step.
That last point is also how n8n charges. Its pricing page (opens in a new tab) defines the unit plainly:
An execution is a single run of your entire workflow. It doesn't matter how many steps are in the workflow
So a 2-step workflow and a 20-step workflow cost the same per run on n8n Cloud. That is the single biggest pricing difference from Zapier and Make, which both count individual steps. If you are new to the idea of automating multi-step work, our explainer on what AI automation is covers the basics, and AI vs automation explains where rule-based workflows end and AI begins.
Is n8n free?
Partly. There are two ways to use n8n, and only one is free.
- Self-hosted Community Edition: free to use, you pay for the server. n8n's license FAQ (opens in a new tab) says that if workflows are only created or modified by you or people in your organization, you can use n8n under the Community license for free.
- n8n Cloud: paid. n8n hosts and maintains it for you. Plans start at €20 a month billed annually (see the pricing table below).
Free does not mean zero cost. Self-hosting means you run the server, apply updates, back up the database and secure the instance. For a small team, a cloud plan can cost less than the time spent maintaining a server.
Is n8n open source? What the fair-code license allows
n8n's source code is public, but it is not open source in the formal sense. The project started in 2019 under Apache 2.0 with the Commons Clause and, according to Wikipedia, adopted its own Sustainable Use License in March 2022. n8n calls this model fair-code: the code is public and free to use, but the license restricts some commercial uses. Because of those restrictions, Wikipedia describes it as source-available rather than open source under the Open Source Initiative definition.
In practice, the restrictions are about reselling n8n itself, not about using it at work. Here is what n8n's license FAQ says you can and cannot do with the Community Edition:
| You can | You cannot |
|---|---|
| Use it free inside your company, as long as your own people build and edit the workflows | Host n8n as a service and let your clients build workflows |
| Build automations for clients on your instance, if they cannot create or edit them | Let end users build workflows inside your product, including through an AI agent |
| Charge for setup, maintenance, training and consulting | Fork n8n to launch your own automation product, or white-label it by removing branding |
| Let a client run n8n on its own server | Use enterprise features that need a license key without an Enterprise license |
n8n pricing
Prices below are from n8n's pricing page (opens in a new tab) at the time of writing, shown per month when billed annually. The page says annual billing saves 17%, so monthly billing costs more.
| Plan | Price | Executions a month | Notes |
|---|---|---|---|
| Community Edition | Free license | Runs on your own server | Self-hosted; you run and maintain it |
| Starter | €20 a month | 2,500 | 5 concurrent executions, hosted by n8n |
| Pro | €50 a month | 10,000 | More concurrency, longer execution time |
| Business | €667 a month | 40,000 | Self-hosted only, for companies under 100 employees |
| Enterprise | Contact sales | Custom | Hosted or self-hosted |
Every plan includes unlimited users, unlimited workflows and every integration. The limits that matter are executions per month, how many run at once and, on Starter, a maximum run time of 5 minutes per execution. n8n also offers 50% off the Business plan for companies with fewer than 20 employees.
n8n vs Zapier
Zapier is the tool most people compare n8n to, and they are built for different users. Zapier is a cloud service designed so anyone can connect apps without code. n8n gives technical users more control and a cheaper way to run long workflows at volume.
| n8n | Zapier | |
|---|---|---|
| Pricing unit | One full workflow execution | One task per successful action |
| Free option | Self-hosted Community Edition | Free plan: 100 tasks a month, two-step Zaps |
| Entry paid plan | Starter, €20 a month billed annually, 2,500 executions | Professional, from $19.99 a month |
| App integrations | 1,000+ in n8n's comparison | 9,000+ on Zapier's pricing page |
| Self-hosting | Yes | No, cloud only |
| Code | JavaScript and Python | Python and JavaScript code steps, which n8n describes as limited |
| Best for | Developers, technical teams, high-volume and AI workflows | Non-technical teams, widest app coverage |
The pricing difference is easy to underestimate. On Zapier, the pricing page (opens in a new tab) says each successful action in a Zap counts as a separate task, though triggers and built-in steps like Filter, Formatter and Paths do not. A workflow with five actions that runs 1,000 times uses up to 5,000 tasks on Zapier, but 1,000 executions on n8n. For long, frequent workflows, n8n is usually far cheaper. For a handful of simple two-step automations, Zapier's free plan may be all you need.
Zapier's advantage is reach and ease. It lists more than 9,000 apps, and nobody on your team has to touch a server. If an app you depend on has no n8n node, you can still reach it through its API in n8n, but that takes more technical work than picking it from Zapier's list.
Make vs Zapier, and where n8n fits
Make is the third tool most people shortlist: another visual automation builder, with its own pricing unit. Make's comparison page (opens in a new tab) lists the key numbers:
- Pricing unit: credits. Each module that processes data typically uses at least one credit.
- Free plan: 1,000 credits a month.
- Paid plans: Core from $9 a month for 10,000 credits, and Pro from $16 a month.
- Apps: more than 3,000 pre-built app integrations.
| Tool | You pay for | Free tier | Entry paid price |
|---|---|---|---|
| n8n | Full workflow executions | Self-hosted Community Edition | €20 a month billed annually |
| Zapier | Tasks (successful actions) | 100 tasks a month | From $19.99 a month |
| Make | Credits (per module run) | 1,000 credits a month | From $9 a month |
In short: Zapier if you want the most apps and the least setup, Make if you want a visual builder at a lower entry price, and n8n if you want code, self-hosting or flat pricing per workflow run. All three vendors change plans often, so check their pages before you commit.
How to install n8n and run your first workflow
The fastest way to try n8n is n8n Cloud's free trial, which needs no credit card. To run it yourself, the npm install guide (opens in a new tab) says n8n needs Node.js between versions 20.19 and 24.x. In practice, use Node.js 24: the current n8n package (2.49.8) declares Node.js 24 or newer, and on Node.js 22 npm quietly installed an older release, 2.35.7, instead. We retested the steps below on November 28, 2026 with n8n 2.49.8 on Node.js 24.22.3. Check your version with node -v before you install.
# Try it without installing
npx n8n
# Or install it globally, then start it
npm install n8n -g
n8n startThen open http://localhost:5678 in your browser to reach the editor. In our test, the editor was ready about 9.5 seconds after the first start, which also creates n8n's database, and about 6.5 seconds after a restart. The install itself took about three minutes and filled 2.9 GB of disk with roughly 2,260 packages, so do not be alarmed by the wait.
Here is a small workflow you can paste into the editor or import from the command line. It has a Manual Trigger and a Code node that tags each lead by email domain (work or free webmail) and company size, a simple version of lead routing.
{
"name": "Lead scorer demo",
"nodes": [
{
"parameters": {},
"name": "Manual Trigger",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [0, 0]
},
{
"parameters": {
"jsCode": "const leads = [\n { name: 'Ana', domain: 'example.com', employees: 250 },\n { name: 'Ben', domain: 'gmail.com', employees: 3 },\n];\nconst freeMail = ['gmail.com', 'outlook.com', 'yahoo.com'];\nreturn leads.map(lead => ({\n json: {\n ...lead,\n workEmail: !freeMail.includes(lead.domain),\n priority: lead.employees >= 50 ? 'high' : 'low',\n },\n}));"
},
"name": "Score leads",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [220, 0]
}
],
"connections": {
"Manual Trigger": { "main": [[{ "node": "Score leads", "type": "main", "index": 0 }]] }
}
}n8n import:workflow --input=lead-scorer.json
n8n execute --id <workflow-id> --rawOutputWhen we ran it, the execution finished with status success and the Code node returned two items: Ana with workEmail: true and priority: "high", and Ben with workEmail: false and priority: "low". In a real workflow you would swap the Manual Trigger for a form or CRM trigger and send high-priority leads to Slack or your sales inbox.
Problems we hit while testing, and the fixes
None of these are in the quick-start, and each one cost us a few minutes:
- The wrong version installed silently. On Node.js 22,
npm install n8ngave us 2.35.7, not the current release, with no warning. The newest package requires Node.js 24. Fix: upgrade Node.js first, or pin a version withnpm install n8n@2.49.8. - n8n would not start without IPv6. It stopped with "n8n's address '::' is not available." Fix: start it with
N8N_LISTEN_ADDRESS=0.0.0.0 n8n start. - The import failed with a database error on older n8n. On 2.35.7, importing a workflow file without an
idfield failed withSQLITE_CONSTRAINT: NOT NULL constraint failed: workflow_entity.id, which does not say what is wrong. Fix: add an"id"field to the JSON. On 2.49.8, n8n creates an ID for you. - `n8n execute` clashed with the running editor. With the editor still running, the command stopped with "n8n Task Broker's port 5679 is already in use." Fix: stop the editor first, or give the command its own port with
N8N_RUNNERS_BROKER_PORT=5690 n8n execute --id <workflow-id>. - The first Code node run is slow. Our Code node took about 0.76 seconds, most of it n8n starting its task runner. That is normal and only matters for workflows that must answer in real time.
When to use n8n, and when not to
n8n is a strong fit when:
- Someone on the team is comfortable with JSON, APIs and a little JavaScript.
- Workflows have many steps or run often, so per-step pricing elsewhere would add up.
- Data has to stay on your own servers for privacy or compliance reasons.
- You are building AI workflows or agents and want code-level control. Our guide to AI agentic workflows covers the patterns, and n8n's MCP support ties in with the Model Context Protocol.
Look elsewhere when the people building automations are non-technical, when you need a niche app that only Zapier or Make supports out of the box, or when nobody wants to own a server and the cloud plans' execution limits are too tight for your volume.
The bottom line
n8n is a visual workflow automation tool for technical teams that you can self-host for free or use as a paid cloud service. It charges per workflow run rather than per step, which makes it much cheaper than Zapier or Make for long, frequent workflows, and its fair-code license is generous for internal use but restricts reselling n8n itself. If you are comfortable with a little code, it is worth an afternoon of testing. For more guides like this, browse our AI guides.



