DevSource: AY Automate

n8n Claude Code Terminal Bridge

A minimal n8n workflow that exposes a chat trigger, formats the incoming message with a Set node, and pipes it over SSH into a running Claude Code CLI session — the smallest possible bridge between a chat UI and a real terminal agent.

What this template does

A minimal n8n workflow that exposes a chat trigger, formats the incoming message with a Set node, and pipes it over SSH into a running Claude Code CLI session — the smallest possible bridge between a chat UI and a real terminal agent. It's categorized in our directory under Dev & Agent Automation agent coordination, CI/CD glue, and developer-tool integrations — including our own Claude Code + n8n templates.

Integrations

  • n8n
    n8n
  • Claude Code
    Claude Code

Setup steps

  1. 1Add a Chat Trigger node so the workflow can be called from a simple chat widget or API call.
  2. 2Use a Set node to shape the incoming message into the exact command string Claude Code expects.
  3. 3Configure the SSH node with credentials for the box running the Claude Code CLI.
  4. 4Run the workflow and confirm the CLI receives the message and returns output back through n8n.

More Dev templates

Other dev & agent automation templates in our directory.