Secure environment variable manager for macOS and Linux. Stores secrets in platform-native secure storage and injects them into command environments with automatic output sanitization.
# Store a secret (will be prompted to enter the value securely)
sekey set MY_SECRET
# Sandboxing the secret: It is injected for the command, and any appearances
# in output are automatically sanitized
sekey --env MY_SECRET echo "Secret is \$MY_SECRET"
# Multiple environment variables
sekey --env MY_SECRET --env ANOTHER_VAR command.sh
# Delete a stored secret
sekey delete MY_SECRET
curl jakub.sh/install | bash
libsecret-tools package
# Ubuntu/Debian
sudo apt-get install libsecret-tools
# Fedora/RHEL
sudo dnf install libsecret-tool
# Arch
sudo pacman -S libsecret
# Interactive (prompts for value)
sekey set API_KEY
sekey delete API_KEY
# Single secret
sekey --env API_KEY curl -H "Authorization: Bearer \$API_KEY" https://api.example.com
# Multiple secrets
sekey --env API_KEY --env DB_PASSWORD --env TOKEN npm run deploy
# Alternative syntax
sekey --env=API_KEY --env=DB_PASSWORD npm run deploy
sekey version # Show version
sekey --help # Show help