Your AI Coworker That Never Clocks Out: The Always-On Agent Pattern

How to run an AI agent as a persistent background service that messages you, controls your browser, manages tasks, and runs automations — all from your phone.

avatar

Tim Givois

February 23, 20266 min.
AIAutomationProductivityAgents

Most people use AI the same way they use a search engine: open it, type something, get an answer, close the tab. The interaction is reactive. You initiate, the model responds.

But there is a different way to work with AI that flips this dynamic entirely. Instead of a chatbot you summon, imagine a coworker who sits at a desk in your home, has access to your computer, and quietly gets things done whether you are around or not. That is the always-on agent pattern, and tools like OpenClaw (formerly Moltbot/Clawdbot) have made it practical to run yourself.

In my previous post on CI/CD guardrails for AI agents, I wrote about catching the mistakes AI-generated code can make. This post is about the flip side: giving an AI a persistent environment so it can do more than write code snippets on demand.

What "always-on" actually means

The core idea is that an AI agent runs as a daemon on a dedicated machine — typically a Mac Mini — that never sleeps. You connect to it through a messaging app like Telegram. This means the agent can:

  • Message you proactively on a schedule, not just when you ask
  • Control a browser to research, QA, or monitor websites without you at the keyboard
  • Run background scripts and automations that keep working when you close your laptop
  • Be reached from anywhere — your phone, tablet, or even Apple Watch

The machine could be a Mac Mini you own, or a virtual Mac you rent for around $25/month. The key is that it is always powered on and connected to the internet. The underlying model — Claude, GPT-4, or anything else — is mostly a matter of preference and what API keys you already have.

Setting it up

The setup has three moving parts: the agent software itself, a messaging interface, and the host machine configuration.

1. Install the agent

With Node.js 22.12.0 or higher on the host machine, install OpenClaw from your terminal:

npm install -g openclaw@latest
openclaw onboard --install-daemon

The --install-daemon flag is what matters here. It registers the agent as a background service so it keeps running even after you close the terminal. The onboarding wizard walks you through connecting your AI provider API key and choosing a messaging channel.

If your shell cannot find the openclaw command after install, add the npm global bin directory to your path:

# Add to ~/.zshrc or ~/.bashrc
export PATH="$(npm prefix -g)/bin:$PATH"

2. Connect Telegram

Telegram works well as the messaging interface because it is available on every platform, supports voice notes, and has a solid bot API. During onboarding, select Telegram as your channel, then:

  1. Open Telegram and message @BotFather
  2. Run /newbot and follow the prompts to create a bot
  3. Copy the bot token and paste it when the wizard asks

You now have a chat thread where you can reach your agent from anywhere in the world.

3. Keep the machine awake

A Mac that goes to sleep is useless as a server. In System Settings → Energy, enable:

  • Prevent automatic sleep while display is off
  • Start up automatically after power failure

Then run this in a terminal to prevent the display from locking:

caffeinate -d &

You can send this command through Telegram once the agent is running — it will execute the command and confirm it is active. From that point on the machine stays awake indefinitely.

Use case 1: Proactive daily check-ins

The most immediately useful setup is a cron job that makes the agent message you instead of waiting to be asked.

Tell the agent through Telegram:

"Send me a message every day at 8:30am asking for my top three priorities. At 10pm, ask what I got done and what I did not. Keep a running log."

It will configure the cron job, save the instructions, and start the loop the next morning. The accountability this creates is worth the setup time on its own.

Voice notes work too. Enable the transcription skill by providing an OpenAI API key during setup, and the agent will transcribe and process audio messages automatically — so you can check in while commuting without typing anything.

Use case 2: Browser automation

OpenClaw ships with a Chrome extension that gives the agent control of your browser. Load it in developer mode (ask the agent through Telegram to open the right Finder folder, then drag the extension in), then you can ask things like:

"Go to my website, click every link in the footer, and tell me which ones are broken."

The agent opens Chrome, navigates the site, and reports back in Telegram — all without you touching the keyboard. This works well for periodic QA checks, competitor monitoring, or keeping tabs on any web page you care about.

Use case 3: Task management integration

Connect the agent to a project management tool like ClickUp or Linear and it can track its own work. Tell it:

"Whenever I ask you to do something, log a task and mark it complete when done. Save this as a skill so you never forget."

Provide the service's API key (or have the agent navigate to the settings page and find it), and ask it to save the integration permanently to its skills file. After that, every task the agent takes on shows up in your project tracker. You get full visibility into what is in progress and what is done, without updating anything manually.

Use case 4: Automated email handling

One of the more impressive setups: give the agent its own email address using a service like AgentMail, then define your rules upfront.

"Whenever I forward you a sponsorship email, draft a response based on my rates. Always ask for my approval before sending anything."

You forward an email, the agent drafts a reply, pings you in Telegram for a go-ahead, and sends it. The context-switching that used to eat hours becomes a quick approval tap on your phone.

The underlying shift

What makes this pattern interesting is not any single use case. It is the architecture change underneath: the agent now has a persistent home. Scripts it writes do not disappear when you close a terminal tab. Automations keep running. Memory accumulates. Cron jobs fire whether or not you are at your desk.

This is meaningfully different from using an AI as a coding assistant inside an editor. An always-on agent is closer to a junior employee who happens to be available 24 hours a day, never forgets an instruction, and can work on multiple tasks in parallel.

The tradeoff is that you have to treat it like a real coworker. Check in periodically, watch what it is doing, and step in when it gets stuck — and it will get stuck. Security also matters: make sure the agent's service is not exposed to the open internet. It should only be reachable through your messaging channel. Early setups in this space were found to be accidentally wide open, leaving shells and browser automation tools accessible to anyone.

The question I keep coming back to is not "what can I offload to this agent?" but "what would I actually trust it to handle unsupervised?" That boundary is moving faster than most people realize.