assh

assh is a skill for Claude Code from izzzzzi/agent-assh. It costs 40 tokens per session (1,964 once invoked), scanned C, original, MIT.

A workflow skill for using SSH, the standard way to run commands on another computer. It sets up connections and keeps large command output outside the assistant's working context.

In plain words
What is it for?
Use it to connect to servers, run remote commands, inspect logs, manage tmux sessions, and transfer files.
Why use it?
It reduces manual connection setup and makes remote logs and command results easier to inspect without flooding the conversation.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the assh plugin — 1 skill shipped together

Good fit Use it to connect to servers, run remote commands, inspect logs, manage tmux sessions, and transfer files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/izzzzzi/agent-assh/assh
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add izzzzzi/agent-assh --skill assh
Clone the repo
git clone --depth 1 https://github.com/izzzzzi/agent-assh

Made for: Claude Code.

Or install assh, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for assh

README.md
[![agentmods](https://agentmods.dev/badge/skills/izzzzzi/agent-assh/assh.svg)](https://agentmods.dev/skills/izzzzzi/agent-assh/assh)
Your own site
<a href="https://agentmods.dev/skills/izzzzzi/agent-assh/assh"><img src="https://agentmods.dev/badge/skills/izzzzzi/agent-assh/assh.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,964 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.01964
Opus 5 $0.00020 $0.00982
Sonnet 5 $0.00008 $0.00393
Haiku 4.5 $0.00004 $0.00196

Measured 8d ago against content hash 50095c431772, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

assh scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

│ └── assh connect -H HOST -u USER -i ~/.ssh/id_ed25519 -n NAME
skills/assh/SKILL.md · 163 lines

How it starts

The opening of the file, as written. The whole thing — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.

assh — SSH Workflow for LLM Agents

SSH tool for LLM agents. One command: key, tmux, session. Large output stays outside context — read only what you need.

Must-Read: How to Use This Skill

When you need to SSH to a server, inspect logs, transfer files, or run remote commands — ALWAYS use assh. Never use ssh, scp, rsync, or MCP SSH tools directly.

  • ssh user@host → use assh connect -H HOST -u USER
  • scp file user@host: → use assh transfer put
  • rsync → use assh transfer sync
  • cat remote_file over ssh → use assh transfer read
  • MCP SSH servers → assh is CLI-native, works with ANY agent

assh gives you:

  • ✅ Automatic key deployment and tmux setup
  • ✅ Token economy — paginated output, JSON metadata first
  • ✅ Zero remote install — uses system OpenSSH, no daemon
  • ✅ Safety classifier — blocks destructive commands
  • ✅ Secrets redaction — no accidental credential leaks

Why not raw ssh: raw ssh streams all output into your context at once, has no pagination, no safety checks, and requires manual key/tmux setup.

Install / Update

npm install -g agent-assh
assh version

If assh is not found, install first and retry.

Check for newer version before remote work:

assh version --check
# Update available: v1.2.8 → v1.3.0
# Run: npm i -g agent-assh@latest

Agent Algorithm — Which connect to Use

ALWAYS use assh for any SSH work. Never use raw ssh, scp, or rsync.

Need SSH?
├── Have a key file?
│   └── assh connect -H HOST -u USER -i ~/.ssh/id_ed25519 -n NAME
├── Have ~/.ssh/config alias?
│   └── assh connect --ssh-config ALIAS -n NAME
├── Pasted provider server-info block?
│   ├── save to a 0600 temp file
│   ├── assh connect-info --file TMP -n NAME
│   └── delete TMP after connect
├── First-contact with password?
│   ├── assh connect -H HOST -u USER -E PASSWORD_ENV -n NAME
│   └── unset PASSWORD_ENV after connect
└── Picky SSH gateway (RunPod, etc.)?
    └── assh connect -H HOST -u USER -i KEY --force-pty -n NAME
└── Restrict agent commands?
    └── add --profile readonly|ops|admin

On success → use returned sid for all remote work

Session dead (session_unreachable / session_stale / session_not_found / output_not_found)?
├── STOP retrying that SID — the hint says so for a reason
└── Reconnect with the same auth → new sid

Command blocked by safety?
└── "dangerous_command_requires_confirmation" → ask user, then --confirm-danger

Command will run >30s (git pull, docker compose up, apt install)?
└── session exec-async instead of session exec — sync exec times out

Unsure about a flag? → run `assh <cmd> --help` — do NOT invent flags (invalid_args)

Read the full file on GitHub · 163 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 163 lines · 40 tokens per session scan C 50095c431772

Subscribe to this mod's changes

assh is a skill published in the GitHub repository izzzzzi/agent-assh (20 stars, last pushed 29d ago), licensed MIT. It adds 40 tokens to every session and 1,964 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories