Reah Skill: Agent Card
by @axelzou
Retrieve masked card info from Reah using an access key. Handles session generation, secure fetch, and decryption for agents automatically.
clawhub install reah-agent-cardπ About This Skill
name: reah description: >- Retrieve masked card info from Reah using an access key. Handles session generation, secure fetch, and decryption for agents automatically. metadata: {"openclaw":{"requires":{"anyBins":["node","curl"],"anyEnvVars":["REAH_AGENT_KEYS"]}}}
Reah Skill
This skill is organized by modules.
Modules
reah_card
Handle Reah card key flow for agents.reah.com.
This module handles two tasks.
#### Task 1: Ask for access key
If user did not provide an access key, ask user with this exact message:
To continue, I need your Reah card access key.You can get it from agents.reah.com:
Open your card
Click "Generate agent key" Paste it here and I'll securely fetch your card details.
If the workflow uses REAH_AGENT_KEYS from environment:
I can read the access key from REAH_AGENT_KEYS for this request.Please confirm I should proceed with this key read now.
Do not proceed to Task 2 before key is provided or key-read confirmation is granted.
#### Task 2: Get and decrypt card info
##### Example script (reference only)
Use the example script below as reference for the full process:
node {baseDir}/scripts/get-card-info-example.mjs \
--access-key ""
This script includes all steps in one place:
sessionId / secretKeyindividualCardByAccessKey(accessKey, sessionId) from https://agents.reah.com/graphqlencryptedPan and encryptedCvcThis script is for reference only. It intentionally ends after decryption and does not output raw pan/cvv.
##### Script Files
{baseDir}/scripts/get-card-info-example.mjs##### Security Constraints
https://agents.reah.com/graphql.access key from REAH_AGENT_KEYS only after explicit manual user confirmation for the current read.REAH_AGENT_KEYS.access key in any user-facing response.secretKey in any user-facing response.** ** 1234) and card info part B MUST be redacted.##### Error Handling