Background Services

~10 min read

The Problem

Right now your bot only works when your terminal is open. Close the terminal, the bot stops. Shut your laptop, it stops. That is not useful for an AI assistant you want available on your phone at any time.

What Always On Means

Your computer can run programs in the background without you seeing them. Like how Spotify plays music while you browse the web. Your bot can do the same thing. It runs quietly in the background, processes your Telegram messages, and restarts itself if it crashes or if you reboot your computer.

How It Works

On macOS, the operating system has a built-in service manager called launchd. It can start programs automatically and keep them running. On Windows and Linux, a tool called PM2 does the same thing.

You do not need to know the details. Tell Claude Code: “Make it always on”

Claude Code generates the configuration files, installs them, and starts the services. It also verifies everything is running.

On macOS, you might see a popup saying “Software from Jared Sumner can run in the background.” That is normal. Jared Sumner created Bun. Click Allow.

Check That It Works

Close your terminal completely. Wait a minute. Then send your bot a message on Telegram.

If it responds, you are done. Your bot is always on.

What Gets Installed

Claude Code creates small configuration files that tell your operating system to run the bot automatically. On macOS, these go into a folder called LaunchAgents. On Windows and Linux, PM2 manages them.

If you ever want to stop or remove the services, tell Claude Code: “Stop the bot” or “Uninstall services.” It handles the cleanup.

One More Thing

This setup keeps the bot running on your computer. That means your computer needs to be on and connected to the internet. If you want the bot running even when your laptop is off, that requires a cloud server. That is covered in the full version.

Time: About 5 minutes.

// READY_FOR_MORE

Want voice, tools, and multi-agent features?

This free course covers the basics. The full GoBot system includes 25+ features — voice calls, tool integrations, proactive AI, and more. Built by 366+ professionals inside Autonomee.

Full Course Overview Join Autonomee