The project's README from github.com/permissionlesstech/bitchat. As one markdown file: README.md.
A decentralized peer-to-peer messaging app with dual transport architecture: local Bluetooth mesh networks for offline communication and internet-based Nostr protocol for global reach. No accounts, no phone numbers, no central servers. It's the side-groupchat.
Install from the App Store, or build from source you have verified. A compiled build from anywhere else cannot be verified — see Verifying bitchat for how to check source against the per-release hash manifest, and for what to do if that is the only build you can get.
This matters more than it usually would: this repository has been the target of takedown demands, and when a repository or releases page disappears, mirrors appear that nobody can check.
This project is released into the public domain. See the LICENSE file for details.
v2: fallback) over NostrGroupProtocol) with ChaCha20-Poly1305 encryption, Ed25519-signed membership/epoch updates, and dual mesh + Nostr deliveryIdentityRecoveryKit) and short-lived copy/paste encrypted device-linking codes with a 6-digit PIN (DeviceLinkingService)/slap, /msg, /who style interfaceBitChat uses a hybrid messaging architecture with two complementary transport layers:
relays/online_relays_gps.csv)v2: XChaCha20-Poly1305 envelopesBitChat supports both standard NIP-17 / NIP-44 v2 / NIP-59 encrypted
envelopes (for interoperability with standard Nostr clients and linked-device
self-copies) and BitChat's legacy v2:-prefixed XChaCha20-Poly1305 format
inside kind-1059 events for backward compatibility with older BitChat clients.
mesh #bluetoothbuilding #dr5rsj7g, block #dr5rsj7, neighborhood #dr5rsj, region #dr)building (8 chars): Building/venue levelblock (7 chars): City block levelneighborhood (6 chars): District/neighborhoodcity (5 chars): City levelprovince (4 chars): State/provinceregion (2 chars): Country/large regionPrivate messages use intelligent transport selection:
Bluetooth First (preferred when available)
Nostr Fallback (when Bluetooth unavailable)
v2: XChaCha20-Poly1305 interoperability)Smart Queuing (when neither available)
For detailed protocol documentation, see the Technical Whitepaper.
open bitchat.xcodeproj
For a signed device build, create your ignored local configuration and replace the example team ID with your Apple Developer Team ID:
cp Configs/Local.xcconfig.example Configs/Local.xcconfig
Local.xcconfig.example configures DEVELOPMENT_TEAM, PRODUCT_BUNDLE_IDENTIFIER, APP_GROUP_ID, and PUSH_KEYCHAIN_GROUP from that team ID. The entitlement files already reference these build settings ($(APP_GROUP_ID) and $(PUSH_KEYCHAIN_GROUP)), so tracked project or entitlement files do not need to be edited.
Useful command-line checks from the repository root:
# macOS Debug build without signing
xcodebuild -project bitchat.xcodeproj -scheme "bitchat (macOS)" \
-configuration Debug CODE_SIGNING_ALLOWED=NO build
# Full SwiftPM test suite
swift test
# iOS simulator tests
xcodebuild -project bitchat.xcodeproj -scheme "bitchat (iOS)" \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 17' test
If iPhone 17 is unavailable, choose an installed simulator from:
xcodebuild -showdestinations -project bitchat.xcodeproj -scheme "bitchat (iOS)"
justbrew install just
just check
just run
just build and just run use the current bitchat (macOS) scheme and keep
Xcode output in the ignored .DerivedData/ directory. They never patch source,
project, configuration, or entitlement files.
just clean removes only .DerivedData/ and .build/. It does not invoke Git
or restore tracked files, so uncommitted work is preserved. just test runs the
SwiftPM suite and just test-ios runs the iPhone 17 simulator suite.
bitchat/Localizable.xcstrings (61 locales). At runtime, plain strings ship compressed in bitchat/Resources/Localizations.zlib, CLDR plural/substitution entries ship in bitchat/Resources/LocalizablePlurals.xcstrings, and system permission prompts ship in bitchat/Resources/InfoPlist.xcstrings.bitchatShareExtension/Localization/Localizable.xcstrings (61 locales), and Notification Service Extension strings live in bitchatNotificationServiceExtension/Localization/Localizable.xcstrings (61 locales).app_info.features.offline.title) and reuse existing ones where possible. After editing bitchat/Localizable.xcstrings, regenerate the compressed and plural catalogs with python3 scripts/compress_localizations.py --input bitchat/Localizable.xcstrings --zlib-out bitchat/Resources/Localizations.zlib --plurals-out bitchat/Resources/LocalizablePlurals.xcstrings and verify 61-locale parity with swift test --filter LocalizationCoverageTests.xcodebuild -project bitchat.xcodeproj -scheme "bitchat (macOS)" -configuration Debug CODE_SIGNING_ALLOWED=NO build to compile-check any localization updates.