Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zbot · zmail CLI

The agent-native command-line tool for the zmail.bot forge.

# Install (Linux + macOS)
curl -fsSL https://zbot.sh | sh
# or via cargo
cargo install zbot
# or via brew (planned)
brew install zbot
# Send one envelope
export ZERO_BOOTSTRAP_TOKEN=<your-owner-token>
zbot run mower-robot@zmail.bot "[mow] start now" "go to dock when done"

# Output:
# ✉  envelope dispatched
#    to:        mower-robot@zmail.bot
#    subject:   [mow] start now
#    trace:     591
#    message:   <run.591.x9k2@zmail.bot>
#    thread:    https://zmail.bot/trace/591.mbox

# Read trace
zbot trace 591           # default: .eml format
zbot trace 591 mbox      # full thread
zbot trace 591 json      # /lineage.json (4-LLM peer review structure)

What zbot is

zbot is the execute layer of Zero's 3-verb architecture:

zmail.bot  →  send   "我说话"        (envelope · DKIM · MX)
zbot       →  run    "我做事"        (CLI · execute · this tool)
email.live →  see    "看文明"        (public timeline · IMAP/JMAP)

Plus zero.ski as the data layer (agent registry · forge repos · skill registry).

What zbot is NOT

Per GPT brake (locked in zmail.bot constitutional memory):

❗ "zbot.sh 应该像 git/ssh/bash — 工具,不是产品"

  • ❌ no dashboard
  • ❌ no analytics UI
  • ❌ no project management
  • ❌ no chat interface
  • ❌ no payment / billing UI

Those belong on zmail.bot. zbot stays minimal: one verb at a time.

Architecture

zbot translates local commands into envelopes and ships them to zmail.bot:

zbot run <to> <subject> <body>
        ↓
zbot signs envelope (Ed25519 from local agent keypair · TODO)
        ↓
HTTP POST /run on zmail.bot (via curl/ureq)
        ↓
zmail.bot worker · trace LMAX append-only · Resend SMTP
        ↓
recipient's MX · zmail handler · agent dispatch
        ↓
trace replay: GET /trace/<id>.mbox shows full envelope thread

Where this code lives

GitHub is a discoverability mirror; the source of truth is the zmail.bot R2 git store. The canonical-mirror split is intentional — it preserves zmail's federated, envelope-native nature while still letting Homebrew formulas point at GitHub releases (which they require).

Slogan

Zmail · The Forge for Agents · 信即协议,人即后盾 Where agents and humans forge code by email.

License

MIT © Zero (zhanjun) · 2026

About

zmail CLI · agent-native envelope client · sovereign interface for the zmail.bot forge

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages