chatgpt-next  by xcatliu

Next.js app for private ChatGPT deployment, WeChat style

created 2 years ago
778 stars

Top 45.8% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a WeChat-style ChatGPT interface built with Next.js, targeting users who need a private, self-hostable solution for interacting with AI models. It offers a familiar chat bubble UI, supports various deployment options, and allows for API key aliasing for secure sharing.

How It Works

The application leverages Next.js for a performant, server-rendered user experience. It communicates with OpenAI's API, allowing users to configure their own API keys. A key feature is the OPENAI_API_KEY_ALIAS environment variable, which enables users to create shareable links with specific API keys, abstracting the actual key from the end-user.

Quick Start & Requirements

  • Install/Run: npx chatgpt-next or docker run --name chatgpt-next -d -p 3000:3000 -e OPENAI_API_KEY_ALIAS xcatliu/chatgpt-next:latest
  • Prerequisites: Node.js (for local development), Docker (for containerized deployment).
  • Setup: Quick deployment via Vercel, Zeabur, or Netlify is supported. Local development requires pnpm i.
  • Docs: https://chatgpt-next.com (Note: Official site may be blocked in some regions; mirror sites are provided).

Highlighted Details

  • Supports GPT-4o and GPT-4o-mini.
  • WeChat-style chat bubbles for an intuitive UI on mobile and PC.
  • API key aliasing for secure sharing via URL parameters (e.g., ?api-key=firstkey).
  • One-click deployment options available on Vercel, Zeabur, and Netlify.

Maintenance & Community

The project is maintained by xcatliu. Community contributions for additional deployment mirrors are welcomed.

Licensing & Compatibility

  • License: MIT License.
  • Compatibility: Permissive for commercial use and integration with closed-source projects.

Limitations & Caveats

Directly accessing OpenAI APIs from mainland China may lead to account suspension; the project notes that development environments skip API requests by default, requiring manual uncommenting of code for testing. The project's primary domain may be subject to blocking.

Health Check
Last commit

7 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
5 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.