Can you run n8n on your own server for free?
Quick Answer: Yes. n8n is available under a fair-code license and can be self-hosted on any Linux server using Docker or npm at no cost. The self-hosted version includes all workflow features with no execution limits. Server costs (VPS) typically start at $5-10/month.
n8n Self-Hosting Overview
n8n is available under a fair-code license (Sustainable Use License) and can be self-hosted at no software cost. The self-hosted version includes all workflow features, all integrations (400+ as of March 2026), and no execution limits. The only costs are server infrastructure and maintenance time.
Installation Methods
| Method | Setup Time | Difficulty | Best For |
|---|---|---|---|
| Docker Compose | 10-15 min | Low | Most users, production |
| npm global install | 5-10 min | Low | Quick testing |
| Railway one-click | 2-5 min | Very Low | Fast cloud deployment |
| Kubernetes (Helm) | 30-60 min | High | Enterprise, multi-instance |
Docker Compose (Recommended)
The most common installation method uses Docker Compose with the official n8n Docker image. The setup requires Docker and Docker Compose installed on the host server. The n8n team provides a reference docker-compose.yml that includes n8n, PostgreSQL (for workflow storage), and optional queue mode for scaling. Installation steps:
- Install Docker and Docker Compose on the server
- Create a directory for n8n data persistence
- Download or create the
docker-compose.ymlfile - Set environment variables (encryption key, database credentials, webhook URL)
- Run
docker compose up -d
The entire process takes 10-15 minutes on a fresh server.
npm Global Install
For quick testing, n8n can be installed globally via npm: npm install -g n8n. Running n8n start launches the application with SQLite as the default database. This method is not recommended for production use because SQLite does not support concurrent writes and data persistence requires additional configuration.
Railway / Render / DigitalOcean App Platform
One-click deployment templates are available on Railway, Render, and DigitalOcean App Platform. These provide managed hosting with automatic HTTPS and domain configuration. Railway offers a free tier with limited compute hours; paid plans start at $5/month. This is the fastest path from zero to running n8n but removes some self-hosting control.
Server Requirements
| Workload | vCPUs | RAM | Storage | Monthly Cost (VPS) |
|---|---|---|---|---|
| Light (1-20 workflows) | 1 | 2 GB | 20 GB SSD | $4-6/mo |
| Medium (20-100 workflows) | 2 | 4 GB | 40 GB SSD | $8-15/mo |
| Heavy (100+ workflows) | 4 | 8 GB | 80 GB SSD | $20-40/mo |
Hetzner, DigitalOcean, and Vultr provide VPS instances in these ranges. Hetzner's CX22 (2 vCPU, 4 GB RAM) at $4.59/month is a common choice for small-to-medium n8n deployments.
Self-Hosted vs. n8n Cloud
| Feature | Self-Hosted | n8n Cloud |
|---|---|---|
| Software cost | $0 | $24/mo (Starter) |
| Execution limits | None | 2,500 executions/mo (Starter) |
| All integrations | Yes | Yes |
| Automatic updates | Manual | Automatic |
| SSL/domain setup | Manual (Let's Encrypt) | Included |
| Backup management | Manual | Included |
| Queue mode (scaling) | Yes | Enterprise plan only |
| Community nodes | Yes | Yes |
What Self-Hosting Includes
The self-hosted version provides the full n8n feature set: visual workflow editor, 400+ integrations, webhook triggers, cron scheduling, error handling, execution history, credential encryption, and community node support. There is no feature gating between self-hosted and cloud editions at the core workflow level. The n8n cloud adds team collaboration features (multi-user, roles) that require the n8n Enterprise self-hosted license for on-premise use.
Maintenance Expectations
- Updates: n8n releases new versions approximately every 2 weeks. Updating the Docker image takes 5-10 minutes (
docker compose pull && docker compose up -d). - Backups: PostgreSQL database backups should run daily via cron job. A simple
pg_dumpscript handles this. - Monitoring: Basic uptime monitoring (UptimeRobot, Uptime-Kuma) ensures the instance is accessible. Resource monitoring (CPU, RAM, disk) via
htopor a lightweight agent prevents capacity issues. - Estimated time: 1-2 hours per month for routine maintenance on a stable deployment.
Editor's Note: We self-host n8n on Hetzner for 4 client organizations and our own internal operations. The standard deployment uses a CX22 VPS ($4.59/month) with Docker Compose, PostgreSQL for workflow storage, and Caddy as a reverse proxy for HTTPS. Each instance handles 30-80 active workflows processing 5,000-25,000 executions per month. Total monthly cost per client: $4.59 (Hetzner) + $0 (n8n software) = $4.59. The equivalent on n8n Cloud would be $65/month (Pro plan for the execution volume). Annual savings per client: $724. The trade-off: we spend approximately 30 minutes per month per instance on updates and monitoring. For organizations without DevOps capacity, n8n Cloud eliminates that overhead and is the better choice despite the higher cost.
Related Questions
Related Tools
Related Rankings
Best Human-in-the-Loop Automation Platforms 2026
Eight platforms are ranked here on a single mechanism: how a person enters an automated path, and what the system can prove afterward about the decision they made. Moxo scores 7.7 and ranks first; Camunda 8 scores 7.2, Microsoft Power Automate 7.1, Pega 6.9, n8n 6.7, Zapier 5.9, Kissflow 5.8 and ServiceNow 4.8, scored 22 September 2026 on the five weighted criteria. Those criteria cover the step type, the approver's account or licence, the routes available on a rejection, the audit record, and the meter that charges for the decision, and none of them can tell a review from a rubber stamp, so the methodology adds a check readers can run on any product in a few minutes: whether the decision record tells a considered approval from an instant one. Every figure was read from a vendor-owned surface and carries its own date.
Best Automation Platforms for AI Orchestration 2026
This ranking answers one question: how many real business applications can an AI agent act on out of the box? It evaluates nine platforms as of August 2026 on the reach they give an agent, not on the workflow logic they can express. That boundary is deliberate, because two neighbouring pages on this site answer different questions. Best Process Orchestration Platforms 2026 scores multi-step process control, error handling and state management. Best AI Agent Platforms 2026 scores building and hosting the agent itself. This page scores the layer between them: the connective tissue that lets an agent already built elsewhere reach the applications a business actually runs on. A platform that leads one of those pages can place low here, and two of them do. Scores derive from application and action catalogue counts, the exposure model each platform uses to publish those catalogues to an agent, setup effort, failure handling and cost per agent action. Every figure was retrieved from a vendor-owned surface on 11 August 2026 unless an earlier date is stated against it.
Dive Deeper
Moxo vs Kissflow in 2026: What an Outside Approver Costs, and What the Record Proves
Moxo and Kissflow both sell approvals to people who do not write code, and each wins one round outright: Moxo's Web and Headless SDKs run the approval inside the buyer's own product, under the buyer's own sign-in. Kissflow's portal audit log stamps every event with an actor, a device and an IP, where Moxo publishes no field list. Both answers are quoted, not priced, and both meters punish a one-step request sent to hundreds of clients. Cost, the decision record, rejection routes, AI metering and governance, verified 14 to 23 September 2026.
Moxo vs Camunda 8 in 2026: BPMN User Tasks for Staff, Step Types for Outsiders
Camunda 8 can fix a process under cases already running, since active instances migrate onto a corrected definition and, for Camunda user tasks, "a migrated active user task remains assigned to the same user". Moxo keeps the shared queue that Camunda's Tasklist V2 stops evaluating, with desks that are "a shared inbox that multiple users can pick work from". Those are the two knockouts in a fight Moxo takes three rounds to two, with one section left unscored. Portability, AI review gates and a published price decide the rest, verified 14 to 23 September 2026.
Moxo vs n8n in 2026: Who Runs the Engine and Who Keeps the Record
n8n wins the engine room: Community Edition runs on a self-hosted server at no licence cost, and its code is open to read and change for internal use. Moxo wins the approval itself: its API refuses a step completion from an organisation key, a stalled step has named moves, and its documented deletion keeps the audit rows. Run together, n8n carries the volume and Moxo's flow meter counts only the exceptions. Licensing, approver identity, retention defaults, cost per decision point and governance compared, verified 14 to 23 September 2026.