A minimal, clean deployment of Hanzo Chat with AI branding and custom tools.
# Initialize environment (copy template if missing)
cp .env.example .env
# Start AI Chat
make up
# View logs
make logs
# Stop
make down
AI Chat will be available at http://localhost:3081
chat/
├── .env # Branding and configuration
├── docker-compose.yml # Main services
├── compose.prod.yml # Production overrides
├── Makefile # Simple commands
├── branding/ # Custom assets
│ ├── logo.svg
│ └── favicon.svg
├── tools/ # Custom MCP tools
│ └── financial/ # Financial analysis tools
├── models.yaml # Custom model endpoints
└── data/ # Persistent storage
cp .env.example .env
# Brand Configuration
BRAND_NAME=AI
BRAND_TITLE=AI Chat
BRAND_DESCRIPTION=AI-Powered Financial Document Analysis
BRAND_PRIMARY_COLOR=#6B46C1
# API Keys - Uncomment and add your keys
# OPENAI_API_KEY=sk-...
# ANTHROPIC_API_KEY=sk-ant-...
# Or use local API
# LOCAL_API_URL=http://localhost:4000/v1
Important: Don't leave API keys empty (OPENAI_API_KEY=
) as this will override system environment variables. Either set a value or comment out the line.
endpoints:
- name: "AI Finance Models"
baseURL: "${LOCAL_API_URL}"
models:
- ai-financial-v1
- ai-credit-v1
Place MCP tool configurations in the tools directory:
tools/
├── financial/
│ ├── config.json
│ └── server.js
└── credit/
├── config.json
└── server.js
- Dynamic Branding: All branding controlled via
BRAND_*
environment variables - Custom Tools: Mount your own MCP tools in
/tools
- Custom Models: Configure additional model endpoints
- Demo Mode: Automatic demo login on localhost
- Production Ready: Includes production compose file with SSL, monitoring
When DEMO_MODE=true
, SHOW_DEMO_LOGIN=true
, and running on localhost:
- Email:
${DEMO_EMAIL}
- Password:
${DEMO_PASSWORD}
# Configure production domain
echo "DOMAIN=chat.ai.ai" >> .env.prod
# Start with production config
make prod
# Run tests to verify branding and tools
make test
This runs:
- Branding verification
- Custom tool availability
- Model endpoint connectivity
- Demo login functionality
- Branding: Update
BRAND_*
variables in.env
- Tools: Add MCP servers to
tools/
- Models: Configure endpoints in
models.yaml
- Assets: Replace files in
branding/
- Docker & Docker Compose
- API keys (OpenAI/Anthropic) OR local LLM endpoint
- Documentation: https://ai.ai/docs
- Issues: https://github.com/hanzoai/chat/issues