# huggingface-proxy _Host a proxy server on Huggingface Spaces._ ### Setup #### Space 1. Create a new Space using `./space/Dockerfile`. 2. Upload your rathole client config to the space under the path `./rathole-client.toml` 3. Upload `./space/server.py` and `./space/supervisord.conf` 4. "Factory Reboot" the space to get it to rebuild. #### Keep Alive On a local machine, run the keep alive script to prevent Huggingface from stopping your space due to "inactivity". You'll have to create a write API key on your account and save your cookies to `cookies.txt`. ``` python3 ./keepalive/keepalive.py --token hf_XXX --username XXX --cookies ./cookies.txt --headless ```