Skip to main content

Environment Variables

mindwallet can be configured entirely through environment variables. Env vars override config file values; no config file is required.

Variable Reference

VariableDescriptionExample
MINDWALLET_PRIVATE_KEYRaw EVM private key (hex, 0x-prefixed)0xac09...
MINDWALLET_CHAIN_IDSComma-separated CAIP-2 chain IDseip155:8453,eip155:4217
MINDWALLET_WALLET_IDOWS wallet name/IDdefault
MINDWALLET_VAULT_PATHOWS vault directory~/.minds/wallet/vault
MINDWALLET_TEMPO_GASFixed gas limit for Tempo charges200000
MINDWALLET_RPC_BASEBase chain RPC URLhttps://mainnet.base.org
MINDWALLET_RPC_TEMPOTempo chain RPC URLhttps://rpc.mainnet.tempo.xyz

Legacy Variables

VariableDescription
CONFIG_PATHOverride config file path (default: ~/.config/mindwallet/config.json)
OWS_PASSPHRASEOWS vault passphrase (read by OWS internally)

Resolution Order

Configuration is resolved by merging three sources:

env vars  >  config file  >  hardcoded defaults
  1. Hardcoded defaultswalletId: "default", vaultPath: ~/.minds/wallet/vault
  2. Config file~/.config/mindwallet/config.json (returns {} if missing)
  3. Env varsMINDWALLET_* variables override everything

Examples

CI pipeline with private key

export MINDWALLET_PRIVATE_KEY=$SECRET_KEY
export MINDWALLET_CHAIN_IDS=eip155:8453
mindwallet fetch https://api.example.com/data

Custom RPC URLs

export MINDWALLET_RPC_BASE=https://base-mainnet.g.alchemy.com/v2/...
export MINDWALLET_RPC_TEMPO=https://rpc.testnet.tempo.xyz
mindwallet fetch https://api.example.com/data

Override config file wallet

# Config file says walletId: "production"
# Env var overrides to "staging"
export MINDWALLET_WALLET_ID=staging
mindwallet fetch https://api.example.com/data