@openkuke/zalouser
v2026.6.1
Published
OpenKuke Zalo Personal Account plugin via native zca-js integration.
Downloads
89
Readme
@openkuke/zalouser
OpenKuke extension for Zalo Personal Account messaging via native zca-js integration.
Warning: Using Zalo automation may result in account suspension or ban. Use at your own risk. This is an unofficial integration.
Features
- Channel plugin integration with setup wizard + QR login
- In-process listener/sender via
zca-js(no external CLI) - Multi-account support
- Agent tool integration (
zalouser) - DM/group policy support
Prerequisites
- OpenKuke Gateway
- Zalo mobile app (for QR login)
No external zca, openzca, or zca-cli binary is required.
Install
Option A: npm
openkuke plugins install @openkuke/zalouserOption B: local source checkout
PLUGIN_SRC=./path/to/local/zalouser-plugin
openkuke plugins install "$PLUGIN_SRC"
cd "$PLUGIN_SRC" && pnpm installRestart the Gateway after install.
Quick start
Login (QR)
openkuke channels login --channel zalouserScan the QR code with the Zalo app on your phone.
Enable channel
channels:
zalouser:
enabled: true
dmPolicy: pairing # pairing | allowlist | open | disabledSend a message
openkuke message send --channel zalouser --target <threadId> --message "Hello from OpenKuke"Configuration
Basic:
channels:
zalouser:
enabled: true
dmPolicy: pairingMulti-account:
channels:
zalouser:
enabled: true
defaultAccount: default
accounts:
default:
enabled: true
profile: default
work:
enabled: true
profile: workUseful commands
openkuke channels login --channel zalouser
openkuke channels login --channel zalouser --account work
openkuke channels status --probe
openkuke channels logout --channel zalouser
openkuke directory self --channel zalouser
openkuke directory peers list --channel zalouser --query "name"
openkuke directory groups list --channel zalouser --query "work"
openkuke directory groups members --channel zalouser --group-id <id>Agent tool
The extension registers a zalouser tool for AI agents.
Available actions: send, image, link, friends, groups, me, status
Troubleshooting
- Login not persisted:
openkuke channels logout --channel zalouser && openkuke channels login --channel zalouser - Probe status:
openkuke channels status --probe - Name resolution issues (allowlist/groups): use numeric IDs or exact Zalo names
Credits
Built on zca-js.
