bae6574926 | ||
---|---|---|
docs | ||
src | ||
.env.example | ||
.gitattributes | ||
.gitignore | ||
.replit | ||
.replit.nix | ||
Dockerfile | ||
README.md | ||
package-lock.json | ||
package.json | ||
tsconfig.json |
README.md
title | emoji | colorFrom | colorTo | sdk | pinned |
---|---|---|---|---|---|
oai-reverse-proxy | 🔁 | green | purple | docker | false |
OAI Reverse Proxy Server
Simple reverse proxy server for the OpenAI API.
What is this?
If you have an API key you want to share with a friend, you can use this to keep your key safe while still allowing them to generate text with the API.
Why?
OpenAI keys have full account permissions. They can revoke themselves, generate new keys, modify spend quotas, etc. You absolutely should not share them.
If you still want to share access to your key, you can put it behind this proxy to ensure it can't be used to do anything but generate text. You can also set a separate key on the proxy to gatekeep access.
How to use
Since this is a server, you'll need to deploy it somewhere. A few options are available:
Deploy to Huggingface Space
See here for instructions on deploying to a Huggingface Space.