ChatGPT-Proxy  by dqzboy

Reverse proxy for ChatGPT, enabling free GPT-3.5 access

created 2 years ago
423 stars

Top 70.7% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a one-click deployment solution for self-hosted ChatGPT reverse proxy services, primarily targeting users who want to leverage the free GPT-3.5 model via Access Tokens while mitigating IP bans and instability. It offers a more robust and controllable alternative to public proxies.

How It Works

The project supports two main backend implementations: linweiyuan/go-chatgpt-api and gngpp/ninja. Both act as reverse proxies, allowing users to access OpenAI's models through their own infrastructure. The ninja project is recommended due to the archiving of go-chatgpt-api. Both backends require handling Arkose Labs challenges for GPT-4 and potentially GPT-3.5, which can be managed via HAR file uploads or dedicated token endpoints. Cloudflare WARP integration is provided to mask the origin IP and bypass potential network restrictions.

Quick Start & Requirements

  • One-click install: bash -c "$(curl -fsSL https://raw.githubusercontent.com/dqzboy/ChatGPT-Proxy/main/install/chatgpt-proxy.sh)"
  • Prerequisites: CentOS 7/8/9, RHEL-8/9, Ubuntu, Debian, or opencloudos. Stable network connection for component downloads. Docker and Docker Compose are required for manual deployment.
  • Manual Deployment: Requires a VPS (1C1G minimum) that can access OpenAI services or has a stable proxy. Detailed Docker and Docker Compose setup instructions are provided.
  • Arkose Token: For GPT-4 and potentially GPT-3.5, an Arkose Token endpoint or HAR file upload is necessary.
  • Documentation: Official Docs

Highlighted Details

  • Supports both go-chatgpt-api and ninja backends, with ninja being the actively maintained option.
  • Integrates Cloudflare WARP for IP masking and enhanced stability.
  • Includes features like automatic image updates, 403/401/429 error handling, email alerts, and uptime monitoring.
  • Provides guidance on integrating the proxy with various ChatGPT web UIs and bots.

Maintenance & Community

The project's README states that the one-click deployment script will no longer be maintained as the upstream go-chatgpt-api project has been archived. Users are advised to prioritize the ninja project.

Licensing & Compatibility

The README does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

The one-click deployment script is no longer maintained. Cloudflare WARP is not supported on ARM architecture. Accessing GPT-4 and potentially GPT-3.5 requires additional steps to handle Arkose challenges, which may involve obtaining HAR files or setting up a token endpoint. Some error messages like "Access denied" or "Failed to handle captcha" indicate potential IP issues or CAPTCHA handling failures.

Health Check
Last commit

1 year 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.