← 返回
安全合规 Key 中文

Pdauth

Dynamic OAuth for AI agents via Pipedream. Generate OAuth links for 2500+ APIs, let users authorize, then call MCP tools on their behalf.
通过Pipedream为AI智能体提供动态OAuth。为2500多种API生成OAuth链接,让用户授权后代其调用MCP工具。
g9pedro
安全合规 clawhub v1.0.0 1 版本 99859.9 Key: 需要
★ 1
Stars
📥 2,119
下载
💾 32
安装
1
版本
#latest

概述

pdauth — Dynamic OAuth for AI Agents

Use pdauth to give yourself (the agent) access to 2500+ APIs via OAuth. The flow:

  1. Agent needs access to an app (Spotify, Slack, Notion, etc.)
  2. Generate an OAuth link with pdauth connect
  3. Share link with user → they click and authorize
  4. Agent can now call tools via pdauth call

Quick Reference

# Configure (one-time setup)
pdauth config

# Search for apps
pdauth apps --search spotify

# Generate OAuth link
pdauth connect spotify --user USER_ID

# Check what's connected
pdauth status --user USER_ID

# List available tools
pdauth tools spotify --user USER_ID

# Call a tool
pdauth call spotify.get_my_playlists --user USER_ID
pdauth call slack.send_message channel=general text="Hello!"

The OAuth Flow (How to Request Access)

When you need access to an app the user hasn't authorized:

1. Run: pdauth connect <app> --user <user_id>
2. Get the OAuth link from output
3. Send link to user: "To do this, I need access to <App>. Click here to authorize: <link>"
4. User clicks, authorizes via Pipedream
5. Confirm with: pdauth status --user <user_id>
6. Now you can call tools!

User ID Strategy

Use a consistent identifier per user:

  • Telegram: telegram:5439689035
  • Email: pedro@example.com
  • Custom: pedro-mainframe

The same user ID across sessions maintains their connected accounts.

Calling Tools

# Format: pdauth call <app>.<tool_name> [key=value ...]

# Simple args
pdauth call slack.send_message channel=general text="Hello"

# JSON args for complex data
pdauth call notion.create_page --args '{"title": "My Page", "content": "..."}'

# Get JSON output for parsing
pdauth call spotify.get_my_playlists --json

Checking Status

# See what user has connected
pdauth status --user pedro

# See all users
pdauth status --all

# JSON for scripting
pdauth status --user pedro --json

Popular Apps

Browse all at https://mcp.pipedream.com

AppSlugExample Tools
--------------------------
Slackslacksend_message, list_channels
Spotifyspotifyget_my_playlists, add_to_playlist
Notionnotioncreate_page, query_database
Google Sheetsgoogle_sheetsget_values, update_values
Gmailgmailsend_email, list_messages
GitHubgithubcreate_issue, list_repos
Linearlinearcreate_issue, list_issues
Airtableairtablelist_records, create_record

Error Handling

"App not connected" → Generate link with pdauth connect and ask user to authorize

"Tool not found" → List available tools with pdauth tools

"Invalid credentials" → Run pdauth config to set up Pipedream credentials

Tips

  1. Always check status first before attempting tool calls
  2. Use consistent user IDs so connections persist across sessions
  3. JSON output (--json) is best for parsing results programmatically
  4. Link expiry — OAuth links expire after 4 hours, generate fresh ones as needed

Example Workflow

User: "Add 'Bohemian Rhapsody' to my Spotify playlist"

Agent:
1. pdauth status --user telegram:5439689035 --json
   → No Spotify connection

2. pdauth connect spotify --user telegram:5439689035
   → Gets OAuth link

3. Send to user: "I need Spotify access. Click here: <link>"

4. User authorizes

5. pdauth status --user telegram:5439689035
   → Spotify ✓ connected

6. pdauth call spotify.search_tracks query="Bohemian Rhapsody" --json
   → Get track ID

7. pdauth call spotify.add_to_playlist playlist_id=... track_id=...
   → Done!

8. Reply: "Added Bohemian Rhapsody to your playlist! 🎵"

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 17:03 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ClawVault

g9pedro
具备记忆图谱、上下文配置、检查点/恢复、结构化存储、语义搜索、观察记忆、任务追踪、画布等功能的代理记忆系统。
★ 10 📥 10,063
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,438
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,713