ashlr-genome-keygen

ashlr-genome-keygen is a command for Claude Code from ashlrai/ashlr-plugin. It costs 62 tokens per session (434 once invoked), scanned A, original, MIT.

A command that creates an X25519 encryption key pair for Ashlr team cloud and registers the public key. It stores the private key only on the current machine.

In plain words
What is it for?
Use it once on each machine before joining or using a team cloud genome. It also supports key rotation, previewing changes, and choosing a different server endpoint.
Why use it?
It prepares a machine to use encrypted team data without sending the private key to Ashlr. It can be run again safely when the key is already registered.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ashlr plugin — 11 skills, 36 commands, 5 agents, 7 hooks, 1 MCP server shipped together

Good fit Use it once on each machine before joining or using a team cloud genome. It also supports key rotation, previewing changes, and choosing a different server endpoint.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ashlrai/ashlr-plugin
Claude Code
/plugin install ashlr

Made for: Claude Code.

Or install ashlr, the plugin that ships this one along with the rest of its 11 skills, 36 commands, 5 agents, 7 hooks, 1 MCP server.

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 ashlr-genome-keygen

README.md
[![agentmods](https://agentmods.dev/badge/commands/ashlrai/ashlr-plugin/ashlr-genome-keygen/github.svg)](https://agentmods.dev/commands/ashlrai/ashlr-plugin/ashlr-genome-keygen)
Your own site
<a href="https://agentmods.dev/commands/ashlrai/ashlr-plugin/ashlr-genome-keygen"><img src="https://agentmods.dev/badge/commands/ashlrai/ashlr-plugin/ashlr-genome-keygen/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ashlr-genome-keygen

Your own site · 80×15
<a href="https://agentmods.dev/commands/ashlrai/ashlr-plugin/ashlr-genome-keygen"><img src="https://agentmods.dev/badge/commands/ashlrai/ashlr-plugin/ashlr-genome-keygen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 434 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00062 $0.00434
Opus 5 $0.00031 $0.00217
Sonnet 5 $0.00012 $0.00087
Haiku 4.5 $0.00006 $0.00043

Measured 9d ago against content hash 446285160ff4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ashlr-genome-keygen 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 9d 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.

commands/ashlr-genome-keygen.md · 37 lines

What it actually says

Run the keygen script and show the user the outcome.

Steps:

  1. Run via Bash:

    bun run ${CLAUDE_PLUGIN_ROOT}/scripts/genome-keygen.ts $ARGUMENTS
    
  2. Print the script's stdout verbatim. Do not paraphrase — the user needs to see the exact pubkey path and value on first generation.

  3. If the script exits non-zero, surface its stderr:

    • Exit 2: user hasn't signed in. Suggest /ashlr-upgrade first.
    • Exit 3: network or server error. Suggest checking $ASHLR_API_URL and network.

Flags (forwarded via $ARGUMENTS):

Flag Purpose
--force Regenerate even if a keypair already exists (key rotation). Previous envelopes will no longer decrypt — ask an admin to run /ashlr-genome-rewrap.
--dry-run Print what would happen, no network, no file writes
--endpoint <url> Override the default https://api.ashlr.ai

What it does

Generates a 32-byte X25519 keypair client-side. Saves both halves to ~/.ashlr/member-keys/<yourUserId>.json with mode 0600. Uploads only the public half via POST /user/genome-pubkey. Your private key never leaves the machine.

Why

Team-cloud genome v2 uses envelope encryption: admins wrap the team DEK for each member's public key; members unwrap with their private key on first pull. This replaces the v1 flow where you had to DM a 32-byte base64 string to a teammate via Signal / 1Password.

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. 9d ago First seen · 37 lines · 62 tokens per session scan A 446285160ff4

Subscribe to this mod's changes

ashlr-genome-keygen is a command published in the GitHub repository ashlrai/ashlr-plugin (3 stars, last pushed 2d ago), licensed MIT. It adds 62 tokens to every session and 434 once invoked, about $0.0003 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-31.