• Stars
    star
    37,351
  • Rank 399 (Top 0.01 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 1 year ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A well-designed cross-platform ChatGPT UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT 应用。
icon

ChatGPT Next Web

English / 简体中文

One-Click to deploy well-designed ChatGPT web UI on Vercel.

一键免费部署你的私人 ChatGPT 网页应用。

Demo / Issues / Buy Me a Coffee

演示 / 反馈 / QQ 群 / 打赏开发者

Deploy with Vercel

Open in Gitpod

cover

Features

  • Deploy for free with one-click on Vercel in under 1 minute
  • Privacy first, all data stored locally in the browser
  • Markdown support: LaTex, mermaid, code highlight, etc.
  • Responsive design, dark mode and PWA
  • Fast first screen loading speed (~100kb), support streaming response
  • New in v2: create, share and debug your chat tools with prompt templates (mask)
  • Awesome prompts powered by awesome-chatgpt-prompts-zh and awesome-chatgpt-prompts
  • Automatically compresses chat history to support long conversations while also saving your tokens
  • I18n: English, 简体中文, 繁体中文, 日本語, Français, Español, Italiano, Türkçe, Deutsch, Tiếng Việt, Русский, Čeština, 한국어

Roadmap

  • System Prompt: pin a user defined prompt as system prompt #138
  • User Prompt: user can edit and save custom prompts to prompt list
  • Prompt Template: create a new chat with pre-defined in-context prompts #993
  • Share as image, share to ShareGPT #1741
  • Desktop App with tauri
  • Self-host Model: support llama, alpaca, ChatGLM, BELLE etc.
  • Plugins: support network search, calculator, any other apis etc. #165

Not in Plan

  • User login, accounts, cloud sync
  • UI text customize

What's New

主要功能

  • 在 1 分钟内使用 Vercel 免费一键部署
  • 完整的 Markdown 支持:LaTex 公式、Mermaid 流程图、代码高亮等等
  • 精心设计的 UI,响应式设计,支持深色模式,支持 PWA
  • 极快的首屏加载速度(~100kb),支持流式响应
  • 隐私安全,所有数据保存在用户浏览器本地
  • 预制角色功能(面具),方便地创建、分享和调试你的个性化对话
  • 海量的内置 prompt 列表,来自中文英文
  • 自动压缩上下文聊天记录,在节省 Token 的同时支持超长对话
  • 多国语言支持:English, 简体中文, 繁体中文, 日本語, Español, Italiano, Türkçe, Deutsch, Tiếng Việt, Русский, Čeština
  • 拥有自己的域名?好上加好,绑定后即可在任何地方无障碍快速访问

开发计划

  • 为每个对话设置系统 Prompt #138
  • 允许用户自行编辑内置 Prompt 列表
  • 预制角色:使用预制角色快速定制新对话 #993
  • 分享为图片,分享到 ShareGPT 链接 #1741
  • 使用 tauri 打包桌面应用
  • 支持自部署的大语言模型
  • 插件机制,支持联网搜索、计算器、调用其他平台 api #165

不会开发的功能

  • 界面文字自定义
  • 用户登录、账号管理、消息云同步

最新动态

Get Started

简体中文 > 如何开始使用

  1. Get OpenAI API Key;
  2. Click Deploy with Vercel, remember that CODE is your page password;
  3. Enjoy :)

FAQ

简体中文 > 常见问题

English > FAQ

Keep Updated

简体中文 > 如何保持代码更新

If you have deployed your own project with just one click following the steps above, you may encounter the issue of "Updates Available" constantly showing up. This is because Vercel will create a new project for you by default instead of forking this project, resulting in the inability to detect updates correctly.

We recommend that you follow the steps below to re-deploy:

  • Delete the original repository;
  • Use the fork button in the upper right corner of the page to fork this project;
  • Choose and deploy in Vercel again, please see the detailed tutorial.

Enable Automatic Updates

If you encounter a failure of Upstream Sync execution, please manually sync fork once.

After forking the project, due to the limitations imposed by GitHub, you need to manually enable Workflows and Upstream Sync Action on the Actions page of the forked project. Once enabled, automatic updates will be scheduled every hour:

Automatic Updates

Enable Automatic Updates

Manually Updating Code

If you want to update instantly, you can check out the GitHub documentation to learn how to synchronize a forked project with upstream code.

You can star or watch this project or follow author to get release notifictions in time.

Access Password

简体中文 > 如何增加访问密码

This project provides limited access control. Please add an environment variable named CODE on the vercel environment variables page. The value should be passwords separated by comma like this:

code1,code2,code3

After adding or modifying this environment variable, please redeploy the project for the changes to take effect.

Environment Variables

简体中文 > 如何配置 api key、访问密码、接口代理

OPENAI_API_KEY (required)

Your openai api key.

CODE (optional)

Access passsword, separated by comma.

BASE_URL (optional)

Default: https://api.openai.com

Examples: http://your-openai-proxy.com

Override openai api request base url.

OPENAI_ORG_ID (optional)

Specify OpenAI organization ID.

HIDE_USER_API_KEY (optional)

Default: Empty

If you do not want users to input their own API key, set this value to 1.

DISABLE_GPT4 (optional)

Default: Empty

If you do not want users to use GPT-4, set this value to 1.

Development

简体中文 > 如何进行二次开发

Open in Gitpod

Before starting development, you must create a new .env.local file at project root, and place your api key into it:

OPENAI_API_KEY=<your api key here>

Local Development

# 1. install nodejs and yarn first
# 2. config local env vars in `.env.local`
# 3. run
yarn install
yarn dev

Deployment

简体中文 > 如何部署到私人服务器

Docker (Recommended)

docker pull yidadaa/chatgpt-next-web

docker run -d -p 3000:3000 \
   -e OPENAI_API_KEY="sk-xxxx" \
   -e CODE="your-password" \
   yidadaa/chatgpt-next-web

You can start service behind a proxy:

docker run -d -p 3000:3000 \
   -e OPENAI_API_KEY="sk-xxxx" \
   -e CODE="your-password" \
   -e PROXY_URL="http://localhost:7890" \
   yidadaa/chatgpt-next-web

Shell

bash <(curl -s https://raw.githubusercontent.com/Yidadaa/ChatGPT-Next-Web/main/scripts/setup.sh)

Screenshots

Settings

More

Donation

Buy Me a Coffee

Special Thanks

Sponsor

仅列出捐赠金额 >= 100RMB 的用户。

@mushan0x0 @ClarenceDan @zhangjia @hoochanlon @relativequantum @desenmeng @webees @chazzhou @hauy @Corwin006 @yankunsong @ypwhs @fxxxchao @hotic @WingCH @jtung4 @micozhu @jhansion @Sha1rholder @AnsonHyq @synwith

Contributor

Contributors

LICENSE

Anti 996 License

More Repositories

1

shuangpin

纸砚双拼,可能是最好用的双拼练习工具,支持声母 / 韵母 / 长句模式、自定义双拼方案、进度统计、深色模式、成就系统。
Vue
423
star
2

Issue-Blog-With-Github-Action

A well-designed blog theme based on Vuepress and hosted on Github Actions.
Vue
79
star
3

UESTC_Helper

为电子科技大学教务系统提供一个现代的、高效的并且非侵入式的交互与展示界面。
JavaScript
67
star
4

Pytorch-Video-Classification

Make video classification on UCF101 using CNN and RNN based on Pytorch framework.
Python
60
star
5

P2P-Message

A simple peer-to-peer chat client powered by Flutter.
Dart
43
star
6

Yidadaa.github.io

Welcome to my home page.
HTML
31
star
7

Real-Qingshui-Pass

[Archived] A cannot-be-more-real gate pass for UESTC Qingshui River campus.
Vue
18
star
8

Oh-My-Nvim

IDE-like neovim config. 把 NeoVim 打造为 IDE。
Lua
17
star
9

CMake-Test-Tools-VSCode

Fastest cpp test runner vscode extension, support Google Test / Catch2.
TypeScript
12
star
10

Issue-Blog

Issue is Blog, a serverless blog platform based on Github Issues.
Vue
12
star
11

Oh-My-Dotfiles

一键配置linux环境,简单粗暴
Vim Script
7
star
12

React-Hooks-In-300-Lines-Rust

A minimal implementation of react hooks in Rust.
Rust
7
star
13

Captcha-Deep-Learning

Recognize captcha using deep learning.
Python
7
star
14

Offset-Polygon

Compute the area, perimeter, polygon's approximate center and the union of Polygons.
C++
6
star
15

Learn-uGit

Learn uGit step by step. Thanks to ugit project: https://www.leshenko.net/p/ugit/
Python
6
star
16

Eye-Tracking-Mouse

Use webcam as mouse with deep learning eye tracking methods.
Python
5
star
17

Auto-Check-Temperature

An app to check daily temperature for UESTC.
Dart
5
star
18

Coding-Every-Day

One problem a day, keep the happiness away.
TeX
4
star
19

Web-Application-Design-2019

电子科技大学2019年春季互联网程序设计研究生课程大作业。
Python
3
star
20

OPPO-Human-Segmentation

The repo for OPPO Top contest.
C++
3
star
21

Learn-Mini-React

Learning react by step-by-step coding, implement your own mini react.
HTML
3
star
22

RL-SketchBoard

Generate cartoon style sketch using reinforcement learning and style transfer learning.
Python
3
star
23

ICME-WaterPlayer

The repo for ICME2019 via HuaHuaGuai.
Python
2
star
24

Web-NES

A NES game emulator runs on web.
Vue
2
star
25

Computer-Vision-Assignment

Computer Vision Assignments of UESTC - 2018 Fall
TeX
2
star
26

Satellite-Imagery-Segmantation-Deeplab

阿里天池2019年县域农业大脑AI挑战赛 - A deeplab-resnet based implementation for satellite imagery segmantation.
Python
2
star
27

miniapp-test-wepy

用来调研wepy框架的小程序
JavaScript
2
star
28

Memory-Helper-Weapp

一个帮你记忆东西的微信小程序。
JavaScript
2
star
29

Wasm-Threads-CMake-Example

Build multi-thread WebAssembly code with CMake.
CMake
2
star
30

Happy-Coding-Peasant

Make corporate slave GREAT again! 让新生代农民工再次伟大!
TypeScript
2
star
31

Beauty-Face-Cam-Web-App

A Real-time beauty face cam & editor web app built with Rust WebAssembly and WebGL 2.
Rust
2
star
32

MyJS

自用原生JS库,包含一些常用的函数。
JavaScript
1
star
33

Game-Theory-Final-Project

Final project of Game Theory of UESTC, 2018 Fall
Python
1
star
34

wenlive.github.io

HTML
1
star
35

P2P-Message-Server

A p2p message server.
Python
1
star
36

Mini-Questionnaire

A Simple Questionnaire System.
Vue
1
star
37

Time-Tracker

An app to track your daily time.
Dart
1
star
38

Advanced-Computer-Vision-Project

The projects of Advanced Computer Vision 2019 Spring - UESTC.
TeX
1
star
39

Draw-Game

自己弄的你画我猜小游戏
Python
1
star
40

Graduation-Project

电子科技大学本科毕业设计
TeX
1
star
41

HUAWEI-Codecraft-2019

本仓库用于存储华为软件精英挑战赛2019年初赛代码。
C++
1
star
42

Parallel-Programming-On-GPU

本仓库用于存储电子科技大学2019年春季开设的GPU并行编程课程作业相关文档。
TeX
1
star
43

Status-StarStudio

Demo页面点这里
JavaScript
1
star
44

Conways-Game-Life

Conway's Game of Life, a web version.
Vue
1
star
45

Infinite-Card

Connect, think and share your thought in infinite space.
TypeScript
1
star
46

miniapp-example

小程序示例程序
JavaScript
1
star
47

Cainiao-Global-Technology-Competition-2019

The private repo for Cainiao Global Technology Competition 2019 vid HuaHuaGuai.
Dart
1
star
48

Flutter-Messager

A message app which is specially offered to my love.
Dart
1
star
49

Cyber-Gift

The body always dies, long live bits.
HTML
1
star