GorkProxy provides a lightweight proxy service that is OpenAI API compatible, supports automatic cookie rotation, and offers powerful configuration options. It also supports Docker deployment for easier usage! 🎉
✨ Key Features:
- 🏆 Automatic Rotation - Automatically switches cookies when request limits are reached.
- 🔑 Security - Supports password authentication.
- 🔄 Easy Deployment - Supports Docker and Docker Compose deployment.
❗️ Disclaimer: This project is open-sourced under the MIT license. It is intended for learning and personal use only. Any legal issues arising from this project are the responsibility of the user. The author assumes no liability.
- Go to the Gork official website and register or log in to your account.
- Start a new chat session and press F12 to open the browser Developer Console.
- Send any message to the AI to generate a request using your cookie.
- Navigate to the Network tab in the Developer Console.
- Look for a request named "new" or "responses" and click on it.
- Find the Cookies section and look for an entry starting with "sso=" (e.g.,
sso=xdfdafAftda.sastwer... ;
). - Copy the entire value up to the semicolon (
;
) and save it for later use in the configuration file.
❗️ Note: Your deployment environment must be in a region where Gork services are officially available; otherwise, responses may not work properly!
You can deploy with Docker or Docker Compose. Follow the steps below to set up the proxy.
git clone https://github.com/CNFlyCat/GrokProxy.git
Open the cookies.yaml
file and configure your cookies and authentication password:
sudo nano cookies.yaml
cookies:
- "sso=AAAAAA-xxxxx"
- "sso=fasdfas-xxxxx"
password: "your_password"
Modify the ports
settings to change the port mapping as needed:
services:
app:
image: grokproxy
ports:
- "8080:8000"
volumes:
- ./cookies.yaml:/app/cookies.yaml
docker-compose build
docker-compose up -d
Note: The following commands must be executed inside the project directory.
docker build -t grokproxy .
docker run -d -p 8080:8000 -v ./cookies.yaml:/app/cookies.yaml grokproxy
🎉 Now, you can use OpenWebUI or any OpenAI API-compatible AI frontend.
- Local:
http://127.0.0.1:8080/v1
- Remote:
http://(your_domain_or_IP):8080/v1
Enter your configured password or API key when prompted. Then, send a test message – If everything is set up correctly, you will receive a response from Gork! 🚀
🌟 Star & Fork are Welcome!
RocketCat
2025/2/26