ChatAnyTeam/ChatAny
Self-hosted Next.js workspace for AI chat and API-backed image generation
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
licoy/chatany container on port 3000, with Compose profiles for deployments with or without an outbound proxy.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.
You need an actively maintained production app, offline inference, official Midjourney integration, or enterprise access controls without adding your own infrastructure.
Quick Start & Installation
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
Comparison vs. Top Chat UI & AI Apps Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| ChatAny ★ | 6.5k | — | TypeScript | MIT | Self-hosted Next.js workspace for AI chat and API-backed image generation |
| LibreChat | 47.8k | +232 | TypeScript | MIT | A self-hosted AI chat workspace for multiple model providers and MCP tools |
| chat-ui | 11.1k | +10 | TypeScript | Apache-2.0 | Self-hosted SvelteKit chat for OpenAI-compatible model backends |
| openclaw | 395.6k | +570 | TypeScript | MIT | A self-hosted Gateway for one AI assistant across chats and devices |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/ChatAnyTeam/ChatAny.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about ChatAny
How do the OpenAI and Midjourney integrations differ?
Does the ChatAny host need a GPU, and what should I size for?
Can I self-host ChatAny commercially?
When would I choose ChatAny over ChatGPT-Next-Web or ChatGPT?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy