Gateway runs as a separate service alongside Hummingbot. The easiest way to install both is using Docker Compose.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.
Prerequisites
Before installing Gateway, ensure you have:- Docker installed and running
- Docker Compose installed
- At least 4GB of available RAM
- A wallet with private keys for the chains you want to trade on
Installation with Hummingbot
The simplest way to install Gateway is during the Hummingbot setup process.Step 1: Clone the Repository
Clone the Hummingbot repository:Step 2: Run Setup with Gateway
Run the setup script and answery when prompted to include Gateway:
y and press Enter to include Gateway in your deployment.
The setup script will automatically configure the
docker-compose.yml file to include both Hummingbot and Gateway services.Step 3: Deploy the Containers
Start both Hummingbot and Gateway:- Pull the latest Hummingbot and Gateway Docker images
- Create necessary configuration directories
- Start both containers
- Set up networking between Hummingbot and Gateway
Step 4: Attach to Hummingbot
Once the containers are running, attach to the Hummingbot client:Verifying the Installation
After installation, verify that Gateway is running correctly:Check Gateway Status
In the Hummingbot client, run:You should see output indicating Gateway is online and connected.
List Available Connectors
Check which Gateway connectors are available:This displays all supported chains and DEX protocols.
Development vs Production Modes
Gateway can run in two different modes:- Development Mode (Default)
- Production Mode
Development Mode
By default, Gateway starts in development mode with these characteristics:- Protocol: Unencrypted HTTP
- Port: 15888
- Authentication: None
- Certificates: Not required
- Local development and testing
- Learning how Gateway works
- Running on trusted local networks
Switching to Production Mode
To enable production mode with HTTPS:Generate Certificates
From within Hummingbot, generate SSL certificates:This creates the necessary certificate files in the
certs/ directory.The
generate-certs command creates:ca_cert.pem- Certificate Authority certificateclient_cert.pem- Client certificateclient_key.pem- Client private key
Manual Installation
If you need to install Gateway separately or from source:Install from Source
Docker Standalone
Run Gateway as a standalone Docker container:Directory Structure
After installation, Gateway uses the following directory structure:Updating Gateway
To update to the latest Gateway version:Troubleshooting
Gateway shows as offline
Gateway shows as offline
Check that the Gateway container is running:View Gateway logs:Verify network connectivity between containers:
Connection refused errors
Connection refused errors
This usually indicates:
- Gateway container is not running
- Port 15888 is blocked or already in use
- Firewall rules blocking communication
Certificate errors in production mode
Certificate errors in production mode
Ensure certificates were generated correctly:You should see
ca_cert.pem, client_cert.pem, and client_key.pem.If missing, regenerate:Memory or performance issues
Memory or performance issues
Gateway requires adequate resources. Increase Docker memory allocation:
- Docker Desktop: Settings → Resources → Memory (minimum 4GB)
- Linux: Modify Docker daemon settings
Next Steps
Configuration
Configure wallets, chains, and connectors
Supported Chains
View all available blockchains and DEXs
CLI Commands
Learn Gateway-related CLI commands
AMM Arbitrage Strategy
Start trading on DEXs