Skip to content
Pi Coding Agent Guide

Three decisions, one runtime

Run Pi in the cloud, on an open-source runtime you own

The open-source CompanyOS

Running Pi in the cloud means moving the tools somewhere, and that is the first of three decisions. Where your model credentials stay and where the diff lands decide the rest. Kortix is the open-source CompanyOS, and it answers all three, which in my opinion makes it the one to use; I work on Kortix's marketing, so weigh that accordingly.

One isolated machine per session · Your keys or your ChatGPT plan · A change request a person merges

kortix.yaml · agents.<name>.permission
permission:  bash:    "*": allow    "rm -rf *": deny  edit:    "*": allow

Per-resource permissions for people and agents. Roles, groups, and an audit trail.

Where the tools run, where the keys stay, where the diff lands

Each cell is what that option's own page states, read on 28 October 2026. Where a page is silent, the cell says so rather than guessing.

Kortixkortix.com, 28 Oct 2026
Open source
Yes
Where the tools run
Its own isolated machine, one per session
Where model credentials stay
In the project: a provider key belongs to the whole project
What starts a session
On demand, on a cron, or on a webhook
How work comes back
A change request a person reviews and merges
Where it can run
Kortix Cloud, your VPC, or your own on-prem network
What its page says about price
Free $0, 500 credits a month; Credits from $50 a month
Celestocelesto.ai, 28 Oct 2026
Open source
Yes, open-source core
Where the tools run
Read, write, edit and bash on an isolated Celesto computer
Where model credentials stay
On your machine; never enter the Celesto computer
What starts a session
You run pi --celesto in a project
How work comes back
/celesto sync copies changes back, conflicts preserved
Where it can run
Celesto cloud; the microVM behind its sandboxes can run on your own infrastructure
What its page says about price
Free plan, no credit card required
Ellipsisellipsis.dev, 28 Oct 2026
Open source
Not stated on its page
Where the tools run
Its own cloud VM, repo cloned, dependencies installed
Where model credentials stay
Not stated on its page
What starts a session
API, webhook, a Slack or Linear mention, cron
How work comes back
Not stated on its page
Where it can run
Its own cloud; no self-host stated
What its page says about price
Not stated on its page
OpenClaw Launchopenclawlaunch.com, 28 Oct 2026
Open source
Not stated on its page
Where the tools run
A hosted workspace, your code in /workspace
Where model credentials stay
In the workspace home directory; a saved key is opt-in per request
What starts a session
A terminal in the workspace, or its API
How work comes back
Code persists in /workspace, read in a browser terminal
Where it can run
Hosted workspaces; self-host not stated
What its page says about price
Not stated on the guide
Your own buildpi.dev README and pi-on-cf, 28 Oct 2026
Open source
Yes
Where the tools run
Docker runs Pi locally; Gondolin keeps auth on the host
Where model credentials stay
In the process environment, on your own machine
What starts a session
Whatever you script: a shell, a CI job, a call
How work comes back
Wherever you wrote it; no review step of its own
Where it can run
Your machine, or your own Cloudflare account
What its page says about price
Your machine and model bills

Plans and pages read on 28 October 2026. Kortix prices come from its pricing page, and the free plan takes your own keys or your ChatGPT subscription.

Three decisions the phrase hides

Running Pi in the cloud sounds like one move and turns out to be three. The first is where Pi's built-in tools run. The ones enabled by default are read, bash, edit and write. Each one acts on a filesystem, so what matters is which machine holds that filesystem. On a laptop it is the project you started Pi in. On a hosted option it is a machine that company runs, with your repository cloned into it.

The second decision is where your model credentials sit. Pi reads provider keys from the environment and takes a subscription through /login (pi.dev). A session in the cloud needs that credential at the point where a request leaves for the provider. Celesto keeps it on your machine and runs only the tools remotely. A hosted workspace that stores your sign-in keeps the credential inside the box the agent's own commands can read.

The third decision is where the diff lands. Edits made on another machine have to reach your repository. The routes differ: a sync command, a folder you open in a browser, a branch you push yourself. Teams grade hosts on the first decision and discover the third later, when they work out who reads a change before it reaches the default branch.

Kortix is the open-source CompanyOS. Its sessions answer all three. Every new session runs pi on its own isolated machine, tool calls pass the rules the agent's block sets, and the work arrives as a change request a person reviews.

Two blocks from the Kortix docs

The permission rules a session runs under, and what the audit log keeps.

kortix.yaml · agents.<name>.permission
permission:  bash:    "*": allow    "git push *": ask    "rm -rf *": deny  edit:    "*": allow    "secrets/*": deny  external_directory: deny  webfetch: ask

Read the docs ↗

audit log
The audit log records who did what in the account, when, how they signed in, and whether it was allowed.Recording is always on.

Read the docs ↗

The Kortix path, one session at a time

  1. Start a session. The session runs pi and gets its own branch, plus a checkout in /workspace when its agent sets workspace: { project_repository: true } (session docs).
  2. Work on the session's branch. The branch name is the session_id and it is cut from the session's base_ref, so the work has an address before the first edit.
  3. Tool calls meet the rules. Each permission entry resolves to allow, ask or deny, and the most specific matching rule wins, so git push * waits for a person while rm -rf * is refused (agent docs).
  4. The agent commits and opens a change request. It pushes to its session branch. A session does not put its work on the default branch by itself.
  5. A person merges. Merge is default-deny for agents: a session can merge only when its agent's permissions include project.gitops.merge.

What is still there when the session ends

The branch stays in the repository with its commits. A reviewer reads the change request as a diff against the base branch, with the commits behind it. A rejected change request leaves the branch in place for the next attempt, and the session log keeps what the harness did, turn by turn.

Two records sit outside the code. An audit log records who did what in the account, when, how they signed in and whether it was allowed, and recording is always on. Connector credentials are brokered server-side and never enter the machine, so a session can call a connected app without holding the key that reaches it.

When a simpler host or local Docker is the better answer

For one developer with one repository and their own keys, Pi on a laptop is the simplest setup that works. Plain Docker or the Gondolin extension adds a boundary around the process without a vendor in the middle (Pi's README). Celesto fits when you want Pi's interface and history local and only the tools elsewhere. Ellipsis fits a team that already starts work from Slack, Linear or a cron and wants a VM per session. OpenClaw Launch's hosted workspace fits a developer who wants a box with several coding agents installed and a browser terminal. Kortix is the one here that also holds the permission rules and the review, and you can run it on your own network if the work cannot leave it.

Before any of that, Pi has to be installed and driven once by hand. The Pi coding agent guide covers the install and the first session, and what a Pi harness is explains the loop.

What Railway, E2B, Tenki, Modal and Codespaces sell

A reader told to "just run Pi on Railway, Modal or E2B" is handed a machine and left to assemble the rest.

five hosts · machine class and price basis
Railway · an app platform with agent sandboxes  $50 per GB of memory and $50 per vCPU each month, metered per second E2B · an agent-sandbox platform  $150 a month plus usage, billed by the second Tenki Cloud · sandboxes and CI runners  about $0.00276 a minute and a runner $0.002 per vCPU-minute Modal · serverless compute  Starter costs $0 a month plus compute and includes $30 of compute GitHub Codespaces · a cloud dev environment  compute runs $0.18 an hour on a 2-core machine, $0.36 on 4-core and $0.72 on 8-core

Five names show up in that advice: Railway (an app platform with agent sandboxes), E2B (an agent-sandbox platform), Tenki Cloud (sandboxes and CI runners), Modal (serverless compute) and GitHub Codespaces (a cloud dev environment). Figures come from each company's own page, as of 31 October 2026.

Railway sells its sandboxes as "Isolated Linux VMs for agents, builds, and untrusted code". The bill covers "only for the CPU your sandbox actually uses and the memory it holds while running, never for the time it spends waiting" (Railway pricing). That is $50 per GB of memory and $50 per vCPU each month, metered per second, plus $0.05 per GB of egress. New accounts get a one-time $5 credit that expires in 30 days. Plans start at a $5 monthly minimum on Hobby and $20 on Pro. Your model key goes into a service variable, which Railway exposes as an environment variable. Seal the value and it is "never visible in the UI nor can it be retrieved via the API" (Railway variables).

E2B calls itself "The only open-source hosted microVM sandbox platform" and runs "the isolated machine your agent works on" (e2b.dev). You use it in code: install the SDK, start a sandbox, run commands in it. The API key comes from its dashboard, in your own .env. The free tier includes $100 in credit, sessions up to 1 hour and 20 concurrent sandboxes (E2B pricing). Pro is $150 a month plus usage, billed by the second, and allows sessions up to 24 hours and 100 concurrent sandboxes, expandable to 1,100. A 2-vCPU sandbox costs $0.000028/s. Custom adds BYOC deployment.

Tenki Cloud sells "Sandboxes for your AI agents, faster GitHub Actions runners, and AI code review on every pull request". Its sandbox line reads "Give your agent root without giving it yours" (tenki.cloud). A sandbox costs about $0.00276 a minute and a runner $0.002 per vCPU-minute. No credit card is needed. Runners operate on ephemeral VMs on Tenki's own servers. The page also states that "Tenki will never use your inputs or code reviews to train its models."

Modal is serverless, autoscaling "up and down for you based on request volume". You deploy an application written in Python (Modal pricing). Starter costs $0 a month plus compute and includes $30 of compute. Team is $250 a month plus compute, with $100 a month of compute included. Modal Sandboxes are "not subject to preemption" while Functions are. Secrets reach the running function as environment variables. Create one from the dashboard, the modal secret command line or Python. Each key's value is "at most 32,768 characters" long (Modal secrets).

GitHub Codespaces is a dev environment in GitHub's cloud. It charges for "compute time ... while the codespace is active" and for storage in GB-hours (Codespaces billing). A personal Free account includes 120 compute hours and 15 GB-month of storage monthly, and Pro raises that to 180 hours and 20 GB-month. Past the quota, compute runs $0.18 an hour on a 2-core machine, $0.36 on 4-core and $0.72 on 8-core. Storage is $0.07 per GB-month. Organizations get no free quota. Codespaces secrets are exported as environment variables into the terminal session, and are limited to "48 KB" in size (Codespaces secrets). GitHub lists "Export the changes from the codespace to a branch" among the options when a quota runs out.

What the five leave to you

Each platform answers the first decision with its own machine class and the second with its own secret store. None of the five pages states a review step before a change reaches a branch, a per-tool permission layer for an agent's commands, or Pi-specific tooling. Kortix is the open-source CompanyOS, and its session carries all three. Each session has its own isolated machine and branch. Tool calls resolve against the agent's permission rules. Work arrives as a change request a person merges. The five sell capacity; the rules and the review stay yours.

Questions people ask before they pick a host

Install Pi from pi.dev, then run pi in the project and use /login for a subscription or an API key. In the cloud, Celesto runs the tools remotely, Ellipsis runs each session in a cloud VM, and Kortix starts pi in a session on its own isolated machine.

In Kortix the platform holds them: a provider key belongs to the whole project, and a session runs on any model provider with your own keys, the ChatGPT plan you already pay for, or an OpenCode Console account for OpenCode Zen and Go (Kortix models docs). Celesto keeps Pi, the conversation and the model credentials on your machine and runs read, write, edit and bash in its cloud computer.

A branch. In Kortix the agent commits to a branch named with the session id and opens a change request a person reviews and merges; a rejected change request leaves the branch for the next attempt. Celesto copies changes back with /celesto sync, and a browser workspace leaves the code in /workspace.

Put the rules and the review around the run

Every new session in Kortix runs pi on its own isolated machine and lands the work as a change request.