Skip to Content
19 November 2026: gateway operators, apply the nginx2root CVE mitigation.

nym-socks5-client Binary Commands

CommandWhat it does
initCreates the configuration, keys and data directory of a client under --id, sets the SOCKS5 provider to use (--provider), and registers the client with a gateway. Run it once, before run.
runStarts the client with its stored configuration and opens the local SOCKS5 proxy. --port and --host override the stored values for this run.
ecash show-ticket-booksShows the ticketbooks that the client has imported.
ecash import-ticket-bookImports a ticketbook that was issued elsewhere, for example with nym-cli ecash issue-ticket-book.
ecash import-coin-index-signaturesImports the coin index signatures that ticketbooks need.
ecash import-expiration-date-signaturesImports the expiration date signatures that ticketbooks need.
ecash import-master-verification-keyImports the master verification key that ticketbooks need.
list-gatewaysLists the gateways that the client is registered with.
add-gatewayRegisters the client with one more gateway (--gateway-id, or one chosen at random or by latency) and makes it the active gateway.
switch-gatewayMakes another registered gateway the active one. The client must be registered with it already.
refresh-gateway-keysRegisters the client again with a gateway (the active one by default) under new keys, so that the gateway sees a new client. The client must not be running.
reset-client-identityGives the client new keys. It removes every gateway registration and stored reply, and keeps the ticketbooks. The client must not be running, and needs add-gateway afterwards.
build-infoShows the build information of the binary.
completionsPrints shell completions for the shell that you name.
generate-fig-specPrints a Fig  completion spec.

Two options apply to every command: --config-env-file <path> loads an env file that configures the client, and --no-banner turns off the banner in a terminal.

Key and database encryption

Two flags encrypt the data that nym-socks5-client keeps on disk. Give each one as an environment variable, not as a flag value, because a flag value shows in the process list. Set the variable in the process environment: nym-socks5-client reads the file of --config-env-file only after it parses the arguments, so a value in that file has no effect on these flags.

FlagEnvironment variableWhat it doesCommands
--key-passphraseNYM_CLIENT_KEY_PASSPHRASEEncrypts the client’s private keys on disk. Keys that are still in plaintext are encrypted the first time the client loads them with the passphrase.init, run, add-gateway, refresh-gateway-keys, reset-client-identity
--database-keyNYM_CLIENT_DATABASE_KEYEncrypts the client’s databases with SQLCipher, with a raw 256-bit key given as 64 hex characters. Databases that are still in plaintext are encrypted the first time the client opens them with the key, and you must then give the same key on each run. The binary must be built with SQLCipher.every command that opens the databases: init, run, the ecash commands, list-gateways, add-gateway, switch-gateway, refresh-gateway-keys, reset-client-identity

Run nym-socks5-client <command> --help for all options.

Last updated on