authenticate-wallet
4
总安装量
4
周安装量
#47936
全站排名
安装命令
npx skills add https://github.com/agnicpay/agnic-wallet-skills --skill authenticate-wallet
Agent 安装分布
opencode
4
gemini-cli
4
antigravity
4
github-copilot
4
codex
4
kimi-cli
4
Skill 文档
Authenticate Wallet
Authenticate the user with their AgnicPay wallet using browser-based OAuth login.
Steps
-
Run the login command:
npx agnic@latest auth loginThis opens the user’s browser to AgnicPay where they sign in and set spending limits.
-
Wait for the browser flow to complete. The CLI will show “Authenticated!” when done.
-
Verify authentication:
npx agnic@latest status --json
Expected Output
{
"authenticated": true,
"userId": "did:privy:...",
"email": "user@example.com",
"walletAddress": "0x...",
"tokenExpiry": "2026-05-22T..."
}
Error Handling
- If the user cancels the browser flow, the CLI will show “Authentication failed”.
- If the browser doesn’t open, the CLI prints a URL the user can copy manually.
- If already authenticated,
agnic statuswill confirm without re-login.
Logout
To remove stored credentials:
npx agnic@latest auth logout