| name | passka-creds |
| description | Manage credentials with passka. Use when the user asks to store a secret, add an API key, run a command with credentials, list saved credentials, or anything related to credential/secret management. Triggers on: 'add secret', 'store credential', 'save API key', 'run with credentials', 'list credentials', 'show passwords', '添加密钥', '存密码', '密码管理'. |
Passka Credential Manager
Passka stores credentials securely in the macOS Keychain. Two credential types: secret (generic key-value) and oauth (with token refresh).
1. Execute commands with secrets
Inject stored credentials as environment variables into a command:
passka exec <credential-name> -- <command>
Examples:
passka exec openai -- curl -H "Authorization: Bearer $OPENAI_API_KEY" https://api.openai.com/v1/models
passka exec aws-prod github-token -- ./deploy.sh
passka exec --no-redact openai -- echo $OPENAI_API_KEY
Env var naming: field keys are uppercased with the credential name as prefix. E.g., credential openai with field api_key → $OPENAI_API_KEY.
2. Add and manage secrets
Add a new secret
passka add <name> --type secret [-d "description"]
This starts an interactive prompt for key-value pairs. All values are entered as hidden input.
Add an OAuth credential
passka add <name> --type oauth [-d "description"]
passka auth <name>
passka refresh <name>
List and inspect
passka list
passka list --type secret
passka show <name>
Update and remove
passka update <name> --field <field-name>
passka rm <name>
Workflow
When the user wants to use a secret in a command:
- Run
passka list to check if the credential exists
- If not, guide them to add it with
passka add
- Run the command with
passka exec <name> -- <command>
When the user wants to add a secret:
- Ask for a credential name and description
- Run
passka add <name> --type secret -d "<description>"
- The CLI will interactively prompt for key-value fields
- Confirm with
passka show <name>
When the user wants to see their credentials:
- Run
passka list and present the output as a formatted table