n8n-self-hosting
Skill by czlonkowski
Deploys a production self-hosted n8n to a fresh Linux VM over SSH using Docker Compose, Caddy and automatic HTTPS. It is for users running n8n on their own server or VPS in single or queue mode.
Install n8n-self-hosting
Built from the published package, never by AI.
git clone --depth 1 https://github.com/czlonkowski/n8n-skills /tmp/n8n-skills && mkdir -p ~/.claude/skills && cp -r /tmp/n8n-skills/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-skills /tmp/n8n-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/n8n-skills/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 takes a fresh Ubuntu or Debian VM to a running n8n instance served over HTTPS. It runs Docker Compose behind a Caddy reverse proxy that obtains Let's Encrypt certificates automatically. The assistant asks whether to use single or queue mode, collects the domain, SSH target and timezone, and generates fresh secrets on the server.
The flow checks DNS and firewall ports before launch, then verifies container health and certificate issuance. It also covers updating, backing up and restoring the instance, hardening it, and enabling Python Code nodes through external task runners. It is for self-hosted n8n on Docker, not n8n Cloud and not for building workflows.
Written from the project's SKILL.md and checked against it.
What it can do
- Mode selectionAsks whether to use single or queue mode before any setup begins.
- Preflight checksConfirms DNS points at the server and that ports 80 and 443 are reachable.
- Docker installInstalls Docker Engine and the Compose plugin if they are missing.
- Secret generationCreates the encryption key and database passwords on the box using openssl.
- HTTPS setupRuns Caddy with automatic Let's Encrypt certificates in front of n8n.
- Launch and verifyBrings the stack up and checks service health, the n8n health endpoint and certificate issuance.
- Python task runnersAdds a n8nio/runners sidecar so Python Code nodes can run on the instance.
- Day-2 operationsCovers updating, backing up, restoring and hardening an existing instance.
What you need
- Linux VM running Ubuntu or Debian
- SSH access as root or a sudo user
- A domain whose DNS you control
- Docker and the Compose plugin (the skill installs them if missing)
- About 4 GB RAM minimum for queue mode
Try asking
- Deploy n8n on my VPS at 1.2.3.4 with the domain n8n.example.com
- Set up n8n in queue mode with workers on my Hetzner server
- My Python Code node says Python runner unavailable. Help me fix it
Good to know
- Only for self-hosted n8n on Docker, not n8n Cloud
- Ports 80 and 443 must be reachable from the internet
- Queue mode requires Postgres, not SQLite
- Do not scale workers once task runners are external; add worker and runner pairs instead
Security check
C- Asks for administrator rights (sudo)In
skills/n8n-self-hosting/SKILL.md:sudo
Checked automatically: skills/n8n-self-hosting/SKILL.md, 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
Does this work with n8n Cloud?
No. The source says it is for self-hosted n8n on Docker, not n8n Cloud, and not for building workflows.
What happens if the encryption key is lost?
The source says all saved credentials become undecryptable if N8N_ENCRYPTION_KEY is lost or changes, so it should be backed up off the box.
Why do Python Code nodes fail on a self-hosted n8n?
The stock n8nio/n8n image has no Python 3 in internal mode, so the source sets up an external n8nio/runners sidecar instead.
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.
