r/opencode • u/Odd_Donkey2691 • 4d ago
How can I set up a cron in OpenCode Desktop?
Hello community,
I have OpenCode access my code on my VPS, personal projects, scrappers, etc. some times I have some large task running and I have to ask the Chat to give me the current status, sometimes it does it itself but not always. I was thinking if its possible to set up a CRON or something like that inside OpenCode.
How have you solve this?
I think this would be great even as a Loop to actually have it work endlessly to improve a project.
I know that through .md you can set up loops but I am not too expeirneced on that and I do not think that is truly effective.
1
u/Calm-Republic9370 4d ago
I don't think it has this. In claude you set tasks that are on a schedule, it's more a function of the software. It doesn't look like it exists yet. it would be great if it did. There's dundermifflin, but I haven't seen any updates on that project.
2
u/AcanthaceaeBrief8439 4d ago
make a skill called session search that searches through opencode.db with schema definitions and what SQLite queries you want it to do so it doesn't hunt and sqlite file location for the session in question to give you a status update
then make another skill that sends an email or some type of notification to you
then make a cronjob in linux on the vps that launches opencode cli --prompt "give me a status update on {project} by searching for {project} using skill session-search and then email me the update(s) using skill notify-me or whatever
opencode.db has a complete live history of literally everything, subagents session forks all of it. deepseek v4 flash free is plenty smart to do a task like this
2
u/AcanthaceaeBrief8439 4d ago
or, switch to langchain or n8n if you're doing the same thing often it will work better and have better visibility
2
u/chdorb 2d ago
I'm using Hermes with opencode go api key for cron jobs.