Using V1? V2+ uses workspace environments. Start with the migration guide and run n8nac workspace migrate --json from the repository root before applying with n8nac workspace migrate --write. V1 users can keep using the legacy branch and packages: V1 branch · CLI: npx --yes n8nac@v1 <command> · Claude Code: /plugin marketplace add https://github.com/EtienneLescot/n8n-as-code#v1.
n8n version compatibility — The node schema bundled with n8n-as-code is built against the latest stable release of n8n. Keep your n8n instance up to date for best generation and validation results.
Independent project — n8n-as-code is an independent community project and is not affiliated with, endorsed by, or sponsored by n8n.
What n8n-as-code Gives You
n8n-as-code turns a repository into a full n8n development workspace:
| Capability | What it means |
|---|
| Editor-native workflow work | Browse, open, edit, validate, and sync n8n workflows from VS Code, Cursor, or the terminal. |
| Agent-ready context | Generate grounded instructions, schemas, examples, and node knowledge so AI agents can work on real n8n workflows safely. |
| GitOps-style sync | Pull and push workflows explicitly, review diffs, resolve conflicts, and keep workflow source in version control. |
| TypeScript workflow authoring | Convert workflows into readable .workflow.ts files that are easier for people and agents to edit. |
| Live n8n operations | Verify workflows, inspect credentials, run tests, activate workflows, and inspect executions against a selected n8n environment. |
The repository stores workflow files, generated agent context, and workspace-safe configuration. Secrets and machine-local runtime state stay local.
Quick Start
VS Code / Cursor
- Install the extension from the VS Code Marketplace or Open VSX.
- Open a folder or
.code-workspace.
- Click on the extension icon then on the gear icon to configure your workspace.
- Create or select an
n8n environment.
- Pull or create workflows with the integrated Agent Workbench or the agent of your choice.
The configuration UI uses the same model as the CLI: workspace environments are repository context, local managed instances are machine resources.
VS Code / Cursor guide
Claude Code
/plugin marketplace add https://github.com/EtienneLescot/n8n-as-code
/plugin install n8n-as-code@n8nac-marketplace
Then ask Claude for the workflow you want. The n8n-architect skill handles workspace setup, n8n context, validation, and sync steps as needed.
Claude setup docs
Generic Agent Skills
Install the skill from the repository skills directory:
https://github.com/EtienneLescot/n8n-as-code/tree/main/skills