Hanzo
Hanzo Chat

Hanzo Chat

AI chat platform with Zen models, 100+ third-party models, MCP tools, agents, file uploads, and RAG. Self-host or use hosted at chat.hanzo.ai.

Hanzo Chat

Hanzo Chat is a production-ready AI chat platform built on LibreChat. It ships first-party Zen models alongside 100+ third-party models from OpenAI, Anthropic, Google, Meta, Mistral, Together, and Groq. Built-in MCP tool support, configurable agents, file uploads with RAG, vision, conversation history, presets, and plugins make it a complete chat solution.

Available as a hosted service at chat.hanzo.ai or self-hosted via Docker.

Quick Start

  1. Sign in with your Hanzo account
  2. Your $5 free credit is applied automatically
  3. Select a model and start chatting

Self-Hosted

git clone https://github.com/hanzoai/chat
cd chat
cp .env.example .env
# Edit .env with your HANZO_API_KEY
docker compose up -d
# Open http://localhost:3081

API

curl https://api.hanzo.ai/v1/chat/completions \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "zen4",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

SDK Usage

Python

from openai import OpenAI

client = OpenAI(
    api_key="hk-your-api-key",
    base_url="https://api.hanzo.ai/v1"
)

response = client.chat.completions.create(
    model="zen4",
    messages=[{"role": "user", "content": "Hello, Zen."}]
)
print(response.choices[0].message.content)

TypeScript

import OpenAI from 'openai'

const client = new OpenAI({
  apiKey: process.env.HANZO_API_KEY,
  baseURL: 'https://api.hanzo.ai/v1',
})

const completion = await client.chat.completions.create({
  model: 'zen4',
  messages: [{ role: 'user', content: 'Hello, Zen.' }],
})
console.log(completion.choices[0].message.content)

Architecture

┌─────────────────────────────────────────────────────────────┐
│                        HANZO CHAT                           │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────────┐  │
│  │ React Client │  │ Node.js API  │  │    MongoDB       │  │
│  │              │  │              │  │                  │  │
│  │ - Chat UI    │  │ - REST API   │  │ - Messages       │  │
│  │ - Model Sel  │  │ - WebSocket  │  │ - Conversations  │  │
│  │ - File Upload│  │ - MCP Broker │  │ - Users          │  │
│  │ - Agents     │  │ - Auth       │  │ - Presets        │  │
│  └──────────────┘  └──────────────┘  └──────────────────┘  │
│                                                             │
│  ┌─────────────────────────────────────────────────────┐    │
│  │              Provider Layer (LLM Gateway)            │    │
│  │  Zen · OpenAI · Anthropic · Google · Meta · …       │    │
│  └─────────────────────────────────────────────────────┘    │
│                                                             │
│  ┌─────────────────────────────────────────────────────┐    │
│  │  Search       │  Redis  │  MinIO  │  RAG API       │    │
│  └─────────────────────────────────────────────────────┘    │
│                                                             │
└─────────────────────────────────────────────────────────────┘

Endpoints

EnvironmentURL
Productionhttps://chat.hanzo.ai
APIhttps://api.hanzo.ai/v1
Localhttp://localhost:3081

Pricing

  • $5 free credit on every new account (expires in 30 days)
  • Prepaid billing — add credits via console.hanzo.ai
  • Starting at $0.30/MTok (zen3-nano)
  • No surprise bills — service stops when credits are depleted

How is this guide?

Last updated on

On this page