spongewallet
v0.1.6
Published
CLI launcher for SpongeWallet onboarding and MCP setup
Readme
spongewallet
CLI for creating, claiming, and using Sponge agent wallets from the terminal.
spongewallet is the terminal entrypoint for Sponge Wallet. It wraps the SDK CLI and exposes the common flows for onboarding, wallet operations, swaps, bridges, and paid API requests.
Install
Run it directly:
npx spongewallet --helpOr install it:
npm install -g spongewalletQuickstart
Create an agent wallet:
npx spongewallet initRestrict the later claim to one email:
npx spongewallet init --email [email protected]Claim a pending agent or log in with device flow:
npx spongewallet loginInspect the current session:
npx spongewallet whoamiPrint MCP config for Claude Code or Cursor:
npx spongewallet mcp printCore flow
initcreates an agent immediately, prints addresses and MCP config, and stores pending claim metadata locally.loginclaims that pending agent if claim metadata exists. Otherwise it falls back to normal device-flow authentication.- Use top-level commands like
balance,send,history,tokens, andonrampfor day-to-day operations.
Common commands
# Session
npx spongewallet init
npx spongewallet login
npx spongewallet whoami
npx spongewallet logout
npx spongewallet mcp print
# Wallets and transfers
npx spongewallet balance
npx spongewallet send base 0xabc... USDC 10
npx spongewallet history 20 --chain base
# Transactions, swaps, and bridges
npx spongewallet tx status base 0x123...
npx spongewallet swap quote SOL USDC 1
npx spongewallet swap tempo pathUSD USDC.e 1
npx spongewallet bridge base solana USDC 25
# Paid requests
npx spongewallet pay x402 --url https://api.example.com/premium
npx spongewallet pay mpp --url https://tempo.example.com/premium --chain tempoCommand groups
init,login,logout,whoami,mcp: session setup and authenticationbalance,send,history,tokens,search-tokens,onramp,tx,swap,bridge,pay: balances, transfers, swaps, bridging, and paymentskeys,card,plan,trade,auth: stored secrets and approval flowsmarket,advanced: venue-specific and low-level commands
Authentication
By default, the CLI uses Sponge device-flow authentication. After login, credentials are stored at:
~/.spongewallet/credentials.jsonFor non-interactive usage, set an API key:
export SPONGE_API_KEY=<agent-api-key>What It Wraps
This package is a thin launcher around @paysponge/sdk. If you want the SDK and the CLI in one dependency, install:
npm install @paysponge/sdkDocs
- CLI docs: https://docs.paysponge.com/cli
- Authentication: https://docs.paysponge.com/authentication
- Overview: https://docs.paysponge.com
Notes
This is early access software. Command surface and flows may still change.
