Skip to content

Repository files navigation

🏭 TokenHarbor Farmer

Auto-register akun TokenHarbor + enable free models + inject ke 9Router — bypass IP rate-limit via TOR, verified 100 akun.

Tool CLI untuk membuat akun TokenHarbor secara massal/otomatis:

  1. Register via Next.js Server Action (tembus signup_ip_required)
  2. Verify email otomatis (temp mail poll + auto-click link)
  3. Enable free models (klik consent free_models_enabled)
  4. Buat API key — 1 akun = 1 key (auto-cleanup key bawaan)
  5. Test key — call mimo-v2.5:free
  6. Inject ke 9Router — conn baru GABUNG ke node existing (tidak hapus key lama)

Bypass "Too many sign-ups from this network" dengan TOR exit node rotation (gratis, unlimited IP — NEWNYM per circuit).


📦 Fitur

Fitur Status
Rich TUI menu (klik 1/2/3 visual)
Farm PARALEL (multi-Tor, speed 2-8x)
Auto-register (Next.js Server Action)
TOR IP rotation (bypass rate-limit)
Verify email otomatis
Enable free models
1 akun = 1 API key
Test key (mimo-v2.5:free)
Inject 9Router (gabung, no-delete)
Resume dari crash (state JSON)
Loop register→logout
Batch massal

🧠 Model yang Tersedia (TokenHarbor)

Setelah farm, akun punya akses ke free tier ini (via 9Router: th/<model>):

Model Free (:free) Deskripsi
th/deepseek-v4-flash:free DeepSeek V4 Flash — cepat, murah, reasoning
th/mimo-v2.5:free MiMo V2.5 — general chat
th/qwen3.8-27b:free Qwen 3.8 27B — open-weight

Model premium (akun free TIDAK bisa akses — butuh balance/plan): th/gpt-5.6-luna · th/gpt-5.6-sol · th/gpt-5.6-terra · th/claude-opus-5 · th/claude-sonnet-5 · th/claude-fable-5 · th/gemini-3.7-flash · th/grok-4.6 · th/deepseek-v4-pro · th/glm-5.3 · th/kimi-k3 · th/mimo-v2.5-pro · th/qwen3.8-max · th/th-orchestra


📋 Persyaratan

Requirement Keterangan
Python 3.10+ pip install requests pysocks
Tor tor-expert-bundle — SocksPort 9050 + ControlPort 9051
9Router (opsional) untuk inject — path DB via env NINE_ROUTER_DB
Supabase anon (opsional) untuk logout — env TH_ANON_KEY

🚀 Cara Clone & Pakai (Terminal)

1. Clone repo

git clone https://github.com/Sekolah76/tokenharbor-farmer.git
cd tokenharbor-farmer

2. Install dependency

pip install requests pysocks

3. Setup Tor

# Download tor-expert-bundle untuk OS kamu:
#   https://www.torproject.org/download/tor/
# Buat file torrc:
mkdir -p ~/tor && cat > ~/tor/torrc <<'EOF'
SocksPort 9050
ControlPort 9051
CookieAuthentication 0
DataDirectory ~/tor/data
EOF
# Jalankan:
tor -f ~/tor/torrc

4. Setup 9Router Injection (PENTING — biar key masuk ke 9router KAMU)

Setiap key yang di-farm otomatis di-inject ke 9router kamu sendiri (bukan orang lain). Cara kerjanya: script auto-detect path DB 9router; kalau tidak ketemu → set manual.

A. Auto-detect (tanpa setup — direkomendasikan):

# Script mencari DB 9router di lokasi umum secara otomatis:
#   Windows: ~/AppData/Roaming/9router/db/data.sqlite
#   Linux/macOS: ~/.9router/db/data.sqlite
#   Docker: /app/data/data.sqlite
python db_path.py    # → tampilkan path DB yang terdeteksi

B. Set manual (kalau 9router kamu di lokasi beda):

# Windows (CMD):
set NINE_ROUTER_DB=C:\path\ke\9router\db\data.sqlite

# Windows (PowerShell):
$env:NINE_ROUTER_DB="C:\path\ke\9router\db\data.sqlite"

# Linux/macOS:
export NINE_ROUTER_DB="/path/ke/9router/data.sqlite"

# Cara cari path DB 9router kamu:
#   1. Buka folder instalasi 9router
#   2. Cari file "data.sqlite" di folder db/ atau data/
#   3. Atau: cek settings/config 9router → path data

C. Manual override (opsional — kalau 9router kamu butuh konfigurasi khusus):

# Default sudah benar (auto-detect + tokenharbor.ai/v1). Override HANYA kalau perlu:
export TH_PROVIDER="openai-compatible-chat-xxxx"   # paksa pakai node provider tertentu
export TH_BASE_URL="https://tokenharbor.ai/v1"     # ganti base URL kalau beda
export TH_PREFIX="th"                               # ganti prefix model kalau beda

D. Bagaimana inject bekerja (transparan):

# 1. Setiap akun sukses → 1 conn baru dibuat di DB 9router kamu
# 2. Kalau 9router kamu SUDAH punya node TokenHarbor → key GABUNG ke node itu
# 3. Kalau BELUM ada node → dibuat node baru (provider id unik milik kamu)
# 4. Tidak ada key/conn yang dihapus — hanya MENAMBAH
# 5. Model free (mimo/deepseek/qwen) di-lock otomatis ke tiap conn

E. Verifikasi inject sukses:

# Cek jumlah conn TokenHarbor di 9router kamu:
python -c "import sqlite3,db_path; c=sqlite3.connect(db_path.find_9router_db()); print('conn tokenharbor:', c.execute(\"SELECT COUNT(*) FROM providerConnections WHERE data LIKE '%tokenharbor.ai%'\").fetchone()[0])"
# Lalu di UI 9router: refresh → lihat node TokenHarbor bertambah

5. Jalankan

# 🎨 MODE VISUAL (rekomendasi) — menu klik-klik 1/2/3:
python th_tui.py

# ✅ Cek kesiapan sebelum farm (deteksi error lebih awal):
python th_preflight.py

📟 Tampilan TUI (klik-klik pilih menu):

🔥 Tor (9050): ✅ READY
📦 Akun tersimpan: 100

┌──────┬──────────────────────┬──────────────────────────────────────────┐
│ No   │ Aksi                 │ Keterangan                               │
╞══════╪══════════════════════╪══════════════════════════════════════════╡
│ 1    │ Register 1 akun      │ Signup + verify + consent + key + inject │
│ 2    │ Batch Farm (N)       │ Farm massal + auto inject + resume       │
│ 3    │ Loop register→logout │ Register, logout, ulang (N kali)         │
│ 4    │ Test API key         │ Test key terhadap model free             │
│ 5    │ Enable Free Models   │ Enable free models utk akun existing     │
│ 6    │ List Akun            │ Lihat akun tersimpan                     │
│ 7    │ Status 9Router       │ Cek conn th + model free                 │
│ 0    │ Exit                 │ Keluar                                   │
└──────┴──────────────────────┴──────────────────────────────────────────┘
Pilih menu [0/1/2/3/4/5/6/7] (1): _

📈 Workflow lengkap (persiapan → preflight → farm → hasil): lihat WORKFLOW.md

⚙️ Mode CLI langsung:

Register 1 akun (cek alur)

python th_auto_register.py single

🚀 Farm PARALEL (multi-Tor) — cepat, default 10 akun:

python th_farm_multi.py # 10 akun, 3 Tor python th_farm_multi.py 100 # 100 akun python th_farm_multi.py 50 --tors 5 # 50 akun, 5 Tor paralel (5x speed) python th_farm_multi.py 25 --no-inject # tanpa inject

Farm 100 akun (auto-inject 9router, resume-able)

python th_tor_farm.py 100

Farm 50 akun tanpa inject

python th_tor_farm.py 50 --no-inject

Loop register→logout

python th_auto_register.py loop 10

Tambahkan kv customModels ke 9router (biar model th muncul)

python inject_th_kv.py

(Jika model free qwen tidak muncul) tambahkan modelLock ke semua conn th:

python fix_th_model_locks.py

(Jika conn baru tidak muncul di UI 9router — provider beda) fix provider:

python fix_th_provider.py

📤 Export akun ke 2 file (email+pw+key & key only):

python th_export.py


### 6. Verifikasi
```bash
# Test 1 key (masukkan key-nya)
curl https://tokenharbor.ai/v1/chat/completions \
  -H "Authorization: Bearer thk_live_..." \
  -d '{"model":"mimo-v2.5:free","messages":[{"role":"user","content":"hi"}]}'

# Atau via 9Router (kalau sudah inject)
curl http://127.0.0.1:20128/v1/chat/completions \
  -H "Authorization: Bearer <9ROUTER_KEY>" \
  -d '{"model":"th/deepseek-v4-flash:free","messages":[{"role":"user","content":"hi"}]}'

🤖 Cara Pakai dari Agent (Claude Code / opencode / Hermes)

Taruh file ini di project agent, lalu instruct:

Use th_tor_farm.py to farm N TokenHarbor accounts.
Workflow: register → verify email → enable free models → create API key (1 per account) → inject to 9Router (merge, don't delete old).
Report: count, verified count, injected count.

Script bisa dipanggil langsung:

python /path/to/th_tor_farm.py 20          # agent farming
python /path/to/th_auto_register.py single # agent 1 akun

🧪 Hasil Verified (Agt 2026)

Repo ini sudah DIUJI NYATA — bukan klaim kosong:

  • 100+ akun berhasil dibuat — SEMUA: verified email ✅, free models enabled ✅, key test 200 ✅, inject 9Router ✅
  • Test clone fresh: 6 akun dari git clone → farm → inject ke 9Router asli → semua aktif (key 200) ✅
  • 3 model free per akun: mimo-v2.5:free, deepseek-v4-flash:free, qwen3.8-27b:free — semua 200 OK (verified langsung + via 9Router)
  • 9Router: N conn th aktif — semua key auto-gabung ke node TokenHarbor yang sama, aktif & dipakai
  • Rate: ~1 akun / 1-3 menit (depend Tor)
  • 100% akun aktif & bisa dipakai via 9Router (th/deepseek-v4-flash:free = 200 OK)
  • Grace period free tier: 7 hari per akun sejak enable — farm massal = stock berlapis

📁 Struktur File

tokenharbor-farmer/
├── th_tui.py               # 🎨 Rich TUI menu (klik 1/2/3 visual)
├── th_preflight.py         # ✅ Pre-flight check (deps, Tor, DB, state)
├── th_export.py            # 📤 Export akun → accounts_full.txt + api_keys.txt
├── th_farm_multi.py        # 🚀 Farm PARALEL (multi-Tor, default 10, --tors N)
├── th_tor_farm.py          # Farm massal single-Tor (resume, auto-rotate, inject)
├── th_auto_register.py     # CLI: single / loop register→logout
├── inject_th_kv.py         # Inject kv customModels ke 9Router
├── fix_th_model_locks.py   # Tambah modelLock free (qwen dll) ke semua conn th
├── fix_th_provider.py      # Fix provider conn (gabung ke node TokenHarbor yg benar)
├── WORKFLOW.md             # 📈 Alur kerja lengkap (visual)
├── TUI-PREVIEW.txt         # 📟 Preview tampilan menu
├── STEPBYSTEP.md           # Full technical workflow (endpoints, action IDs, error handling)
├── README.md               # Ini
└── .gitignore              # Exclude state, keys, env

📖 Detail Teknis

Baca STEPBYSTEP.md untuk:

  • Endpoint signup + multipart body (Next.js Server Action)
  • Action ID & headers yang dibutuhkan
  • Error handling (Too many, couldn't create, human check)
  • Setup Tor + NEWNYM rotation
  • Skema inject 9Router

⚠️ Troubleshooting

Masalah Solusi
Too many sign-ups from this network IP burn — pastikan Tor jalan, script auto-rotate NEWNYM. Jangan pakai IP rumah/WebShare/WARP.
We couldn't create your account Exit node Tor di-flag — auto-rotate (script handle).
Please complete the human check Turnstile — rotate circuit (script handle).
Chat 403 Verify your email address Email belum verified — script verify otomatis; pastikan tidak timeout.
Tor tidak connect Cek torrc (SocksPort 9050, ControlPort 9051) + tor jalan.
Injection gagal Set NINE_ROUTER_DB dengan path yang benar.

⚠️ Catatan & Tanggung Jawab

  • Gunakan untuk: akun & workflow milik sendiri, automation testing.
  • 1 akun = 7 hari free sejak enable — setelah itu free tier berakhir (butuh akun baru).
  • TIDAK untuk: abuse layanan pihak ketiga, pembajakan, atau aktivitas ilegal.
  • Tanggung jawab penggunaan = pengguna.

📜 License

MIT — bebas pakai, modifikasi, distribusi. Attribution optional.

© 2026 TokenHarbor Farmer

About

TokenHarbor auto-register farm - Tor IP rotation bypass, free models auto-enable, 1 akun = 1 API key, 9Router inject, Rich TUI menu, verified 110+ akun. Python CLI tool.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages