ssh-keys

ssh-keys is a command for coding agents from sfc-gh-eraigosa/dotfiles. It costs 15 tokens per session (316 once invoked), scanned A, original, Apache-2.0.

A command for managing SSH keys—the files that let you log in securely to remote computers—across hosts listed in your SSH configuration.

In plain words
What is it for?
List key status, create Ed25519 keys, distribute them to configured hosts, or remove them locally and from remote authorization files.
Why use it?
It keeps keys and remote access permissions consistent across several computers, while requiring confirmation before network-wide changes.

Command

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.

agentmods
npx agentmods add commands/sfc-gh-eraigosa/dotfiles/ssh-keys
Clone the repo
git clone --depth 1 https://github.com/sfc-gh-eraigosa/dotfiles

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 ssh-keys

README.md
[![agentmods](https://agentmods.dev/badge/commands/sfc-gh-eraigosa/dotfiles/ssh-keys.svg)](https://agentmods.dev/commands/sfc-gh-eraigosa/dotfiles/ssh-keys)
Your own site
<a href="https://agentmods.dev/commands/sfc-gh-eraigosa/dotfiles/ssh-keys"><img src="https://agentmods.dev/badge/commands/sfc-gh-eraigosa/dotfiles/ssh-keys.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 316 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00015 $0.00316
Opus 5 $0.00008 $0.00158
Sonnet 5 $0.00003 $0.00063
Haiku 4.5 $0.00002 $0.00032

Measured 5d ago against content hash 2bf836df0292, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ssh-keys scanned grade A with 0 findings 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 5d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ai/claude/commands/ssh-keys.md · 23 lines

What it actually says

Manage SSH keys across all hosts in ~/.ssh/config via the ssh-key-sync skill.


Arguments: $ARGUMENTS

Activate the ssh-key-sync skill. Parse $ARGUMENTS to determine intent:

  • list (or no args) — show the management table of all keys and their per-host authorization status: ~/git/dotfiles/src/ssh-key-sync/ssh-key-sync.sh --list
  • generate <name> [--no-sync] — create a new Ed25519 key. With --no-sync, keep it local only; otherwise distribute to every host in ~/.ssh/config: ~/git/dotfiles/src/ssh-key-sync/ssh-key-sync.sh [--no-sync] <name>
  • delete <name1> [<name2> ...] — securely revoke and remove keys locally and from every remote authorized_keys: ~/git/dotfiles/src/ssh-key-sync/ssh-key-sync.sh --delete <names...>

Always confirm with the user before delete or before distributing a new key — these are network-wide mutations. List operations are safe to run without confirmation.

After any mutating action, re-run --list and show the updated table so the user can verify.

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. 5d ago First seen · 23 lines · 15 tokens per session scan A 2bf836df0292

Subscribe to this mod's changes

ssh-keys is a command published in the GitHub repository sfc-gh-eraigosa/dotfiles (46 stars, last pushed yesterday), licensed Apache-2.0. It adds 15 tokens to every session and 316 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.