Scaffold an AI chat app you own: pick the models, tools and services, then edit the code
open sourceApache-2.0self-hostablefree
ChatJS gives you a working AI chat app to start from: its CLI (npx chat-js create) or a browser builder scaffolds a Next.js and TypeScript app with shadcn/ui, streaming responses, saved conversations and Better Auth, and asks which model gateway, sign-in providers and features to include. Models come through Vercel AI Gateway, OpenRouter, OpenAI, LiteLLM or any OpenAI-compatible endpoint. Its EVE runtime runs conversations and tools, persists execution state and handles approvals, and optional plugins add uploads, projects, sharing, web search, code execution, image generation and MCP connectors, installed as source files you edit and commit. You deploy it on Vercel or host it yourself with Docker or Node.js, and an Electron companion packages it as a desktop app.
Problems it solves
- start an AI chat app with my own choice of models and own all the code
- add web search, code execution and MCP tools to a self-hosted AI chat app
- build a ChatGPT-like app on Next.js without writing streaming and auth from scratch
Features
- CLI and browser builder that scaffold a Next.js AI chat app
- Streaming responses, saved conversations and Better Auth sign-in
- Vercel AI Gateway, OpenRouter, OpenAI, LiteLLM or any OpenAI-compatible endpoint
- EVE agent runtime with persisted execution state and approvals
- Plugins and tools (web search, code execution, image generation, MCP connectors) installed as editable source
- Deploys on Vercel, Docker or Node.js, with an Electron desktop companion
Limitations
Alternatives
The same job
These do what ChatJS does.
- LibreChat Brings together all your AI conversations in one unified, customizable interface
- Open WebUI One interface for every AI model. Private, extensible, and built for teams.
- Odysseus Self-hosted AI workspace for chat, agents, research, documents, email, notes and calendar
- Onyx The context layer powered by all your apps
- LobeHub Super-Agents on Your Team
- NextChat Lightweight open source AI chat client for Claude, GPT, Gemini and DeepSeek that you deploy in a minute
