DhaiDev

Sshagent — AI skill for Claude Code

AI community

ssh-broker — A secure, whitelist-enforced SSH access broker for AI agents and humans.

How to install Sshagent

This entry records only its repository, not the path inside it, so there is no exact command to give. Open DhaiDev/sshagent and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Sshagent does

ssh-broker — A secure, whitelist-enforced SSH access broker for AI agents and humans. Exposes remote hosts via a CLI and an MCP server (for Claude Code and other MCP clients), so AI tools can run only explicitly approved commands on your servers, with session management, rate limiting, and audit logging.

Alternatives in AI

  • Firecrawl MCP Server — 🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM c 6.1k ★
  • Phantom — An AI co-worker with its own computer 1.3k ★
  • CLI Manager — A multi-project AI CLI workspace for local terminals, SSH hosts, and mobile-assisted workflows 749 ★

README

🔐 ssh-broker

A secure SSH access broker for AI agents and humans

*Give Claude Code (and any MCP client) safe, whitelist-enforced access to your servers — without ever handing the model raw shell access.*

[![Node.js](https://img.shields.io/badge/node-%3E%3D18-339933?logo=node.js&logoColor=white)](https://nodejs.org) [![TypeScript](https://img.shields.io/badge/TypeScript-5%2B-3178C6?logo=typescript&logoColor=white)](https://www.typescriptlang.org/) [![MCP](https://img.shields.io/badge/MCP-compatible-8A2BE2)](https://modelcontextprotocol.io) [![License](https://img.shields.io/badge/license-ISC-blue.svg)](#-license) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](#-contributing)

[Features](#-features) • [Quick Start](#-quick-start) • [Tutorial](#-tutorial) • [CLI](#-cli-reference) • [MCP](#-use-from-claude-code) • [Security](#-security)


🧭 What is this?

`ssh-broker` is a **programmable SSH jump host** designed for the AI-agent era. You declare the hosts. You declare the commands that are allowed. Everything else is denied or requires a human in the loop. It speaks two protocols:

  • 💻 CLI — ssh-broker shell for humans, with confirmation prompts on risky commands.
  • 🤖 MCP server — ssh-broker serve over stdio for Claude Code, Claude Desktop, and any other MCP-compatible agent.

Every command is matched against a whitelist, optionally confirmed, executed inside a managed session, and written to an audit log. No key material ever leaves your machine.


✨ Features

🛡️ Whitelist-first execution Only patterns you explicitly allow can run. Prefix, exact, or regex match.
🚦 Three security modes whitelist (strict) · confirm (prompt on unknown) · bypass (dev only)
🖥️ Multi-host Manage prod, staging, dev, one-offs from a single config
🔑 Key & password auth `privateKeyP