n8n-self-hosting
Skill by czlonkowski
Deploys a production self-hosted n8n end to end on a fresh Linux VM over SSH. It uses Docker Compose behind a Caddy reverse proxy with automatic HTTPS, for users who run n8n on their own server.
Install n8n-self-hosting
Built from the published package, never by AI.
git clone --depth 1 https://github.com/czlonkowski/n8n-mcp /tmp/n8n-mcp && mkdir -p ~/.claude/skills && cp -r /tmp/n8n-mcp/data/skills/n8n-self-hosting ~/.claude/skills/n8n-self-hostingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/czlonkowski/n8n-mcp /tmp/n8n-mcp && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/n8n-mcp/data/skills/n8n-self-hosting ~/.gemini/antigravity-cli/skills/n8n-self-hostingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill deploys a production self-hosted n8n instance on a fresh Linux VM over SSH. It uses Docker Compose behind a Caddy reverse proxy with automatic HTTPS. The agent first asks whether to use single or queue mode, then collects the domain, SSH target, TLS email and timezone.
The skill checks that DNS points at the box and that ports 80 and 443 are reachable. It generates fresh secrets on the server, launches the stack, and verifies health and certificates. It also covers updates, backups, restores, hardening and Python Code nodes through task runners. It is for self-hosted n8n on Docker, not n8n Cloud and not workflow building.
Written from the project's SKILL.md and checked against it.
What it can do
- Mode selectionAsks the user to choose single or queue mode before deploying, with a recommendation to start single if unsure.
- Preflight checksConfirms the OS, that DNS points at the box, and that ports 80 and 443 are open on the host and cloud firewall.
- Docker setupInstalls Docker Engine and the Compose plugin if they are missing, then re-checks the versions.
- Secret generationGenerates encryption keys and database passwords on the target box and writes them only into a mode 600 .env file.
- TLS reverse proxyRuns n8n behind Caddy, which obtains Let's Encrypt certificates automatically.
- Health verificationChecks container status, the internal and public health endpoints, certificate issuance and queue worker environments.
- Python task runnersAdds an n8nio/runners sidecar so Python Code nodes work in external mode.
- Day-2 operationsPoints to a separate guide for updating, backing up and restoring the instance.
What you need
- SSH access to a fresh Ubuntu or Debian VM, as root or a sudo user
- A domain whose DNS you control, with an A record pointing at the server
- Ports 80 and 443 reachable from the internet
- Around 4 GB RAM or more for queue mode, with about 1 to 2 GB per worker
Try asking
- Deploy n8n in single mode on my VPS at n8n.example.com
- Set up n8n queue mode with workers on my Hetzner server
- Back up and update my self-hosted n8n instance
Good to know
- For self-hosted Docker n8n only, not n8n Cloud and not workflow building
- The stock image has no Python 3, so Python Code nodes fail in default internal mode
- Do not scale queue workers once task runners are external; add worker and runner pairs instead
- Losing or changing the encryption key makes saved credentials undecryptable
Security check
C- Asks for administrator rights (sudo)In
data/skills/n8n-self-hosting/SKILL.md:sudo
Checked automatically: data/skills/n8n-self-hosting/SKILL.md, data/skills/n8n-self-hosting/assets/init-data.sh. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
CREDENTIAL_OVERWRITES.md8 KB -
DAY2.md9 KB -
QUEUE_MODE.md10 KB -
README.md5 KB -
SECURITY.md8 KB
Show all 14 files
-
SINGLE_MODE.md4 KB -
SKILL.md14 KB -
TASK_RUNNERS.md10 KB -
assets/.env.queue.example2 KB -
assets/.env.single.example1 KB -
assets/Caddyfile1 KB -
assets/docker-compose.queue.yml7 KB -
assets/docker-compose.single.yml3 KB -
assets/init-data.sh924 B
Alternatives to n8n-self-hosting
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
n8n-self-hosting: common questions
Should I use single or queue mode for n8n?
The skill says to start with single mode if unsure, since it is the simplest correct option. Queue mode suits high volume and heavy or long executions, and needs Redis and Postgres.
Why do Python Code nodes fail on my self-hosted n8n?
The stock n8nio/n8n image has no Python 3, so internal mode fails with a Python runner unavailable error. The skill recommends an n8nio/runners sidecar in external mode.
What happens if I lose the N8N_ENCRYPTION_KEY?
It encrypts every stored credential. If it is lost or changes, all saved credentials become undecryptable, so the skill tells the user to back it up off the box.
How do I install n8n-self-hosting?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is n8n-self-hosting free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is n8n-self-hosting safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.
What are alternatives to n8n-self-hosting?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
