Keep-Alive Setup for HuggingFace Space
Your Static Space doesn't technically "sleep", but here's how to keep it active 24/7:
Option 1: UptimeRobot (Recommended - Free)
- Go to https://uptimerobot.com
- Create a free account
- Click "Add New Monitor"
- Settings:
- Monitor Type: HTTP(s)
- Friendly Name: OpenCode AI Agent
- URL: https://abbasyk60-opencode.static.hf.space
- Monitoring Interval: 5 minutes
- Click "Create Monitor"
That's it! UptimeRobot will ping your Space every 5 minutes.
Option 2: cron-job.org (Free)
- Go to https://cron-job.org
- Create a free account
- Click "Create Job"
- Settings:
- URL: https://abbasyk60-opencode.static.hf.space
- Schedule: Every 5 minutes
- Save
Option 3: Local Script (Windows)
Run the keep-alive script periodically:
.\keep-alive.ps1
Or set up Windows Task Scheduler to run it every 5 minutes.