Skip to main content
The registry service powers the identity layer behind zbdw init, returning stable Lightning addresses like <username>@zbd.ai.

What It Does

1

Validates your project API key

Calls ZBD wallet endpoint to verify key validity.
2

Creates or updates static charge linkage

Creates LNURL-backed payment destination for your identity.
3

Returns stable Lightning Address

Responds with { "lightningAddress": "name@zbd.ai" }.

API Endpoints

MethodRoutePurpose
POST/api/registerRegister or refresh agent identity
GET/.well-known/lnurlp/:usernameLNURL metadata resolution
GET/.well-known/lnurlp/:username?amount=<msat>Invoice generation callback

Request + Response

{ "apiKey": "<zbd-project-api-key>" }

Storage Backends

Local development and VPS-friendly.
  • Backend: file
  • Path: ~/.zbd-ai/agents.json (default)

Key Environment Variables

VariableDefault
ZBD_API_BASE_URLhttps://api.zbdpay.com
ZBD_AI_STORE_BACKENDauto-select
ZBD_AI_STORE_PATH~/.zbd-ai/agents.json
In serverless deployments, avoid relying on local filesystem persistence. Use a durable backend such as Vercel KV.