Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

setup

Create or import a wallet for trading. Required before using buy, sell, send, or balance.

zora setup [options]

Options

FlagDescription
--createCreate a new wallet without prompting
--forceOverwrite existing wallet without prompting
--yesSkip interactive prompt
--jsonMachine-readable JSON output

Examples

Interactive setup

npx @zoralabs/cli setup
 Zora Wallet Setup
 
 ? What would you like to do?
   ❯ Create a new wallet
     Import an existing private key

Create a new wallet (non-interactive)

npx @zoralabs/cli setup --create
 Wallet created
 
 Address  0xb4a06BdD9e0E60FFE22E4E7590842bfD2069034E
 Saved    ~/.config/zora/wallet.json

JSON output

npx @zoralabs/cli setup --create --json
{
  "address": "0xb4a06BdD9e0E60FFE22E4E7590842bfD2069034E",
  "source": "~/.config/zora/wallet.json"
}

Overwrite existing wallet

npx @zoralabs/cli setup --create --force

Storage

The private key is saved to ~/.config/zora/wallet.json with 0600 permissions (owner-only read/write).

Alternative: Environment Variable

Instead of using setup, set the ZORA_PRIVATE_KEY environment variable:

export ZORA_PRIVATE_KEY=0x...

This takes precedence over the wallet file and is useful for CI/CD, containers, and agent runtimes.