Privy
できること
このスキルは、クリプトを保持し動かすアプリのためのウォレットと認証のプラットフォームであるPrivyを扱います。ウォレットのインフラを一から作らずに、ユーザーのサインインとプログラム可能なウォレットがほしい開発者向けです。
使う場面
- ✓ユーザーが、アプリでサインインし、組み込みウォレットを得られるようにしたいとき。
- ✓ウォレットの取引に、支出の上限や承認のルールが必要なとき。
- ✓プログラムで制御できるトレジャリーやエージェントのウォレットを作っているとき。
スキルのリンク
https://github.com/internet-court/internet-court-skill/blob/main/vendored/privy/privy/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ユーザーがログインして組み込みウォレットを得られ、一日の支出上限がある仕組みを作りたいです。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、あなたのアプリにPrivyのログインを設定し、ユーザーのウォレットを作成し、どのトランザクションを許可するかを制御するポリシーを適用します。アプリIDとシークレットを使い、PrivyのSDKとREST APIを利用します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Privy Skill Reference
Product summary
Privy is a programmable wallet infrastructure platform for building financial applications. It provides embedded wallets, authentication, transaction execution, and policy controls across 50+ blockchains including Ethereum, Solana, Bitcoin, and Tempo. Agents use Privy to authenticate users, create and manage wallets, execute transactions, enforce spending policies, and build complete financial products without building wallet infrastructure from scratch.
Key files and commands:
- Dashboard: https://dashboard.privy.io (configure apps, login methods, policies)
- App ID and App Secret: Found in Dashboard > App Settings > Basics
- Client ID: Required for mobile/non-web platforms (Dashboard > App Settings > Clients)
- REST API:
https://api.privy.io/v1/(requires Basic Auth with app ID:secret) - SDKs: React (
@privy-io/react-auth), Node.js (@privy-io/node), Swift, Android, Flutter, Java, Go, Rust, Ruby - Primary docs: https://docs.privy.io
When to use
Reach for Privy when:
- Building consumer apps that need user authentication + embedded wallets
- Creating organization or treasury wallets with multi-sig controls
- Building AI agents that need to hold assets and transact autonomously
- Implementing spending policies, transaction limits, or approval workflows
- Executing transactions across multiple blockchains from a single interface
- Migrating users from another wallet provider
- Setting up funding flows (fiat onramps, crypto deposits, card spend)
- Implementing yield integrations or token swaps
- Requiring role-based access control or delegation patterns
Do not use Privy for: pure authentication without wallets (use Auth0, Firebase instead), or if you need complete control over key management without any abstraction.
Quick reference
SDK Installation
| Platform | Package | Command |
|---|---|---|
| React | @privy-io/react-auth |
npm install @privy-io/react-auth |
| Node.js | @privy-io/node |
npm install @privy-io/node |
| React Native | @privy-io/react-native-auth |
npm install @privy-io/react-native-auth |
| Swift | Privy Swift SDK | Via Swift Package Manager |
| Android | Privy Android SDK | Via Gradle |
Core Concepts
| Concept | Definition | Use case |
|---|---|---|
| User | Individual authenticated in your app | Consumer wallets, personal accounts |
| Wallet | Blockchain account (embedded or external) | Holding assets, signing transactions |
| Owner | Entity with full control (user, auth key, or quorum) | Determines who can modify wallet |
| Signer | Additional party with scoped permissions | Server automation, delegated access |
| Policy | Rules constraining wallet actions | Spending limits, recipient whitelists |
| Authorization Key | P256 cryptographic key for server control | Backend wallet management |
| Key Quorum | M-of-K multi-sig approval | Shared control, treasury operations |
Authentication Methods
Configure in Dashboard > Configuration > Authentication:
- Email / SMS / WhatsApp
- Social (Google, Discord, Twitter, Farcaster, etc.)
- Passkeys (WebAuthn)
- External wallets (MetaMask, Phantom)
- Custom JWT (bring your own auth provider)
- Guest accounts (instant sign-in)
Wallet Control Models
| Model | Owner | Signers | Use case |
|---|---|---|---|
| User-owned | User | None | Self-custodial consumer wallets |
| User + server | User | Server (scoped) | Automated trading, limit orders |
| App-owned | Auth key | None | Treasury, bots, agents |
| Custodial | Licensed custodian | None | Institutional FBO accounts |
REST API Headers (Required)
Authorization: Basic <base64(app_id:app_secret)>
privy-app-id: <app_id>
Content-Type: application/json
Common Wallet Actions
| Action | Endpoint | Purpose |
|---|---|---|
| Create wallet | POST /v1/wallets |
Provision new wallet |
| Get wallet | GET /v1/wallets/{id} |
Fetch wallet details |
| Send transaction | POST /v1/wallets/{id}/rpc |
Execute blockchain action |
| Get balance | GET /v1/wallets/{id}/balance |
Check asset holdings |
| Create policy | POST /v1/policies |
Define spending rules |
| Create user | POST /v1/users |
Onboard new user |
Decision guidance
When to use embedded vs external wallets
| Scenario | Embedded | External |
|---|---|---|
| New users, no existing wallet | ✓ | ✗ |
| Users have Met |
よくある質問
アプリIDとシークレットはどこにありますか?
Privyのダッシュボードの、App Settings、Basicsにあるとしています。
どのチェーンに対応していますか?
Ethereum、Solana、Bitcoinを含む、50を超えるブロックチェーンに対応しているとしています。
エージェントの支出を制限できますか?
はい。ポリシー、支出の上限、承認のワークフローを扱います。
詳細
作者による元の説明
Use when building wallet infrastructure, authentication systems, or financial applications. Reach for Privy when you need to create embedded wallets, manage user authentication, control wallet permissions with policies, execute transactions across blockchains, or build treasury/agent wallets with programmable controls.
人気
- GitHubのスター
- 7.0k
- ランキング
- #13673
- ライセンス
- —
- 更新日
- 2026/10/26
コメント
- …
このリポジトリの他のスキル
internet-court
7.0kエージェントが、他のAIエージェントや有料サービスと安全に支払い、雇用、取引できるよう支援し、適切な専門ガイドを案内します。
genlayer-erc7710-connector
7.0kエージェントが、AIによるレビューの結果を権限の仕組みにつなぎ、悪いレビューがエージェントの権限を制限または取り消せるよう支援します。
genlayer-intelligent-contracts
7.0kエージェントが、別のエージェントが委任された範囲を守ったかを判定するAIの審査役について、ルール、証拠、出力を定義できるよう支援します。
x402-erc7710
7.0kエージェントが、リクエストごとにウェブサービスの支払いを行い、許可された予算の範囲内で継続的な支出を設定できるよう支援します。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。