Configuration Reference

Full reference for ~/.moly/config.json schema and environment.

Config file

All settings live in ~/.moly/config.json. The file is created on first run with permissions chmod 600 (owner read/write only).

~/.moly/config.json schema
{
  "network": "hoodi" | "mainnet",
  "mode": "simulation" | "live",
  "rpc": "https://custom.rpc" | null,
  "privateKey": "0x..." | null,
  "ai": {
    "provider": "anthropic" | "google" | "openrouter" | null,
    "apiKey": "sk-...",
    "model": "claude-sonnet-4-6"
  } | null,
  "setupComplete": true
}

Fields

FieldTypeDescription
network"hoodi" | "mainnet"Which chain to connect to
mode"simulation" | "live"Simulation = dry_run default. Live = real transactions.
rpcstring | nullCustom RPC URL. null = use network default.
privateKeystring | null0x-prefixed private key. Required for live write transactions.
ai.providerstring | nullanthropic, google, or openrouter
ai.apiKeystringAPI key for chosen provider
ai.modelstringModel ID (e.g. claude-sonnet-4-6)

Chain addresses

ContractHoodi TestnetEthereum Mainnet
Chain ID5600481
stETH0x3508A952...176a0xae7ab965...84
wstETH0x7E99eE3C...De40x7f39C581...a0
Voting0x49B3512c...01B0x2e59A20f...8e
⚠
Holesky testnet is deprecated and not supported. Use Hoodi for all testnet operations.

Security model

The private key and AI API keys are stored only in ~/.moly/config.json on your local machine. They are:

  • Never printed to stdout or stderr
  • Never sent to any remote server by Moly
  • Never changeable via the MCP update_settings tool
  • Only accessible to your OS user (chmod 600)

To rotate your private key or API key, run moly setup and re-enter them.