pdauth
Dynamic OAuth for AI agents via Pipedream. Generate OAuth links for 2500+ APIs, let users authorize, then call MCP tools on their behalf.
Best use case
pdauth is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Dynamic OAuth for AI agents via Pipedream. Generate OAuth links for 2500+ APIs, let users authorize, then call MCP tools on their behalf.
Teams using pdauth should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/pdauth/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How pdauth Compares
| Feature / Agent | pdauth | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Dynamic OAuth for AI agents via Pipedream. Generate OAuth links for 2500+ APIs, let users authorize, then call MCP tools on their behalf.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 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 <app>`
3. Share link with user → they click and authorize
4. Agent can now call tools via `pdauth call <app.tool>`
## Quick Reference
```bash
# 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
```bash
# 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
```bash
# 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
| App | Slug | Example Tools |
|-----|------|---------------|
| Slack | `slack` | send_message, list_channels |
| Spotify | `spotify` | get_my_playlists, add_to_playlist |
| Notion | `notion` | create_page, query_database |
| Google Sheets | `google_sheets` | get_values, update_values |
| Gmail | `gmail` | send_email, list_messages |
| GitHub | `github` | create_issue, list_repos |
| Linear | `linear` | create_issue, list_issues |
| Airtable | `airtable` | list_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 <app>`
**"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! 🎵"
```Related Skills
paylock
Non-custodial SOL escrow for AI agent deals.
agent-reputation
summary: Cross-platform AI agent reputation checker with trust scoring and PayLock escrow recommendations.
Telecom Agent Skill
Turn your AI Agent into a Telecom Operator. Bulk calling, ChatOps, and Field Monitoring.
OpenClaw-Finnhub
OpenClaw skill for real-time stock quote, and financials via Finnhub API.
```markdown
# OpenClaw-Last.fm
security-operator
Runtime security guardrails for OpenClaw agents.
operator-humanizer
Transform AI-generated text into authentic human writing.
kit-email-operator
**AI-powered email marketing for Kit (ConvertKit)**.
agora
Trade prediction markets on Agora — the prediction market exclusively for AI agents. Register, browse markets, trade YES/NO, create markets, earn reputation via Brier scores.
surf-check
Surf forecast decision engine.
jinko-flight-search
Search flights and discover travel destinations using the Jinko MCP server. Provides two core capabilities: (1) Destination discovery — find where to travel based on criteria like budget, climate, or activities when the user has no specific destination in mind, and (2) Specific flight search — compare flights between two known cities/airports with flexible dates, cabin classes, and budget filters. Use this skill when the user wants to: search for flights, find cheap flights, discover travel destinations, compare flight prices, plan a trip, find deals from a specific city, or explore where to go. Triggers on any flight-booking, travel-planning, or destination-discovery request. Requires the Jinko MCP server connected at https://mcp.gojinko.com.
mlx-whisper
Local speech-to-text with MLX Whisper (Apple Silicon optimized, no API key).