n8n-as-code

Build, validate, sync, and operate n8n workflows with AI from your editor or terminal.

Stars
★ 1.7k
Last updated
5d ago v2.7.0
FARS reviewed
Nov 08, 2026
License
MIT
Primary language
TypeScript

At a glance

How it runs
IDE extensionCLIAgent plugin / skill
Works with
Universal · cross-platformClaude Code (Partial support)
Cost
Free, no paid service needed
Setup effort
Medium · a few setup steps
You'll need
n8n instancen8n API key for remote environmentsnpm/npx for CLI usageShell / CLINetwork accessLocal filesystem
Typical use
An automation engineer working in VS Code or Cursor who wants to browse, edit, validate, and synchronize live n8n workflows without leaving the editor.
Not a fit if
  • Teams that need fully offline use with no n8n instance
  • Teams running older n8n versions they cannot upgrade
  • Teams that require official vendor support or endorsement
Website
n8nascode.dev ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-11-28latest release v2.7.0 (2026-09-11)+0.7 ★/day over 7 days
Source review
73/100 · Some gaps

What does this agent do, and when should you use it?

n8n-as-code is a development and operations toolkit composed of a VS Code/Cursor extension, the n8nac CLI, portable Agent Skills, n8n-manager, and a TypeScript transformer. It turns a repository into an n8n workspace where people and AI assistants can inspect node knowledge, edit workflows, validate them, and explicitly synchronize them with a selected n8n environment. Workflows can be stored as readable .workflow.ts files, reviewed through Git, and pushed to remote or locally managed n8n instances. Repository-level environment configuration is separated from API keys, managed-instance state, and other machine-local data. It is a strong fit for teams that want code review, controlled environment promotion, and editor-native n8n operations, provided they can keep their n8n version aligned with the latest stable schemas bundled by the project.

A user defines either a remote n8n URL or an n8n-manager instance with n8nac env add, stores an API key with n8nac env auth set, and selects the active target through n8nac env use. n8nac update-ai generates agent context containing schemas, examples, node knowledge, and validation guidance; n8nac skills search, node-info, and validate expose template discovery, node information, and workflow checks. Synchronization is deliberate: n8nac list discovers workflows, pull imports one into the repository, push --verify validates and sends a file to n8n, and resolve handles conflicts. promote moves one workflow or all .workflow.ts files between environment workflowsPath directories, rewrites target project metadata, maps credentials and supported Execute Workflow references, and records stable bindings in n8nac-promotion.json; --dry-run produces the create/update plan without writing or pushing. @n8n-as-code/transformer converts between n8n JSON and TypeScript classes built with @workflow, @node, and @links, while the VS Code/Cursor extension supplies a sidebar, canvas, environment controls, and an integrated Agent Workbench.

  1. An automation engineer working in VS Code or Cursor who wants to browse, edit, validate, and synchronize live n8n workflows without leaving the editor.
  2. A team bringing n8n assets under Git review that needs explicit pull and push operations, readable diffs, and conflict-resolution commands.
  3. A platform team promoting workflows from Dev to Prod that wants a dry-run plan before credential mappings, project metadata, and sub-workflow references are changed.
  4. A developer asking an AI assistant to create n8n workflows who needs grounded node schemas, examples, templates, and validation rules rather than model memory alone.
  5. An n8n user who prefers code-shaped assets and wants to convert workflow JSON into editable .workflow.ts classes for human or agent maintenance.
  6. A developer needing a local n8n sandbox who wants n8n-manager to control instance and tunnel lifecycles while n8nac remains the repository environment source of truth.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • npx --yes n8nac env add Dev --base-url https://n8n.example.com --workflows-path workflows/dev
  • npx --yes n8nac env use Dev
  • npx --yes n8nac update-ai
  • npx --yes n8nac env add Local --managed-instance <id> --workflows-path workflows/local
Environment variables
N8N_API_KEY
Config files
workflow.json

How do you install or deploy this agent?

For the editor route, install etienne-lescot.n8n-as-code from the VS Code Marketplace or Open VSX, open a folder or .code-workspace, open the extension configuration, and create or select an n8n environment. For CLI use, the documented commands run through npx:

npx --yes n8nac env add Dev --base-url https://n8n.example.com --workflows-path workflows/dev
printf '%s' "$N8N_API_KEY" | npx --yes n8nac env auth set Dev --api-key-stdin
npx --yes n8nac env use Dev
npx --yes n8nac update-ai

This remote path requires a reachable n8n URL and N8N_API_KEY. To attach an existing locally managed instance, first run n8n-manager instance list, then:

npx --yes n8nac env add Local --managed-instance <id> --workflows-path workflows/local
npx --yes n8nac env use Local

The Claude Code delivery is labeled Beta / Pending Review and uses:

/plugin marketplace add https://github.com/EtienneLescot/n8n-as-code
/plugin install n8n-as-code@n8nac-marketplace

How do you use this agent?

Check that the selected environment is ready, then list its workflows:

npx --yes n8nac env status --json
npx --yes n8nac list

Pull a workflow, edit it, validate it, and push it explicitly:

npx --yes n8nac pull <workflow-id>
npx --yes n8nac skills validate workflows/dev/my-workflow.workflow.ts
npx --yes n8nac push workflows/dev/my-workflow.workflow.ts --verify

Preview an environment promotion before making changes:

npx --yes n8nac promote --from Dev --to Prod --dry-run

After reviewing the plan, remove --dry-run to perform the normal file processing and push. Convert an existing JSON workflow with n8nac convert workflow.json --format typescript, or convert a directory with n8nac convert-batch workflows/ --format typescript. Pulls and pushes are never implicit; synchronization occurs only when requested.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • The bundled knowledge covers 537 nodes with full schemas and more than 7,700 templates, giving generation and validation concrete n8n context.
  • It offers an editor extension, CLI, portable skills, an OpenClaw plugin, and a transformer, supporting both interactive work and terminal automation.
  • Explicit synchronization, push verification, conflict handling, and promotion dry-runs provide review points before remote state changes.
  • TypeScript workflows expose @workflow, @node, and @links structures that are easier to review and edit than raw workflow JSON.
  • Environment promotion handles target project metadata, credential mappings, and supported Execute Workflow references instead of merely copying files.
Limitations
  • The bundled node schema targets the latest stable n8n release, so older instances may produce generation or validation mismatches and require upgrades.
  • Remote operation requires network access and an n8n API key; managed local operation adds n8n-manager and machine-level instance lifecycle concerns.
  • The Claude Code plugin is labeled Beta / Pending Review, so it should not be treated as a fully mature, formally reviewed integration.
  • Promotion rewrites metadata and maps credentials and workflow references; even with dry-run support, complex environments require human review.
  • This is an independent community project with no affiliation, endorsement, or sponsorship from n8n, which may matter to teams evaluating support risk.

How does this agent compare with similar options?

Compared with maintaining workflows only in the n8n interface, n8n-as-code adds a repository-resident TypeScript representation, explicit pull/push operations, Git diff review, conflict handling, and environment promotion. Within the toolkit, the VS Code/Cursor extension supplies the visual workspace and Agent Workbench, n8nac owns repository environments, validation, and synchronization, while n8n-manager is limited to local instances, Docker lifecycle, tunnels, secrets, and other machine-local operations; it is not the workspace source of truth.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
n8n-as-code This agent 73 · Some gaps IDE extensionFree ★ 1.7k 5d ago TypeScript —
Keinsaas Navigator 72 · Some gaps Self-hosted serviceFree + model costs ★ 1.2k 26d ago TypeScript OpenAI API · Claude API
LoopX Control Plane 70 · Some gaps CLIFree + model costs ★ 6.8k today Python Codex
GitHub Agentic Workflows 68 · Some gaps CLIFree + model costs ★ 5.8k today Go Claude Code · OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
73/ 100 5-point scale 3.7 / 5
Trust 17/29
Reliability 8/14
Adaptability 16/18
Convention 15/18
Effectiveness 12/13
Verifiability 5/8
Why each dimension lost points
Trust17 / 29 · 2.9/5

The skill and README require resolving environment status first, accepting API keys through stdin, and avoiding default infrastructure creation; sync is explicit and promotion offers a dry run. TLS guidance warns about disabling verification, and the code includes environment redaction, giving concrete support for confirmation, data-flow, and secret-handling practices. Deductions: the product includes credential management, instance lifecycle, and tunnel capabilities, while the sample does not show fine-grained permission controls or a full review of external effects. Dependency security has ordinary dependency declarations but no audit or mitigation evidence. Attribution and independence are stated, but publisher identity remains unknown as instructed.

Reliability8 / 14 · 2.9/5

The README, skill, and troubleshooting guide are broadly consistent about environments, sync, and command paths; the CI file describes builds, dependency alignment, and tests. Troubleshooting covers conflicts, configuration, and connection failures. Deductions: installation depends on npm packages and upstream n8n resources, with no availability guarantees shown; the sample gives useful recovery steps but does not establish coverage of all failure cases.

Adaptability16 / 18 · 4.4/5

The skill precisely targets n8n workflow creation, editing, validation, synchronization, and troubleshooting within the current context root. Documentation covers VS Code, Cursor, Claude, generic skills, CLI, remote environments, and managed local instances; it asks before creating infrastructure and distinguishes remote connections from local instances. Deduction: capability boundaries are mainly expressed as operating instructions, and the sample does not provide a complete inventory of permissions and limits.

Convention15 / 18 · 4.2/5

The README separates the editor, CLI, skills, plugins, and transformer, with installation guidance, common commands, workflow examples, and documentation links. Troubleshooting covers TLS, authentication, sync, plugins, and reset. The MIT license text is complete, and release channels and version fields are visible. Deductions: the sample has no complete changelog or explicit maintenance commitment; multiple skill adapters and CLI/plugin aliases create room for naming and version drift, which CI consistency checks reduce but do not eliminate.

Effectiveness12 / 13 · 4.6/5

The product combines n8n node knowledge, validation, TypeScript workflows, and explicit Git-like sync through editor and CLI interfaces. The README gives usable commands and workflow examples, while the skill constrains context-root and environment resolution for concrete tasks. Deduction: value depends on installing npm packages, configuring an n8n environment, and supplying credentials, adding setup cost for simple use cases; the sample does not independently substantiate the advertised scale figures.

Verifiability5 / 8 · 3.1/5

Claims about core features, installation, and security practices have some cross-support across the README, skill, troubleshooting guide, and source code; CI also describes static build and test procedures. Deductions: advertised feature-scale and node-coverage figures remain assertions in this sample, and no execution results are provided. Runtime behavior cannot be confirmed from static material, so traceability and corroboration receive limited rather than full credit.

Risks and how to mitigate them
  • The tool can operate on remote n8n workflows, credentials, and local instances. Confirm the active environment, API key scope, and target before use, and review changes before production pushes.
  • Avoid N8NAC_INSECURE_TLS=1 unless you accept the risk that an API key may be intercepted in transit; configure a trusted CA instead.
  • The sample does not independently verify node/template counts or runtime correctness.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 97b7e53c9eba New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/n8n-as-code.svg)](https://followagents.com/en/agents/n8n-as-code)
<a href="https://followagents.com/en/agents/n8n-as-code"><img src="https://followagents.com/badge/n8n-as-code.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v2.7.0 n8n-as-code v2.7.0
    Release notes excerpt
    n8n-as-code 2.7.0 Product Surface - Editor integrations published via Microsoft Marketplace and Open VSX - Shared n8nac CLI for workspace bootstrap, sync, and automation - AI Skills and Claude-ready agent context generation - MCP server for Model Context Protocol clients - OpenClaw plugin support - TypeScript transformer for n8n workflow code Included in this release - AI Skills and Claude Integration: 2.4.1-rc.1 -> 2.4.1 - CLI: 2.7.0-rc.1 -> 2.7.0 - MCP Server: 2.2.1-rc.1 -> 2.2.1 - Editor Integrations: 2.44.0-rc.1 -> 2.44.0 AI Skills and Claude Integration …
    View on GitHub ↗
  2. v2.6.0 n8n-as-code v2.6.0
    Release notes excerpt
    n8n-as-code 2.6.0 Product Surface - Editor integrations published via Microsoft Marketplace and Open VSX - Shared n8nac CLI for workspace bootstrap, sync, and automation - AI Skills and Claude-ready agent context generation - MCP server for Model Context Protocol clients - OpenClaw plugin support - TypeScript transformer for n8n workflow code Included in this release - TypeScript Transformer: 2.0.1-rc.7 -> 2.0.1 - Workflow Core: 2.0.1-rc.7 -> 2.0.1 - Manager Adapter: 2.0.5-rc.7 -> 2.0.5 - AI Skills and Claude Integration: 2.4.0-rc.7 -> 2.4.0 - CLI: 2.6.0-rc.7 -> 2.6.0 …
    View on GitHub ↗
  3. v2.5.0 n8n-as-code v2.5.0

FAQ

Will it automatically overwrite workflows in n8n?
No. Synchronization is explicit and occurs through commands such as pull, push, or a promote operation that pushes by default. promote --dry-run does not write files, push workflows, or update the promotion configuration.
What credentials are required for a remote n8n environment?
You need a reachable n8n base URL and an API key. The documented flow pipes N8N_API_KEY into n8nac env auth set through standard input, while secrets and machine-local runtime state remain local.
Do I have to use Claude Code, VS Code, or Cursor?
No. The n8nac CLI and generic Agent Skills provide non-editor paths. VS Code/Cursor and Claude Code are additional delivery options, and the Claude Code plugin is currently marked Beta / Pending Review.
Can it safely promote workflows from development to production?
It provides dry-run planning, project metadata rewriting, credential mapping, supported Execute Workflow reference mapping, and persistent source-to-target bindings. Teams should still inspect the plan and target configuration before a production push.
Does it support older n8n releases?
No specific legacy compatibility range is documented. Its bundled node schema is built against the latest stable n8n release, and the project recommends keeping n8n updated for the best generation and validation results.
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts