Hosting n8n on Replit
Just looking how I can integrate n8n with Vipe coding platform like Replit? Here how it works:
☑️ What You'll Need
A Replit account (free or paid — a paid plan is recommended for persistent uptime)
☑️ Step-by-Step Setup
1. Create a new Replit project
Go to http:/www.replit.com and create a new Repl
Choose Node.js as the template (since n8n runs on Node)
2. Install n8n
In the Replit Shell, run:
npm install n8n -g
Or add it to your package.json:
npm install n8n
3. Create a start script
In your index.js or a shell script, add:
npx n8n start
Or set the run command in .replit file:
run = "npx n8n start"
4. Set environment variables (Secrets)
Go to Tools → Secrets in Replit and add these key variables:
N8N_BASIC_AUTH_ACTIVE = true
N8N_BASIC_AUTH_USER = your_username
N8N_BASIC_AUTH_PASSWORD = your_password
N8N_PORT = 5678
N8N_PROTOCOL = https
WEBHOOK_URL = your Replit project's public URL (e.g. https://yourproject.yourusername.repl.co)
5. Run and access n8n
Click the Run button
Replit will give you a public URL like https://yourproject.yourusername.repl.co
Open that URL and log in with your credentials
6. Deploy for persistent hosting
Use Replit Deployments (their paid hosting feature) to keep n8n running 24/7, otherwise it will sleep when inactive
🚀 Replit is amazing tool for cross-platform apps, what would you like to create with Replit+n8n⁉️
1
3 comments
Mohammed Roqa
5
Hosting n8n on Replit
AI Automation Society
skool.com/ai-automation-society
A community built to master no-code AI automations. Join to learn, discuss, and build the systems that will shape the future of work.
Leaderboard (30-day)
Powered by