— Free Local Automation">
n8n Windows Automation
8 min read Workflow Automation

How to Self-Host n8n on Windows in — Free Local Automation

Tired of paying $20+/month for n8n cloud hosting? This step-by-step guide shows Windows users how to install n8n locally with Docker Desktop - eliminating hosting fees permanently while giving you full control over your automation environment.

Why Self-Host n8n on Windows?

Most businesses using n8n start with cloud hosting because it's convenient - but quickly realize they're paying $20+/month for what essentially runs perfectly fine on their existing Windows machines. Self-hosting eliminates this recurring cost while providing three key advantages:

First, local execution means your workflows run faster since they're not routing through internet connections. Second, your sensitive data never leaves your network, improving security compliance. Third, you gain complete control over updates and maintenance schedules.

$240/year savings: By self-hosting n8n instead of using cloud hosting, businesses save $20/month ($240/year) per instance - with no reduction in functionality.

Windows System Requirements

Before installing n8n locally, your Windows machine must meet these specifications:

  • Operating System: Windows 10 (version 2004 or later) or Windows 11
  • Virtualization: Enabled in BIOS (we'll check this next)
  • WSL 2: Windows Subsystem for Linux version 2 installed
  • Hyper-V: Virtualization platform enabled
  • Hardware: 8GB RAM minimum (16GB recommended for complex workflows)

These requirements ensure Docker Desktop can run containers efficiently. The good news? Most business PCs purchased in the last 3-4 years already meet these specs.

How to Enable Virtualization

Virtualization is disabled by default on many consumer PCs. Here's how to check and enable it:

Step 1: Check Current Status

Press Ctrl+Shift+Esc to open Task Manager. Navigate to the Performance tab and look for "Virtualization" status on the right side.

Step 2: Enable in BIOS

If disabled, restart your PC and enter BIOS setup (usually by pressing F2, F10, or DEL during boot). Look for settings labeled:

  • Intel Virtualization Technology (VT-x)
  • AMD-V Technology
  • SVM Mode

Enable these options, save changes, and reboot. The exact menu varies by manufacturer - consult your PC's documentation if needed.

Installing Docker Desktop

Docker Desktop provides the container environment n8n needs to run on Windows:

Step 1: Download

Visit docker.com and download Docker Desktop for Windows (AMD64 version).

Step 2: Install

Run the installer with default settings. When complete, launch Docker Desktop as administrator from the Start menu.

Step 3: Verify

Wait until the bottom-left corner shows "Docker Desktop is running" (may take 1-2 minutes on first launch). Keep Docker running in the background throughout the n8n installation.

Pro Tip: Right-click the Docker whale icon in your system tray and select "Settings" → "Resources" to allocate more RAM/CPU if you'll be running complex workflows.

Running n8n in PowerShell

With Docker running, we'll use PowerShell to launch n8n:

Step 1: Open PowerShell as Admin

Press Windows key, type "PowerShell", right-click Windows PowerShell, and select "Run as administrator". The window title should show "Administrator".

Step 2: Run n8n Container

Copy and paste this exact command:

 docker run -d -p 5678:5678 -v %USERPROFILE%/.n8n:/home/node/.n8n n8nio/n8n 

This command:

  • Downloads the n8n Docker image if not present
  • Maps port 5678 for web access
  • Creates a persistent storage folder at C:\Users\[YourUsername]\.n8n

Wait for the download to complete (may take several minutes depending on your internet speed).

Accessing Your n8n Instance

Once the container is running:

Step 1: Open Browser

Launch Chrome, Edge, or Firefox and navigate to:

 http://localhost:5678 

Step 2: First Run

If the page doesn't load immediately, wait 30 seconds and refresh. Docker may still be initializing the container on first run.

You should now see the n8n interface - identical to the cloud version but running locally. All workflows you create will be saved in the .n8n folder we specified earlier.

Note: Your workflows persist through container restarts because of the volume mapping (-v %USERPROFILE%/.n8n) in our Docker command.

Adding Login Protection (Optional)

For basic security, you can password-protect your n8n instance:

Step 1: Stop Current Container

In PowerShell, run:

 docker stop $(docker ps -q --filter ancestor=n8nio/n8n) 

Step 2: Run Secured Version

Use this modified command (replace "yourpassword" with a strong password):

 docker run -d -p 5678:5678 -e N8N_BASIC_AUTH_ACTIVE=true -e N8N_BASIC_AUTH_USER=admin -e N8N_BASIC_AUTH_PASSWORD=yourpassword -v %USERPROFILE%/.n8n:/home/node/.n8n n8nio/n8n 

Now when accessing localhost:5678, you'll need to enter the username (admin) and your chosen password.

Your existing workflows remain intact since we're using the same data folder location.

Watch the Full Tutorial

Prefer video guidance? Watch our complete 4-minute walkthrough showing each step from virtualization check to first workflow creation:

Video tutorial: Self-hosting n8n on Windows with Docker

Key Takeaways

Self-hosting n8n on Windows provides permanent free automation while maintaining all functionality of the cloud version. Here's what we accomplished:

In summary: Enabled virtualization → Installed Docker Desktop → Ran n8n container → Accessed at localhost:5678 → Added optional password protection. Total time: under 15 minutes. Total cost: $0.

Frequently Asked Questions

Common questions about self-hosting n8n

Self-hosting n8n eliminates the $20+/month cloud hosting fee while giving you full control over your automation environment.

Local hosting means your workflows run faster since they're not going through internet connections, and your data never leaves your network for better security.

  • Saves $240/year per instance
  • Faster execution with no internet latency
  • Improved data security and compliance

You'll need Windows 10 or 11 with virtualization enabled in BIOS, Windows Subsystem for Linux version 2, and Hyper-V capabilities.

Your PC should have at least 8GB RAM (16GB recommended for complex workflows) and an SSD for optimal performance.

  • Windows 10/11 with WSL2
  • Virtualization enabled
  • 8GB+ RAM, SSD storage

Press Control+Shift+Escape to open Task Manager, click the Performance tab, and look for 'Virtualization' status on the right side.

If disabled, you'll need to enable it in your BIOS settings before proceeding with n8n installation. The exact BIOS menu varies by manufacturer.

  • Task Manager → Performance tab
  • Look for "Virtualization: Enabled"
  • If disabled, BIOS settings required

Yes, you can add basic authentication by modifying the Docker run command with environment variables for username and password.

This prevents unauthorized access while keeping your workflows accessible to your team. The password is encrypted within the container.

  • Add -e N8N_BASIC_AUTH_ACTIVE=true
  • Set username/password variables
  • Existing workflows remain intact

All workflows are saved in a folder called 'n8n' within your Windows user profile directory.

This local storage means your automations persist through container restarts and won't be lost if you update Docker. The exact path is typically C:\Users\[YourUsername]\.n8n.

  • Stored in %USERPROFILE%\.n8n
  • Persists through Docker updates
  • Manual backups recommended

Self-hosting eliminates the $20/month n8n cloud hosting fee, saving $240/year.

For businesses running multiple instances, the savings multiply quickly while gaining better performance and control. There are no hidden costs - just your existing Windows machine's electricity usage.

  • $20/month savings per instance
  • $240/year per installation
  • No reduction in functionality

Docker Desktop provides a complete container management system with GUI controls, while WSL offers Linux environment compatibility.

For n8n, Docker Desktop is recommended as it handles all dependencies automatically and simplifies updates. WSL requires more manual configuration for container management.

  • Docker: Complete container solution
  • WSL: Linux environment only
  • Docker recommended for simplicity

GrowwStacks helps businesses implement automation workflows, AI integrations, and scalable systems tailored to their operations.

Whether you need a custom workflow, AI automation, or a full multi-platform automation system, the GrowwStacks team can design, build, and deploy a solution that fits your exact requirements.

  • Custom automation workflows built for your business
  • Integration with your existing tools and platforms
  • Free consultation to discuss your automation goals

Ready to Eliminate Your n8n Hosting Fees?

Every month you delay self-hosting costs your business $20 in unnecessary cloud fees. Our automation experts can implement this solution for your team in under 30 minutes - with guaranteed local performance and security.