age
CLISimple, modern file encryption with small explicit keys.
Simple file encryption/decryption with age keys or SSH keys
Recipes
Curated from documentation and usage. Percentages are estimates, not measurements.
Generate a new age key pair
age-keygen -o key.txtEncrypt a file
age -r $(age-keygen | grep 'public key' | awk '{print $3}') -o secret.age plaintext.txtDecrypt a file
age -d -i key.txt secret.age > plaintext.txtInstall
Homebrew
brew install ageAgent notes
- When to use
- Encrypting files or secrets for storage or transfer
- Quick examples
age -r pubkey -o secret.age secret.txtage -d -i key.txt secret.age
Use from an agent
curl -s https://clihub.com/api/tools/age | jq '.agentHints.provenRecipes[] | {task, command, verified}'Or call get_tool with slug age on the MCP server at https://clihub.com/mcp.