Skip to content

Install from Source

This method is recommended for developers and users who need to modify Hummingbot's source code. Most users should prefer Docker installation.

Install Dependencies

XCode Command Line Tools

xcode-select --install
Miniconda

MacOS with Intel x86:

curl -o Miniconda3-latest-MacOSX-x86_64.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
bash Miniconda3-latest-MacOSX-x86_64.sh

MacOS with Apple Silicon:

curl -o Miniconda3-latest-MacOSX-arm64.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh
bash Miniconda3-latest-MacOSX-arm64.sh

Install / Update Dependencies

sudo apt update && sudo apt upgrade -y && sudo apt install -y build-essential
Install Miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh

Install WSL2 and Ubuntu using the following command. This may take a while to complete and might need to restart your computer.

wsl --install -d Ubuntu

Note

Run all install commands below in an Ubuntu terminal, not Windows Command Prompt / PowerShell

Installation Steps

Clone the repository

git clone https://github.com/hummingbot/hummingbot.git
cd hummingbot

Install the environment and dependencies

./install

Activate the environment

conda activate hummingbot

Compile the code

./compile

Launch Hummingbot

./start

You should see the Hummingbot welcome screen:

welcome screen

To get started with Hummingbot, check out the following pages and guides:

Dev Branch | Older Versions

If you need to install the development branch or an older version of Hummingbot, follow these steps:

Development Branch

To use the latest development version, first clone the repository and then switch to the development branch:

git clone https://github.com/hummingbot/hummingbot.git
cd hummingbot
git checkout development
git pull origin development  # Ensure you have the latest updates

Previous Versions

To install a specific older version, first list the available tags to find the correct version:

git tag

Once you've identified the desired version (e.g., v2.1.0), switch to it using:

git checkout v2.1.0

The tags for previous versions follow this format: vx.x.x (e.g., v2.1.0).


Gateway: Required for DEX Trading

Essential for Decentralized Exchanges

Gateway must be installed separately to trade on these supported DEXs:
- Uniswap (Ethereum)
- PancakeSwap (BNB Chain)
- Trader Joe (Avalanche)
- dYdX (Starkware)
- And 30+ others

Gateway acts as middleware that enables Hummingbot to interact with blockchain-based decentralized exchanges. To set up, follow the instructions in Gateway - Installation to generate certificates and connect Gateway to Hummingbot.