age

CLI

Simple, modern file encryption with small explicit keys.

Simple file encryption/decryption with age keys or SSH keys

3 curated recipes · not yet executed by the harness#encryption#files#keys

Recipes

Curated from documentation and usage. Percentages are estimates, not measurements.

Generate a new age key pair

~99% est.
age-keygen -o key.txt

Encrypt a file

~92% est.
age -r $(age-keygen | grep 'public key' | awk '{print $3}') -o secret.age plaintext.txt

Decrypt a file

~98% est.
age -d -i key.txt secret.age > plaintext.txt

Install

Homebrewbrew install age

Agent notes

When to use
Encrypting files or secrets for storage or transfer
Quick examples
  • age -r pubkey -o secret.age secret.txt
  • age -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.

Homepage ↗Repository ↗BSD-3-Clause0 views