The family chat that lives in your house — not in a cloud. No internet, no accounts, no company in the middle. If the grid goes down, this still works.
Add it to your home screenShare → “Add to Home Screen” and this page — and the chat itself — open like real apps, with this icon.
01HOW IT FITS TOGETHER
THE HOSTA computer or laptop at home runs one small file. That's the chat's home base — nothing leaves the house.
THE ADDRESS + PINWhen it starts, it shows an address like http://192.168.1.20:8787 and a family PIN. Window open = chat ON.
THE PHONESEveryone on the house WiFi opens the address, types a name and the PIN once, and chats. Phones remember it after that.
02DOWNLOAD — ALL YOU NEED
One folder. Inside it is everything: the chat, the double-click starters, the illustrated guide, the security audit, and the family card. Download it, put it on the host computer, and skip to Tutorial 1.
SHA-256 of the folder: 8a97bffa00af785d5c04f32fbf2126a33ff15ac380cbd8f2377686434ea9332d SHA-256 of the app file: 5d3c4e72cc17837788f02286256e51f1a062e0531ac06c35a50354ff63b38405
Paranoid in the right way? Verify the checksum after downloading — Windows: certutil -hashfile offgrid-chat.py SHA256 · Mac: shasum -a 256 offgrid-chat.py. If the numbers don't match the ones above, don't run the file.
03TUTORIAL 1 — SET UP THE HOST COMPUTER
Download the folder (above) onto the computer that will host the chat, and unzip it. Windows: right-click → Extract All. Mac: double-click the zip.
Double-click the starter for your system — start-windows.bat on Windows, start-mac.command on Mac. No terminal, no commands to type.
First-run prompts are normal. Windows firewall asks? Click Allow — it only listens on your house network. A Mac may offer to install Python — accept, then double-click the starter again.
If it says Python wasn't found (Windows): install it free from python.org/downloads, tick “Add python.exe to PATH” on the first screen, then double-click the starter again.
Leave the window open. It shows the chat address and the family PIN. Write the address on the family card; tell the family the PIN in person.
04TUTORIAL 2 — JOIN FROM A PHONE + MAKE IT AN APP
Connect the phone to the house WiFi.
Open the browser — Safari on iPhone, Chrome on Android.
Type the chat address exactly as the host window shows it, and tap Go.
Type your name and the family PIN, tap JOIN CHAT. First time only — the phone remembers both.
Type at the bottom, tap SEND. You're in. Rooms live in the # box at the top; the online list is behind the counter in the corner.
Make it one tap: while the chat is open, tap the Share button → Add to Home Screen. It gets the glowing tower icon and opens full-screen like a real app — no browser bars.
05TUTORIAL 3 — MAKE IT YOURS
Set your own PIN: create a file named pin.txt next to offgrid-chat.py with your PIN alone on the first line, then restart the chat. (Or set the OGC_PIN environment variable.) No pin.txt = a fresh random PIN every start.
Daily rhythm: double-click the starter to turn the chat on; close the window to turn it off. Message history clears when it stops — by design.
Address changed? Routers sometimes hand out a new one. The starter window always shows the current address — read it there and update the family card.
Best host habits: plugged in, awake, firewall on. If the host sleeps, the chat naps with it.
06SECURITY — ATTACKED, FIXED, VERIFIED
This chat was red-teamed before it was hardened: real attack probes from raw network clients against a running server, then the same probes again after the fixes. The full report ships in the folder as SECURITY.md. The short version:
Attack
Before
Now
Join without permission / impersonate anyone
Wide open
Family PIN required — no PIN, no history, no messages
Guess the PIN forever
—
5 wrong tries = connection cut + 10-minute ban
Flood the server with giant headers
unbounded (781 KB held)
Cut off at 16 KB, 10-second deadline
Pin the server with fake giant messages
one thread stuck per fake
Claims over 64 KB refused before reading
Spam-flood everyone's screen
300 of 300 delivered
Rate-limited: 10 of 300 got through, then disconnect
Inject scripts through messages
already safe
Still safe — text-only rendering + strict page policy
About this website: it's static — no logins, no forms, no cookies, no trackers, no third-party anything; every file is local. It also ships with locked-down security headers (scripts forbidden, framing denied, referrers suppressed). And the chat itself never runs here: this site is the manual and the download shelf. The chat runs on your computer at home — that's what makes it off-grid.
Honest limits, always: the PIN is a shared family secret, not per-person accounts — anyone with it can join under any name. Traffic inside the house isn't end-to-end encrypted (your WiFi's WPA2/WPA3 covers the air). And a web page can't do Bluetooth mesh like the native BitChat app — this chat uses one host computer on your WiFi instead. Details in SECURITY.md.
07TROUBLESHOOTING
The page won't load on a phonePhone and host must be on the same WiFi, the host window must be open, and the address must match it exactly.
“Wrong PIN”The PIN changes at every restart unless you set your own. Read the current one from the host window. Five wrong tries locks that phone out for 10 minutes — that's the lockout working, not a bug.
The name box does nothingYou're looking at the chat page with no host behind it — usually the page opened as a downloaded file, or uploaded to a website. The fix is always the same: open the address the host window prints, in the phone's browser.
It worked yesterday, not todayHost off, asleep, or the router gave it a new address. Start the starter, read the address fresh.
Can people outside the house join?No — and that's the point. It exists only on your home WiFi, behind your family PIN. Keep both the WiFi password and the PIN in the family.