AgnicPay

Vercel AI Skills

Pre-built AI agent skills for wallet operations, trading, and x402 payments

Vercel AI Skills

The @agnic/wallet-skills package provides pre-built skills that teach AI assistants how to use AgnicPay. Compatible with the Vercel AI SDK skills system.


Installation

npx skills add @agnic/wallet-skills

Or clone locally:

git clone https://github.com/agnic-protocol/agnic-wallet-skills
npx skills add ./agnic-wallet-skills

Available Skills

SkillTrigger PhrasesDescription
authenticate-wallet"log in", "sign in", "authenticate"Email OTP login flow
check-balance"check balance", "how much do I have"USDC balance across networks
send-usdc"send", "transfer", "pay someone"Send USDC to a wallet address
trade-tokens"trade", "swap", "buy ETH"Swap tokens on Base
search-for-service"find an API", "search for"Discover x402-enabled APIs
pay-for-service"call this API", "use this service"Make x402 payment requests
fund-wallet"add funds", "deposit", "top up"Instructions for funding wallet
get-agent-identity"agent identity", "trust score"ERC-8004 identity and credentials

How Skills Work

Each skill is a markdown file that instructs the AI assistant on how to complete a task using the agnic CLI. When a user's request matches a skill, the AI follows the instructions to execute the right commands.

Example: Trading Tokens

When a user says "swap 10 USDC for ETH", the trade-tokens skill instructs the AI to:

  1. Check the wallet balance
  2. Optionally preview the trade with --dry-run
  3. Execute the swap
  4. Report the results
# The AI runs these commands automatically:
agnic balance --network base --json
agnic trade 10 usdc eth --json

Prerequisites

Skills require the agnic CLI to be available:

npm install -g agnic

And the agent must be authenticated:

agnic auth login [email protected]
agnic auth verify <flowId> <otp>

Unique: Agent Identity Skill

The get-agent-identity skill has no equivalent in other wallet tools. It lets AI agents check their on-chain ERC-8004 identity, trust score, and KYA credentials — enabling identity-verified transactions.


Next Steps

On this page