Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.
Rust ai-agentsai-assistantai-botautomationbotbots-teamchatbotclaude-duetgrokgrok-botgrok-bot-alternativeharnessllmmulti-agentopenai-dotsopenbotpersonal-agentrustself-hostedselfhosted-ai
title: Scheduled AI agents: routines & cron
description: Schedule bot work with routines, cron rules and follow-ups that run on your own machine, with an Undo on every change bots make.
card_title: Routines & bot actions
path: docs/routines.html
nav: routines
card: Schedule work, let bots set things up with an Undo, and decide who hires.
card_art: avatar:devops
---
<p class="kicker">Docs</p>
<h1>Scheduled AI agents: routines and cron</h1>
<p class="intro">Bots keep working when you're not there. A routine runs a prompt on a schedule, a follow-up checks back once, and bots can set either up for you, with an Undo on every change.</p>
<div class="note"><strong>Not Anthropic's Routines.</strong> kwant routines run inside kwant on your own machine or server. They aren't the Routines feature of Anthropic's Claude Code, and kwant isn't affiliated with Anthropic.</div>
<h2 id="routines">Routines</h2>
<p>A routine sends a prompt to a bot on a schedule and posts the answer in a channel, the bot's direct chat or a thread. Create one with <strong>New routine</strong> in a bot's Routines tab or under <strong>Settings → This space → Routines</strong>, or ask a bot to do it.</p>
<figure>
<div class="frame">{{shot:v2-routines|Settings, Routines: suggested routines, with none right now, then a Monday metrics digest, a paused competitor price scan whose last run failed and a weekday morning release check, each with Run now, History, Edit and Delete.|(max-width: 860px) 100vw, 760px}}</div>
</figure>
<div class="table-wrap"><table>
<thead><tr><th>Schedule</th><th>Runs</th></tr></thead>
<tbody>
<tr><td>Once</td><td>At one date and time</td></tr>
<tr><td>Daily</td><td>Every day at a time</td></tr>
<tr><td>Weekly</td><td>On the days you pick</td></tr>
<tr><td>Monthly</td><td>On a day of the month</td></tr>
<tr><td>Every…</td><td>Every 5 minutes up to every week</td></tr>
<tr><td>Custom</td><td>A cron rule</td></tr>
</tbody>
</table></div>
<p>Each routine has <strong>Run now</strong>, a history of its last 200 runs, edit, delete and an on/off switch. Archiving a space pauses its routines.</p>
<h3 id="follow-ups">Follow-ups</h3>
<p>A bot can set itself a one-off follow-up, for example to check a deploy in an hour. Only bots create follow-ups.</p>
<h3 id="good-run">What a good run is</h3>
<p>A routine can carry a <a href="flight-school.html">Flight School</a> class, a description of a good result and checks. Each run's board task gets them, with the checks already approved, so a run that passes its checks is verified on its own. Only you set the class and the checks. Routines without them run as before.</p>
<h2 id="suggested">Suggested routines</h2>
<p>kwant can notice tasks you ask for on a rhythm and offer a routine for them. It's <strong>on from 0.6.5</strong>, under <strong>Suggest routines from repeated tasks</strong> in <strong>Settings → All spaces → Mission board</strong>, where you also pick how many new suggestions a day (0–10, 2 by default).</p>
<ul>
<li><strong>What it looks at:</strong> the board tasks you made over the last 120 days, asked for daily, on weekdays, weekly on up to three days or monthly, in your time zone. Tasks made by bots, routines, hand-offs or chats never count.</li>
<li><strong>What qualifies:</strong> habits that were mostly verified, mostly done by one bot and not already covered by a routine.</li>
<li><strong>What you see:</strong> in Routines, each suggestion's bot, rhythm, first run, the tasks it learned from, what the bot may do when it runs and which checks it keeps. At most 5 wait per space, each with one notification.</li>
<li><strong>Accept or Dismiss:</strong> Accept opens the routine form so you can edit it first. Dismiss hides the suggestion for 30 days. Nothing is made without Accept. Routines made this way carry a "Suggested for you" badge.</li>
<li><strong>Paused?</strong> If suggestions are paused (the switch or the board is off, or no time zone is set), the section says why and how to fix it.</li>
</ul>
<h2 id="actions">Bots that set things up</h2>
<p>Ask a bot for a routine, a channel or a new bot and it makes the change itself. Each change shows a card with what was done and an <strong>Undo</strong> button.</p>
<figure>
<div class="frame">{{shot:v2-action-undo|TechLead created the channel #launch-waitlist when asked. The card says Done and has an Undo button.|(max-width: 860px) 100vw, 760px}}</div>
</figure>
<ul>
<li>Bots can create bots, spaces and channels, change settings, and create, update, pause, resume, run or delete routines.</li>
<li>At most 10 changes per turn, and only in the bot's own space.</li>
<li>Deleting a bot, deleting an account and archiving a space wait until you confirm.</li>
<li>Bots can't touch keys or secrets, engines or sign-ins, approval rules, computer mode, or install MCP servers.</li>
</ul>
<h2 id="hiring">Hiring</h2>
<p>When a specialist would do a job better, a bot can propose hiring one. The card shows why, what the proposal is based on, and the new bot's model and tools.</p>
<figure>
<div class="frame">{{shot:v2-hire-card|TechLead proposes hiring a Support bot, with the reason, what it is based on, its model and tools, and Deny, Accept once and Always accept buttons.|(max-width: 860px) 100vw, 760px}}</div>
</figure>
<ul>
<li><strong>Deny</strong>, <strong>Accept once</strong> or <strong>Always accept</strong>. You can undo a hire afterwards.</li>
<li>A proposal for a whole team has <strong>Approve all</strong>.</li>
<li>A bot can make one proposal per turn, and kwant remembers what you denied.</li>
<li>Each space sets its rule: <strong>Ask me each time</strong>, or <strong>Hire at once</strong> with at most 3 automatic hires per 24 hours.</li>
</ul>
<figure>
<div class="frame">{{shot:v2-hire-policy|Settings, This space, Kwant bots tab: the bot list with Export and Edit, and the hiring rule, Ask me each time or Hire at once, with 0 of 3 automatic hires used in 24 hours.|(max-width: 860px) 100vw, 760px}}</div>
</figure>
<h2 id="away">Inbox: what happened while you were away</h2>
<p>Open <strong>Inbox</strong> from the sidebar (the badge counts what's new) or the Inbox tab on a phone. Its <strong>New</strong> tab lists what changed since you last marked it seen, or the last 7 days the first time; <strong>Loose ends</strong> is the second tab (see <a href="loose-ends.html">Loose ends & letters</a>).</p>
<ul>
<li><strong>Waiting on you:</strong> questions, approvals and bot work a checker marked Needs you, which you can answer right there.</li>
<li><strong>Failed or stuck:</strong> failed runs, and handoffs with no reply after 30 minutes.</li>
<li><strong>To review:</strong> bot work that's ready for your OK, highest risk first, each with its verdict and Approve, Send back or Roll back.</li>
<li><strong>Finished:</strong> handoffs and routine runs that are done.</li>
</ul>
<figure>
<div class="frame">{{shot:v2-away|The Inbox, with two items waiting on you, a high-risk task and a question with answer buttons, and one task to review.|(max-width: 860px) 100vw, 760px}}</div>
</figure>
<p>For a ping when something needs you, turn on <strong>Notify me on this device</strong> in settings, or add an HTTPS webhook such as ntfy. On a phone, install kwant first (on an iPhone, add it to the Home Screen); notifications then arrive even with the app closed. They go through your browser's push service (Google's or Apple's), encrypted so it can't read them. Webhook messages carry only a title and one line.</p>