Hummingbot can be installed in two ways: using Docker for quick deployment, or from source for custom connector/strategy development.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/hummingbot/hummingbot/llms.txt
Use this file to discover all available pages before exploring further.
Docker Installation (Recommended)
The easiest way to get started with Hummingbot is using Docker. This method works on Linux, macOS, and Windows.Install Docker Compose
First, install Docker Compose on your system:
For detailed Docker installation instructions, visit the official Docker Compose documentation.
Run Setup
Execute the setup command to configure your environment:During setup, you’ll be prompted:
Should I include Gateway?
Should I include Gateway?
Answer y if you plan to:
- Trade on DEXs (Uniswap, SushiSwap, Raydium, etc.)
- Use AMM or CLMM strategies
- Connect to DeFi protocols
- Trade on centralized exchanges (Binance, Coinbase, etc.)
- Use CLOB strategies
Deploy Hummingbot
Start the Hummingbot container:This will build and start the Docker containers in the background.
Gateway Configuration
If you installed Gateway, you’ll need to configure it:Development vs Production ModeBy default, Gateway starts in development mode with unencrypted HTTP endpoints. For production use:
- Set the environment variable:
DEV=false - Generate SSL certificates:
gateway generate-certs(run inside Hummingbot) - Restart Gateway
Source Installation
Install from source if you plan to:- Develop custom connectors or strategies
- Modify core Hummingbot code
- Debug issues or contribute to the project
Prerequisites
Ensure you have the following installed:
- Python 3.10+ with development headers
- Anaconda or Miniconda (3.7+)
- build-essential (Linux) or Xcode Command Line Tools (macOS)
- git
Run Installation Script
The installation script will create a conda environment and install dependencies:For dYdX support (requires different dependencies):This script will:
- Create a conda environment named
hummingbot - Install Python dependencies from
setup/environment.yml - Install additional pip packages from
setup/pip_packages.txt - Set up pre-commit hooks
- On macOS, install the
appnopepackage
Compile Cython Extensions
Hummingbot uses Cython for performance-critical components:
You’ll need to recompile after making changes to
.pyx files. The ./compile script handles this automatically.Development Setup
If you’re developing custom code, you may want to install in editable mode:Verify Installation
Once Hummingbot is running, verify your installation:List Available Exchanges
binance, coinbase_advanced_trade, okx, etc.Troubleshooting
Docker: Permission denied
Docker: Permission denied
If you get permission errors when running Docker commands:Then log out and back in for changes to take effect.
Source: Compilation errors
Source: Compilation errors
If you encounter compilation errors:
-
Ensure you have the latest build tools:
-
Clean and rebuild:
Conda environment issues
Conda environment issues
If the conda environment fails to create or activate:
Missing TA-Lib
Missing TA-Lib
TA-Lib requires system libraries:
Next Steps
Quickstart Guide
Run your first trading bot
Connect Exchange
Set up API keys for your exchange
Choose a Strategy
Explore built-in strategies
Configure Gateway
Set up DEX trading (if installed)
For comprehensive troubleshooting, visit the Hummingbot documentation or ask in the Discord community.