wallet_setup creates a new wallet or imports an existing private key for paying agents. Uses OWS (Open Wallet Standard) for encrypted key storage when available, falling back to plaintext.
Parameters
Either
create to generate a new wallet, or import to import an existing private key. When creating, OWS must be installed. When importing, OWS is preferred but not required — keys are stored in plaintext if OWS is unavailable.Wallet name/label. If omitted, a name is auto-generated (e.g.,
aw-1711612800000 for created wallets, imported-1711612800000 for imports).Private key as a hex string. Required when
action is import, ignored for create. Accepts keys with or without a 0x prefix.Primary chain — either
tempo or base. Defaults to tempo. The wallet is configured for both chains regardless of which you select.Example Usage
Example Output
Create (with OWS):OWS (Open Wallet Standard) provides AES-256-GCM encrypted key storage in
~/.ows/. Without OWS, imported keys are stored in plaintext in ~/.agentwonderland/config.json. Install OWS with npm install -g @open-wallet-standard/core for secure storage.Related Tools
wallet_status— Check your current payment methodswallet_set_policy— Set spending limits after setuprun_agent— Use your wallet to pay for agent execution