1.6 KiB
1.6 KiB
name, description
| name | description |
|---|---|
| pass-mgr | Manage OpenClaw agent credentials (usernames/secrets). Use when storing, retrieving, listing, generating, or removing credentials for an agent. Trigger on requests about saving or fetching usernames, passwords, tokens, API keys, or other secrets. MUST call pass_mgr via the pcexec tool. |
Pass Manager
Purpose
Use pass_mgr to store and retrieve agent-scoped credentials (username/secret pairs) and generate secrets.
Mandatory safety rule
Always invoke pass_mgr through the pcexec tool. Do NOT run pass_mgr directly.
Commands (run via pcexec)
-
List keys for current agent
pass_mgr list
-
Get username for a key
pass_mgr get-username <key>
-
Get secret for a key
pass_mgr get-secret <key>
-
Set a key entry (username + secret)
pass_mgr set <key> --username <username> --secret <secret>
-
Remove a key entry
pass_mgr unset <key>
-
Generate a random secret for a key (prints secret)
pass_mgr generate <key>
Usage notes
- Treat all outputs as sensitive. Do not echo secrets unless explicitly requested.
- Prefer
generatewhen the user wants a new secret or password. - Use
setto store both username and secret in one step. - Use
get-usernameandget-secretfor retrieval.
Examples (pcexec)
-
Store credentials
- pcexec:
pass_mgr set github --username alice --secret <secret>
- pcexec:
-
Retrieve username
- pcexec:
pass_mgr get-username github
- pcexec:
-
Retrieve secret
- pcexec:
pass_mgr get-secret github
- pcexec:
-
Generate secret
- pcexec:
pass_mgr generate github
- pcexec:
-
Delete entry
- pcexec:
pass_mgr unset github
- pcexec: