abs-zalo-bot turns your Zalo account into an enterprise-grade platform for Hermes Agent.
It is engineered for speed, safety, and zero bloat: full Zalo platform capabilities + full Hermes Agent intelligence, with standard MCP extensibility for external tools.
Run the automated installer inside your abs-zalo-bot directory:
npm run install:hermesThe installer automatically:
- Detects your Hermes home (
~/.hermesorHERMES_HOME). - Atomically merges Hermes
config.yamlto enableplatforms/zaloandzalo-tools. - Installs the dual-tier toolset (
zalo_owner,zalo_public,zalo_cron). - Generates authenticated bridge tokens and sets up the local environment.
npm run doctorRuns an 11-point diagnostic check covering layout, platform plugins, token security, websockets, and bridge connectivity.
Hermes Agent gives you complete freedom to power your Zalo AI using either direct paid API keys or subscription proxies:
If you have official API keys from Anthropic, OpenAI, Google, DeepSeek, or OpenRouter:
# In ~/.hermes/config.yaml
model: anthropic/claude-3-7-sonnet # or openai/gpt-4o, gemini/gemini-2.5-flashAdd your key to ~/.hermes/.env:
ANTHROPIC_API_KEY=sk-ant-...
# or OPENAI_API_KEY=sk-... / GEMINI_API_KEY=...If you utilize flat-rate subscriptions (Claude Pro/Max, ChatGPT Plus, Gemini Advanced) routed through an OAuth reverse proxy gateway (9Router, Cockpit Proxy, Omnirouter, LiteLLM):
# In ~/.hermes/config.yaml
provider: custom
model: custom/claude-3-7-sonnet # or your proxy model alias
base_url: http://127.0.0.1:8181/v1 # Your local 9Router / Cockpit / Omnirouter endpoint
api_key: dummy # or your proxy authentication token💡 Power User Advantage: 0 token fees, unlimited multi-turn thinking loops, and maximum reasoning depth on Zalo without surprise pay-as-you-go bills.
Hermes Agent receives messages from Zalo and automatically enforces role-based tool authorization:
-
👑 Owner Mode (
zalo_owner): When the owner (UID configured inZALO_ALLOWED_USERS) messages on Zalo, Hermes Agent unlocks 100% of its native capabilities:- Full Terminal / Shell execution (
terminal). - File reading, writing, and patching (
read_file,write_file,patch). - Web research and extraction (
web_search,web_extract). - Background process and scheduled cron tasks (
cron). - Full Hermes Skills Library (
~/.hermes/skills/). - Advanced Zalo administration tools (undo, group renaming, kick, member management).
- Full Terminal / Shell execution (
-
👥 Public Mode (
zalo_public): When strangers or group members chat, Hermes restricts tool access to safe conversational and lookup tools only. Terminal, shell, and file operations are strictly walled off, protecting your server and environment from unauthorized execution.
Every message sent or received via Zalo is natively dispatched to Hermes Agent's session pipeline:
- Appears in real-time on the Hermes Dashboard / Web UI.
- Preserves full session history, cognitive loop steps, and token accounting.
- Supports multi-turn memory and context retention.
In accordance with minimalist, production-grade engineering principles, abs-zalo-bot does not bundle gigabytes of heavy external libraries (video downloaders, heavy TTS neural models, image generators).
Instead, user-level tools can be connected on-demand using standard MCP Servers or native Hermes tools:
- TTS / Voice: Point Hermes to any local TTS provider (e.g. ZeroTTS) or cloud voice API via standard MCP.
- Media Download: Use standard CLI tools (
yt-dlp) or MCP wrappers directly from Hermes Terminal. - Deep Research & Web: Utilize Hermes built-in search or attach specialized research MCPs.
Hermes Agent's lazy-loading mechanism (tool_search) loads these tools only when needed, keeping baseline token costs minimal and response times instantaneous.
Add to your client's MCP configuration:
{
"mcpServers": {
"abs-zalo": {
"command": "node",
"args": ["/path/to/abs-zalo-bot/mcp/server.js"],
"env": {
"ZALO_BRIDGE_URL": "http://127.0.0.1:3871",
"ABS_ZALO_TOOL_PACK": "admin"
}
}
}
}cp -r /path/to/abs-zalo-bot ~/.hermes/skills/abs-zalo-botHermes auto-detects SKILL.md and equips the agent with Zalo operations expertise.