{"id":34512530,"url":"https://github.com/redteamsubnet/validator","last_synced_at":"2026-04-25T00:00:33.753Z","repository":{"id":329916589,"uuid":"1118613274","full_name":"RedTeamSubnet/validator","owner":"RedTeamSubnet","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-18T12:56:49.000Z","size":136,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-18T14:40:59.631Z","etag":null,"topics":["agent","bittensor","docker","redteam","subnet","validator"],"latest_commit_sha":null,"homepage":"https://docs.theredteam.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedTeamSubnet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-18T03:00:19.000Z","updated_at":"2026-04-18T12:56:54.000Z","dependencies_parsed_at":"2026-02-26T11:06:17.280Z","dependency_job_id":"c9e14ee7-fc68-4ea7-8963-8c7eccfacbed","html_url":"https://github.com/RedTeamSubnet/validator","commit_stats":null,"previous_names":["redteamsubnet/validator"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/RedTeamSubnet/validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTeamSubnet%2Fvalidator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTeamSubnet%2Fvalidator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTeamSubnet%2Fvalidator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTeamSubnet%2Fvalidator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedTeamSubnet","download_url":"https://codeload.github.com/RedTeamSubnet/validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTeamSubnet%2Fvalidator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32245151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","bittensor","docker","redteam","subnet","validator"],"created_at":"2025-12-24T04:11:11.889Z","updated_at":"2026-04-25T00:00:33.733Z","avatar_url":"https://github.com/RedTeamSubnet.png","language":"Python","readme":"# RedTeam subnet - Validator (Agent)\n\nThis repository is for validator of RedTeam subnet. it is focused on running validator node in an independent, easy to configure, dockerized way with docker compose support. Additionally, it includes additional helper container to automatically update and restart validator image when new version is released.\n\n## ✨ Features\n\n- Validator node\n- Automatic updates\n- Easy configuration\n- Dockerized setup\n- Docker Compose support\n\n---\n\n## Getting Started\n\n### 1. 🚧 Prerequisites\n\n- Prepare validator wallet (skip if you already have one):\n    - Install **Bittensor CLI**:\n        - [Installing Bittensor CLI](https://docs.learnbittensor.org/getting-started/install-btcli)\n        - [Bittensor CLI: `btcli` Reference Document](https://docs.learnbittensor.org/btcli)\n    - Create miner wallet:\n        - [Working with Keys](https://docs.learnbittensor.org/keys/working-with-keys)\n        - [Bittensor CLI Permissions](https://docs.learnbittensor.org/btcli/btcli-permissions)\n    - Stake TAO with validator wallet on RedTeam subnet:\n        - [Staker's Guide to `BTCLI`](https://docs.learnbittensor.org/staking-and-delegation/stakers-btcli-guide)\n        - [Managing stake with `btcli`](https://docs.learnbittensor.org/staking-and-delegation/managing-stake-btcli)\n    - Register validator wallet to RedTeam subnet:\n        - [Validating in Bittensor](https://docs.learnbittensor.org/validators)\n        - [Validator's Guide to `BTCLI`](https://docs.learnbittensor.org/validators/validators-btcli-guide)\n        - [Transaction Fees in Bittensor](https://docs.learnbittensor.org/learn/fees)\n- Install [**docker** and **docker compose**](https://docs.docker.com/engine/install)\n    - Docker [intstallation script](https://github.com/docker/docker-install)\n    - Docker [post-installation steps](https://docs.docker.com/engine/install/linux-postinstall)\n\n---\n\n### 2. 📥 Download or clone the repository\n\n**2.1.** Prepare projects directory (if not exists):\n\n```sh\n# Create projects directory:\nmkdir -pv ~/workspaces/projects\n\n# Enter into projects directory:\ncd ~/workspaces/projects\n```\n\n**2.2.** Follow one of the below options **[A]** or **[B]**:\n\n**OPTION A.** Clone the repository:\n\n```sh\ngit clone https://github.com/RedTeamSubnet/validator.git \u0026\u0026 \\\n    cd validator\n```\n\n**OPTION B.** Download source code:\n\n1. Download archived **zip** or **tar.gz** file from [**releases**](https://github.com/RedTeamSubnet/validator/releases).\n2. Extract it into the projects directory.\n3. Enter into the extracted project directory.\n\n### 3. 🌎 Configure environment variables\n\n[NOTE] Please, check **[environment variables](#-environment-variables)** section for more details.\n\n**[IMPORTANT]** Make sure to change the **wallet directory and wallet name variables** to your own values in the **`.env`** file:\n\n```sh\n# Copy '.env.example' file to '.env' file:\ncp -v ./.env.example ./.env\n\n# Edit environment variables to fit in your environment:\nnano ./.env\n```\n\n### 4. ✅ Check configuration\n\n```sh\n## Check docker compose configuration is valid:\n./compose.sh validate\n# Or:\ndocker compose config\n```\n\n### 5. 🏁 Run validator node\n\n```sh\n## Start docker compose:\n./compose.sh start -l\n# Or:\ndocker compose up -d --remove-orphans --force-recreate \u0026\u0026 \\\n    docker compose logs -f --tail 100\n```\n\n---\n\n## ⚙️ Configuration\n\n### 🌎 Environment Variables\n\n[**`.env.example`**](./.env.example):\n\n```sh\n## --- Environment variable --- ##\nENV=PRODUCTION\nDEBUG=false\n# TZ=UTC\n# PYTHONDONTWRITEBYTECODE=1\n\n\n## -- Bittensor configs -- ##\n# RT_BT_SUBTENSOR_NETWORK=\"wss://entrypoint-finney.opentensor.ai:443\"\n\n\n## -- Subnet configs -- ##\n# ! WARNING: Do not use `~` character, it will not be expand properly! Use absolute path or ${HOME} instead:\nRT_BTCLI_WALLET_DIR=\"${HOME}/.bittensor/wallets\" # !!! CHANGE THIS TO REAL WALLET DIRECTORY !!!\n# RT_BT_SUBNET_NETUID=61\n\n\n## -- Validator configs -- ##\nRT_VALIDATOR_WALLET_NAME=\"validator\" # !!! CHANGE THIS TO REAL VALIDATOR WALLET NAME !!!\nRT_VALIDATOR_HOTKEY_NAME=\"default\" # !!! CHANGE THIS TO REAL VALIDATOR HOTKEY NAME !!!\n# RT_VALIDATOR_LOGS_DIR=\"/var/log/agent-validator\"\n# RT_VALIDATOR_DATA_DIR=\"/var/lib/agent-validator\"\n# RT_VALIDATOR_USE_CENTRALIZED_SCORING=true\n```\n\n## 📚 Documentation\n\n- \u003chttps://docs.theredteam.io\u003e\n\n---\n\n## 📑 References\n\n- Bittensor docs: \u003chttps://docs.learnbittensor.org\u003e\n- Bittensor CLI: \u003chttps://docs.learnbittensor.org/btcli\u003e\n- Bittensor CLI GitHub: \u003chttps://github.com/opentensor/btcli\u003e\n- Bittensor CLI PyPI: \u003chttps://pypi.org/project/bittensor-cli\u003e\n- The RedTeam subnet: \u003chttps://www.theredteam.io\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredteamsubnet%2Fvalidator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredteamsubnet%2Fvalidator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredteamsubnet%2Fvalidator/lists"}