openai-proxy  by justjavac

Proxy for OpenAI/ChatGPT API access

created 2 years ago
921 stars

Top 40.4% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a proxy for accessing OpenAI/ChatGPT APIs, specifically addressing issues with API access from China and potential account bans. It's designed for users in regions with restricted access to OpenAI services, enabling them to bypass these limitations.

How It Works

The proxy is built using Deno and can be deployed on platforms like Deno Deploy or Cloudflare Workers. It acts as an intermediary, forwarding requests to OpenAI's API from a server located outside restricted regions. This approach circumvents geographical restrictions and potential IP-based blocking by OpenAI.

Quick Start & Requirements

  • Deployment: Deploy using Deno via deno run --allow-net --allow-read --allow-env --watch deno.ts or by copying cloudflare.ts to Cloudflare Workers.
  • Prerequisites: Deno runtime.
  • Setup: The project offers a one-click deployment option to Deno Deploy.

Highlighted Details

  • Facilitates access to OpenAI/ChatGPT APIs from restricted regions.
  • Supports integration with official OpenAI npm and Python packages by setting a custom basePath or api_base.
  • Allows custom domain binding for deployed instances.

Maintenance & Community

The project's primary deployment (closeai.deno.dev) is temporarily shut down due to exceeding Deno Deploy's quota, indicating high demand. Users are encouraged to self-deploy.

Licensing & Compatibility

The repository does not explicitly state a license.

Limitations & Caveats

The project's main public instance is currently unavailable due to high traffic. Users must self-deploy to use the service. The lack of a specified license may pose compatibility concerns for commercial or closed-source use.

Health Check
Last commit

1 year ago

Responsiveness

1 day

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

Explore Similar Projects

Feedback? Help us improve.