๐Ÿš€ GorkProxy - Gork Proxy Cookie Rotation for GrokV3 Freedom, OpenAI API Compatible

February 26, 2025 ยท View on GitHub

GitHub Repo stars GitHub forks GitHub license


๐Ÿ“– Introduction

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.


๐Ÿ”Œ Fetching Gork Cookies

  1. Go to the Gork official website and register or log in to your account.
  2. Start a new chat session and press F12 to open the browser Developer Console.
  3. Send any message to the AI to generate a request using your cookie.
  4. Navigate to the Network tab in the Developer Console.
  5. Look for a request named "new" or "responses" and click on it.
  6. Find the Cookies section and look for an entry starting with "sso=" (e.g., sso=xdfdafAftda.sastwer... ;).
  7. Copy the entire value up to the semicolon (;) and save it for later use in the configuration file.

๐Ÿ› ๏ธ Installation & Deployment

โ—๏ธ 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.

โ‡๏ธ Clone from GitHub

git clone https://github.com/CNFlyCat/GrokProxy.git

๐Ÿ“ Configure the Settings

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 Docker Compose Configuration (Optional)

Modify the ports settings to change the port mapping as needed:

services:
  app:
    image: grokproxy
    ports:
      - "8080:8000"
    volumes:
      - ./cookies.yaml:/app/cookies.yaml

Build the Project

docker-compose build

Start the Project

docker-compose up -d

๐Ÿณ Deploy Using Docker

Note: The following commands must be executed inside the project directory.

Build the Project

docker build -t grokproxy .

Run the Project

docker run -d -p 8080:8000 -v ./cookies.yaml:/app/cookies.yaml grokproxy

๐Ÿ“– Using the Proxy

๐ŸŽ‰ 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! ๐Ÿš€


๐Ÿ”— Open-Source Repository

๐ŸŒŸ Star & Fork are Welcome!

GitHub Repo
Issues
Pull Requests


RocketCat
2025/2/26