Install
openclaw skills install personaldatahubPull personal data (emails, issues) and propose outbound actions (drafts, replies) through the PersonalDataHub access control gateway. Data is filtered, reda...
openclaw skills install personaldatahubAccess 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.
PersonalDataHub provides an MCP server for native tool discovery. Add to your Claude Code config (.claude/settings.json):
{
"mcpServers": {
"personaldatahub": {
"command": "npx",
"args": ["pdh", "mcp"]
}
}
}
This registers source-specific tools dynamically — only sources with connected OAuth tokens get tools.
(Gmail — requires connected Gmail OAuth)
Pull emails from Gmail. Data is filtered and redacted according to the owner's access control policy.
Parameters:
purpose (required) — Why this data is needed (logged for audit)query (optional) — Gmail search query (e.g., "is:unread from:alice newer_than:7d")limit (optional) — Maximum number of resultsExample:
Pull my recent unread emails about the Q4 report.
(Gmail — requires connected Gmail OAuth)
Draft an email via Gmail. The draft is staged for the data owner to review — it does NOT send until approved.
Parameters:
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 threading(Gmail — requires connected Gmail OAuth)
Send an email via Gmail. The action is staged for the data owner to review — it does NOT execute until approved.
Parameters:
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 threading(Gmail — requires connected Gmail OAuth)
Reply to an email via Gmail. The reply is staged for the data owner to review — it does NOT send until approved.
Parameters:
to (required) — Recipient email addresssubject (required) — Email subjectbody (required) — Email bodyin_reply_to (required) — Message ID of the email being replied topurpose (required) — Why this action is being proposed (logged for audit)(GitHub — requires connected GitHub OAuth)
Search GitHub issues. Data is filtered according to the owner's access control policy.
Parameters:
purpose (required) — Why this data is needed (logged for audit)query (optional) — Search query for issueslimit (optional) — Maximum number of results(GitHub — requires connected GitHub OAuth)
Search GitHub pull requests. Data is filtered according to the owner's access control policy.
Parameters:
purpose (required) — Why this data is needed (logged for audit)query (optional) — Search query for pull requestslimit (optional) — Maximum number of resultsIf the MCP tools above are not available, you can call the PersonalDataHub API directly via HTTP.
Config: Read ~/.pdh/config.json to get hubUrl.
Pull data:
curl -X POST <hubUrl>/app/v1/pull \
-H "Content-Type: application/json" \
-d '{"source": "gmail", "purpose": "reason for pulling data"}'
Propose an action:
curl -X POST <hubUrl>/app/v1/propose \
-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/config.json # look at hubDir
# Start the server
cd <hubDir> && node dist/index.js
The install hook bootstraps PersonalDataHub automatically:
~/.pdh/config.jsonAfter installation, open http://localhost:3000 to connect Gmail/GitHub via OAuth.
Agents read config automatically from ~/.pdh/config.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