zbdw init, returning stable Lightning addresses like <username>@zbd.ai.
What It Does
Creates or updates static charge linkage
Creates LNURL-backed payment destination for your identity.
API Endpoints
| Method | Route | Purpose |
|---|---|---|
POST | /api/register | Register or refresh agent identity |
GET | /.well-known/lnurlp/:username | LNURL metadata resolution |
GET | /.well-known/lnurlp/:username?amount=<msat> | Invoice generation callback |
Request + Response
Storage Backends
- File
- Vercel KV
Local development and VPS-friendly.
- Backend:
file - Path:
~/.zbd-ai/agents.json(default)
Key Environment Variables
| Variable | Default |
|---|---|
ZBD_API_BASE_URL | https://api.zbdpay.com |
ZBD_AI_STORE_BACKEND | auto-select |
ZBD_AI_STORE_PATH | ~/.zbd-ai/agents.json |