Skip to main content
skill CX Codex

agentic-wallet — Claude Code skill: wallet actions and setup

Use the awal CLI to check a crypto wallet, send or swap tokens, and handle x402 services. It fits tasks that ask an agent to perform wallet operations or call a paid API.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add coinbase/agentic-wallet-skills --skill agentic-wallet -a claude-code
Open on GitHub

What agentic-wallet does

agentic-wallet routes wallet requests to instructions for authentication, balances, transfers, token swaps, funding, and x402. The x402 flow can search paid services, pay for an API call, set up a paid API, or query onchain data on Base.

For wallet actions that need authentication, the skill checks status with npx [email protected] status first. Searching and viewing x402 service details do not require that check. The agent then reads the matching file under references/. Sign-in uses an OTP with auth login and auth verify. User-provided values must be validated before entering shell commands; spaces and shell metacharacters are rejected. Wallet actions cannot proceed without authentication.

awal commands support machine-readable output with --json. The instructions also cover quoting dollar amounts and signing in again after an authentication error. Transfers, swaps, and funding each have their own reference, so the agent follows the relevant procedure before taking action.

What it helps with

  • check wallet balances on Base, Polygon, and Solana
  • send USDC or ETH to an address or ENS name
  • swap tokens on Base or Polygon
  • find a paid service and pay for an API call through x402
  • query Base events and transaction data

Example prompts for the agent

  • Check my Base balance and return the result as JSON.
  • Send USDC to this ENS name.
  • Find an x402 service for this task and pay for its API call.

How to install agentic-wallet

1Skills CLI (Vercel)

npx skills add coinbase/agentic-wallet-skills --skill agentic-wallet -a claude-code

2Manually: put the files in place

~/.claude/skills/agentic-wallet/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/agentic-wallet/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about agentic-wallet

How do I install agentic-wallet in Claude Code?

Run npx skills add coinbase/agentic-wallet-skills --skill agentic-wallet -a claude-code. The skill file will be at ~/.claude/skills/agentic-wallet/SKILL.md.

What does agentic-wallet do?

It operates a crypto wallet through awal, including balance checks, token transfers and swaps, funding, and x402 service calls.

Does agentic-wallet require authentication?

Wallet actions that need authentication begin with a status check. If the wallet is signed out, the agent reads references/auth.md and completes sign-in with an OTP.

Source text

SKILL.md · MIT
---
name: agentic-wallet
description: "Crypto wallet operations via the awal CLI — sign in, check balances, send USDC/ETH/POL/SOL, trade tokens, fund the wallet, and use the x402 payment protocol to discover paid services, pay for API calls, monetize an API, or query onchain data. Use whenever the user mentions signing in, login, authentication, wallet status, balance, address, sending money, paying someone, transferring tokens, ENS names, swapping/trading/converting tokens, funding/topping up/onramp, USDC, ETH, POL, SOL, the x402 bazaar, paid APIs, monetizing an endpoint, or querying onchain data on Base."
user-invocable: true
disable-model-invocation: false
allowed-tools: ["Bash(npx [email protected] *)", "Bash(npm *)", "Bash(node *)", "Bash(curl *)", "Bash(mkdir *)"]
---

# Agentic Wallet

Operate a crypto wallet through the `awal` CLI. This skill is a router: read the relevant reference file in `references/` for the task at hand.

## Preflight: Confirm wallet state

Before any wallet operation that requires authentication (everything except x402 search/details), check status:

```bash
npx [email protected] status
```

If the wallet is not authenticated, read `references/auth.md` and complete sign-in first.

## Routing

Pick the reference that matches the task and `Read` it before acting:

| Task | Reference |
| --- | --- |
| Sign in, log in, connect wallet, OTP verification, "not signed in" errors | `references/auth.md` |
| Check balances, "how much USDC/ETH/POL/SOL do I have", balance per chain, JSON balance output | `references/balance.md` |
| Send USDC / ETH / POL / SOL to an address or ENS name (Base, Polygon, Solana) | `references/send-usdc.md` |
| Swap / trade / convert tokens on Base or Polygon | `references/trade.md` |
| Add funds, top up, onramp, buy USDC | `references/fund.md` |
| Find / browse / search paid services on the x402 bazaar | `references/x402-search.md` |
| Call a paid x402 API endpoint with automatic USDC payment | `references/x402-pay.md` |
| Build or deploy a paid API server that other agents can pay to use | `references/x402-monetize.md` |
| Query onchain data on Base (events, transactions, blocks) via the CDP SQL API | `references/query-onchain.md` |

If no clear match and the user wants an external capability, search the x402 bazaar (`references/x402-search.md`) — a paid service may exist.

## Shared rules

- **Input validation**: every reference lists the regexes / allowlists that user-provided values must match before being placed in a shell command. Validate strictly; reject inputs containing spaces, semicolons, pipes, backticks, or other shell metacharacters. Do not pass unvalidated user input into commands.
- **Single-quote `$` amounts**: any amount written as `'$1.00'` must be single-quoted to prevent bash variable expansion.
- **JSON output**: every `awal` command supports `--json` for machine-readable output.
- **Auth errors mean re-auth**: if any command fails with "Not authenticated" or similar, read `references/auth.md` and run the sign-in flow.
- **Insufficient balance**: read `references/fund.md` to top up.

## Quick command index

| Command | Purpose |
| --- | --- |
| `npx [email protected] status` | Server health + auth status |
| `npx [email protected] address` | Get wallet address |
| `npx [email protected] balance` | Get balances across Base, Polygon, Solana (use `--chain` for one chain) |
| `npx [email protected] show` | Open the wallet companion window (used for funding) |
| `npx [email protected] auth login <email>` | Send OTP code |
| `npx [email protected] auth verify <otp>` | Complete sign-in |
| `npx [email protected] auth logout` | Sign out and clear the session |
| `npx [email protected] send <amount> <recipient>` | Send tokens |
| `npx [email protected] trade <amount> <from> <to>` | Swap tokens |
| `npx [email protected] x402 bazaar search <query>` | Search paid services |
| `npx [email protected] x402 bazaar list` | List bazaar resources |
| `npx [email protected] x402 details <url>` | Inspect payment requirements |
| `npx [email protected] x402 pay <url>` | Pay and call an x402 endpoint |

© coinbase · MIT · coinbase/agentic-wallet-skills

Similar skills

All skills for Backend and APIs →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor