01
Introduction
$CODES is a mine-to-mint token on Ethereum Mainnet. Miners search for a valid proof, submit it on-chain, and mint a fixed reward when the proof is accepted.
02
Overview
Mining can run in the browser or through the CLI miner. Browser mining uses wallet popups. CLI mining uses a native CPU scanner and a Node.js submitter that automatically sends the transaction when a valid proof is found.
03
What's $CODES
$CODES has a fixed max supply of 10,000,000 tokens. Supply enters circulation through accepted mined blocks. Each valid block mints 1000 $CODES, and marketplace trades burn part of the supply.
04
CPU Native Miner
The native CPU miner is tested and available for VPS, bare-metal servers, and cloud instances.
Full guide and source code:
Open CPU Miner Repositoryinstall dependencies
# 1. install server dependenciesapt update && apt upgrade -yapt install -y curl git build-essential pkg-config screen tmux # 2. install Node.jscurl -fsSL https://deb.nodesource.com/setup_20.x | bash -apt install -y nodejsnode -vnpm -v # 3. install Rustcurl https://sh.rustup.rs -sSf | sh -s -- -ysource /root/.cargo/envrustc --versioncargo --versionclone and build
# 4. clone minercd /rootgit clone https://github.com/404-Agent/codes-miner.gitcd codes-miner # 5. install packagesnpm install # 6. build native CPU minercd /root/codes-miner/native-minercargo build --releasels -lah target/release/codes-native-minerconfigure and run
# 7. configure minercd /root/codes-minercp .env.example .envnano .envchmod 600 .env # required .env fieldsETH_RPC=https://YOUR_ETH_MAINNET_RPCMINER_PRIVATE_KEY=YOUR_MINER_PRIVATE_KEYCODES_ADDRESS=0xdAeEB910888e3613638C6a9b71691C72B2e7DD36CHAIN_ID=1WORKERS=12LOG_EVERY_MS=30000NATIVE_REFRESH_MS=0NATIVE_BIN=/root/codes-miner/native-miner/target/release/codes-native-miner # 8. run minercd /root/codes-minernode mine-native.mjs05
CUDA GPU Miner
The CUDA GPU miner is tested for NVIDIA GPUs. It uses a CUDA scanner and the same Node.js submitter flow to auto-submit valid proofs.
Full guide and source code:
Open GPU Miner Repositorycheck and install
# 1. check NVIDIA GPU and CUDAnvidia-sminvcc --version # 2. install dependenciesapt update && apt upgrade -yapt install -y curl git build-essential screen tmux # 3. install Node.jscurl -fsSL https://deb.nodesource.com/setup_20.x | bash -apt install -y nodejsnode -vnpm -vclone and build
# 4. clone GPU minercd /rootgit clone https://github.com/404-Agent/code-miner-gpu.gitcd code-miner-gpu # 5. install packagesnpm install # 6. build CUDA minercd /root/code-miner-gpu/gpu-minernvcc -O3 -arch=sm_86 codes-gpu-miner.cu -o codes-gpu-minerls -lah codes-gpu-minerconfigure and run
# 7. configure GPU minercd /root/code-miner-gpucp .env.example .envnano .envchmod 600 .env # required .env fieldsETH_RPC=https://YOUR_ETH_MAINNET_RPCMINER_PRIVATE_KEY=YOUR_MINER_PRIVATE_KEYCODES_ADDRESS=0xdAeEB910888e3613638C6a9b71691C72B2e7DD36CHAIN_ID=1NATIVE_BIN=/root/code-miner-gpu/gpu-miner/codes-gpu-minerGPU_ID=0GPU_BLOCKS=512GPU_THREADS=256GPU_ITERS=4096 # 8. run GPU minercd /root/code-miner-gpunode mine-gpu.mjs06
AI Agent Mining Skill
Use this skill file with terminal-capable AI agents such as OpenClaw, Hermes, Claude, or similar autonomous coding agents.
SKILL.md
Open SKILL.md07
Marketplace
The internal OTC marketplace lets miners list mined $CODES lots for ETH. Buyers take offers directly. Each completed sale burns 10% of the listed $CODES and sends 90% to the buyer.