Run your own Nostr relay on StartOS with strfry
Your notes, your relay, your rules. strfry, the software behind some of Nostr's busiest relays, now runs on StartOS: keep a relay for yourself, your family or your community, and charge for it in sats if you like.
A Nostr relay is where your notes live. Most people post to relays someone else runs, so someone else decides what's kept, for how long, and who gets in. With strfry on your StartOS server, that someone is you. It's the same relay software that runs relay.damus.io, nos.lol and relay.primal.net, so a relay for you and your friends won't break a sweat.
strfry is on the StuPleb registry and runs on StartOS 0.4.2 or later.
What you can do with it
- Keep a copy of everything you post. Add your relay to your Nostr client alongside the public ones, and every note you publish also lands on hardware you own.
- Bring your history home. Import from Public Key copies your old notes from any relay, along with the replies, reactions and zaps around them if you want those too.
- Run a relay for your people. List the public keys that may post, and nobody else can fill your disk with spam.
- Never miss a reply. Inbox mode also stores the replies, reactions and direct messages anyone sends to the keys you list.
- Sell write access. Paid Access adds a sign-up page where anyone can buy the right to post, paid in sats straight to your own LNbits wallet or BTCPay Server store.
- Tidy up. Delete Events removes notes by author or event ID, and shows you what matches before it deletes anything.
Who can post
Reading is open: anyone who can reach your relay can read what it stores. Write Access decides whose events it stores, in one of three modes:
| Who can publish | Who gets in | Good for |
|---|---|---|
| Only the public keys below | The keys you list | Your own relay, or one for family and friends |
| The public keys below, and anyone tagging them | The keys you list, plus anyone replying to, reacting to or messaging them | An inbox that catches everything sent your way |
| Anyone | Everybody | A public relay, if you're ready for the spam |
Changes to the list take effect at once, with no restart. Blocked Public Keys are turned away in every mode, paid up or not.
Getting started
1. Add the StuPleb registry. In StartOS, go to System → Registries, click Add registry, enter startos.stupleb.xyz and click Add. StartOS trusts the registry's signing key from then on. The StartOS docs have more on this: Alternative Registries.
2. Install strfry. Open the Marketplace, choose StuPleb in the registry menu above the search field, find strfry and click Install.
3. List your key. Run the Write Access action, leave Who can publish on Only the public keys below, add your npub and save. Until a key is listed, your relay accepts nothing from clients, so don't skip this one.
4. Introduce your relay. Run Relay Info to give it a name, a description and your public key as its admin. Clients show these when they look your relay up.
5. Take it outside. At home, your relay works on its .local address. To reach it from your phone on the go, or to share it, open strfry's Relay interface, click Add Domain and add a public domain. The StartOS docs walk you through domains and gateways: Clearnet. Then run Set Relay URL and pick the wss:// address on that domain. Clients that sign in to a relay before posting can only do it on that address, so choose the one you'll actually use.
6. Add it to your client. Paste the wss:// address into your Nostr client's relay list and post away. Jumble, also on the StuPleb registry, works with it out of the box, sign-in included.
Bring your old notes with you
Import from Public Key fetches one key's notes from any relay, such as the public relay you've posted to for years, and stores them on yours. Turn on Include mentions to bring along the replies, reactions and zaps around them. Run it again whenever you like: it only fetches what's new. Some relays hand over only part of a long history, so it's worth importing from more than one.
Import from Relay copies a whole relay, or whatever a filter picks, from a relay that offers negentropy sync, such as a second strfry relay of your own. Most public relays turn that off, so for those, Import from Public Key is the one to use.
Imported notes are stored whatever Write Access says, so you can archive someone you follow without letting them post.
Selling write access
Here's the kind of setup Paid Access was built for. Say you run a relay for your local Bitcoin meetup. You and the two other organizers post for free, and everyone else pays 2,100 sats a year, straight into an LNbits wallet on the same server.
1. Keep your free list. In Write Access, choose Only the public keys below and list the three organizers. Listed keys never pay.
2. Get a key that can only take payments. In LNbits, open the wallet the sats should go to and copy its Invoice/read key from the wallet's API info. strfry refuses the Admin key, because that one can spend. Using BTCPay Server instead? Create an API key with only Create an invoice and View invoices, limited to your store.
3. Switch it on. Run Configure Paid Access, choose LNbits and paste the key. Under Where LNbits Runs, choose This server, and LNbits stays private: the sign-up page reaches it from inside your server. Set Price to 2,100 and Access per Payment to 1 year.
4. Give the sign-up page an address. A new Sign-up Page interface appears on strfry. Add a public domain to it, then check that Set Sign-up URL picked it. That's the address your relay hands to anyone who tries to post without paying, and the one it advertises as its payment page.
5. Share the page. A member opens it, enters their npub (or fills it in from a browser extension), pays the Lightning invoice and can post within seconds. The page speaks English, Spanish, German, Polish and French, following the visitor's browser.
Thirty members later, that's 63,000 sats in the wallet. Paid Members shows who has paid and until when, and paying again before the year is up adds another year on top. Edit Paid Member handles the rest: give a guest speaker a free year, change an expiry date, remove someone, or ban them outright.
Tips
- Fill in Relay Info first. The sign-up page shows your relay's name, description, icon, terms, privacy and contact links exactly as you entered them in Relay Info.
- A paid member isn't an inbox. In inbox mode, only your listed keys receive posts from anyone who tags them. Otherwise anyone could post for free just by tagging a paid member.
- Back up strfry, not just LNbits. Memberships live in strfry. Restoring LNbits on its own brings back the sats, not the members.
- Reading stays free. Members pay to post. Anyone who can reach the relay can still read everything on it.
- Mind your home IP. The import actions connect to other relays from your server. If you publish strfry through a tunnel to keep your home IP private, send its outbound traffic through that tunnel too.
- Block, then delete. An author who can still post can send deleted notes again, so take them off Write Access, or into Blocked Public Keys, before running Delete Events.
Order up
strfry on StartOS: served from your own server.
Contains notes. May contain zaps. Prepared on a server that also handles spam, but only if you choose Anyone.
Past zaps are no guarantee of future zaps. Sats sold separately, by your members.
2026-11-23