Skip to main content
cowboy wallet manages your keys. They live in the keystore, ~/.cowboy/keys/<name>, outside every project, and the CLI never overwrites one you already have. Key auto-discovery explains which key a command uses. cowboy wallet export prints the raw private key, so treat its output as a secret: anyone with it controls the account.

cowboy wallet create

Generate a new wallet with a random secp256k1 key, kept in the keystore

cowboy wallet address

Print the public address from a key file

cowboy wallet balance

Query account balance from the chain

cowboy wallet upgrade

Upgrade a hex key file to PEM envelope format

cowboy wallet create-mnemonic

Create a new wallet from a BIP-39 mnemonic, kept in the keystore

cowboy wallet import-mnemonic

Import a wallet from a BIP-39 mnemonic phrase into the keystore

cowboy wallet accounts

Export mnemonic-derived addresses for verification

cowboy wallet export

Export the raw private key as 64-character hex Use to move a wallet between Cowboy stacks (CLI, extension, dashboard, TUI) or to import into any EVM wallet (MetaMask, Trust Wallet, Ledger, etc.) — Cowboy uses the same secp256k1 key scheme as Ethereum, so the hex private key is directly compatible. Treat the output as a high-value secret: anyone with it controls the associated account.

cowboy wallet import-hex

Import a wallet from a raw 64-character hex private key into the keystore Accepts hex with or without the 0x prefix (case-insensitive). Refuses to replace an existing key unless --force is set.