---
name: n8n-local
description: Run n8n locally instead of paying for n8n Cloud or Zapier, and build workflows in it. Use when the user says "n8n", "self-host n8n", "automate this", "replace zapier", or wants scheduled/triggered automations without a subscription.
title: n8n-local
canonical_url: https://skilld.dev/gh/brettr7388/app-killers/n8n-local
last_updated: 2026-10-11T18:01:12.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [scripts/start-n8n.sh](https://skilld.dev/api/skills-raw/brettr7388/app-killers/n8n-local/scripts/start-n8n.sh).
>
> If the user asked to install this Skill, run `npx skilld install brettr7388/app-killers/n8n-local`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/n8n-local`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/brettr7388/app-killers/n8n-local) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/n8n-local`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/n8n-local --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/n8n-local --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

> Replaces **n8n Cloud / Zapier ($20-49/mo)**. Runs locally — no API key, no credits.

# n8n Local — the automation platform, self-hosted

This one is different from the rest of the repo: n8n is already free and open source.
You are not rebuilding it. You are **self-hosting it** so the user stops paying for
n8n Cloud or Zapier, and then **building their workflows for them** — which is the
part that actually costs people time.

## Install and run

```bash
npm install -g n8n
./scripts/start-n8n.sh          # http://localhost:5678
```

Two environment flags matter, and the first one is the single most common reason a
first-time local install appears broken:

- **`N8N_SECURE_COOKIE=false`** — without it, n8n refuses to set its auth cookie over
  plain `http://localhost`, so you log in and get bounced straight back to the login
  screen forever. It looks like a wrong password. It isn't.
- **`N8N_DIAGNOSTICS_ENABLED=false`** — opt out of telemetry.

First launch asks you to create an owner account. That account is local, stored in
`~/.n8n/database.sqlite`. There's no cloud tier and nothing to activate.

To try it without touching an existing setup, sandbox it:

```bash
N8N_USER_FOLDER=/tmp/n8n-test N8N_PORT=5679 ./scripts/start-n8n.sh
```

## What to actually do with it

The user's bottleneck is never installing n8n — it's building the workflow. So do that
for them:

1. **Ask what should trigger it** (a schedule, a webhook, a new file, an email) and
   **what should happen**. Get the whole chain in one question, not five.
2. **Build the workflow JSON directly** and import it, rather than describing clicks.
   A workflow is `{"nodes": [...], "connections": {...}}`. Write the file, then have
   them use *Import from File* in the editor. This is much faster than talking someone
   through a canvas.
3. **Use the n8n API** for anything programmatic:
   `POST http://localhost:5678/api/v1/workflows` with an API key from Settings → API.
4. **Test with the schedule disabled first.** Run it manually, look at the actual
   output of each node, and only then turn the trigger on.

## Credentials

Credentials are stored encrypted in the local database, keyed by
`~/.n8n/config`. **Back that file up** — lose it and every stored credential becomes
unreadable, even with the database intact. They also do not travel between machines,
so a migration means re-entering every credential by hand. Warn the user before they
build fifty workflows on a laptop with no backup.

## When to use this instead of a script

n8n earns its place when there are **real integrations** — Gmail, Sheets, Slack,
Notion, a CRM — where the OAuth dance and pagination are the work. For "when a file
lands here, do that", a 40-line Python script and a cron entry is simpler, faster and
has no server to keep running. Recommend honestly; don't reach for n8n because it
looks impressive.

## Keeping it running

For an always-on machine, run it under `launchd` (macOS) or `systemd` (Linux) so it
survives a reboot. **Show the user the plist or unit file and let them install it
themselves** — never load a background job on someone's machine silently.
