1Password secret manager for aux4. Wraps the 1Password CLI (op) to manage secrets using secret:// references. Secrets are resolved at execution time so credentials never appear in configuration files.
aux4 aux4 pkger install aux4/secret-1password
op) installed and authenticated (auto-installed via brew on macOS)jq installedaux4 secret 1password list --vault Personal
aux4 secret 1password get --ref "Personal/GitHub" --fields "username,password"
The --ref parameter uses a simple <vault>/<item> path:
Personal/GitHub
Work/AWS
When used inline by consuming packages (e.g., aux4/browser), the full secret:// URI includes the provider prefix:
secret://1password/<vault>/<item>/<field>
List secrets as secret:// references. Optionally filter by vault and include field names.
aux4 secret 1password list
secret://1password/Personal/GitHub
secret://1password/Personal/Gmail
secret://1password/Work/AWS
Filter by vault:
aux4 secret 1password list --vault Personal
secret://1password/Personal/GitHub
secret://1password/Personal/Gmail
Include field names:
aux4 secret 1password list --vault Personal --withFields true
secret://1password/Personal/GitHub
fields: username, password
secret://1password/Personal/Gmail
fields: username, password
Search for secrets by name. The query is matched case-insensitively against item titles.
aux4 secret 1password search --query github
secret://1password/Personal/GitHub
Search within a specific vault with field names:
aux4 secret 1password search --query github --vault Personal --withFields true
secret://1password/Personal/GitHub
fields: username, password
Get specific fields from a secret as a JSON object.
aux4 secret 1password get --ref "Personal/GitHub" --fields "username,password"
{
"username": "john",
"password": "abc123"
}
Include the one-time password:
aux4 secret 1password get --ref "Personal/GitHub" --fields "username,password" --otp true
{
"username": "john",
"password": "abc123",
"otp": "123456"
}
Create a new secret in 1Password. Fields are provided as comma-separated key=value pairs.
aux4 secret 1password create --vault Personal --item GitHub --fields "username=john,password=abc123"
secret://1password/Personal/GitHub
Specify a category (defaults to Login):
aux4 secret 1password create --vault Personal --item "API Key" --fields "credential=sk-abc123" --category "API Credential"
secret://1password/Personal/API Key
Update a single field of an existing secret.
aux4 secret 1password set --ref "Personal/GitHub" --field password --value newpass123
Personal/GitHub updated