Install
openclaw skills install @eladrave/privacy-cliUse the Privacy CLI to create and manage Privacy Virtual Cards directly from the terminal. Trigger this skill whenever the user asks to create, list, pause, update, or close a virtual card, or fetch transaction history for Privacy.com.
openclaw skills install @eladrave/privacy-cliThis skill allows the agent to interact with the Privacy API via the official CLI to manage Privacy Virtual Cards and view transactions.
For missing information or edge cases, refer to the official documentation: https://developers.privacy.com/docs/privacy-cli
Before executing commands, check if the CLI is installed by running:
privacy --version
If not installed, run the folling:
npm install -g @privacy-com/privacy-cli
The Privacy CLI requires an API key (the user must be on a paid Privacy Plan).
Check for authentication by running a harmless command like privacy cards list --page-size 1 --json.
If it fails due to missing authentication:
PRIVACY_API_KEY environment variable in their terminal (e.g., export PRIVACY_API_KEY="your_api_key_here").The CLI resolves your API key in this order:
--json flag to your commands so you can parse the output programmatically!privacy or privacy interactive). Always use non-interactive one-off commands. Do not prompt the user to use interactive mode either.privacy cards pan <token> --json. Do not log, save, or store the PAN output in any file; only display it securely to the user in your response.privacy cards create --type <SINGLE_USE|MERCHANT_LOCKED> [--memo "label"] [--spend-limit <whole_dollars>] [--spend-limit-duration <TRANSACTION|MONTHLY|ANNUALLY|FOREVER>] --json
(Note: SINGLE_USE closes automatically after the first transaction, MERCHANT_LOCKED locks to the first merchant it is used with).privacy cards list [--page <number>] [--page-size <number>] --jsonprivacy cards get <token> --jsonprivacy cards update <token> [--memo "new label"] [--spend-limit <amount>] [--spend-limit-duration <duration>] [--state <OPEN|PAUSED|CLOSED>] --jsonprivacy cards pause <token> --json
privacy cards unpause <token> --jsonprivacy cards close <token> --jsonprivacy cards pan <token> --jsonprivacy transactions list [--begin YYYY-MM-DD] [--end YYYY-MM-DD] [--card-token <token>] [--result APPROVED|DECLINED] [--page <number>] [--page-size <number>] --json