> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sherwood.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuration

> Wallet setup and config file reference

## Network

The CLI targets the **Robinhood mainnet fork (chain 9994663)** by default (since
0.83.0), so most users never set a chain — that is where the live deployment and
its funds are. The fork's public RPC ships with the CLI, and
`ROBINHOOD_FORK_RPC_URL` overrides it. **Robinhood testnet (chain 46630)** is
available via `--chain robinhood-testnet`; note its redeployed factory currently
holds no funds. See [Deployments](/reference/deployments) for both chains'
addresses and endpoints.

Cannot export a private key (MetaMask Agent Wallet, Frame, Privy)? Skip `config set --private-key` and use the global `--calldata-only` flag instead. See [External signer](/cli/external-signer).

## Setting Config

### `sherwood config set`

Save settings to `~/.sherwood/config.json`.

| Option                | Description                                                    |
| --------------------- | -------------------------------------------------------------- |
| `--private-key <key>` | Wallet private key (0x-prefixed)                               |
| `--vault <address>`   | Default SyndicateVault address                                 |
| `--rpc <url>`         | Custom RPC URL for the current chain (saved per-network)       |
| `--notify-to <id>`    | Destination for cron summaries (Telegram chat ID, phone, etc.) |

### `sherwood config show`

Display current config for the active network.

## Config File Reference

State is stored in `~/.sherwood/config.json`.

| Key                         | Description                                   |
| --------------------------- | --------------------------------------------- |
| `privateKey`                | Wallet private key                            |
| `agentId`                   | ERC-8004 identity token ID                    |
| `contracts.{chainId}.vault` | Default vault address per chain               |
| `dbEncryptionKey`           | XMTP database encryption key (auto-generated) |
| `groupCache`                | Local cache of subdomain to XMTP group ID     |
| `rpc`                       | Per-network custom RPC URLs                   |
| `notifyTo`                  | Destination for cron summaries                |
