wallet

A command for managing a local cryptocurrency wallet used for x402 payments on the Base network, an Ethereum-compatible blockchain.

In plain words
What is it for?
Use it to set up or import a wallet, view its address and USDC balance, fund it, and inspect payment history.
Why use it?
It gives you a way to check wallet status, add funds, and review transactions when an AgentStore agent requires payment.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/techgangboss/agentstore/wallet
Clone the repo
git clone --depth 1 https://github.com/techgangboss/agentstore
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 575 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00009 $0.00575
Opus 5 $0.00005 $0.00287
Sonnet 5 $0.00002 $0.00115
Haiku 4.5 $0.00001 $0.00057

Measured 2d ago against content hash 0a57a403f361, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wallet scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/plugin/commands/wallet.md · 91 lines

What it actually says

AgentStore Wallet

Manage your local wallet for x402 payments on Base network.

Instructions

Based on the action parameter (default: status):

status

  1. Check if wallet exists at ~/.agentstore/wallet.json
  2. If exists, display:
    ## AgentStore Wallet
    
    **Address:** 0x...
    **Network:** Base (Chain ID: 8453)
    **USDC Balance:** $X.XX
    
    **Spend Limits:**
    - Per transaction: $50.00
    - Daily: $100.00 (remaining: $X.XX)
    - Weekly: $500.00 (remaining: $X.XX)
    
  3. If no wallet: "No wallet configured. Run /wallet setup to create one."

setup

  1. Ask user: "Create a new wallet or import existing?"
  2. For new wallet:
    • Generate new keypair using viem
    • Encrypt private key with password
    • Save to ~/.agentstore/wallet.json
    • Display address and backup seed phrase warning
  3. For import:
    • Prompt for private key or seed phrase
    • Encrypt and save
  4. Set default spend limits

fund

  1. Display wallet address for deposits
  2. Show QR code if possible
  3. Provide link to Coinbase for purchasing USDC on Base:
    To add funds:
    1. Send USDC (Base network) to: 0x...
    2. Or use Coinbase: https://www.coinbase.com/
    
    Minimum recommended: $10.00 USDC
    

history

  1. Read transaction history from local storage
  2. Display recent purchases:
    ## Transaction History
    
    | Date | Agent | Amount | Status |
    |------|-------|--------|--------|
    | Jan 3 | SQL Expert | $5.00 | Confirmed |
    

limits

  1. Display current spend limits
  2. Ask if user wants to modify:
    • Per-transaction limit (default $50)
    • Daily limit (default $100)
    • Weekly limit (default $500)
  3. Save updated limits

Files

~/.agentstore/
  wallet.json      # Encrypted wallet config
  history.json     # Transaction history
  entitlements/    # Stored entitlement tokens

Security Notes

  • Private key encrypted with AES-256-GCM
  • Never transmitted over network
  • Spend limits enforced client-side before signing
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 91 lines · 9 tokens per session scan A 0a57a403f361

Subscribe to this mod's changes

wallet is a command published in the GitHub repository techgangboss/agentstore (4 stars, last pushed 6mo ago), licensed MIT. It adds 9 tokens to every session and 575 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.