vable / raycast_api_proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raycast AI Proxy

This is a simple proxy for the Raycast AI app. It allows you to use the Raycast AI app without subscribing. It is a simple proxy that forwards the requests to OpenAI's API and returns the response.

Usage

Installation in local

  1. Clone the repository
  2. Install the dependencies with pip install -r requirements.txt
  3. Create a .env file with the following content:
OPENAI_API_KEY=<your openai api key>
  1. Generate self-signed certificates with ./scripts/cert_gen.py --domain backend.raycast.com --out ./cert
  2. Run the server with python3 main.py

Configuration

  1. modify /etc/host to add the following line:
127.0.0.1 bankend.raycast.com

then you can use the Raycast AI app with the proxy.

  1. trust the certificate in your system keychain

open the ca certificate in the cert folder and add it to the system keychain.

About


Languages

Language:Python 80.7%Language:Shell 10.7%Language:Dockerfile 8.6%