Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Command-line reference

btc-vanity [OPTIONS] [PATTERN]

Provide either PATTERN or --input-file FILE. Bitcoin, prefix matching, and Hybrid are the CLI defaults.

Chain selection

FlagMeaning
--btcBitcoin P2PKH; default
--ethEthereum; requires ethereum
--solSolana; requires solana

Chain flags conflict. A binary without the requested optional chain feature reports the missing feature when generation begins.

Input and output

FlagMeaning
-i, --input-file FILERead one pattern and optional flags per line
-o, --output-file FILEAppend wallet details to a file
-f, --force-flagsIgnore row flags and apply CLI flags to every row

See Batch input and output for syntax, precedence, and secret-file handling.

Match mode

FlagMeaning
-p, --prefixMatch the address start; default
-s, --suffixMatch the address end
-a, --anywhereMatch at any position
-r, --regexUse a CPU regular expression

These flags conflict. --regex is a switch; the positional PATTERN contains the expression:

btc-vanity --backend cpu --regex '^1A.*Z$'

Performance

FlagMeaning
-t, --threads NCPU worker count; defaults to available parallelism
-b, --backend NAMEauto, cpu, gpu, hybrid, or alias both
--gpu-batch-size NRequested GPU candidates per batch
--gpu-usage-limit PERCENTBest-effort GPU dispatch duty cycle, 1..=100

Thread count must be at least 1. Hybrid's default limit is 70%; explicit GPU's is 100%. GPU flags have no effect on a CPU-only search.

Matching behavior

FlagMeaning
-c, --case-sensitiveDistinguish ASCII case for Bitcoin or Solana exact matching
-d, --disable-fastRemove the short-pattern guard; absolute limits remain

--case-sensitive conflicts with --eth. Exact Base58 patterns are limited to 5 characters in fast mode and 25 when fast mode is disabled. Ethereum limits are 16 and 40 hexadecimal characters.

Exit behavior

Argument errors, input-file errors, generation errors, and output-write errors produce a nonzero exit status. In batch mode, processing continues after an individual item fails and the final status is nonzero if any item failed.

Use the installed binary's help for the exact options in that version:

btc-vanity --help