SSH (key-based auth)

Chat with Gemini AI through local CLI via SSH

Unlock the power of the Google Gemini CLI by bridging your self-hosted n8n instance with your local server via secure SSH connections. This clever workflow transforms terminal-based AI into a functional tool for LangChain agents, allowing for seamless interaction with your local files and system environment. It's a perfect solution for developers wanting to utilize Gemini's free tier within a sophisticated automation framework.

Run this with your team's AI

What This Recipe Does

Managing remote infrastructure often requires specialized technical knowledge and direct access to complex command-line interfaces. This AI-driven automation transforms how your team interacts with servers by providing a natural language interface for system tasks. By leveraging secure SSH connections and intelligent processing, this solution allows authorized users to query system status, execute predefined scripts, and manage remote environments through a simple chat window. This automation eliminates the friction between business needs and technical execution. Instead of waiting for a developer to manually check server logs or restart a service, team members can interact with the AI agent to get immediate results. The integration of advanced language models ensures that the agent understands context and intent, while the SSH capabilities provide direct, secure action on your infrastructure. This results in faster incident response times, reduced operational overhead, and a more accessible way to maintain your digital assets. Whether you are scaling resources or performing routine maintenance, this tool centralizes control and simplifies technical workflows for your entire organization.

What your team gets

Something anyone can use

Forms and dashboards, so it is not a script only one person understands

It keeps running

Runs on your schedule in the cloud, so it does not stop when a laptop closes

Your other tools can call it

Endpoints, so the rest of your stack can trigger the same work

Accounts connected once

SSH (key-based auth) connected for the team, not per person

How It Works

  1. 1

    Open the recipe and connect your accounts

    Connect SSH (key-based auth) once, in your team cloud, and nobody has to do it again on their own machine

  2. 2

    Tell your own agent what is different about your process

    Claude, ChatGPT, Cursor, whichever your team already uses. It adapts the recipe to how you actually work

  3. 3

    Run it, then leave it running

    It lives in your team cloud, so it keeps going after you close the laptop and every teammate's AI can use it

Who Uses This

Frequently Asked Questions

Is the connection to my server secure?

Yes, the automation utilizes the SSH protocol, allowing you to use secure keys or credentials to ensure all remote commands are encrypted and authorized.

Can I limit which commands the AI is allowed to run?

You can define specific parameters and logic within the workflow to ensure the AI only executes approved actions on your infrastructure.

Does this work with any server?

This automation is compatible with any remote server that supports SSH access, including Linux-based cloud instances and on-premise hardware.

What kind of interface will my team see?

Runwork converts this workflow into a clean, chat-based application where users can type requests and receive real-time feedback from the server.

Coming from n8n?

This recipe uses nodes like Langchain.chatTrigger, Langchain.memoryBufferWindow, Langchain.lmChatGoogleGemini, Langchain.toolWorkflow and 6 more. On Runwork, you don't need to learn n8n's workflow syntax. Describe what you want to your own AI agent in plain English.

Langchain.chatTrigger Langchain.memoryBufferWindow Langchain.lmChatGoogleGemini Langchain.toolWorkflow Langchain.agent NoOp StickyNote Ssh ExecuteWorkflowTrigger Set

Based on n8n community workflow. View original

Related Recipes

Google Drive Pinecone

Build a document QA system with Google Drive, Pinecone, and OpenAI RAG

This automation streamlines document management by instantly reacting to file changes within your Google Drive. Instead of manually monitoring folders or waiting for notifications, this workflow detects new or updated files and triggers immediate downstream actions. For businesses handling high volumes of documentation, this ensures that team members are alerted the moment a contract is uploaded, a report is edited, or a client submits a project brief. By converting Google Drive into an active participant in your workflow, you eliminate the latency between document creation and business action. This results in faster response times, improved project momentum, and the removal of administrative bottlenecks that typically slow down collaborative environments. Whether you are managing legal documents, marketing assets, or internal reports, this automation provides a reliable bridge between your storage system and your operational processes.

See the recipe
Http Jotform Google-gemini Jina AI

Automate vendor due diligence research with Gemini & Jina AI

This AI Safety and Compliance automation provides a robust framework for organizations to vet content and data against internal policies and regulatory standards. By utilizing a structured form trigger, the workflow captures submissions and subjects them to an intelligent analysis process powered by Jina AI. It evaluates inputs for potential risks, compliance violations, or safety concerns, ensuring that every piece of data moving through your pipeline adheres to predefined safety protocols. The system includes built-in wait states and conditional logic to allow for human-in-the-loop verification when necessary, finally consolidating all findings into a centralized Google Sheets repository for auditing. This automation eliminates the manual bottleneck of compliance reviews, reduces the risk of human error in safety assessments, and provides a transparent audit trail for stakeholders and regulators.

See the recipe
Langchain.chatTrigger Langchain.lmChatOpenAi Langchain.memoryBufferWindow Langchain.agent +10

AI-powered document chat with Nextcloud files using LangChain and OpenAI

This AI-driven document management automation transforms how your organization interacts with stored data. By integrating a conversational AI interface with NextCloud, this workflow allows team members to query, extract, and analyze information from files using natural language. Instead of manually searching through folders and reading dozens of documents to find specific details, users can simply ask questions and receive structured summaries or specific data points instantly. The system intelligently routes requests, processes various file types through automated extraction, and aggregates results into a cohesive response. This significantly reduces the time spent on administrative research and ensures that critical information trapped in static documents becomes an accessible, actionable asset for your entire team. By bridging the gap between raw file storage and intelligent retrieval, this automation empowers better decision-making and accelerates project timelines.

See the recipe
Http Google-gemini Jotform

Generate product images & videos with Gemini AI, DeepSeek, and GoAPI for e-commerce

This automated content generation system streamlines the transition from raw data to production-ready assets. By integrating powerful web requests and HTML processing, the workflow automatically fetches, structures, and formats content based on your specific requirements. The inclusion of a Form Trigger allows team members to initiate content requests instantly, while the built-in logic handling ensures that data is validated and converted into the correct file formats before delivery. To ensure reliability in business operations, the system features a dedicated error-handling mechanism that sends immediate notifications via Discord if a process requires attention. This eliminates the manual overhead of constant monitoring and allows your creative team to focus on strategy rather than data entry. By standardizing the content creation pipeline, businesses can maintain a consistent brand voice and accelerate their publishing schedule without increasing headcount or technical complexity.

See the recipe

Run this with the AI your team already uses

Your agent adapts it, your team cloud keeps it running, and everyone's AI can find it.

Open this recipe in Runwork