Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

age

$ age Community Med Risk
Filippo Valsorda (OSS) · Security & Secrets · BSD-3-Clause · macos / linux / windows

age 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.

FCRS-1.0 Score
88 /100
Good
Medium Confidence
Zero-Friction Install
brew install age
CLI vs MCP Decision CLI Only

Local file encryption belongs directly in age binary streams; exposing raw file decryption over MCP adds risk without benefit.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

Clean non-interactive -r/-i/-o flags with zero gpg-agent daemon or pinentry pitfalls (only -p passphrase mode prompts TTY).

  • Deterministic -r / -i / -o CLI flags
Trust & Safety 22 / 25

Modern X25519/ChaCha20-Poly1305 cryptography with minimal attack surface and no keyserver network calls.

  • Small audited crypto surface; offline-only operation
Setup & Portability 15 / 15

Single static Go binary available via brew, apt, go install, and Windows.

  • Zero-dependency binary across macOS, Linux, and Windows
Utility & Efficiency 13 / 15

Replaces fragile gpg automation for artifact encryption, backups, and sops keys.

  • Simple recipient-based file encryption
Maintenance & Lineage 9 / 10

Created and maintained by Filippo Valsorda with wide adoption (including CNCF SOPS).

  • Maintained BSD-3-Clause upstream
Docs & Verifiability 9 / 10

Crisp man page, specification, and README usage examples.

  • Concise specification and --help output

Security, Auth & Guardrails

Auth Modes
Config File
Credential Storage

Reads private identity keys from user-specified files (e.g., ~/.config/age/keys.txt) via -i.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free, offline, and open-source (BSD-3-Clause).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Derive public recipient string from an identity file
age-keygen -y ~/.config/age/keys.txt

Prints only the age1... public key without exposing the AGE-SECRET-KEY- private line.

Controlled Writes & Previews

Encrypt a local artifact to a public recipient without touching stdin TTY
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 -r and -i.
  • + Zero-dependency static Go binary with modern authenticated encryption.

Caveats & Pitfalls

  • ! Using -p (passphrase encryption) requires an interactive /dev/tty prompt and fails in headless shells.
  • ! Does not provide signing/verification—use cosign or minisign for signatures.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI