age
$ age Community Med Riskage provides simple, auditable public-key and recipient-based file encryption with no trust-db, daemon, or pinentry headaches. Using -r (public key recipient) and -i (identity keyfile) makes encryption and decryption 100% deterministic in headless shells.
brew install age Local file encryption belongs directly in age binary streams; exposing raw file decryption over MCP adds risk without benefit.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Clean non-interactive -r/-i/-o flags with zero gpg-agent daemon or pinentry pitfalls (only -p passphrase mode prompts TTY).
- Deterministic
-r/-i/-oCLI flags
Modern X25519/ChaCha20-Poly1305 cryptography with minimal attack surface and no keyserver network calls.
- Small audited crypto surface; offline-only operation
Single static Go binary available via brew, apt, go install, and Windows.
- Zero-dependency binary across macOS, Linux, and Windows
Replaces fragile gpg automation for artifact encryption, backups, and sops keys.
- Simple recipient-based file encryption
Created and maintained by Filippo Valsorda with wide adoption (including CNCF SOPS).
- Maintained BSD-3-Clause upstream
Crisp man page, specification, and README usage examples.
- Concise specification and
--helpoutput
Security, Auth & Guardrails
Reads private identity keys from user-specified files (e.g., ~/.config/age/keys.txt) via -i.
100% free, offline, and open-source (BSD-3-Clause).
# age Agent Rules - Always use `-r`/`-R` (public key) or `-i` (identity file); NEVER pass `-p` (passphrase) in headless shells because it prompts `/dev/tty`. - Never read or print `AGE-SECRET-KEY-` identity files or decrypt secrets directly to stdout.
Agent-Ready Command Recipes
Safe Read-Only Queries
age-keygen -y ~/.config/age/keys.txt
Prints only the age1... public key without exposing the AGE-SECRET-KEY- private line.
Controlled Writes & Previews
age -r age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8p -o bundle.tar.zst.age bundle.tar.zst
Encrypts bundle.tar.zst non-interactively using an explicit age1... public recipient.
Strengths for Agents
- + No background agent daemon, trust-db, or pinentry GUI dialogs when using
-rand-i. - + Zero-dependency static Go binary with modern authenticated encryption.
Caveats & Pitfalls
- ! Using
-p(passphrase encryption) requires an interactive/dev/ttyprompt and fails in headless shells. - ! Does not provide signing/verification—use
cosignorminisignfor signatures.