# Repository Briefing: ChatAnyTeam/ChatAny
> Source: https://repoforai.com/repo/ChatAnyTeam/ChatAny (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/ChatAnyTeam/ChatAny
- **Category**: Chat UI & AI Apps (聊天界面与 AI 应用)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: B (61/100 · Maintenance 6/35 · Adoption 24/25 · Releases 11/20 · License 20/20)
- **Latest Release**: v3.5.0 (2024-10-30) — https://github.com/ChatAnyTeam/ChatAny/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: Docker, Self-Hosted, API
- **Momentum**: 6,462 ★ total (+0 24h / +0 7d) · 1,751 forks
- **Topics**: `chatgpt`, `chatgpt-next-web`, `chatgpt-web`, `midjourney`, `openai`, `stable-diffusion`
- **When to Use**: Best for: Personal or small-team deployments that want chat and these specific image workflows in one self-hosted interface, can vet their upstream services, and can maintain the fork themselves. Skip if: You need an actively maintained production app, offline inference, official Midjourney integration, or enterprise access controls without adding your own infrastructure.

## Overview
```text
### Architecture & Core Mechanics
ChatAny is a self-hosted TypeScript web app derived from ChatGPT-Next-Web. The root `app/` directory and Next.js configuration accompany a React dependency stack. The manifest includes Zustand for state management and `@fortaine/fetch-event-source` for consuming event streams. Its Markdown stack combines `react-markdown` with GFM, math, KaTeX, and syntax-highlighting extensions.

The host runs the web app, not the models. The OpenAI route is configurable through `OPENAI_API_KEY` and `BASE_URL`. Midjourney is a separate integration: ChatAny relies on a compatible service configured through `MJ_PROXY_URL` and `MJ_PROXY_KEY`. These settings also define an operational boundary: you can move or control the web deployment without taking over inference, and failures in an upstream API or proxy can still break its corresponding workflow.

### Key Capabilities & Differentiators
ChatAny combines the inherited ChatGPT-Next-Web chat experience with a drawing interface. Stability AI options include Stable Image Ultra, Stable Image Core, and Stable Diffusion 3. The Docker Compose manifest exposes both OpenAI and Google API key settings, but it does not establish a Google model matrix or imply that arbitrary providers work through `BASE_URL`.

The unofficial Midjourney integration covers more than initial generation: it supports upscales, variations, zoom, pan, rerolls, Describe, Blend, reference images, and Vary Region. The UI can show percentage progress and display images as generation proceeds. Those controls depend on corresponding support in the configured proxy, so test the follow-up actions you need rather than treating a successful first generation as proof of full compatibility.

### Trade-offs & Limitations
Compared with ChatGPT-Next-Web, the concrete reason to choose this fork is its integrated Stability AI and unofficial Midjourney workflows. Compared with hosted ChatGPT, it gives you control over the web deployment and configured endpoints, but leaves you responsible for credentials, endpoint compatibility, and availability. Self-hosting the interface does not eliminate provider charges, rate limits, or third-party data handling.

Discontinued maintenance is the main adoption risk. Budget for your own dependency and security updates, and regression-test provider and proxy changes before rollout. The optional `CODE` setting is a site password, not evidence of enterprise identity management or tenant isolation. If a third party runs the Midjourney proxy, treat it as an additional party handling prompts and reference images.

### Hardware & Deployment Guide
Docker publishes port `3000:3000` from `licoy/chatany`. The Compose file offers `no-proxy` and `proxy` profiles; the latter exposes `PROXY_URL` for outbound proxy configuration. That setting serves a different purpose from `MJ_PROXY_URL`, which identifies the Midjourney API proxy. Set the provider credentials you need, and configure `CODE` if you want a site access password.

For a Node.js source deployment, run `npm install`, `npm run build`, and `npm run start`; use `npm run dev` for development. Size the host for concurrent web sessions and image traffic rather than model VRAM. External API connectivity remains necessary for the documented workflows. The latest listed release is v3.5.0, dated October 30, 2024, and the project is discontinued. For repeatable deployments, record the tested image digest rather than relying on the example's `latest` tag.
```

## Key Capabilities
```text
- Web stack: TypeScript, Next.js, and React on a ChatGPT-Next-Web base, with Zustand for state management.
- Chat dependencies: An event-stream client and Markdown rendering with GFM, math, and syntax-highlighting support.
- Stability AI: Stable Image Ultra, Stable Image Core, and Stable Diffusion 3 in the drawing interface.
- Midjourney workflow: Unofficial proxy integration with reference images, regional edits, progress percentages, and live image display.
- Deployment: `licoy/chatany` container on port 3000, with Compose profiles for deployments with or without an outbound proxy.
- Maintenance: The project is discontinued; the latest listed release is v3.5.0 (2024-10-30).
```

## Quick Start / Clone
```bash
docker run -d -p 3000:3000 \
   -e OPENAI_API_KEY="sk-xxx" \
   -e BASE_URL="https://api.openai.com" \
   -e MJ_PROXY_URL="" \
   -e MJ_PROXY_KEY="" \
   licoy/chatany:latest
```
