# chatgptnextweb/nextchat

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/chatgptnextweb-nextchat).**

88,256 stars · 59,562 forks · TypeScript · MIT

## Links

- GitHub: https://github.com/ChatGPTNextWeb/NextChat
- Homepage: https://nextchat.club
- awesome-repositories: https://awesome-repositories.com/repository/chatgptnextweb-nextchat.md

## Topics

`calclaude` `chatgpt` `claude` `cross-platform` `desktop` `fe` `gemini` `gemini-pro` `gemini-server` `gemini-ultra` `gpt-4o` `groq` `nextjs` `ollama` `react` `tauri` `tauri-app` `vercel` `webui`

## Description

NextChat is a self-hosted web application that provides a unified interface for interacting with multiple large language models. It functions as a conversational platform where users can manage and switch between diverse AI providers through configurable API backends, maintaining full control over their data and infrastructure.

The platform features a persistent session layer designed to handle long-running dialogues by managing message history and context. It distinguishes itself through a structured prompt engineering environment that allows for the development and application of templates to refine model inputs. To ensure consistent performance during extended interactions, the application includes automated context window compression and dynamic prompt injection, which adjust historical message arrays to fit within model token limits.

The software supports secure deployment via containerization, utilizing server-side proxying to manage sensitive API keys and authentication headers. It also incorporates local browser storage for low-latency access and offers options for synchronizing chat records across multiple sessions and devices. The application is configured through environment variables, allowing for flexible integration into private hosting environments.

## Tags

### Artificial Intelligence & ML

- [Conversational State Managers](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/conversational-voice-interaction/conversational-ai-infrastructure/conversational-state-managers.md) — Preserves message history and manages context windows to ensure continuity across ongoing conversational sessions.
- [LLM Chat Interfaces](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/model-integration-serving/model-integration-interfaces/ai-model-interfaces/llm-chat-interfaces.md) — Delivers a web-based conversational interface that connects users to multiple large language model backends.
- [Language Model Interaction Patterns](https://awesome-repositories.com/f/artificial-intelligence-ml/language-model-orchestration/language-model-interaction-patterns.md) — Standardizes communication by routing requests through a single interface capable of switching between diverse language model backends.
- [Self-Hosted Chat Interfaces](https://awesome-repositories.com/f/artificial-intelligence-ml/artificial-intelligence-tooling/chat-conversational-interfaces/ai-interfaces/self-hosted-chat-interfaces.md) — Enables private, self-hosted deployment of a web interface for interacting with various language model backends.
- [Conversation Management](https://awesome-repositories.com/f/artificial-intelligence-ml/language-model-orchestration/conversation-management.md) — Organizes conversation state using prompt templates, formatted text rendering, and automated history compression. ([source](https://cdn.jsdelivr.net/gh/ChatGPTNextWeb/NextChat@main/README.md))
- [Persistent Chat Histories](https://awesome-repositories.com/f/artificial-intelligence-ml/language-model-orchestration/ai-memory-systems/persistent-chat-histories.md) — Maintains long-term conversational context and session continuity across devices via integrated storage solutions.
- [Prompt Engineering Frameworks](https://awesome-repositories.com/f/artificial-intelligence-ml/prompt-engineering-frameworks.md) — Refines user inputs through a structured workspace that utilizes templates to optimize conversational responses.
- [Prompt Libraries](https://awesome-repositories.com/f/artificial-intelligence-ml/prompt-libraries.md) — Injects custom system instructions and user-defined context into request payloads to guide model behavior.
- [AI Provider Integrations](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/model-integration-serving/ai-provider-integrations.md) — Configures authentication and connectivity settings for multiple external large language model providers. ([source](https://cdn.jsdelivr.net/gh/ChatGPTNextWeb/NextChat@main/README.md))
- [Prompt Management Workflows](https://awesome-repositories.com/f/artificial-intelligence-ml/prompt-engineering/prompt-management-workflows.md) — Standardizes output quality by applying structured instruction templates throughout the conversational workflow.

### DevOps & Infrastructure

- [Chat Interface Deployments](https://awesome-repositories.com/f/devops-infrastructure/self-hosted-applications/chat-interface-deployments.md) — Supports containerized deployment patterns for hosting private and configurable conversational environments. ([source](https://cdn.jsdelivr.net/gh/ChatGPTNextWeb/NextChat@main/README.md))
- [Self-Hosted Applications](https://awesome-repositories.com/f/devops-infrastructure/self-hosted-applications.md) — Packages the application for private infrastructure deployment to maintain full control over data and configuration.

### Part of an Awesome List

- [Desktop Chat Clients](https://awesome-repositories.com/f/awesome-lists/ai/desktop-chat-clients.md) — Fast AI assistant with multi-model and protocol support.

### Security & Cryptography

- [API Proxy Layers](https://awesome-repositories.com/f/security-cryptography/network-infrastructure-security/web-network-security/network-security/network-routing-access-control/api-proxy-layers.md) — Masks sensitive API credentials by acting as a secure backend proxy for all outgoing model requests.

### Data & Databases

- [Browser-Based Storage](https://awesome-repositories.com/f/data-databases/data-engineering-infrastructure/data-persistence-storage/data-storage/client-side-persistence/browser-based-storage.md) — Utilizes browser-based storage to maintain chat logs and user preferences for offline access.
- [Chat History Synchronization](https://awesome-repositories.com/f/data-databases/data-engineering-infrastructure/data-persistence-storage/data-storage/metadata-state-management/chat-history-synchronization.md) — Synchronizes chat history across sessions using external storage to ensure data availability for returning users. ([source](https://cdn.jsdelivr.net/gh/ChatGPTNextWeb/NextChat@main/README.md))

### Web Development

- [React Frameworks](https://awesome-repositories.com/f/web-development/backend-development/web-frameworks/full-stack-frameworks/react-frameworks.md) — Leverages modern framework capabilities to serialize application state and restore user sessions instantly.
