Managed → Soberano (0% fee, full custody)
You started withManagedProvider because it’s the fastest way to get running. When you’re ready for full custody and 0% fee, the migration is one line.
1
Set up your Lightning provider
Pick a soberano provider. Blink is free, no KYC, instant setup.
2
Swap the provider — one line
3
Deploy
Tokens issued by the managed provider continue to work after migration. Verification is pure crypto (
SHA256(preimage) == paymentHash) — it has no dependency on which provider created the invoice.There is no migration window, no downtime, no database to update.Already-paid tokens issued under ManagedProvider remain valid after switching providers. The macaroon only contains a hash and an expiry — no provider-specific data.
Switch between soberano providers
Same pattern — swap the provider instance, nothing else changes.v1.x → v1.8 (current)
No breaking changes. The SDK is additive — new providers, new agent utilities, new replay adapters. Upgrade with:Framework migration
Express → Fastify
Express → Hono (Cloudflare Workers)
Flask → FastAPI
Replay store migration
In-memory → Supabase
Set environment variables — the middleware auto-detects and switches:In-memory → Redis
Providers
All provider options and setup
Production Guide
Deployment checklist