First Run
Starting the Bot
bash
uv run zero-ichiOptional: run interactive setup before first launch:
bash
uv run zero-ichi setupCLI Arguments
You can run the bot with flags:
bash
uv run zero-ichi --debug --auto-reload| Argument | Description | Example |
|---|---|---|
--debug | Enable debug logging | uv run zero-ichi --debug |
--qr | Force QR login mode | uv run zero-ichi --qr |
--phone NUMBER | Force pair-code login with phone number | uv run zero-ichi --phone 6281234567890 |
--session NAME | Override session name | uv run zero-ichi --session mybot |
--auto-reload | Enable auto-reload for development | uv run zero-ichi --auto-reload |
--dashboard | Enable dashboard API at startup | uv run zero-ichi --dashboard |
CLI Subcommands
| Subcommand | Description | Example |
|---|---|---|
setup | Interactive setup wizard (configures common settings) | uv run zero-ichi setup |
update | Pull latest code and sync dependencies | uv run zero-ichi update |
Update Command
Use built-in update command:
bash
uv run zero-ichi updateSetup Wizard Command
Use built-in interactive setup wizard:
bash
uv run zero-ichi setupThe wizard guides common first-run settings:
- session name (used for
.sessionfile) - login method (QR or pair-code) + phone number
- owner JID
- command prefix
- auto-read / auto-react / self mode
- dashboard on/off
- anti-link on/off + action
- anti-spam on/off + action
- anti-spam thresholds
- AI on/off + API key
- AI provider/model/trigger mode/owner-only
- rate-limit controls
QR Code Login
On first launch, the bot will display a QR code in the terminal:
- Open WhatsApp on your phone
- Go to Settings → Linked Devices → Link a Device
- Scan the QR code displayed in the terminal
INFO
The session is saved to a .session file so you only need to scan once. Subsequent launches will auto-connect.
What Happens Next
Once connected, the bot will:
- Load all commands — you'll see
OK | Loaded 66 commands - Start the scheduler — for reminders and scheduled tasks
- Start the dashboard API — on
http://localhost:8000(if enabled) - Begin listening — ready to process messages
20:36:31 INFO | Message cache database initialized (WAL mode)
20:36:31 -> | Validating environment...
20:36:31 OK | Environment validation complete.
20:36:31 -> | Starting bot...
| * Session: zero_ichi_bot
| * Login Method: QR
20:36:31 OK | Loaded 66 commands
20:36:31 OK | Bot is running! Press Ctrl+C to stop.Setting Yourself as Owner
Send this message from your WhatsApp:
/config owner meOr set owner during CLI setup with uv run zero-ichi setup.
If owner is not configured yet, you can also bootstrap owner from a private chat using:
/config owner meor:
/setup owner meThis gives you access to owner-only commands like /eval, /config, and /addcommand.
Testing Commands
Try these commands to verify everything works:
| Command | What It Does |
|---|---|
/ping | Check if the bot is responding |
/help | See all available commands |
/uptime | Check how long the bot has been running |
/stats | View bot statistics |
