rage
$ rage Official Low Riskrage (rage) is a fast Rust implementation of the age encryption format supporting X25519 keys, SSH public/private keys (-R/-i), ASCII-armored output (-a), and age plugins. Flag-based encryption and decryption run cleanly headlessly without any gpg-agent or pinentry daemon.
brew install rage rage encrypts and decrypts local files and streams at native Rust speed offline without an MCP server.
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 and clear exit codes; no JSON output and -p passphrase mode requires TTY.
- Deterministic
-r,-i,-o,-aCLI flags - No JSON output;
-pprompts TTY
Audited modern age cryptography (X25519/ChaCha20-Poly1305) in memory-safe Rust with zero network calls.
- Memory-safe Rust implementation of
agespec - 100% offline operation
Static Rust binary via brew, cargo, and GitHub releases across macOS, Linux, and Windows.
- Zero-dependency native binary across all platforms
Drop-in, high-speed Rust alternative to age with full SSH key and plugin support.
- Supports both
agekeys and SSH keys seamlessly
Maintained by Jack Grigg (str4d/rage, co-author of the age spec) under Apache-2.0/MIT.
- Maintained by
agespecification co-author
Crisp man pages, README examples, and --help reference.
- Clear CLI documentation in
str4d/rage
Security, Auth & Guardrails
Reads explicit -i <identity> key files (age or unencrypted SSH keys); passphrase mode (-p) prompts TTY.
Dual Apache-2.0 / MIT open-source CLI; free and offline.
# rage Agent Rules - Always use `-r` / `-R` (recipients) and `-i` (identity file) for non-interactive runs; avoid `-p` (passphrase) which requires a TTY. - Never write decrypted `-o` plaintext files into tracked git directories.
Agent-Ready Command Recipes
Safe Read-Only Queries
rage -d -i ~/.age/key.txt -o /tmp/secrets.env secrets.env.age
Decrypts secrets.env.age non-interactively with -i ~/.age/key.txt to /tmp/secrets.env.
Controlled Writes & Previews
rage -a -r age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8p -o backup.tar.gz.age backup.tar.gz
Encrypts backup.tar.gz to the recipient public key (-r) with ASCII armor (-a) and writes backup.tar.gz.age.
Strengths for Agents
- + No
gpg-agentdaemon, keyring trust database, orpinentrypopup friction when using-rand-i. - + Memory-safe Rust binary with SSH key compatibility (
-R,-i).
Caveats & Pitfalls
- ! Passphrase encryption (
-p) and passphrase-protected SSH keys prompt/dev/ttyinteractively. - ! Provides encryption only—pair with
minisignorcosignif signatures are required.