Automated farming and account management bot for Datahive.ai platform.
โ ๏ธ Note: 10% of registrations support the developer through referral codes. Thank you for using this free software!
| Software | Minimum Version | Recommended |
|---|---|---|
| Python | 3.11 | 3.12 |
| PostgreSQL | 16 | 16 |
| Resource | Notes |
|---|---|
| RAM | ~512MB base + ~1MB per active slot |
| CPU | Parallelism = min(cpu_thread_count, accounts) |
| Proxies | HTTP/SOCKS5. Test which work for your region |
# Update & install packages
sudo apt update && sudo apt upgrade -y
sudo apt install -y git curl wget python3 python3-pip python3-venv
# PostgreSQL 16
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update && sudo apt install -y postgresql-16
sudo systemctl start postgresql && sudo systemctl enable postgresqlCreate database:
sudo -u postgres psqlCREATE USER <YOUR_USER> WITH PASSWORD '<YOUR_PASSWORD>';
CREATE DATABASE <YOUR_DB> OWNER <YOUR_USER>;
GRANT ALL PRIVILEGES ON DATABASE <YOUR_DB> TO <YOUR_USER>;
\qInstall bot:
git clone https://github.com/BRN-SLP/Datahive-Bot.git
cd Datahive-Bot
python3 -m venv venv && source venv/bin/activate
pip3 install --upgrade pip
pip3 install -r requirements.txtSee VPS_SETUP.md for detailed instructions.
If updating from v1.0.x, run the migration script once before starting the bot:
source venv/bin/activate
python migrate.pyFirst-time installs do not need this โ the schema is created automatically.
Edit config/config.yaml:
application_settings:
database_url: "postgres://<USER>:<PASSWORD>@localhost:5432/<DATABASE>"threads:
registration: 1 # MUST BE 1 (rate limit protection)
farming: 20 # Concurrent farming slots (capped to account count)
farmingmaps tocpu_thread_count. Actual slots =min(cpu_thread_count, len(accounts)).
farm_settings:
max_devices_per_batch: 600
max_concurrent_tasks: 250
device_task_timeout: 60referral_code_settings:
source: "db" # "db" | "file" | "static"
static_referral_code: ""delay_before_start:
min: 60 # enforced minimum โ cannot go below 60s
max: 180 # enforced maximum โ cannot exceed 1200s
retry:
delay_seconds: 10
max_registration_attempts: 5
proxy_rotation: true
proxy_rotation_after_timeouts: 3redirect_settings:
enable: false
email: "your_email@gmail.com"
password: "your_app_password"
imap_server: "imap.gmail.com"imap_settings:
use_proxy_for_imap: false
timeout: 30
servers:
gmail.com: imap.gmail.com
icloud.com: imap.mail.me.comLocated in config/data/:
| File | Format |
|---|---|
login_accounts.txt |
email:password (one per line) |
farm_accounts.txt |
email (one per line, empty = all) |
proxies.txt |
http://user:pass@host:port |
referral_codes.txt |
code (one per line) |
export_stats_accounts.txt |
email (one per line, empty = all) |
source venv/bin/activate
python main.pyMenu:
| Option | Description |
|---|---|
Login accounts |
Authenticate accounts via email OTP |
Farm accounts |
Start the farming loop |
Bind Solana Wallets |
Link Solana wallets to accounts |
Execute Missions (Standard) |
Run standard mission set |
Deploy Stealth Missions (Anti-Sybil) ๐ฅท |
Run missions with anti-Sybil profile rotation |
Export stats |
Export account stats to CSV (results/stats/) |
Clear proxies |
Clear proxy assignments |
Exit |
Exit the bot |
For background running use tmux:
tmux new -s datahive
python main.py
# Ctrl+B then D to detachThe bot runs a single asyncio event loop with N concurrent coroutines โ no separate processes or threads.
Active farming slots = min(cpu_thread_count, len(accounts))
Accounts are distributed round-robin across slots. Each slot farms one account at a time.
| VPS Specs | cpu_thread_count |
Best for |
|---|---|---|
| 1 CPU / 1GB | 10โ20 | Up to 100 accounts |
| 2 CPU / 2GB | 20โ40 | Up to 300 accounts |
| 4 CPU / 4GB | 40โ80 | Up to 600 accounts |
| 8+ CPU / 8GB+ | 80โ150 | 600+ accounts |
threads:
registration: 1
farming: 30 # 30 concurrent slots
farm_settings:
device_task_timeout: 60
max_devices_per_batch: 600
max_concurrent_tasks: 250
delay_before_start:
min: 60
max: 300
โ ๏ธ registrationmust always be1โ Datahive rate-limits OTP delivery aggressively.
| Problem | Solution |
|---|---|
| Database connection error | Check PostgreSQL is running: sudo systemctl status postgresql |
| Rate limit (HTTP 429) | Add more proxies; increase delay_before_start.min |
| OTP not received | Check IMAP settings; verify email provider supports IMAP |
IndexError on task list |
Update to v1.2.0 (fixed in this release) |
| XML health report corrupt | Update to v1.2.0 (fixed in this release) |
| Bot freezes at shutdown | Update to v1.2.0 (fixed in this release) |
- Fixed
IndexErrorwhen task list is shorter than expected slot count - Fixed XML health report โ
ET.tostringwas injecting XML declaration per element - Fixed
tempfile.mktemp()race condition โ replaced withmkstemp() - Fixed database teardown โ
close_databasenow correctly calls Tortoise ORM shutdown - Fixed
imap_serverattribute error โ field does not exist onAccountmodel (removed from 5 places) - Fixed
save_registration_resultโ missingemail_passwordargument - Fixed duplicate
next_task_request_available = Trueassignment in farming loop - Fixed
delay_min/delay_maxโ values were not clamped, allowing sub-60s or unbounded delays - Fixed
farm_settingsattribute access โ dict accessed viagetattrinstead of.get() - Added menu options: Bind Solana Wallets, Execute Missions (Standard), Deploy Stealth Missions (Anti-Sybil)
- Replaced multiprocess farming with single-loop
ThreadFarmingManager(asyncio coroutines) - Added
cpu_thread_countconfig property
- Added
last_initialized_attracking for daily device initialization - Added
migrate.pyfor schema upgrades
- Initial public release