A local server that emulates the Raycast Backend API - designed for air-gapped environments where Raycast cannot access the internet.
-
Generate HTTPS certificate with
mkcert.mkcert -key-file certs/key.pem -cert-file certs/certificate.pem www.raycast.com backend.raycast.com
-
Install dependencies using:
uv sync
-
Run the server with:
python run.py
-
Edit hosts file - point
www.raycast.comandbackend.raycast.comtolocalhost(or your server's IP if running remotely).- On Windows:
C:\Windows\System32\drivers\etc\hosts - On macOS/Linux:
/etc/hosts
- On Windows:
-
Install the root CA certificate from
https://backend.raycast.com/cain your system's trusted root store.- On Windows, double-click the certificate file and follow the prompts to install it. When prompted, select Place all certificates in the following store and choose Trusted Root Certification Authorities.
- On macOS, open Keychain Access, drag the certificate into the "System" keychain, and set it to "Always Trust".
- On Linux, copy the certificate to
/usr/local/share/ca-certificates/and runsudo update-ca-certificates.
-
Start Raycast and hit Login.
- When Proxy error appears, click "Configure Proxy" and enable the Use System CA option, or alternatively, add the certificate manually under Additional Certificate Authority.
Enjoy using Raycast Offline!