百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
B

bitchat-tui

> 数据库
开源

在终端中进行安全、匿名的点对点 (P2P) 蓝牙聊天。使用 Rust 构建的离网加密 TUI 即时通讯工具。

358 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

在终端中进行安全、匿名的点对点 (P2P) 蓝牙聊天。使用 Rust 构建的离网加密 TUI 即时通讯工具。

bitchat-tui - Terminal UI Client for BitChat

A modern Terminal User Interface (TUI) client for BitChat, a secure, anonymous, and peer-to-peer chat protocol that runs over Bluetooth Low Energy (BLE). Communicate completely off-grid with end-to-end encryption, public channels, and direct messaging, all from your terminal.

Showcase

Watch bitchat-tui in action! See how easy it is to use secure, anonymous Bluetooth messaging with our intuitive terminal interface.

https://github.com/user-attachments/assets/9b5ad6f4-2d90-41d4-8344-ba7c8108b2a2

Universal Install Script

The easiest way to install bitchat-tui on Linux, macOS, or Windows:

bash
curl -sSfL https://raw.githubusercontent.com/vaibhav-mattoo/bitchat-tui/main/install.sh | sh

This script will automatically detect your system and install the appropriate binary for your platform.

[!NOTE] Remember to add ~/.local/bin to your $PATH if prompted by the install script, by adding export PATH="$HOME/.local/bin:$PATH" at the end of your shell config file (~/.bashrc, ~/.zshrc, etc).

From Cargo

cargo install bitchat-tui

[!NOTE] If you are on Windows and get linker link.exe not found or the msvc targets depend on the msvc linker but link.exe was not found then you need to download Microsoft Visual C++ Build Tools. Go to https://visualstudio.microsoft.com/visual-cpp-build-tools/ download the installer for your version, during installation check the box "Desktop development with C++" and reboot after the install completes.

From Homebrew (macOS & Linux)

bash
brew tap vaibhav-mattoo/bitchat-tui
brew install bitchat-tui

From AUR (Arch Linux)

Using yay or paru:

yay -S bitchat-tui
# or
paru -S bitchat-tui

From Source

bash
git clone https://github.com/vaibhav-mattoo/bitchat-tui.git
cd bitchat-tui
cargo install --path .

[!NOTE] Building from source requires Rust to be installed on your system. This method works on Linux, macOS, and Windows.

Table of Contents

  • Showcase
  • Installation
    • Universal Install Script
    • From Cargo
    • From Homebrew (macOS & Linux)
    • From AUR (Arch Linux)
    • From Source
  • Quick Start
  • Features
  • TUI Navigation
    • Key Bindings
  • In-App Commands
    • General Commands
    • Navigation Commands
    • Messaging Commands
    • Channel Management
    • Discovery Commands
    • Privacy & Security
  • TUI Navigation & Interface
    • Navigation & Chat Switching
    • Notification System
  • Cryptography & Security
    • Key Exchange
    • Encryption
    • Authentication
    • Channel Passwords
  • Use Cases
  • Contributing
  • Uninstallation
  • License

Quick Start

Launch the BitChat TUI client directly from your terminal:

bitchat-tui

The app will immediately start scanning for other BitChat users. Once a peer is found, it will connect automatically and you'll be placed in the #public chat room.

[!IMPORTANT] If you see "Found bitchat service! Connecting..." but the device doesn't respond in time, you can retry the connection by pressing r on the error screen, or exit with Ctrl+C and run the app again.

Type messages in the input box and press Enter to send. Use /help to see a list of all available commands.

✨ Features

  • Modern TUI Interface: Clean, responsive terminal interface built with Ratatui for an intuitive user experience
  • BitChat Protocol Support: Full implementation of the BitChat messaging protocol with all features
  • Secure & Anonymous: All communication is end-to-end encrypted. No phone number, email, or account is required. Your identity is ephemeral and tied only to your session keys.
  • Peer-to-Peer Mesh: Communicates directly with other BitChat clients over Bluetooth Low Energy. No internet connection or central server is needed.
  • Public & Private Channels: Chat with everyone in the public room, or create/join private, password-protected channels for group conversations.
  • Direct Messaging (DMs): Engage in secure, one-to-one conversations with any user on the network.
  • Smart Navigation: Easy switching between public chat, channels, and DMs using the intuitive sidebar interface.
  • Notification System: Visual indicators for unread messages, connection status, and active conversations.
  • User & Channel Lists: The sidebar provides an at-a-glance view of online users and the channels you've joined.
  • Message Fragmentation: Large messages are automatically split into smaller chunks and reassembled by the receiving client, ensuring reliable delivery.
  • Cross-Platform: A single binary that runs on Linux, macOS, and Windows with native Bluetooth support on all platforms.

TUI Navigation

The Terminal User Interface (TUI) is designed for intuitive keyboard-only operation and provides a modern, responsive interface for the BitChat protocol.

Key Bindings

  • Tab: Switch focus between the Sidebar, Main Panel, and Input Box.
  • ↑ / ↓: Navigate lists in the sidebar or scroll through messages in the main panel.
  • Enter:
    • In Sidebar: Select a channel/user to chat with, or expand/collapse a section.
    • In Input Box: Send your message or command.
  • Ctrl+C: Exit the application.
  • PgUp / PgDn: Page up/down through the chat history in the main panel.
  • Home / End: Jump to the start/end of the chat history.
  • r (on error screen): Attempt to reconnect.

In-App Commands

Type these commands into the input box to manage your chat experience.

General Commands

  • /help: Displays a list of all available commands.
  • /name : Changes your nickname for the current session.
  • /status: Shows connection information and current status.
  • /clear: Clears all messages from the current conversation view.
  • /exit: Quits the application.

Navigation Commands

  • /public: Returns to the public chat room.

Messaging Commands

  • /dm [message]: Starts a private Direct Message with a user. Optionally sends an initial message.
  • /reply: Quick reply to the last person who sent you a private message.

Channel Management

  • /j # [password]: Joins a channel. If the channel is password-protected, provide the password.
  • /leave: Leaves the current channel and returns you to #public.
  • /pass : Sets a password for a channel you created (owner only).
  • /transfer @: Transfers channel ownership to another user (owner only).
  • /channels: Lists all channels you have discovered or joined.

Discovery Commands

  • /online or /w: Lists all users currently visible on the network.

Privacy & Security

  • /block @: Blocks all messages from a specific user.
  • /block: Lists all currently blocked users.
  • /unblock @: Unblocks a previously blocked user.

TUI Navigation & Interface

Navigation & Chat Switching

Switching Between Conversations

  • Public Chat: Select "Public" in the sidebar to return to the main public chat room.
  • Channels: Select any channel name in the "Channels" section of the sidebar to switch to that channel.
  • Direct Messages: Select a user's name in the "People" section to start or continue a DM conversation.

Sidebar Sections

  • Public: The main public chat room where all users can see your messages.
  • Channels: List of channels you've joined. Click to switch to a channel.
  • People: List of online users. Click to start a private DM conversation.
  • Blocked: Users you've blocked (if any).

Notification System

The TUI provides several visual indicators to keep you informed:

Unread Message Indicators

  • Channel Badges: Channels with unread messages show a count in the sidebar.
  • User Badges: Users with unread DMs show a count next to their name.
  • Section Counters: Each sidebar section shows total unread messages.

Status Indicators

  • Connection Status: Shows "Connected" or "Connecting" in the status bar.
  • Current Chat: Displays the active conversation name in the status bar.
  • Message Status: Visual feedback when messages are sent successfully.

Visual Feedback

  • Color Coding: Different colors for different message types (public, channel, DM).
  • Highlighting: Selected items in the sidebar are highlighted.
  • Scroll Position: Visual indicator shows your position in the message history.

Cryptography & Security

BitChat is built with security and privacy as a first principle. All communication is protected by a modern cryptographic stack.

Key Exchange

  • X25519: Ephemeral keys are generated for each session. The X25519 algorithm is used for an Elliptic Curve Diffie-Hellman (ECDH) key exchange to establish a secure, shared secret with each peer.

Encryption

  • AES-256-GCM: All messages (public, channel, and DM) are encrypted using AES in Galois/Counter Mode with a 256-bit key derived from the shared secret. This provides both confidentiality and integrity.

Authentication

  • Ed25519: Each peer generates an ephemeral Ed25519 key pair to sign communications, ensuring that messages are authentic and originate from the claimed sender.

Channel Passwords

  • PBKDF2-SHA256: When you set a password for a channel, a symmetric key is derived from it using PBKDF2 with 100,000 rounds of HMAC-SHA256, making it computationally difficult to brute-force.

Use Cases

BitChat is perfect for any situation where you need to communicate without relying on internet infrastructure. This TUI client makes it easy to use BitChat from any terminal environment.

  • Public Events: Create a local chat network at concerts, festivals, or protests.
  • Remote Areas: Stay in touch with your group while hiking, camping, or in areas with no cell service.
  • Classrooms or Offices: Set up a quick, local communication channel for a specific room or building.
  • Privacy-Focused Communication: Chat with others without leaving a digital footprint on a centralized server.
  • Terminal-Only Environments: Perfect for servers, embedded systems, or minimalist computing setups.

Contributing

We welcome contributions from the community! Help us improve bitchat-tui by:

  • Bug Fixes: Report and fix issues to make the app more stable
  • New Features: Add functionality to enhance the user experience
  • Security Enhancements: Improve the cryptographic implementation and security model
  • Documentation: Help improve guides and documentation

To get started, fork the repository, create a feature branch, and submit a pull request.

️ Uninstallation

To uninstall bitchat-tui and remove its configuration files, you can run the universal uninstall script:

bash
curl -sSfL https://raw.githubusercontent.com/vaibhav-mattoo/bitchat-tui/main/uninstall.sh | sh

Or download and run the script manually:

bash
curl -sSfL https://raw.githubusercontent.com/vaibhav-mattoo/bitchat-tui/main/uninstall.sh -o uninstall.sh
chmod +x uninstall.sh
./uninstall.sh

License

This project is licensed under the MIT License - see the LICENSE file for details.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustanonymousbluetoothbluetooth-low-energycommand-line

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库