Cheese Grater is a reverse proxy and HTTP redirector. It's designed for one purpose, and that is to sit between an internet facing reverse proxy tool like ngrok or localtunnel and LM Studio and allow you to connect AI Code Editor Cursor to use a local LLM, running on your local machine.
Currently, you'll need GO installed.
-
Clone the repository:
git clone https://github.com/squeakycheese75/cheese-grater.git
-
Navigate to the project directory:
cd cheese-grater
-
Build the application:
go build
- Go to the Releases section on GitHub.
- Download the relevant binary for your platform, extract and run.
- If you want me to add a build for youR plaform, just raise an Issue Supported builds
-
Create a .env file:
cp .env.sample .env
-
Update you .env file:
- APIKey: The API key for authentication. You will need this for Cursor.
- RedirectURL: The URL of the backend server to which requests will be forwarded (default: localhost:1234).
- ProxyPort: What port to run this app on.
Run the Cheese Grater application with the following command-line flags:
./cheese-grater -RedirectURL <backend-url> -Port <port> -APIKey <api-key>
- RedirectURL: The URL of the backend server to which requests will be forwarded (default: localhost:1234).
- Port: The port on which the Cheese Grater proxy will run (default: 8080).
- APIKey: The API key for authentication (default: generated at runtime).
- help: Display help information about command-line flags.
Writing the article now...
This project is licensed under the GNU License. See the LICENSE file for details.