Run AI Agents 24/7
Paperclip looks like a task manager, but its workers do not go home. Agents wake when there is work for them, at any hour, and that only works if something is awake to wake them. This page explains how agents are woken, why a laptop is a poor home for a company of agents, and what an always-on server does when something goes wrong.
How agents wake up
Agents in Paperclip are not running all the time. They sleep until something needs them, and the server decides when that is. Paperclip calls each wake a heartbeat, and its README lists what triggers one:
- Assigned work. A task assigned to an agent, by you or by its manager agent, wakes it.
- Follow-up messages. A reply in a task's conversation wakes the agent working on it.
- Timer heartbeats. Optionally, an agent checks for work periodically.
- Routines. Recurring work with cron, webhook or API triggers. Each routine run creates a tracked task and wakes the assigned agent, with no manual kick-off.
Delegation flows through the org chart: a CEO agent breaks a goal into tasks and assigns them, those assignments wake the next agents, and so on. One detail worth knowing: a mention alone does not assign work or wake another agent.
All of this runs inside the Paperclip server, through a wakeup queue kept in the database, with budget checks and secret injection before each run. If the server is not running, nothing wakes.
Laptop versus server
| Laptop | Always-on server | |
|---|---|---|
| Lid closed or asleep | Every agent stops | Agents keep working |
| Routines at 3 a.m. | Run only if the laptop is awake | Run on schedule |
| Webhooks from other services | Not reachable in the default local mode | Reachable at your HTTPS address |
| Your team | Local mode is single-operator, localhost only | Sign-in with accounts and invites |
| Long builds and tests | Compete with your own work | Run on the server's own resources |
A laptop is the right place to try Paperclip. It starts with no configuration, an embedded database and no login. Once agents do real work on a schedule, or other people need to see it, the company belongs on a server. Moving it is covered in the backup and migration guide.
What an always-on server takes
Being reachable from the internet changes Paperclip's requirements: it must run in authenticated mode with a public URL, a PostgreSQL 15 or newer database, stable secrets and HTTPS. The self-hosting guide walks through all of it. Hosting for Paperclip on Flux starts with these done, so the server is ready to keep agents working as soon as you connect a model.
When a server fails
Always-on is a promise about the whole system, not about any single machine. On Hosting for Paperclip every plan runs on three instances:
- The database runs on all three. PostgreSQL 15 runs as a cluster with automatic failover, so the org chart, tasks, conversations, run history and budgets survive the loss of a server.
- Paperclip runs on one. One instance is active and the other two stand by, with Paperclip's data folder (agent workspaces, uploads) synced between them. If the active instance goes down, a standby takes over and connects to the same database.
To be precise about what that means: failover is not instant, and a run that was in progress on the failed server is interrupted. Paperclip's heartbeat execution includes bounded recovery for the failures it supports and surfaces the cases that need a person, so check the dashboard after an outage. Nothing in the database is lost, and new wakes resume on the new active instance.
Only one Paperclip is active at a time by design. The standbys are for staying up, not for more speed; for more capacity, move to a bigger plan.
Keeping it running cheaply
An always-on server does not mean always-spending models. Agents use model tokens only when they wake. Budgets on the company, agents and projects stop API-billed work at the limits you set, as described in what running Paperclip costs.
Give your agents a server that stays on: Hosting for Paperclip on Flux.
Frequently Asked Questions
Do agents keep working when I close the browser?
Yes. The work happens on the server, not in your browser. Agents wake for assigned tasks, replies and schedules, and their results are waiting when you come back.
What wakes an agent?
Assigned work and follow-up messages. Optional timer heartbeats let an agent check for work periodically, and routines create recurring tasks on a schedule or from a webhook or API call. A mention alone does not assign work or wake another agent.
Can I run Paperclip on my laptop instead?
Yes, and it is a good way to try it. But a sleeping laptop stops every agent, and the default local mode listens on localhost only, so webhooks and your team cannot reach it.
What happens if the server fails?
On Flux, Paperclip runs on one active instance with two standing by, and PostgreSQL runs as a cluster on all three with automatic failover. A standby takes over with the same database. Runs that were in progress on the failed server are interrupted; Paperclip recovers supported failures and flags the rest for a person.
Can I run two Paperclip servers at once for more speed?
Not on Hosting for Paperclip. One instance is active at a time; the others are for failover. More capacity comes from a bigger plan.
Paperclip is open-source software (MIT) by the Paperclip project (https://github.com/paperclipai/paperclip). Flux is not affiliated with or endorsed by the Paperclip project.