Hummingbot uses YAML configuration files to store strategy settings, connector credentials, and global configurations. This guide explains the structure and locations of these files.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.
Configuration Directory Structure
All configuration files are stored in theconf/ directory within your Hummingbot installation:
The
conf/ directory is created automatically on first run. Configuration files are encrypted using your password when they contain sensitive information like API keys.Configuration File Types
Client Configuration (conf_client.yml)
The main client configuration file contains global settings that apply to all strategies:
client.yml
Strategy Configuration Files
Strategy configs are stored inconf/strategies/ and follow the naming pattern conf_{strategy_name}_{index}.yml:
conf_pure_mm_1.yml
Connector Configuration Files
Connector configs inconf/connectors/ store encrypted API credentials:
binance.yml
API keys and secrets are automatically encrypted using your Hummingbot password. See the Security page for details.
Configuration File Locations
Default Paths
Hummingbot uses these default paths (defined inhummingbot/client/settings.py):
Accessing Config Files Programmatically
You can access configuration helpers from the codebase:Template Files
Template files inhummingbot/templates/ serve as blueprints for new configurations:
conf_fee_overrides_TEMPLATE.yml- Fee override templateconf_pure_market_making_strategy_TEMPLATE.yml- Pure MM strategy templatehummingbot_logs_TEMPLATE.yml- Logging configuration template
Example: Pure Market Making Template
Example: Pure Market Making Template
Configuration Version Control
Each configuration file includes atemplate_version field:
- Backs up the old configuration
- Creates a new config from the latest template
- Migrates your settings to the new format
Common Configuration Tasks
Create New Strategy
Use
create command to generate a new strategy config from templateImport Existing Strategy
Use
import command to load and activate a saved strategy configList All Configs
Use
config command to view current configuration valuesEdit Configurations
Stop bot, edit YAML files directly, then restart
Best Practices
Use Version Control
Consider using git to track changes to your strategy configurations (exclude connector files with API keys)
Related Resources
Security
Learn about encryption and API key security
Global Settings
Configure global client settings
Paper Trading
Set up paper trading mode