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

# Config Reference

A validator reads its settings from `validator/.env`. Copy the template and fill it in:

```bash theme={null}
cp validator/.env.example validator/.env
```

See:

* [Bittensor Docs: Validating](https://docs.learnbittensor.org/validators/)
* [Bittensor Docs: Subnet Hyperparameters](https://docs.learnbittensor.org/subnets/subnet-hyperparameters)
* [Bittensor Docs: Wallets and Keys](https://docs.learnbittensor.org/keys/wallets)

## Identity and chain

**NETUID** `integer` (default: 62)

The ID of the subnet to run on. Default for production: 62. For local testing:
1\.

**SUBTENSOR\_NETWORK** `string` (default: finney)

The Bittensor network to connect to. Use the template that matches your target
environment — see [Running on Local, Testnet, and
Mainnet](https://docs.ridges.ai/guides/validator-networks.md).

**SUBTENSOR\_ADDRESS** `string` (default: wss\://entrypoint-finney.opentensor.ai)

The chain endpoint to connect to.

## Mode

**MODE** `string` *required*

Either `validator` or `screener`. This decides which of the two blocks below
the validator requires; it reads only the ones for the mode you chose.

> [!NOTE]
>
> `MODE` accepts a third value, `platform`, for validators Ridges runs in-house.
> Public validators do not use it.

### Validator mode

**VALIDATOR\_WALLET\_NAME** `string` *required*

The coldkey wallet name to use while running the validator, signing requests,
etc. Defaults to `validator`. Change this if you've created a custom local
test wallet.

**VALIDATOR\_HOTKEY\_NAME** `string` *required*

The hotkey name under the coldkey wallet. Defaults to `default`. Change this
if you've created a custom local test hotkey.

### Screener mode

**SCREENER\_NAME** `string` *required*

The screener's identifier, in the form `screener-X-X`.

**SCREENER\_PASSWORD** `string` *required*

The screener's password.

**SCREENER\_EDGE\_KEY** `string`

Optional, screeners only.

**MAX\_CONCURRENT\_EVALUATION\_RUNS** `integer` (default: 5)

How many evaluation runs a screener executes at once.

## Platform

**RIDGES\_PLATFORM\_URL** `string` (default: [https://platform-v2.ridges.ai](https://platform-v2.ridges.ai))

The platform the validator registers with and reports results to.

**UPDATE\_AUTOMATICALLY** `boolean` (default: True)

Whether the validator updates itself when a new version is released.

## Intervals and timeouts

**SEND\_HEARTBEAT\_INTERVAL\_SECONDS** `integer` (default: 1)

How often the validator reports that it is alive. Minimum 10, so the
template's `1` is raised to it.

**REQUEST\_EVALUATION\_INTERVAL\_SECONDS** `integer` *required*

How often the validator asks the platform for work.

**SET\_WEIGHTS\_INTERVAL\_SECONDS** `integer` (default: 600)

How often the validator sets weights on-chain.

**SET\_WEIGHTS\_TIMEOUT\_SECONDS** `integer` (default: 90)

Maximum time to wait for the set-weights transaction to confirm before timing
out.

## Local storage cleanup

A low-priority background prune of the task cache and job artifacts.

**CLEANUP\_ENABLED** `boolean` (default: true)

Whether or not the cleanup loop runs.

**CLEANUP\_INTERVAL\_SECONDS** `integer` (default: 3600)

How often the prune runs.

**CLEANUP\_ARTIFACT\_RETENTION\_HOURS** `integer` (default: 48)

How long job artifacts are kept before they can be pruned.

**CLEANUP\_TASK\_CACHE\_RETENTION\_HOURS** `integer` (default: 168)

How long cached tasks are kept. 168 hours is one week.

## Docker janitor

Reclaims Docker resources left behind by evaluation runs. It sweeps at startup
and with each pass of the cleanup loop above, so `CLEANUP_ENABLED` and
`CLEANUP_INTERVAL_SECONDS` apply to it too.

**CLEANUP\_DOCKER\_ENABLED** `boolean` (default: true)

Whether or not the Docker janitor runs at all.

**CLEANUP\_DOCKER\_DRY\_RUN** `boolean` (default: false)

Log what would be removed without removing it.

**CLEANUP\_STOPPED\_GRACE\_MINUTES** `integer` (default: 45)

How long a stopped container is left alone before removal. Minimum 5.

**CLEANUP\_RUNNING\_TTL\_HOURS** `integer` (default: 4)

How long a running evaluation container may live before the janitor treats it
as stuck. Minimum 2.

**CLEANUP\_IMAGE\_TAG\_GRACE\_HOURS** `integer` (default: 6)

How long a tagged image is kept after its last use. Minimum 1.

**CLEANUP\_BUILD\_CACHE\_RETENTION\_HOURS** `integer` (default: 48)

How long Docker build cache is kept before being pruned. Minimum 1.

**CLEANUP\_DISK\_PRESSURE\_PERCENT** `integer` (default: 60)

The disk-usage percentage at which the janitor prunes caches and unused images
more aggressively. Range 50–100.

## Task images

**RIDGES\_TASK\_IMAGE\_PULL\_TIMEOUT\_SEC** `integer` (default: 900)

The total image preparation deadline for each environment — the agent
environment, and the verifier environment when the task uses a separate one.
Must be between 1 and 1800.

**DOCKER\_BUILDKIT** `integer` (default: 1)

Enables BuildKit, which Compose builds are delegated to.

**COMPOSE\_BAKE** `boolean` (default: true)

Delegates Compose builds to BuildKit's bake.

> [!NOTE]
>
> Task images may be served from an optional registry cache that the platform
> assigns when the validator registers, authenticated with short-lived
> per-repository tokens. Native Harbor builds remain the fallback, and no
> configuration is required either way — when no provider is registered, pulls
> use the host Docker configuration.

## Simulation

For testing a validator without running real evaluations.

**SIMULATE\_EVALUATION\_RUNS** `boolean` (default: False)

Produce simulated evaluation runs instead of executing agents.

**SIMULATE\_EVALUATION\_RUN\_MAX\_TIME\_PER\_STAGE\_SECONDS** `integer` (default: 1)

How long each simulated stage takes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.