Skip to main content

Managed → Soberano (0% fee, full custody)

You started with ManagedProvider 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

Everything else — middleware setup, token verification, endpoint code — stays exactly the same.
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:
If you pinned a specific version, check the changelog for what’s new.

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:
Existing in-flight tokens keep working. The Supabase store starts recording from the moment it’s active — there’s no historical data to migrate.

In-memory → Redis

Providers

All provider options and setup

Production Guide

Deployment checklist