Skip to content

yinm0591/cf-openai-with-sub-account-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Protect your OpenAI Key: Proxy Service with Subkey & API Firewall

English | 中文

Features:

  1. Create multiple personal API keys to protect your OpenAI key from being leaked.

  2. Only APIs related to GPT Chat are allowed to pass, in order to prevent hackers from accessing account privacy information using undisclosed API interfaces.

  3. Auditing third-party software access to the OpenAI API through Cloudflare logs.

  4. Support for Organization ID is provided, which allows customized KEYs to be converted to OpenAI_API_Key + OpenAI_Org_ID for compatibility with the vast majority of OpenAI API programs.

  5. Compatible with ChatGPT Next Web, chatbot-ui, chatgpt-web, OpenCat, and other projects.

  6. Supports OpenAI's streaming output for a better user experience.

Deployment Steps:

  1. Register and log in to your Cloudflare account.

  2. Navigate to the "Workers" section and create a new Worker by clicking the "Create a service" button.

  3. Click "Quick edit" and paste the contents of "worker.js" into the Cloudflare Worker code editor. Modify the "subKey" variable in the code editor and click "Save and deploy" when finished.

  4. Add a custom domain by going to the Worker details page and selecting "Triggers" -> "Custom Domains" -> "Add Custom Domain". Provide a custom domain name relevant to this service.

  5. Follow the instructions provided by the OpenAI software to fill in the custom domain name.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published