selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Mobazha logo

Self-host Mobazha

Peer-to-peer commerce for independent stores with crypto

BetaOpen SourceMPL-2.0
Updatedlast month
LanguageGo
Setup difficultyAdvanced
MobileResponsive
Stars
172
Ports
5102 (Embedded Web UI and HTTP API), 80 (HTTP (Caddy reverse proxy in Docker)), 443 (HTTPS (Caddy reverse proxy in Docker)), 4001 (IPFS swarm (P2P)), 9005 (IPFS swarm (P2P))
Docker
ghcr.io/mobazha/standalone
Install with Build from Source

What is Mobazha?

Mobazha is an open-source peer-to-peer commerce platform where sellers keep full ownership of their storefront, catalog, orders, and customer data while optionally connecting to shared marketplaces. The core component, called the Mobazha Node, acts as the commerce engine and the authoritative record for all store and transaction data. It provides APIs, messaging, payment verification, and administrative controls. The payment layer handles UTXO chains such as Bitcoin, Bitcoin Cash, Litecoin, and Zcash, plus EVM networks like BNB Smart Chain with native BNB and BEP-20 stablecoins. On EVM chains, each order creates a dedicated 2-of-3 Safe multisig contract (buyer, seller, moderator) deployed through the official SafeProxyFactory. The Node runs an embedded web interface and a versioned HTTP API on port 5102, with WebSocket and MCP endpoints. You can self-host by building from source with Go 1.26.4 on macOS or Linux, or by using a pre-release Docker Compose stack (ghcr.io/mobazha/standalone) that bundles Caddy for TLS and IPFS/libp2p for peer-to-peer networking. The current public release is v0.3.0-rc.1 (beta); stable signed binaries are not yet available. Local administration uses HTTP Basic auth, while automation uses scoped bearer tokens with an mbz_ prefix. The codebase is licensed under MPL-2.0, with some portions under the OpenBazaar MIT License.

Should you self-host Mobazha?

Mobazha scores 42/100 on selfhost.directory (how scoring works) and ranks #7 of 10 in E-commerce. It has 172 GitHub stars.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is MPL-2.0-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is BTCPay Server (76/100, 7 860 stars). It scores higher overall, so compare the two before you pick. See Mobazha vs BTCPay Server side by side.

Features

  • Automatic updates via systemd timerDocker Compose standalone deployment only
  • Background service management
  • Embedded Web UI and HTTP API
  • MCP (Model Context Protocol) Support
  • Multi-chain crypto paymentsAvailability conditional on runtime capabilities and seller configuration
  • On-chain escrow via Safe multisigEVM networks only
  • Overlay network support (Tor, Lokinet)Requires docker-compose.overlay.yml alongside docker-compose.yml
  • P2P networking via IPFS/libp2p
  • Peer-to-peer commerce
  • Testnet support

Mobazha README

How to install Mobazha

Install Mobazha with Build from Source

git clone https://github.com/mobazha/mobazha.git cd mobazha GOWORK=off go build -tags goolm -o mobazha . ./mobazha init --testnet ./mobazha start --testnet --open

Requires Go 1.26.4, Git, and macOS or Linux

How to configure Mobazha

  • ADMIN_PASSWORDInitial admin password (optional — if empty, a random one is generated and printed to logs)

    Initial admin password (optional — if empty, a random one is generated and printed to logs)

  • CONNECTIVITYnatConnectivity mode: public (has domain), tunnel (Cloudflare Tunnel), nat (libp2p only)

    Connectivity mode: public (has domain), tunnel (Cloudflare Tunnel), nat (libp2p only)

    values: public, tunnel, nat

  • --datadirdefault data directoryData directory path for the Node

    Data directory path for the Node

  • --openfalseOpen the embedded UI in browser on start

    Open the embedded UI in browser on start

    values: true, false

  • OVERLAY_DOMAINOverlay domain (e.g., your .loki or .onion address — auto-detected if empty)

    Overlay domain (e.g., your .loki or .onion address — auto-detected if empty)

  • OVERLAY_TYPEOverlay network type: lokinet or tor (leave empty for standard deployment)

    Overlay network type: lokinet or tor (leave empty for standard deployment)

    values: lokinet, tor

  • SAAS_API_URLhttps://app.mobazha.orgSaaS API URL for buyer identity and operations

    SaaS API URL for buyer identity and operations

  • SAAS_PEER_IDSaaS default node peer ID (enables remote management via SaaS proxy for NAT'd stores)

    SaaS default node peer ID (enables remote management via SaaS proxy for NAT'd stores)

  • STANDALONE_API_KEYAPI Key for authenticating with SaaS (generated by install.sh or manually)

    API Key for authenticating with SaaS (generated by install.sh or manually)

  • STORE_DOMAINYour domain name (leave empty for IP-only mode with self-signed TLS)

    Your domain name (leave empty for IP-only mode with self-signed TLS)

  • TAGstableDocker image tag (stable, beta, or edge)

    Docker image tag (stable, beta, or edge)

    values: stable, beta, edge

  • --testnetfalseRun on testnet instead of mainnet

    Run on testnet instead of mainnet

    values: true, false

  • TESTNETUse cryptocurrency testnets (true = test coins, no real money)

    Use cryptocurrency testnets (true = test coins, no real money)

    values: true, false

  • TLS_MODEinternalTLS mode for origin certificate: internal (self-signed cert, use when behind Cloudflare or any L7 proxy) or acme (Let's Encrypt auto-cert, use when domain points directly to this server)

    TLS mode for origin certificate: internal (self-signed cert, use when behind Cloudflare or any L7 proxy) or acme (Let's Encrypt auto-cert, use when domain points directly to this server)

    values: internal, acme

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…