| name | nunchuk-setup |
| description | Install Nunchuk CLI, authenticate, switch between mainnet and testnet, change Electrum server, set the default fee level, and inspect saved config. Use when a command needs login, network, or Electrum setup, or when the user asks to check current auth or config. |
Nunchuk Setup
Install
npm install -g nunchuk-cli
Make sure nunchuk is on PATH.
Authenticate
Get an API key from https://developer.nunchuk.io/ first.
Interactive login:
nunchuk auth login
Non-interactive login:
nunchuk auth login --api-key <api-secret-key>
auth login supports both the interactive prompt and --api-key <api-secret-key>.
If the agent is executing the command itself, prefer:
nunchuk auth login --api-key <api-secret-key>
Use plain nunchuk auth login when the user is running the command manually and will enter the key in the prompt.
Configure Network
Set network:
nunchuk network set testnet
Network values are mainnet or testnet.
Configure Electrum
Show the active Electrum server:
nunchuk config electrum get
Set a custom Electrum server:
nunchuk config electrum set ssl://electrum.example.com:50002
Reset to the network default:
nunchuk config electrum reset
Configure Default Fee Level
Set the account's default fee level for tx create (economy, standard, or priority):
nunchuk config fee-rate get
nunchuk config fee-rate set priority
nunchuk config fee-rate reset
See nunchuk-wallet-transactions for per-transaction fee options.
Inspect
Check auth status:
nunchuk auth status
Inspect saved config/network:
nunchuk config show