Cloud agents

Running an AI agent in the cloud instead of on your laptop

Three approaches, one of which is ours, described precisely enough that you can tell which one you actually want.

The short answer

Running an AI agent in the cloud means moving execution from your laptop to a server process that survives your session. Three approaches exist: keep your terminal agent alive on a rented box under tmux, drive an agent from CI on a trigger, or use a hosted runtime that owns the queue. Polaris takes the third approach, with a Postgres job queue, a runtime process on Fly.io and a model gateway.

Setup for the hosted path
Assign a task
Session deadline
8 minutes per job
Shell access
Desks, in preview

What people mean by this question

The search is usually not about hosting. It is about custody. Someone has a terminal agent that works well, and the constraint they have run into is that the agent belongs to one laptop and one person. They want the same quality of work to happen on a machine they do not have to babysit, and they want a colleague to be able to reach it.

Claude Code is Anthropic's coding agent, and it runs in your terminal on your machine. Polaris is a separate product, built by superstack.digital, with no affiliation with or endorsement by Anthropic. Polaris runs its own agent runtime and model gateway on machines it operates, uses open models first, and calls the Anthropic API only where a task needs Claude. If what you want is Claude Code, use Claude Code. If what you want is the capability people describe when they say "Claude Code in the cloud for my team", that is what this page is about.

Anthropic ships Claude Code and changes what it offers on its own schedule. Check Anthropic's documentation for what is current there. The rest of this page is about the three architectures available to you regardless of which vendor's model is doing the thinking.

The three architectures

Pick by what you need to be true, not by what sounds modern.

Terminal agent on a rented boxAgent driven from CIHosted runtime with a queue
SetupProvision, install, keep a session aliveWrite a workflow file and a triggerAssign a task to a worker
Repository and shellFullFull inside the runnerNone by default; desks in preview
Who can start workWhoever holds the SSH keyWhoever can push or dispatchAnyone in the org, from the task
Where results landThat shellLogs and artifactsA comment, a file, a Docs page
Ops burdenYoursYoursNone on your side
FitSolo engineer with a repo to workDeterministic, repeatable pipelinesTeams handing work back and forth

What one hosted job does, in order

This is the sequence in runtime/worker.mjs, not a marketing summary of it.

  1. 1

    The queue row appears

    Assigning a task to a member whose kind is agent fires a Postgres trigger that inserts a row into agent_jobs with status pending. Copilot members are excluded, and tasks already marked done are skipped.

  2. 2

    The runtime claims it

    A loop on the Fly machine polls every five seconds and makes one atomic claim, ordered by job class, deadline and age, with one writer per task. If another process claimed the row first, the claim returns nothing.

  3. 3

    Context is assembled

    The worker's Mind files that apply to this task, the org's docs tree, the task's criteria, labels, bucket and due date, its recent comments and every unanswered request in its ledger are read in a handful of parallel queries and rendered into a system prompt and a brief.

  4. 4

    The loop runs with real tools

    Up to ten rounds through the model gateway, on an open model by default and on Claude where the rung or the task asks for it. Tools for progress, criteria, files, documents and delivery are implemented by the runtime and answered locally.

  5. 5

    The session ends

    The worker calls deliver, which must address every open request. Code checks run, then a critic with a clean context. If the worker never delivers, the runtime nudges once; a session that still has not delivered has failed, and two failures in a row put one question to the person who decides.

What the hosted runtime does not do

Read this before you decide. It is short and it matters.

  • No shell by default

    A standard session has no terminal. Desks, a machine per worker with no network and default-deny egress, are in preview and rolling out.

  • No repository checkout

    Nothing is cloned from your repository. Code work stays with your local agent, which is genuinely better at it.

  • No cron

    Work starts because a person assigned a task or commented on one. Workflow chains that step on their own are in preview.

  • No unbounded session

    One job is capped at ten model rounds and an eight-minute deadline. Long work is decomposed across sessions, on purpose.

Go deeper

Questions people ask

+Can I point Polaris at my own machine instead of a hosted one?

The queue contract makes that possible in principle, because agent_jobs is an ordinary Postgres table and the runtime is one process reading it with a service-role key. Polaris does not ship a self-hosting path or documentation for it today, so treat this as an architectural property rather than a supported feature.

+Which model runs the session?

The organisation chooses on the Models page. Each rung (think, execute, trivial) points at a provider, with an open model on the org's RunPod endpoint as the default, and a task can be pinned to Claude with Needs Claude. Every call is made server-side and its tokens and cost are logged.

+Does the agent see my whole workspace?

It sees the task it was assigned, that task's criteria, recent comments and open requests, the bucket the task sits in, the titles of the org's document pages so it knows where to file things, and the Mind files that apply to it. It does not receive the contents of other tasks or documents.

+How fast does work start after I assign it?

The trigger writes the queue row inside the same transaction as the assignment, and the runtime polls every five seconds, so a free machine picks the job up in seconds. If a job is already running, the next one waits its turn in created_at order.

+What does a session cost?

The software is free. A finished job stores a human-equivalent minute estimate on its own row, billed at roughly two dollars per hour, computed from counters such as searches run and characters written. A short research task typically lands in single-digit dollars, and a job that delivers nothing is not billed.

✦

Your next hire takes 60 seconds.

The software is free — unlimited people, tasks, workstreams and docs. You pay only for work an AI worker actually delivers, itemised by the hour.

Get started free

Last checked .