Navigate Select ESC Close

I'll never use n8n the same......

2025-12-10 Science & Technology
75.9k
4.2k
398
NetworkChuck
NetworkChuck
5.3m subscribers

Integrating Claude Code Agents into n8n Workflows via SSH

Unlock true AI orchestration by connecting n8n workflows directly to powerful terminal tools like Claude Code using SSH, enabling complex context management and dynamic, multi-agent deployment.

Short Summary

  • Utilize the n8n SSH node as the bridge for executing commands on a remote server hosting your AI terminal tool.
  • Maintain rich, persistent conversational context across multiple workflow steps using Session IDs.
  • Deploy agents capable of referencing local files, running system skills, and executing complex automation routines.

This guide demonstrates how to leverage SSH to transform n8n from a simple executor into an orchestrator for powerful, locally controlled AI agents like Claude Code or Gemini CLI. By connecting the tools via command line, you immediately gain access to the AI tool's local file context and persistent memory capabilities, circumventing typical API limitations.

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

Get 67% OFF Hostinger’s n8n self-hosting AND an extra 10% OFF with code NETWORKCHUCK: https://hostinger.com/ncn8n N8n just got stupid powerful. In this video, I show you how I wired Claude Code (and other AI terminal tools like Gemini CLI) into my n8n workflows. N8n can now spin up full-blown AI agents, use skills, and keep rich context across multiple steps…. All from a single node. 🔥🧠 Check out our N8N COURSE on NetworkChuck Academy!: https://ntck.co/n8n_academy RESOURCES / LINKS: 📃 Guide / Walkthrough: https://github.com/theNetworkChuck/n8n-claude-code-guide ⚡ My video on why Claude Code is so great: https://youtu.be/MsQACpcuTkU TIMESTAMPS: 0:00 - Intro 0:24 - Requirements 2:50 - Super Simple Setup 4:33 - Basic Execution 7:55 - Sessions 9:52 - External Interfaces 12:54 - Architecture Shift **Sponsored by Hostinger SUPPORT NETWORKCHUCK --------------------------------------------------- 🎓🎓 Sign up for NetworkChuck Academy: https://ntck.co/NCAcademy ☕☕ COFFEE and MERCH: https://ntck.co/coffee 🌐🌐 Use the MOST SECURE Web Browser, NetworkChuck Cloud Browser: https://browser.networkchuck.com/ 🧠🧠 Use n8n, my favorite automation tool: https://ntck.co/n8n 🆘🆘 NEED HELP?? Join the Discord Server: https://discord.gg/networkchuck STUDY WITH ME on Twitch: https://bit.ly/nc_twitch READY TO LEARN?? --------------------------------------------------- -Sign up for NetworkChuck Academy: https://ntck.co/NCAcademy -Get your CCNA: https://bit.ly/nc-ccna FOLLOW ME EVERYWHERE --------------------------------------------------- Instagram: https://www.instagram.com/networkchuck/ Twitter: https://twitter.com/networkchuck Facebook: https://www.facebook.com/NetworkChuck/ Join the Discord server: http://bit.ly/nc-discord Do you want to know how I draw on the screen?? Go to https://ntck.co/EpicPen and use code NetworkChuck to get 20% off!! “n8n + Claude Code: The Most Overpowered Automation Stack” “How I Connected n8n to Claude Code with Just SSH” “Turn n8n into an AI Orchestrator with Claude Code” “Use n8n to Control Claude Code Agents Over SSH” “n8n Automation with Claude Code: Full Setup Tutorial” “Build an AI IT Department with n8n and Claude Code” “Claude Code + n8n Workflows: Headless AI in Your Automations” “How to Use Claude Code as an AI Terminal for n8n” “Maintaining AI Sessions in n8n with Claude Code (Session IDs)” “Slack + n8n + Claude Code: Talk to Your Homelab from Anywhere” “Using SSH Nodes in n8n to Run Claude Code Commands” “n8n and Claude Code for UniFi Monitoring and Network Checks” “Run Multiple Claude Agents from a Single n8n Workflow” “Build an AI-Powered NOC with n8n and Claude Code” “Why I Almost Quit n8n…Until I Added Claude Code” “Gemini CLI, Claude Code, and n8n: AI Terminal Superpowers” “How to Use AI Terminal Tools Inside Your n8n Workflows” “Self-Hosted n8n on Hostinger: Claude Code Integration Guide” “Turn Your Terminal AI into an API Using n8n + SSH” “n8n + Claude Code Automation Ideas for Your Homelab” #n8n #ClaudeCode #automation

Top Comments (10)

@withoutwroeirs 2025-12-10

Am I alone in no matter how many of those amazing videos I see, that sound truly awesome, yet I never seem to succeed in implementing them!

535 80 replies
@justinterested5819 2025-12-10

"oops, It seems I actually deleted your root folder, sorry"

190 4 replies
@NetworkChuck 2025-12-10

Get 67% OFF Hostinger’s n8n self-hosting AND an extra 10% OFF with code NETWORKCHUCK: https://hostinger.com/ncn8n N8n just got stupid powerful. In this video, I show you how I wired Claude Code (and other AI terminal tools like Gemini CLI) into my n8n workflows. N8n can now spin up full-blown AI agents, use skills, and keep rich context across multiple steps…. All from a single node. 🔥🧠 Check out our N8N COURSE on NetworkChuck Academy!: https://ntck.co/n8n_academy RESOURCES / LINKS: 📃 Guide / Walkthrough: https://github.com/theNetworkChuck/n8n-claude-code-guide ⚡ My video on why Claude Code is so great: https://youtu.be/MsQACpcuTkU TIMESTAMPS: 0:00 - Intro 0:24 - Requirements 2:50 - Super Simple Setup 4:33 - Basic Execution 7:55 - Sessions 9:52 - External Interfaces 12:54 - Architecture Shift **Sponsored by Hostinger

40 18 replies
@MrToup 2025-12-10

This made me realize that Opencode has a server we can expose and call like a REST API. Which give the impression to be cleaner than SSH.

38 1 replies
@frank__lowe 2025-12-19

i came to watch n8n and at the end of the video with the prayer i almost cried. Godbless you

34 1 replies
@Atlas-u3s 2026-01-25

The synchronicity of the pray at the end caught me off guard and was truly a bliss. I´m so grateful, bless you.

25 1 replies
@Shakathesaint 2025-12-10

Exceptional video, the idea of connecting n8n and Claude Code is crazy. A video where you propose a handful of real-world use cases would be fantastic.

25
@lifecheats9503 2025-12-21

Thanks for the prayer. Put a smile on my face and made my night! Needed it more than you know!!!

9
@CorEsan 2025-12-10

I been using n8n for a while now and never even realized they had an SSH node *slaps myself* thanks man!

8
@Dyzrupt0r 2025-12-10

This is the beginning of literally having your lab being built for you. This was Dexter's first tool in Dexter's laboratory. We're in a new world.

3

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot