---
title: "Deploy Chuanhu Chat"
description: "Password-protected web UI for ChatGPT and other LLM APIs"
category: "AI/ML"
url: https://railway.com/deploy/chuanhu-chat
---

# Deploy Chuanhu Chat

Password-protected web UI for ChatGPT and other LLM APIs

**[Deploy Chuanhu Chat on Railway](https://railway.com/template/chuanhu-chat)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/chuanhu-chat/manifest.json

- **Creator:** zer0person's Projects
- **Category:** AI/ML
- **Total deploys:** 1

## Template content

### Chuanhu Chat

- **Image:** tuchuanhuhuhu/chuanhuchatgpt:latest
- **Start command:** `sh -c 'cd /app && printf "{\"users\": [[\"admin\", \"%s\"]], \"server_port\": 7860}" "$CHUANHU_PASSWORD" > config.json && exec python3 -u ChuanhuChatbot.py'`
- **Public domain:** Yes

## Documentation

# Deploy and Host Chuanhu Chat on Railway

[Chuanhu Chat](https://github.com/GaiZhenbiao/ChuanhuChatGPT) (ChuanhuChatGPT) is a web UI for ChatGPT and many other LLM APIs: chat history, file-based Q&A, web search, prompt templates and model switching in one interface.

## About Hosting Chuanhu Chat

This template runs the official `tuchuanhuhuhu/chuanhuchatgpt:latest` image (Gradio UI on port 7860). The start command writes a `config.json` that turns on login, so the public URL is not open to strangers: sign in as `admin` with the password in the service's `CHUANHU_PASSWORD` variable (generated at deploy). To use the app, add an `OPENAI_API_KEY` variable (or `DEEPSEEK_API_KEY`, `GOOGLE_GENAI_API_KEY`, and so on) and redeploy, or paste a key in the UI settings after login.

Chat history is kept inside the container and resets on redeploy.

## Common Use Cases

- A private ChatGPT-style interface on your own API key
- Ask questions about uploaded documents (PDF, Word, text)
- Compare several LLM providers from one UI

## Dependencies for Chuanhu Chat Hosting

- One service; an API key for at least one LLM provider

### Deployment Dependencies

- [ChuanhuChatGPT on GitHub](https://github.com/GaiZhenbiao/ChuanhuChatGPT)
- [Docker image](https://hub.docker.com/r/tuchuanhuhuhu/chuanhuchatgpt)

## Why Deploy Chuanhu Chat on Railway?

Railway gives you a public HTTPS URL and automatic restarts with no server to maintain, with login enabled from the first deploy.


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius v0.1 Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/chuanhu-chat
