gpt-web is a browser interface built with svelte and gin-gonic that allows you to interact with the OpenAI ChatGPT API.
- Proxy supported for the backend
- Responsive design for mobile devices and Wechat
- Dark mode
- Support for Multiple languages
- Markdown and code highlighting
- Small frontend files (using code splitting and gzip)
- Download the zip file for your platform from the release page. For example, if you're using a Mac with an M1 or M2 chip, download
gpt_web-darwin-arm64.tar.gz
. - Unzip the file and navigate to the folder.
- Edit the
.env.example
file. add your own OpenAI API Key) and save it as.env
. - Run the binary file.
- Prerequest: nodejs, yarn and golang
- Clone the repository:
git@github.com:sleep2death/gpt-web.git
. - Navigate to the
gpt-web
directory. - Edit the
.env.example
file. add your own OpenAI API Key) and save it as.env
. - Run
make dev
. If you don't have GNU Make installed, you can run the following commands instead:yarn --cwd ./web && yarn --cwd ./web build
go run cmd/main.go
- Run directly:
docker run -itd --name gpt-web -e GPTW_KEY=YOUR_OPENAI_KEY -p 8081:8081 aspirin2d/gpt-web
- Run behind the proxy:
docker run -itd --name gpt-web -e GPTW_KEY=YOUR_OPENAI_KEY -p 8081:8081 --add-host=host.docker.internal:host-gateway -e GPTW_PROXY=http://host.docker.internal:7890 aspirin2d/gpt-web