n8n Self Hosting skill
Deploy and maintain Docker-based n8n with Caddy HTTPS, private services and verified backups.
Community · Romuald Członkowski| Author | Romuald Członkowski |
|---|---|
| Licence | MIT |
| Source | czlonkowski/n8n-skills · SKILL.md on GitHub |
| Project website | docs.n8n.io/deploy/host-n8n |
| Works in | Claude Code · Codex, Gemini CLI, Cursor, Copilot |
| Read from the source on |
n8n-self-hosting guides an agent from a fresh Linux VM to an HTTPS n8n instance using Docker Compose and Caddy.
It separates single-instance SQLite deployment from queue mode with Postgres, Redis and paired external task runners. It is an operations skill, not a workflow builder.
From the skill's SKILL.md: # Deploying self-hosted n8n
What it does
- Collect mode, domain, SSH and timezone inputs before provisioning.
- Generate server-side secrets and keep internal services private.
- Verify health, TLS and workers; document backup and restore.
What you get
- Compose configuration, Caddyfile and private environment file.
- Deployment checks and a Day-2 maintenance handoff.
When to use it
- Deploy n8n to an authorized Linux server.
- Repair Python runner or queue-worker configuration.
When not to use it
- Building workflows or administering n8n Cloud.
What it needs
- A Linux VM, root or sudo SSH, domain DNS and public ports 80/443.
- Docker Compose and Caddy; hosting, domains and optional n8n paid features have separate costs.
Files in the skill
| File or folder | What it is for |
|---|---|
SKILL.md | Mode selection and deployment sequence. |
TASK_RUNNERS.md | External Python and JavaScript runner configuration. |
DAY2.md | Updates, backup and restore procedures. |
assets/ | Single and queue Compose, Caddy and environment templates. |
Licence as found in the repository on 2026-11-17: MIT.
Example prompts
Type one of these after installing; naming the skill makes sure it is used.
- Plan a single-instance deployment on my Linux VM; inspect DNS and access before changing it.
- Review my queue deployment for worker environment parity and paired external runners.
- Write a backup and restore checklist that preserves the n8n encryption key.
How to install n8n-self-hosting
Server access
The individual folder needs SSH and system operations. Claude.ai upload and the sandboxed API route are not verified for this workflow.
The full n8n plugin also adds routing and hooks. Copy only this folder for deployment guidance without installing the bundle.
A skill is a folder with a SKILL.md file. You install it once; the agent reads its short description at the start of each session and loads the full instructions only when a request matches. Pick the place you use:
Claude Code: copy the folder into your skills folder
Put the skill's folder in ~/.claude/skills/ to use it in every project on this computer, or in .claude/skills/ inside a repository to share it with everyone who works there (commit it).
git clone --depth 1 https://github.com/czlonkowski/n8n-skills.git
mkdir -p ~/.claude/skills
cp -R n8n-skills/skills/n8n-self-hosting ~/.claude/skills/Claude Code notices new or changed skills in these folders during the session. If the skills folder did not exist when the session started, run /reload-skills once. Then type /n8n-self-hosting or just describe the task.
On Windows, run the commands in Git Bash or WSL, or copy the folder into the same place with File Explorer.
Codex, Gemini CLI, Cursor and GitHub Copilot
These agents read the same SKILL.md folders. The one folder all four accept inside a project is .agents/skills/, so this copies the skill there:
git clone --depth 1 https://github.com/czlonkowski/n8n-skills.git
mkdir -p .agents/skills
cp -R n8n-skills/skills/n8n-self-hosting .agents/skills/| Agent | Project folder | Your user folder | Notes |
|---|---|---|---|
| OpenAI Codex | .agents/skills/ | ~/.agents/skills/ | Type $ or run /skills to pick a skill; Codex also chooses one when your task matches. |
| Gemini CLI | .agents/skills/.gemini/skills/ | ~/.agents/skills/~/.gemini/skills/ | Or install from Git with gemini skills install <git URL> --path <folder> --consent. Google replaced Gemini CLI with Antigravity CLI for free-tier and Google One users on 18 June 2026; Antigravity uses .agents/skills/ in a project and ~/.gemini/config/skills/ for you. |
| Cursor | .agents/skills/.cursor/skills/ | ~/.agents/skills/~/.cursor/skills/ | Type / in Agent chat to pick a skill. Cursor also reads Claude Code's .claude/skills/ folders. |
| GitHub Copilot | .github/skills/.agents/skills/.claude/skills/ | ~/.copilot/skills/~/.agents/skills/ | Works in Copilot CLI, the cloud agent, and agent mode in VS Code, Visual Studio and JetBrains (IDE support depends on the version). Or run gh skill install OWNER/REPOSITORY SKILL (public preview, GitHub CLI 2.90.0 or later). |
Sources for these steps
Checked against each vendor's documentation on 2026-11-14:
Operations boundaries
Review the target, maintenance window and backup before running commands against an existing instance. Templates are starting points, not evidence that a server is healthy.
Self-hosted n8n has its own edition and licensing terms, separate from this MIT-licensed skill.
Questions about n8n-self-hosting
Does it need n8n-mcp?
The deployment workflow uses SSH and Docker. n8n-mcp belongs to the broader workflow-building pack and is not required for server provisioning.
Which mode should I choose?
Choose single or queue explicitly before deployment. Queue mode requires Postgres and Redis; SQLite is not its database.
Can I lose stored credentials?
Yes if the encryption key is lost or changed. Keep a protected off-server backup with the data backups.
Is an HTTP health response enough?
No. The skill also checks public TLS, readiness and, where applicable, worker parity and task runners.
More AI skills
Related skills
n8n Multi Instance skill
Community · Romuald CzłonkowskiTarget multiple n8n instances explicitly and recover from ambiguous MCP routing.n8n Agents skill
Community · Romuald CzłonkowskiDesign n8n agents with deliberate tools, memory, structured output and human review.n8n Code JavaScript skill
Community · Romuald CzłonkowskiWrite or debug n8n JavaScript Code nodes with mode-aware data access and returns.n8n Code Python skill
Community · Romuald CzłonkowskiWrite native Python for n8n 2.x Code nodes with explicit sandbox and mode limits.n8n Code Tool skill
Community · Romuald CzłonkowskiWrite agent-callable n8n Custom Code Tools with query input and string output.n8n Node Configuration skill
Community · Romuald CzłonkowskiConfigure n8n nodes from live schemas, operations and property dependencies.