Installation
Bark provides multiple installation methods depending on your use case. Choose the option that best fits your needs.Prerequisites
Before installing Bark, ensure you have:- Rust toolchain (v1.74.0 or later) - Required for compilation
- Git - For cloning the repository
- Build essentials - Standard development tools (gcc, make, etc.)
Quick install (from source)
The fastest way to get started is to compile from source:Build the binaries
Build all binaries (bark, barkd, and captaind):The compiled binaries will be in
target/release/:bark- CLI walletbarkd- REST daemoncaptaind- Ark server
Installation methods
Option 1: Nix (Recommended for development)
The Nix package manager provides a development environment with all dependencies pre-configured:The Nix flake includes all build dependencies, bitcoind, lightningd, and PostgreSQL for testing.
Option 2: Manual dependency setup
If you prefer not to use Nix, install dependencies manually. The exact packages depend on your system.Debian/Ubuntu
macOS
Rust toolchain
Option 3: Docker (for server deployment)
Run captaind in a Docker container:Verify installation
After installation, verify that the binaries work:Component-specific installation
Installing only bark CLI
If you only need the CLI wallet:Installing only barkd daemon
If you only need the REST daemon:Installing captaind server
For running an Ark server:Using as a Rust dependency
Add Bark libraries to yourCargo.toml:
The
onchain_bdk feature enables on-chain wallet functionality using BDK. Omit it if you only need off-chain Ark operations.Additional tools for development
If you’re contributing to Bark or running tests, install these additional tools:just command runner
PostgreSQL (for server testing)
bitcoind and lightningd (for integration tests)
These are required for running integration tests:Network selection
Bark supports multiple Bitcoin networks. Choose the appropriate network for your use case:| Network | Purpose | Flag |
|---|---|---|
| Signet | Default test network, recommended for development | --signet |
| Regtest | Local testing with full control | --regtest |
| Mutinynet | Alternative signet | --mutinynet |
| Mainnet | Production (⚠️ experimental, not recommended) | --mainnet |
Next steps
Now that Bark is installed, continue to:Quickstart guide
Make your first Ark transaction
CLI reference
Learn bark CLI commands
Configuration
Configure your wallet
Wallet integration
Integrate Bark into your app