Open-source project
Bitmessage/PyBitmessage avatar
Bitmessage/PyBitmessage

PyBitmessage: the reference client for a metadata-resistant P2P messaging protocol

Reference client for Bitmessage: a P2P encrypted decentralised communication protocol:

2,881 stars573 forksPythonNOASSERTION

At a glance

What is it?
PyBitmessage is the reference implementation of Bitmessage, a decentralised protocol that broadcasts encrypted messages over a peer-to-peer network instead of relaying them through servers. It is a Python 2 codebase with a Qt desktop client and a daemon mode, and its release history has been quiet since 2018.
Who is it for?
PyBitmessage is worth adopting if you want to study or run the reference implementation of a trustless broadcast protocol, particularly in daemon mode where the JSON-RPC interface and the Dockerfile give you something scriptable.
Can I use it commercially?
Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
Is it still maintained?
Yes. The repository last received commits 179 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • Bitmessage/PyBitmessage2,881 ★ · -5
Star history
Repository2026-10-042026-11-23
Bitmessage/PyBitmessage2.9k2.9k

-5 Stars in the last 50 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

What Bitmessage sends that a normal messenger does not

Bitmessage is a P2P communication protocol for sending encrypted messages to one person or to many subscribers. The README describes it as decentralised and trustless: you do not have to trust entities like root certificate authorities, authentication is strong enough that a sender cannot be spoofed, and the stated goal is to hide metadata from passive eavesdroppers such as warrantless wiretapping programmes, so sender and receiver stay anonymous.

The design target is therefore not convenience but the absence of a relay that knows who talked to whom. There is no account server holding your inbox, no certificate chain to validate, and no central party that can be compelled to hand over a conversation graph. PyBitmessage is the reference client for that protocol, written in Python, with a Qt desktop interface and a daemon mode. It is aimed at people who want to run a node themselves: protocol implementers, researchers looking at metadata-resistant messaging, and users who accept a heavier client in exchange for not depending on a provider.

How the reference client is put together

The repository is a setuptools project with a C++ extension and a Python package. setup.py declares an Extension named pybitmessage.bitmsghash.bitmsghash, built from src/bitmsghash/bitmsghash.cpp and linked against pthread and crypto. That extension carries the proof-of-work hashing used to make message flooding costly, which is why a C++ compiler is a build requirement rather than an optional extra.

The runtime dependencies are listed in requirements.txt: psutil, pycryptodome, six, coverage, plus PyQt5 for x86_64 on Python 3.7 and above, python_prctl on Linux, and xvfbwrapper below 0.2.10 on Linux. Optional features are split into extras in setup.py, so pygobject, stem for Tor, pyopencl and numpy for OpenCL mining, qrcode, notify2, pyxdg, defusedxml and jsonrpclib are each installed only if you ask for them.

The Dockerfile shows the intended deployment shape for a headless node. It builds from ubuntu:bionic, installs build-essential, libcap-dev, libssl-dev, python-all-dev, python-msgpack, python-pip and python-setuptools, then runs pip2 install jsonrpclib . before creating an unprivileged bitmessage user. It exposes 8444 and 8442, sets BITMESSAGE_HOME to /home/bitmessage, generates a default config with pybitmessage -t, deletes knownnodes.dat, messages.dat, debug.log and singleton.lock, and starts through launcher.sh with -d. Port 8444 is the peer-to-peer port and 8442 the JSON-RPC interface, and the cleanup step matters: the image is meant to start with no prior state.

Installing PyBitmessage and running a first daemon

The README points installation at the project wiki page titled Compiling instructions rather than giving steps inline, so treat that page as the authoritative source for your platform. The repository does supply a Dockerfile, and the sequence below follows it. The apt line installs the build toolchain and Python 2 development headers that the bitmsghash extension needs.

bash
apt-get update
apt-get install -yq --no-install-suggests --no-install-recommends \
    build-essential libcap-dev libssl-dev \
    python-all-dev python-msgpack python-pip python-setuptools

The image then installs the client itself together with the JSON-RPC helper, from the repository root. The trailing dot is the local source tree, not a package index entry.

bash
pip2 install jsonrpclib .

The Dockerfile generates a default configuration file and clears any leftover state before the daemon starts, so the container boots clean. The environment variable below is the one the Dockerfile sets, and it decides where the config and data files live.

bash
pybitmessage -t
rm -f knownnodes.dat messages.dat debug.log singleton.lock
bash
ENV BITMESSAGE_HOME /home/bitmessage

The container entrypoint is launcher.sh and the default command is -d, which the Dockerfile comments label as daemon mode. After startup you should see the client listening on 8444 for peers and 8442 for JSON-RPC, with a freshly generated configuration under BITMESSAGE_HOME. The README does not document rollback, migration between versions, or what to do when the generated config needs editing, so plan on reading the wiki and the protocol specification before changing anything.

Where the client is the wrong tool

The most concrete limitation is visible in the packaging. setup.py opens with a python2.7 shebang, the Dockerfile installs python-all-dev and python-pip and then calls pip2, and requirements.txt pins mock only for python_version<="2.7". A Python 2 codebase is a real constraint in 2026, not a cosmetic one, and it is the first thing to check against your platform's package availability.

The second limitation is the release history. The three most recent releases are v0.6.3 on 2018-02-13, 0.6.3.2 on 2018-02-13, and v0.6.2 on 2017-03-01. The first of those is described in the release list as an emergency release to fix an exploitable bug, and the second as more strict exploit mitigation. There is no later release to point at, so anyone deploying this should treat the published binaries and tags as the security baseline rather than assuming patches arrive on a schedule. The repository's last push was on 2026-05-29, which indicates work continues on the v0.6 branch, but branch activity is not the same as a shipped, reviewed release.

Finally, the client is not a drop-in replacement for a mainstream messenger. It is a full node that participates in a peer-to-peer network, carries a proof-of-work component, and expects you to manage keys and configuration files yourself. If your users need a chat app that installs from an app store and syncs across devices, this is the wrong layer of the stack.

How it differs from a federated or onion-routed messenger

The closest comparison is a federated messenger such as Matrix, where homeservers relay and store messages and federation lets servers talk to each other. In that model a server operator exists, and metadata about who sent what to whom lives on infrastructure that can be subpoenaed or breached. Bitmessage removes the server role entirely: nodes broadcast and the protocol's authentication means a sender cannot be impersonated. The trade is that you lose server-side history, offline delivery through a stable endpoint, and the operational tooling that comes with a hosted service.

Tor is a different kind of alternative and not a competing one. It hides the network path of a connection, while Bitmessage aims to hide the sender and receiver relationship in the message layer itself. That is why stem appears as a Tor extra in setup.py rather than as a replacement: the two are designed to be used together, and the README's claim about hiding metadata from passive eavesdroppers is a statement about the protocol, not about the transport underneath it.

Maintenance cost, licensing and what the repository actually tells you

The repository carries a COPYING file and a LICENSE file, and the project metadata reports the licence as NOASSERTION, meaning GitHub could not map the files to a recognised identifier. Read COPYING and LICENSE directly before you redistribute anything, and note that the README invites pull requests and asks that non-trivial features be described in an issue first. That is a contribution process, not a support contract.

Upgrade cost is dominated by the Python 2 dependency and the compiled extension. Any environment change that removes Python 2 development headers breaks the build, and the Dockerfile's base image, ubuntu:bionic, is part of that chain. The optional extras mean feature availability varies by install: Tor support needs stem, OpenCL mining needs pyopencl and numpy, QR codes need qrcode, and the JSON-RPC interface needs jsonrpclib. Two installs of the same version can therefore behave differently, which is worth knowing before you debug a missing capability. This is not legal advice; the licence files are the only authority on what you may do with the code.

Editorial conclusion

PyBitmessage is worth adopting if you want to study or run the reference implementation of a trustless broadcast protocol, particularly in daemon mode where the JSON-RPC interface and the Dockerfile give you something scriptable. It is the wrong choice if you need a messaging tool for daily use by non-technical people, because the install path documented by the project is a compile-and-pip workflow on Python 2 and the newest release listed is v0.6.3.2 from 2018-02-13, an emergency fix for an exploitable bug rather than a routine update. Before committing, read the protocol specification at pybitmessage.rtfd.io and confirm which Python version your platform still ships, since setup.py carries a python2.7 shebang and the Docker image is built on ubuntu:bionic.

Frequently asked questions

What is Bitmessage?

Bitmessage is a P2P communication protocol for sending encrypted messages to one person or to many subscribers. The README describes it as decentralised and trustless, with strong authentication so a sender cannot be spoofed, and a stated goal of hiding metadata from passive eavesdroppers so sender and receiver stay anonymous.

Which ports does PyBitmessage use?

The Dockerfile exposes 8444 and 8442. Port 8444 is the peer-to-peer port and 8442 is the JSON-RPC interface used by the daemon.

How do I run PyBitmessage without the desktop interface?

The Dockerfile builds a container for the PyBitmessage daemon, with launcher.sh as the entrypoint and -d as the default command. It also runs pybitmessage -t to generate a default config before startup.

What Python version does PyBitmessage need?

setup.py carries a python2.7 shebang, the Dockerfile installs python-all-dev and python-pip and then runs pip2 install, and requirements.txt pins mock for python_version<="2.7". PyQt5 is only pulled in for x86_64 on Python 3.7 and above.

Official sources

  1. Bitmessage/PyBitmessage on GitHub
  2. Issues
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/bitmessage-pybitmessage.svg)](https://hysenlabs.com/projects/bitmessage-pybitmessage)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/bitmessage-pybitmessage.svg)](https://hysenlabs.com/projects/bitmessage-pybitmessage)

Was this useful?