Install
openclaw skills install personal-data-hubClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
Pull personal data (emails, issues) and propose outbound actions (drafts, replies) through the PersonalDataHub access control gateway. Data is filtered, redacted, and shaped by the owner's policy before reaching the agent.
openclaw skills install personal-data-hubAccess personal data from Gmail, GitHub, and other sources through the PersonalDataHub access control gateway. The data owner controls what the agent can see, which fields are visible, what gets redacted, and which actions are allowed.
Pull data from a source. Data is filtered and redacted according to the owner's access control policy.
Parameters:
source (required) — The data source (e.g., "gmail", "github")purpose (required) — Why this data is needed (logged for audit)type (optional) — Data type (e.g., "email", "issue")query (optional) — Search query in source-native syntax (e.g., "is:unread from:alice")limit (optional) — Maximum number of resultsExample:
Pull my recent unread emails about the Q4 report.
Propose an outbound action (e.g., draft email). The action is staged for the data owner to review and approve — it does NOT execute until approved.
Parameters:
source (required) — The source service (e.g., "gmail")action_type (required) — Action type (e.g., "draft_email", "send_email", "reply_email")to (required) — Recipient email addresssubject (required) — Email subjectbody (required) — Email bodypurpose (required) — Why this action is being proposed (logged for audit)in_reply_to (optional) — Message ID for threadingExample:
Draft a reply to Alice's Q4 report email thanking her for the numbers.
If the tools above are not available, you can call the PersonalDataHub API directly via HTTP.
Credentials: Read ~/.pdh/credentials.json to get hubUrl and apiKey.
Pull data:
curl -X POST <hubUrl>/app/v1/pull \
-H "Authorization: Bearer <apiKey>" \
-H "Content-Type: application/json" \
-d '{"source": "gmail", "purpose": "reason for pulling data"}'
Propose an action:
curl -X POST <hubUrl>/app/v1/propose \
-H "Authorization: Bearer <apiKey>" \
-H "Content-Type: application/json" \
-d '{"source": "gmail", "action_type": "draft_email", "action_data": {"to": "...", "subject": "...", "body": "..."}, "purpose": "reason for action"}'
If calls fail, check if the PersonalDataHub server is running:
curl <hubUrl>/health
If the server is not running, find and start it:
# Check where PersonalDataHub is installed
cat ~/.pdh/credentials.json # look at hubDir
# Start the server
cd <hubDir> && node dist/index.js
The install hook bootstraps PersonalDataHub automatically:
~/.pdh/credentials.jsonAfter installation, open http://localhost:3000 to connect Gmail/GitHub via OAuth.
Agents read credentials automatically from ~/.pdh/credentials.json — no manual configuration needed.
is:unread — unread emailsfrom:alice — emails from Alicenewer_than:7d — emails from the last 7 dayssubject:report — emails with "report" in subjectis:unread from:alice newer_than:7d