This repo is still very much experimental and messy. Things may be deleted or changed at any moment, sometimes daily. Use at your own risk and share what your thinking about in AI Engineering and AgenticOps.
π₯ Get your flow up!
FlowForge is your copilot for automating the creation and management of AI workflows with prompts. It's a terminal-first starter kit for AI-powered workflow automation that connects Claude Code directly to n8n through a comprehensive shell script API.
Tired of manually building workflows? FlowForge flips the script by using Claude Code and a custom n8n API shell script to generate entire workflows from a single prompt. It's not just a toolkit, it's liberation.
- β‘ Automate tedious tasks instantly - From prompt to production in minutes
- π‘οΈ Validate your workflows before they break production
- π― Focus on logic, not clicking around endless UI forms
- π€ Make your automation AI-native from the jump
- π Run it locally, privately, and offline if needed
- π§ Direct Claude integration with comprehensive n8n API access
Whether you're an ops ninja, indie hacker, or enterprise AI tinkerer, FlowForge gets your flows up faster and smarter.
FlowForge provides Claude Code with direct n8n API access through:
- π§
scripts/forge- Main CLI for n8n management (start, stop, health checks) - π
scripts/n8n-api.sh- Complete n8n API wrapper (workflows, executions, credentials) - π
scripts/n8n-help.sh- Quick reference guide for all API operations - π§ͺ
scripts/test-api.sh- API connection testing and validation
- π¨ Claude Code prompt templates for workflow generation
- π Complete n8n workflow management via shell script API
- π Workflow validation and formatting with JSON schema
- π One-command installation and setup
- π§° Comprehensive tooling for install, demo, and maintenance
- π Makefile shortcuts for quick operations
Clone the repo inside Ubuntu/WSL and run:
git clone https://github.com/charleslbryant/flowforge.git
cd flowforge
make install
make demoFlowForge uses environment variables for secure configuration:
# Copy the example file
cp .env.example .env
# Edit with your values
# You'll need to generate an n8n API key at http://localhost:5678/settings/apiTo run FlowForge, make sure you have:
- Ubuntu on WSL2 (Windows Subsystem for Linux) or native Ubuntu
- Node.js (v16+, use
nvmrecommended) - npm (v8 or later)
- jq (for JSON formatting)
- bash (v4+)
- Claude Code CLI installed globally:
npm install -g @anthropic-ai/claude-code
- GitHub CLI (optional, for repo operations)
- Docker Desktop (optional, if you want to run n8n via Docker)
π‘ Tip: If you're unsure about dependencies, just run
scripts/forge doctorβ it'll tell you what's missing.
make installscripts/forge install- π¦ Install required packages (n8n, Claude Code, dependencies)
- π Start n8n locally on port 5678
- π Guide you through n8n API key generation
- π§ Configure the n8n API shell script with authentication
- β Test API connection and validate setup
# System Management
scripts/forge start # Start n8n in background
scripts/forge stop # Stop n8n process
scripts/forge restart # Restart n8n process
scripts/forge health # Check n8n status and API
scripts/forge doctor # Full system diagnostic
# Workflow Operations
scripts/n8n-api.sh list-workflows # List all workflows
scripts/n8n-api.sh create-workflow [file] # Create from JSON
scripts/n8n-api.sh activate-workflow [id] # Activate workflow
scripts/n8n-api.sh list-executions [id] # Check execution history
# Development Tools
scripts/forge validate # Validate workflow.json schema
scripts/forge format # Format workflow.json with jq
scripts/n8n-api.sh help # Show all API commands
scripts/n8n-help.sh # Quick reference guidemake demo # Generate and test demo workflow
make install # Run full installation
make nuke # Clean uninstall everything- Start n8n:
scripts/forge start - Check health:
scripts/forge doctor - Create workflow: Use Claude Code with our API tools
- Validate:
scripts/forge validate - Deploy:
scripts/n8n-api.sh activate-workflow [id]
Our shell script provides comprehensive n8n API access:
# Workflow Management
scripts/n8n-api.sh list-workflows # List all workflows
scripts/n8n-api.sh get-workflow [id] # Get workflow details
scripts/n8n-api.sh create-workflow [file] # Create from JSON file
scripts/n8n-api.sh update-workflow [id] [file] # Update existing
scripts/n8n-api.sh delete-workflow [id] # Delete workflow
scripts/n8n-api.sh activate-workflow [id] # Activate
scripts/n8n-api.sh deactivate-workflow [id] # Deactivate
# Execution Management
scripts/n8n-api.sh list-executions [id] # List executions
scripts/n8n-api.sh get-execution [id] # Get execution details
# Credential Management
scripts/n8n-api.sh list-credentials # List credentials
scripts/n8n-api.sh create-credential [file] # Create credential
scripts/n8n-api.sh test-credential [id] # Test connection
# Advanced
scripts/n8n-api.sh raw [method] [endpoint] [data] # Direct API accessn8n not starting:
scripts/forge doctor # Full diagnostic
scripts/forge start # Start n8nAPI authentication failed:
# Generate new API key at http://localhost:5678/settings/api
export N8N_API_KEY="your-new-key"
scripts/test-api.sh # Test connectionWorkflow validation errors:
scripts/forge validate # Check JSON schema
scripts/forge format # Fix formattingWant to help forge the future of AI workflow automation?
- Fork the repo and create a feature branch
- Make your changes (new features, bug fixes, docs improvements)
- Test thoroughly with
make demoandscripts/forge doctor - Submit a pull request with clear description
- Follow shell script best practices
- Update documentation for new features
- Test all API operations before submitting
- Keep scripts portable across Ubuntu/WSL environments
Ideas welcome. Bugs doubly so. Let's build something that saves us all from clicking through endless workflow UIs ever again.
I created FlowForge on my cracked and tired old Android phone with "George," my AI assistant. After talking through the pain of painstakingly building n8n workflows by hand, we landed on the idea of automating the entire process using Claude Code.
We wanted to give Claude direct access to the n8n API, so we built a comprehensive shell script that handles all workflow operations β from creation and validation to execution monitoring and credential management.
Many thumb taps later, we had a GitHub repo and the core tools that make up FlowForge. It was built for Windows running WSL, but it should work anywhere Ubuntu does.
Hope it brings you as much joy and efficiency as it brought us.
**~ Charles and George** π€
n8n claude-code workflow-automation shell-script ai api ubuntu wsl