n8n-as-code is a toolkit that enables developers to build, edit, deploy, and debug n8n workflows from their code editor with AI agent support.
The tool solves the problem of managing n8n workflows outside the web UI by treating them as code. It provides a repository-based development workspace where workflows can be authored in TypeScript, version-controlled with Git, and synchronized bidirectionally with n8n instances. The approach bundles node schemas and templates to give AI agents the context needed to work safely on real workflows, while keeping secrets and runtime state local to the machine.
Developers should adopt this tool if they want to manage n8n workflows in version control, collaborate through Git workflows, or use AI agents to generate and modify workflows. It suits teams that prefer editor-based development over UI-based workflow design, and those integrating n8n into larger automation systems. The tool works with VS Code, Cursor, and Claude Code through a VS Code extension and skill system, and also provides a CLI for terminal-based workflows. It is an independent community project not affiliated with n8n itself.
The maintainers respond to issues and pull requests within a day. Work in the issue tracker centers on bug fixes, enhancements, and documentation improvements.