# Can I use a CI runner to run an AI agent?

You can, within a CI job's limits: a run is started by your CI system, capped at 5 h on the median listed provider, and wiped when it ends. An hour at 2 vCPU costs from $0.0162 /h, median $0.24 /h (18 providers) on CI runners and from $0.01 /h, median $0.14 /h (60 providers) on agent sandboxes (checked 22 Nov 2026).

## Trade-offs

From Roost's data, checked 22 Nov 2026.

|  | CI runner | Agent sandbox |
|---|---|---|
| Started by | Your CI system (push, schedule or API call) | Your code, any time, through an API |
| Longest run | Median cap 5 h (of 17 that publish; 1 with no cap) | Median cap 24 h (of 43 that publish; 20 with no cap) |
| An hour at 2 vCPU | [from $0.0162 /h, median $0.24 /h (18 providers)](https://roost.guide/ci-runners/) | [from $0.01 /h, median $0.14 /h (60 providers)](https://roost.guide/agent-sandboxes/) |
| SSH into a running one | 14 of 36 | 39 of 70 |
| Pause and resume | No: a job runs to the end | 56 of 70 |
| Keeps files after | Nothing; caches are separate | Disk and memory (31), Disk (25), Nothing (ephemeral) (12), not published (2) |

Related: [Runner vs sandbox vs devbox](https://roost.guide/explained/index.md), [Billing models](https://roost.guide/explained/billing-models/index.md), [CI runner for agents?](https://roost.guide/explained/ci-runner-for-agents/index.md), [Sandbox for CI?](https://roost.guide/explained/sandbox-for-ci/index.md), [Devbox for background agents?](https://roost.guide/explained/devbox-for-background-agents/index.md), [Glossary](https://roost.guide/glossary/index.md)

Data: Providers [JSON](https://roost.guide/api/v1/providers.json); CI runners [JSON](https://roost.guide/api/v1/ci-runners.json), [CSV](https://roost.guide/api/v1/ci-runners.csv); Agent sandboxes [JSON](https://roost.guide/api/v1/agent-sandboxes.json), [CSV](https://roost.guide/api/v1/agent-sandboxes.csv); Devboxes [JSON](https://roost.guide/api/v1/devboxes.json), [CSV](https://roost.guide/api/v1/devboxes.csv); Browser sandboxes [JSON](https://roost.guide/api/v1/browser-sandboxes.json), [CSV](https://roost.guide/api/v1/browser-sandboxes.csv); macOS runners [JSON](https://roost.guide/api/v1/mac-ci-runners.json), [CSV](https://roost.guide/api/v1/mac-ci-runners.csv); Rented Macs [JSON](https://roost.guide/api/v1/mac-ci-rentals.json), [CSV](https://roost.guide/api/v1/mac-ci-rentals.csv); [API docs](https://roost.guide/data/).
