Back to browse
GitHub Repository

GenAI prompts as runnable programs

48 starsRust

Execute local LLM prompts in remote SSH shell sessions

by smudgy3746·Mar 13, 2026·3 points·2 comments

AI Analysis

●●●BangerBig BrainWizardryNiche Gem

Prompts execute locally over SSH — no API keys or LLM access on production servers.

Strengths
  • SSH integration executes prompts locally, keeping API keys off production servers
  • Prompts become proper CLI commands with --help, argument parsing, stdin/stdout
  • Caching and provider load balancing for cost optimization across models
Weaknesses
  • Only 24 stars, very early project with unproven adoption
  • Requires promptctl prefix for SSH sessions, adds workflow friction
Target Audience

DevOps engineers, SREs managing remote servers

Similar To

Aider · Cursor · Warp

Post Description

Hi HN,

This is a tool I've worked on the past few months.

Instead of giving LLM tools SSH access or installing them on a server, the following command:

$ promptctl ssh user@server

makes a set of locally defined prompts "magically" appear within the remote shell as executable command line programs.

For example, I have locally defined prompts for `llm-analyze-config` and `askai`. Then on (any) remote host I can:

$ promptctl ssh user@host # Now on remote host $ llm-analyze-config /etc/nginx.conf $ cat docker-compose.yml | askai "add a load balancer"

the prompts behind `llm-analyze-config` and `askai` execute on my local computer (even though they're invoked remotely) via the llm of my choosing.

This way LLM tools are never granted SSH access to the server, and nothing needs to be installed to the server. In fact, the server does not even need outbound internet connections to be enabled.

Eager to get feedback!

Github: https://github.com/tgalal/promptcmd/

Similar Projects