---
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 awal@2.12.1 *)", "Bash(npm *)", "Bash(node *)", "Bash(curl *)", "Bash(mkdir *)" ]
title: agentic-wallet
canonical_url: https://skilld.dev/gh/coinbase/agentic-wallet-skills
last_updated: 2026-09-29T12:21:07.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/auth.md](https://skilld.dev/api/skills-raw/coinbase/agentic-wallet-skills/agentic-wallet/references/auth.md), [references/balance.md](https://skilld.dev/api/skills-raw/coinbase/agentic-wallet-skills/agentic-wallet/references/balance.md), [references/fund.md](https://skilld.dev/api/skills-raw/coinbase/agentic-wallet-skills/agentic-wallet/references/fund.md), [references/query-onchain.md](https://skilld.dev/api/skills-raw/coinbase/agentic-wallet-skills/agentic-wallet/references/query-onchain.md), [references/send-usdc.md](https://skilld.dev/api/skills-raw/coinbase/agentic-wallet-skills/agentic-wallet/references/send-usdc.md), [references/trade.md](https://skilld.dev/api/skills-raw/coinbase/agentic-wallet-skills/agentic-wallet/references/trade.md), [references/x402-monetize.md](https://skilld.dev/api/skills-raw/coinbase/agentic-wallet-skills/agentic-wallet/references/x402-monetize.md), [references/x402-pay.md](https://skilld.dev/api/skills-raw/coinbase/agentic-wallet-skills/agentic-wallet/references/x402-pay.md), [references/x402-search.md](https://skilld.dev/api/skills-raw/coinbase/agentic-wallet-skills/agentic-wallet/references/x402-search.md).
>
> If the user asked to install this Skill, run `npx skilld install coinbase/agentic-wallet-skills/agentic-wallet`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/agentic-wallet`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/coinbase/agentic-wallet-skills/agentic-wallet) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/agentic-wallet`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/agentic-wallet --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/agentic-wallet --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

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