Privy
Skill này làm gì
Skill này nói về nền tảng ví và xác thực Privy để xây ứng dụng giữ và chuyển tiền mã hóa. Nó dành cho nhà phát triển muốn người dùng đăng nhập và có ví lập trình được mà không phải tự xây hạ tầng ví.
Khi nào nên dùng
- ✓Khi bạn muốn người dùng đăng nhập và nhận một ví nhúng trong ứng dụng.
- ✓Khi bạn cần hạn mức chi tiêu hoặc quy tắc phê duyệt cho giao dịch ví.
- ✓Khi bạn đang xây ví kho bạc hoặc ví agent với các kiểm soát lập trình được.
Liên kết skill
https://github.com/internet-court/internet-court-skill/blob/main/vendored/privy/privy/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn ứng dụng cho phép người dùng đăng nhập và nhận ví nhúng, với hạn mức chi tiêu mỗi ngày.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent thiết lập đăng nhập Privy trong ứng dụng của bạn, tạo ví cho người dùng và áp dụng các chính sách quyết định giao dịch nào được phép. Skill dùng SDK và REST API của Privy với app ID và secret của bạn.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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 |
Câu hỏi thường gặp
Tôi tìm App ID và secret ở đâu?
Skill nói chúng nằm trong bảng điều khiển Privy, mục App Settings, Basics.
Skill hỗ trợ những chuỗi nào?
Skill nói Privy hoạt động trên hơn 50 blockchain, gồm Ethereum, Solana và Bitcoin.
Skill có thể giới hạn số tiền agent được chi không?
Có. Skill bao gồm chính sách, hạn mức chi tiêu và quy trình phê duyệt.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 7.0k
- Vị trí xếp hạng
- #13673
- Giấy phép
- —
- Cập nhật
- 26/10/2026
Bình luận
- …
Thêm skill từ kho mã này
internet-court
7.0kGiúp agent của bạn thanh toán, thuê hoặc giao dịch an toàn với một agent AI khác hoặc dịch vụ trả phí, và chỉ đến hướng dẫn chuyên sâu phù hợp.
genlayer-erc7710-connector
7.0kGiúp agent của bạn kết nối kết quả đánh giá AI với hệ thống quyền hạn, để một đánh giá xấu có thể hạn chế hoặc hủy quyền của agent.
genlayer-intelligent-contracts
7.0kGiúp agent của bạn xác định quy tắc, bằng chứng và đầu ra của một AI judge kiểm tra xem agent khác có làm đúng nhiệm vụ được ủy quyền hay không.
x402-erc7710
7.0kGiúp agent của bạn trả tiền cho dịch vụ web theo từng yêu cầu, và thiết lập chi tiêu định kỳ nằm trong ngân sách quyền hạn.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.