chatgpt-proxy  by imyuanx

ChatGPT private proxy for bypassing network restrictions

created 2 years ago
354 stars

Top 79.9% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a simple, one-click deployment solution for a private ChatGPT proxy service, powered by Next.js. It's designed for users who need to access ChatGPT domestically and want a self-hosted, easily deployable proxy. The primary benefit is enabling domestic access to ChatGPT through a custom domain.

How It Works

The proxy leverages Next.js's Rewriter functionality to intercept and forward requests to the official ChatGPT API. This approach requires minimal core code (stated as two lines), making it lightweight and straightforward. It supports Server-Sent Events (SSE) for streaming responses, a feature crucial for interactive AI applications.

Quick Start & Requirements

  • Docker: docker build -t chatgpt-proxy . then docker run --name chatgpt-proxy -d -p 8000:3000 chatgpt-proxy
  • Manual: Requires Node.js >= 14. Install dependencies with pnpm install, build with pnpm build, and run with pnpm start.
  • Prerequisites: A server capable of accessing ChatGPT.
  • Deployment Platforms: Zeabur and Vercel are mentioned, though with strong warnings about potential terms of service violations. Custom domain names are required for Vercel access within China.

Highlighted Details

  • Supports Server-Sent Events (SSE).
  • Minimal core code (2 lines) for proxy functionality.
  • Designed for easy deployment via Docker, Zeabur, or Vercel.
  • Enables domestic access to ChatGPT API endpoints.

Maintenance & Community

No specific information on contributors, sponsorships, or community channels (like Discord/Slack) is provided in the README.

Licensing & Compatibility

The README does not explicitly state a license. Given the nature of proxying and potential platform terms of service violations, commercial use or linking with closed-source projects may require careful review and adherence to both the proxy's (unspecified) license and the terms of the hosting provider.

Limitations & Caveats

Deployment on platforms like Zeabur and Vercel is explicitly discouraged due to potential violations of their terms of service regarding proxies and VPNs. Users proceeding with these platforms do so at their own risk of account consequences. The project's license is not specified, which could impact commercial use.

Health Check
Last commit

2 years ago

Responsiveness

1 day

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

Explore Similar Projects

Feedback? Help us improve.