leobot-cli
v1.1.6
Published
CLI bot untuk register Canva + Leonardo accounts via backend API
Maintainers
Readme
Leo Bot (leobot-cli)
CLI tool + Chrome Extension untuk register akun Canva + Leonardo secara otomatis.
📋 Prerequisites
1. Node.js >= 20
Cek versi Node.js:
node --version
# Harus v20 atau lebih tinggiKalau belum ada, download & install dari nodejs.org.
2. Google Chrome
Leo Bot buka browser Chrome asli untuk daftar akun. Pastikan Chrome sudah terinstall:
- Mac: Download dari google.com/chrome
- Windows: Download dari google.com/chrome
- Linux:
sudo apt install google-chrome-stable
⚠️ Leo Bot harus dijalankan di PC desktop (bisa buka browser). Tidak bisa di server.
3. Backend API
Leo Bot butuh backend untuk:
- Cek OTP email
- Simpan session browser
- Cek credit Leonardo
Jalanin backend dulu (lihat dokumentasi terpisah), atau pake --api-url kalo backend udah di-deploy.
🚀 Install
Via npm (recommended)
npm install -g leobot-cliSetelah install, cek:
leobot --helpAtau clone repo
git clone https://github.com/username/leobot.git
cd leobot
npm install
node bin/cli.js --help🎮 Cara Pakai
1. Cek sistem
Jalanin leobot doctor buat ngecek semua prerequisite:
leobot doctorOutput:
🔍 Pre-flight check
✅ Node.js >=20: v22.22.2
✅ Google Chrome: /Applications/Google Chrome.app/...
✅ Playwright: Terinstall
✅ Display (GUI): macOS GUI
✅ Internet: Terhubung2. Login
leobot login --api-url https://api-kamu.comAtau kalo backend lokal:
leobot loginMasukin email + password yang terdaftar di backend.
Belum punya akun?
leobot register
3. Generate Akun
Bikin 5 akun Canva + Leonardo sekaligus:
leobot gen -c 5Atau 10 akun:
leobot gen -c 10Setiap akun:
- Buka Canva.com
- Daftar pake email random
- Verifikasi OTP (otomatis)
- Masuk ke Leonardo via Canva
- Simpan session ke database
- Cek credit otomatis
4. Cek Status
leobot statusOutput:
Leo Bot - Account Status
Total: 37 akun
Aktif: 37
Total Credits: 1.200.000
Total Tokens: 34.0005. Update CLI
leobot update⌨️ Command Lengkap
| Command | Fungsi |
|---------|--------|
| leobot | Menu interaktif |
| leobot login | Login |
| leobot register | Daftar akun baru |
| leobot gen -c N | Generate N akun |
| leobot status | Lihat status akun |
| leobot doctor | Cek sistem |
| leobot logout | Hapus session |
| leobot whoami | Cek login |
| leobot update | Update CLI |
🔧 Options
-c, --count <n> Jumlah akun (max: 20)
-h, --headless Mode headless (gak buka browser)
-p, --proxy <url> Pake proxy
-m, --manual-otp Input OTP manual
--api-url <url> Backend API URL
--email <email> Email (buat scripting)
--password <pass> Password (buat scripting)🌐 Environment Variables
| Variable | Fungsi |
|----------|--------|
| LEO_GEN_API_URL | Backend API URL |
| HTTP_PROXY | Proxy URL |
🖥️ Chrome Extension
Selain CLI, ada Chrome Extension yang bisa dipake buat:
- Lihat daftar akun + credit langsung dari browser
- Inject session (ganti login Leonardo)
- Cek semua token real-time
Install Extension
- Buka
chrome://extensions/ - Nyalakan Developer mode
- Klik Load unpacked
- Pilih folder
extension/
Cara Pake Extension
- Login di
app.leonardo.ai - Klik icon extension
- Pilih akun → Inject Session
- Refresh Leonardo → login berubah
⚙️ Backend
Leo Bot butuh backend yang jalan. Backend handle:
- Auth (login/register)
- Cek OTP dari email
- Simpan session browser
- Credit checking via Leonardo API
Lihat dokumentasi backend terpisah untuk cara deploy.
❓ Troubleshooting
Error: Cannot find module 'playwright'
npm install -g playwright-coreError: Chrome not found
Install Google Chrome dari https://google.com/chrome
Error: Cannot find package
npm install -g leobot-cli --forceGenerate gagal terus
leobot doctor
# Cek apakah Chrome terinstall
# Cek apakah backend nyala
# Cek apakah akun masih aktif