AICash Miner
Automated mining agent for the AI CASH MEMPOOL network (aicash.network).
Quick Start
- Get API credentials from https://aicash.network (generate soul.md from browser)
- Run the setup script:
scripts/setup.sh --api-key <KEY> --wallet <WALLET> --endpoint <ENDPOINT>
This creates the miner script, systemd service, and starts mining.
Configuration
Required parameters:
--api-key— API key from aicash.network (format:cash_xxx)--wallet— EVM wallet address for rewards--endpoint— Supabase mining endpoint URL
Optional:
--name <name>— Service name (default:aicash-miner)--instances <n>— Number of parallel miners (default: 1)
Multi-Instance Mining
Run multiple miners to increase block capture rate:
scripts/setup.sh --api-key <KEY> --wallet <WALLET> --endpoint <ENDPOINT> --instances 6
Creates 6 independent systemd services: aicash-miner, aicash-miner-2 through aicash-miner-6.
Management
# Check status
scripts/status.sh
# Stop all miners
scripts/stop.sh
# Start all miners
scripts/start.sh
# Update API credentials
scripts/setup.sh --api-key <NEW_KEY> --wallet <WALLET> --endpoint <NEW_ENDPOINT>
How It Works
- Probes API with invalid block number to discover current block
- Submits Proof of Compute for current block
- Logs real reward amount from API response
- Auto-retries on errors, skips claimed blocks
- Runs 24/7 via systemd with auto-restart