Updated · Markdown

Run AI agents in the background, not on your laptop

Updated 2026-11-29. Written by the team that builds Tex, so weigh it accordingly.

Short answer: an agent on your laptop stops when the lid closes. To run in the background, it needs a machine that is always on, something that starts it (a schedule, an event, an API call), a sandbox to work in, the credentials for its tools, and a place to see what it did. You can build that on a server or in CI, use a coding agent's cloud mode, or use a hosted agent platform such as Tex.

The options

Way Good for The catch
A server or VM running claude -p or codex exec from cron One engineer, one job You keep the box, secrets, logs and sandboxing yourself
CI (for example GitHub Actions) running a coding agent Jobs tied to a repo: PRs, issues Tied to the repo's events, with CI's time limits
A coding agent's own cloud (Codex cloud, Claude Code on the web) Coding tasks you start by hand Built around a person starting a task, not recurring jobs
A hosted agent platform, such as Tex A team's recurring jobs with memory, budgets and approvals Another service to adopt

How Tex runs agents in the background

Questions people ask

What happens if a run gets stuck? Each agent has limits on sessions a day, tokens per session and turns per session. When it reaches one, it stops, and the console shows why.

Where do I see the results? In the console: every session with its full timeline and a chat, and World, a map of every running session.

Can I still run it by hand? Yes, from the console or with one API call.

What Tex doesn't do

Try Tex with $10 of free credit