File size: 907 Bytes
e564c3a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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)

1. Go to https://uptimerobot.com
2. Create a free account
3. Click "Add New Monitor"
4. Settings:
   - Monitor Type: HTTP(s)
   - Friendly Name: OpenCode AI Agent
   - URL: https://abbasyk60-opencode.static.hf.space
   - Monitoring Interval: 5 minutes
5. Click "Create Monitor"

That's it! UptimeRobot will ping your Space every 5 minutes.

## Option 2: cron-job.org (Free)

1. Go to https://cron-job.org
2. Create a free account
3. Click "Create Job"
4. Settings:
   - URL: https://abbasyk60-opencode.static.hf.space
   - Schedule: Every 5 minutes
5. Save

## Option 3: Local Script (Windows)

Run the keep-alive script periodically:
```powershell
.\keep-alive.ps1
```

Or set up Windows Task Scheduler to run it every 5 minutes.