Prerequisites
- Node.js 24+
- An email address for wallet authentication
- Install our package built on top of Vercel AI SDK skills:
CLI commands
Theawal CLI provides all the tools you need to manage agentic wallets:
| Command | Purpose |
|---|---|
npx awal status | Check server health and auth status |
npx awal auth login <email> | Send OTP code to email, returns flowId |
npx awal auth verify <flowId> <otp> | Complete authentication with OTP code |
npx awal balance | Get USDC wallet balance |
npx awal address | Get wallet address |
npx awal show | Open the wallet companion window |
npx awal send <amount> <recipient> | Send USDC to an address or ENS name |
npx awal trade <amount> <from> <to> | Swap tokens on Base |
npx awal x402 bazaar search <query> | Search for paid API services |
npx awal x402 pay <url> | Make a paid API request |
Authenticating an agentic wallet
Authentication uses an initiate, then verify process:1. Initiate login
The following will install theawal package and create an agentic wallet mapped to the given email:
2. Verify OTP
To complete agentic wallet authentication, provide theflowId from the previous step and the 6-digit verification code:
3. Confirm authentication
Example usage
JSON output
All commands support--json for machine-readable output: