# owner_immune_neuron_limit (/docs/hyperparameters/owner-immune-neuron-limit)

`owner_immune_neuron_limit` is the number of neurons registered under the subnet owner's coldkey that can never be pruned, regardless of emission or age. Owners use it to keep their own validator or infrastructure hotkeys safe on a full subnet; everyone else cares because each owner-immune UID is one slot removed from the competition.

## How it works [#how-it-works]

`get_immune_owner_tuples` (`pallets/subtensor/src/subnets/registration.rs`) collects all of the owner coldkey's hotkeys that hold a UID, sorts them by registration block (earliest first, so older keys keep priority), and truncates the list to `owner_immune_neuron_limit`. The subnet owner hotkey itself is inserted at the front of the list if it holds a UID. Both `get_neuron_to_prune` and `trim_to_max_allowed_uids` skip these UIDs entirely — unlike [`immunity_period`](/docs/hyperparameters/immunity-period) immunity, this protection never expires and has no emission-based fallback.

The limit must stay between 1 and 10 (`set_owner_immune_neuron_limit` in `pallets/subtensor/src/utils/misc.rs` rejects anything outside `MinImmuneOwnerUidsLimit`..`MaxImmuneOwnerUidsLimit` with `InvalidValue`). The default is 1: just the owner's primary hotkey.

<HyperparamUidLifecycle focus="owner_immune_neuron_limit" />

## Reading and setting [#reading-and-setting]

```
btcli sudo get --netuid N --name owner_immune_neuron_limit
```

The value is a plain integer between 1 and 10:

```
btcli sudo set --netuid N --name owner_immune_neuron_limit --value 3
```

## Related [#related]

[`immunity_period`](/docs/hyperparameters/immunity-period), [`max_allowed_uids`](/docs/hyperparameters/max-allowed-uids), [`serving_rate_limit`](/docs/hyperparameters/serving-rate-limit)
