n8n-self-hosting

n8n-self-hosting is a skill for Claude Code from czlonkowski/n8n-skills. It costs 265 tokens per session (3,194 once invoked), scanned B, a copy of n8n-self-hosting, MIT.

Deployment instructions for running n8n on your own Linux server instead of using n8n Cloud. It uses Docker Compose and Caddy to run n8n and provide automatic HTTPS, the encrypted connection used by websites.

In plain words
What is it for?
Self-hosting n8n on a virtual or physical Linux machine, choosing a single-process or queue setup, and deploying it with Docker.
Why use it?
Installing n8n on a fresh server involves several services, security settings, and deployment choices. This covers the setup from the server connection through launch and HTTPS checks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the n8n-mcp-skills plugin — 15 skills shipped together , and of n8n-mcp-skills

Good fit Self-hosting n8n on a virtual or physical Linux machine, choosing a single-process or queue setup, and deploying it with Docker.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/czlonkowski/n8n-skills/n8n-self-hosting
About the project

n8n-skills is a collection of Claude Code skills and hooks that guide AI assistants in creating, validating, and deploying n8n workflows through the n8n-mcp server. Developers use it to automate workflow construction, configure nodes and expressions, resolve validation errors, and operate self-hosted n8n. The catalogue entries are its skills, hooks, plugins, and instruction.

czlonkowski/n8n-skills · 6,215 stars · on GitHub · n8n-skills.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add czlonkowski/n8n-skills --skill n8n-self-hosting
Clone the repo
git clone --depth 1 https://github.com/czlonkowski/n8n-skills

Made for: Claude Code.

Or install n8n-mcp-skills, the plugin that ships this one along with the rest of its 15 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for n8n-self-hosting

README.md
[![agentmods](https://agentmods.dev/badge/skills/czlonkowski/n8n-skills/n8n-self-hosting/github.svg)](https://agentmods.dev/skills/czlonkowski/n8n-skills/n8n-self-hosting)
Your own site
<a href="https://agentmods.dev/skills/czlonkowski/n8n-skills/n8n-self-hosting"><img src="https://agentmods.dev/badge/skills/czlonkowski/n8n-skills/n8n-self-hosting/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for n8n-self-hosting

Your own site · 80×15
<a href="https://agentmods.dev/skills/czlonkowski/n8n-skills/n8n-self-hosting"><img src="https://agentmods.dev/badge/skills/czlonkowski/n8n-skills/n8n-self-hosting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 265 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,194 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 20 Aug 2026
  • Snyk warn 20 Aug 2026
How audits are shown
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00265 $0.03194
Opus 5 $0.00133 $0.01597
Sonnet 5 $0.00053 $0.00639
Haiku 4.5 $0.00026 $0.00319

Measured 13d ago against content hash 78fe6b10d383, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

n8n-self-hosting scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (assets/init-data.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

This skill takes a **fresh Linux VM** (Ubuntu/Debian, root or sudo SSH) to a **running,

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **DNS must already point at the box.** Compare the box's public IP (`curl -s ifconfig.me`)
Origin

This is a copy

100% identical to n8n-self-hosting — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/n8n-self-hosting/SKILL.md · 173 lines

How it starts

The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deploying self-hosted n8n

This skill takes a fresh Linux VM (Ubuntu/Debian, root or sudo SSH) to a running, HTTPS, production n8n via Docker Compose behind Caddy (automatic Let's Encrypt TLS). It is for self-hosted n8n on Docker — not n8n Cloud, and not for building workflows (that's the rest of this pack).

Two deployment modes. The architectures differ, so pick the mode before doing anything.

You drive this end-to-end over SSH: preflight → install Docker → lay down the project → generate secrets → launch → verify TLS → hand off. The template files live in assets/; the per-mode and security depth live in the reference files named below.

Rule 0 — choose the mode (ask the user)

Do not guess. Ask, then commit to one:

Single / regular Queue
Processes one n8n main + N workers
Extra services none (SQLite) Redis (queue) + Postgres (DB)
Executes workflows in the main process on workers, in parallel
Good for 1 user, light/moderate load, simplest ops high volume, heavy/long executions, horizontal scale
Compose assets/docker-compose.single.yml assets/docker-compose.queue.yml
Deep dive SINGLE_MODE.md QUEUE_MODE.md

If unsure, start single — it's the simplest correct thing and covers most needs. Moving to queue later means swapping the compose file and migrating SQLite→Postgres, so if the user already expects real volume, start queue.

Rule 1 — secret hygiene (non-negotiable)

A misstep here leaks client credentials. Be diligent:

  1. Generate every secret fresh, on the target box. Never copy an encryption key, DB password, or .env from another n8n instance into this one. See SECURITY.md for the openssl commands.
  2. Secrets live only in .env (mode 600), referenced by the compose as ${VAR}. Never inline a secret into docker-compose.yml, the Caddyfile, or anything you commit.
  3. The N8N_ENCRYPTION_KEY is sacred. It encrypts every stored credential. If it's lost or changes, all saved credentials become undecryptable. Set it explicitly, and tell the user to back it up off the box. Don't echo it into long-lived logs or chat history beyond what's needed to hand it over.
  4. Never expose internal services. Only Caddy (80/443) is public. n8n (5678), Postgres (5432), Redis (6379) stay on the private Docker network — the templates already omit their host port mappings. Don't add them.
  5. .env and Caddy's caddy_data volume (the issued certs + ACME account key) are not artifacts to share. If you're working inside a git repo, confirm .env is git-ignored before any commit.

Read the full file on GitHub · 173 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 173 lines · 265 tokens per session scan B 78fe6b10d383

Subscribe to this mod's changes

n8n-self-hosting is a skill published in the GitHub repository czlonkowski/n8n-skills (6,215 stars, last pushed 9d ago), licensed MIT. It adds 265 tokens to every session and 3,194 once invoked, about $0.0013 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). It is 100% identical to n8n-self-hosting, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

n8n-self-hosting

Deploy a production self-hosted n8n end-to-end to a fresh Linux VM over SSH, using Docker Compose behind a Caddy reverse proxy with automatic HTTPS. Use whenever the user wants to self-host, install, set up, provision, or deploy n8n on their own server/VPS/box (Hetzner, DigitalOcean, AWS EC2, bare metal, etc.) — in…

czlonkowski/n8n-mcp · 265 tokens

session-env

Explain and verify how a Claude session pins itself (and all its n8nac workflow/instance commands) to exactly ONE n8n environment without clobbering other sessions' global active env. Use when the user asks "which env am I on", "how does session env pinning work", "pin this session to env X", "why was my env command…

neurawork-git/n8n-autopilot · 108 tokens

azd-deployment

Deploy containerized frontend + backend applications to Azure Container Apps with remote builds, managed identity, and idempotent infrastructure.

sickn33/agentic-awesome-skills · 29 tokens

openshell-cli

Guide agents through using the OpenShell CLI (openshell) for sandbox management, gateway registration, provider configuration and refresh, policy iteration, settings, service exposure, BYOC workflows, and attached-provider inference. Covers basic through advanced multi-step workflows. Trigger keywords - openshell…

NVIDIA/OpenShell · 128 tokens

langbot-deploy

Deploy and configure a LangBot instance — Docker / Docker Compose, Kubernetes, the config.yaml model, the Box sandbox runtime, the plugin runtime, and the global API key. Use when installing, deploying, upgrading, or configuring LangBot in production or self-hosted environments. Triggers on "deploy langbot", "langbot…

langbot-app/LangBot · 104 tokens

compute-env-setup

Set up a compute environment on a remote provider so Claude Science jobs can run there. Covers direct SSH/conda hosts, Slurm clusters, container-via-bridge runners, and managed-API providers (Modal, GCP, RunPod). Use when standing up a new provider, porting an env to a different backend, adding a tool that needs its…

UnicomAI/wanwu · 134 tokens