← All posts
10 min read

Forge

Inside Owner’s cloud agent platform

Max Schwenk
Head of AI Developer Experience
Miran Park
Senior DevEx Engineer
Cameron Gagnon
Senior DevOps Engineer
Brock McElroy
Senior Software Engineer
Ryan Selden
Senior Staff Software Engineer

Three parallel Forge tasks running OpenCode inside isolated Modal sandboxes: a POS bug fix running an Android POS emulator and emulated card reader with a 42-second Theatron clip and live preview, a monolith pull request typechecking 37,000 TypeScript files with tsrs in 7.1 seconds while bursting from 14 to 48 GiB, and a Finance Q4 margin query calling Snowflake and Slack through Charon Code Mode with zero keys on disk and write approval gating.

FORGE / PARALLEL CLOUD SANDBOXES
POS bug fix
#pos-support · Android KVM
OpenCode
✓Android POS emulator + emulated card reader
✓Reproduced loyalty bug on order #408
✓Verified fix & recorded narrated clip
Theatron 0:42 preview-4812.forge
● preview live Modal KVM
Monolith PR
Engineering · tsrs
OpenCode
✓37k TS files · tsrs 7.1s (5 GiB)
✓Docker Postgres + Mongo started
✓14/14 integration checks passing
RAM burst 14 → 48 GiB
tsrs 7.1s (5 GiB) Burst 14 → 48 GiB
Q4 margin query
Finance · Charon
OpenCode
✓Snowflake + Slack · Code Mode
✓0 keys on disk · user RBAC checked
✓Aggregated Q4 cohort margins
Charon write gate Paused
Awaiting approval to post in #finance
Code Mode · 0 keys Write gated

Forge is our internal agent platform, running on Modal. It’s Owner’s most-used AI platform, even though everyone also has access to Claude and ChatGPT.

We built Forge to let teams run many agents in parallel and have them test their own changes, without maxing out laptops or making every team rebuild the same tool integrations. Each task gets its own cloud environment, wired into our shared tools and access controls.

We thought about using an off-the-shelf tool like Claude Code instead. The problem is that off-the-shelf harnesses have to make generic security and UX trade-offs. For our setup, they end up too permissive in some places and too strict in others, and you can’t wire them deeply into your own infrastructure. Owning the software stack also keeps us independent of any single model provider. Over the summer, model leadership shifted from Anthropic to OpenAI and open-weight models and back to Anthropic again. When we wanted to switch models or manage spend, we could move right away without waiting on one model provider.

Because every task connects to the same company context and tools, Forge quickly grew past engineering. Today, 94% of engineering uses Forge weekly, and departments outside of engineering, product, and design are at 75%. Forge is our most-used AI platform, even though everyone also has access to Claude and ChatGPT.

This post covers how we built it and the key decisions we made.

1 - Running and testing in the cloud

If you want engineers to stop defaulting to their laptops, you need a cloud environment that’s preferable to the laptop. In Forge, you go from a prompt to a working agent in a fresh repo workspace in under 5 seconds, with local databases, migrations, auth, app services, and test accounts ready to boot inside the same sandbox. You can run 20 of those tasks in parallel.

That matters even more because Owner isn’t a web app. It also includes POS, Kiosk, and handheld software that depends on Android emulators and payment hardware emulation, including card readers. Setting up that stack locally used to cost engineers hours before they could test anything. In Forge, starting Chrome or an Android POS emulator with an emulated card reader takes one click or a single agent tool call, largely thanks to Modal’s nested virtualization and resource support.

We tell agents how to check their work. For a bug fix, that means starting the app, reproducing the bug, fixing it, and verifying the fix in a browser or emulator. The agent then records a narrated walkthrough and shares it through Theatron, our internal video tool.

FORGE / ANDROID POS EMULATOR
10:24 AM · Android 15 · POS Register 2 Maple Street Diner (Sandbox)
OWNER POS · ANDROID EMULATOR
Starting sandbox register
✓ Modal VM booted with nested virtualization (1.4s)
✓ Emulated S710 card reader attached
✓ Test restaurant & loyalty account seeded
Lunch Menu Dine-in · Table 4
Smash Burger $14.00 + Extra pickles
Crispy Fries $5.50 Sea salt
House Lemonade $4.50 Fresh mint
Truffle Mac $12.00 Add bacon
Caesar Salad $11.50 Grilled chicken
Vanilla Shake $6.50 Whipped cream
Order #408 Alex M. · 520 pts
1× Smash Burger$14.00
+ Extra pickles ($0.00)
1× Crispy Fries$5.50
1× House Lemonade$4.50
Loyalty (500 pts)−$10.00
Tax$1.26
Total$15.26
Charge $15.26 Waiting for S710 card tap… ✓ Paid · Visa •••• 4242
S710 READER · EMULATED
BOOTING Connecting… sandbox bridge
READY Maple Street Waiting for order
TAP CARD $15.26 Contactless / EMV
APPROVED ✓ $15.26 Auth #88412
Walkthrough clip saved to Theatron

Every app booted inside Forge also gets an isolated preview link scoped to that sandbox. Teammates can click through a feature themselves and share the URL, all self-contained without maintaining brittle hybrid staging setups. We use the same machinery to test Forge itself: a scheduled set of benchmark tasks runs inside Forge and tracks cost and failed tool calls so model or harness regressions show up early.

Inside the stack

Behind every task is a control plane (PostgreSQL for task state, Temporal for sandbox lifecycle, and S3 for conversation and file backups) paired with an isolated Modal sandbox and three shared services: Poros for model inference, Charon for company tools, and Cantrip for reusable skills.

FORGE / SYSTEM ARCHITECTURE
01 · Control 02 · Sandbox 03 · Poros 04 · Charon Every surface — macOS Desktop, Web, iOS, Slack, CLI, and the Autoforge API — talks to one control plane backed by PostgreSQL, Temporal lifecycle workflows, and durable S3 archives. Each task runs OpenCode inside an isolated Modal v2 sandbox with shared Docker startup scripts, nested KVM for Android POS, a separate >1M-file node_modules mount, and RAM bursting up to 96 GiB. All model traffic leaves through Poros on Cloudflare Workers — the same gateway serving production and local dev — with per-sandbox keys, spend caps, provider failover, and centralized A/B evals. Charon keeps third-party keys off the sandbox via Code Mode (global + personal MCPs, bearer-token prod tools, write approvals, and audit logs), while Cantrip loads and publishes team skills without GitHub.
Clients Same live task & sandbox across surfaces
macOS Desktop Web iOS Slack CLI API (Autoforge)
01 Forge control plane State & orchestration
PostgreSQL State

Tasks, ownership, routing metadata, and warm pool state.

Temporal Lifecycle

Orchestrates boot, warm claim, idle stop, and clean resume.

S3 Durable

Transcripts, SQLite DB, outputs, and offline bulk evals.

02 Modal v2 sandbox Isolated per task
OpenCode Model-agnostic

Client-server split decouples the runtime from Desktop, Web, iOS, and Slack UIs.

Docker-native workspace Shared scripts

Reuses localdev & CI startup code, local Postgres/Mongo DBs, and scoped preview links.

Browser & Android POS Nested KVM

Headless Chrome, Android POS emulator + emulated card reader, and Theatron clips.

Layered disk & bursting Burst to 96 GiB

Separate >1M-file node_modules mount keeps snapshots fast; low baseline RAM bursts on demand.

Poros Inference gateway · CF Workers

One API across providers with outage failover, centralized A/B evals, and per-sandbox keys & spend caps.

Shared with prod Scoped keys & caps
Charon Tools & auth · Code Mode

Global + personal MCPs and bearer-token prod tools with human write approvals and full audit logs. Also used locally & in Minos.

0 keys on disk Write approvals Audit log
Cantrip Skill library

Personal & shared workflows loaded at claim time and published directly from Forge without GitHub.

Personal & shared No GitHub needed

Inside each sandbox, we run OpenCode, an open-source agent harness, for two practical reasons. First, it’s model-agnostic: so we can easily switch providers, or point a specific department at a different model. Second, its client-server architecture separates the agent runtime from the UI. Early on, we bootstrapped on OpenCode’s own interface to get moving fast. Once we knew what our teams needed, we built our own interfaces on top without rebuilding the harness underneath.

All model requests leave the sandbox through Poros, our inference gateway on Cloudflare Workers. The same gateway serves our production restaurant workloads, local dev, and Forge. We used to run separate gateways because sharing infrastructure between production and internal tools felt risky, and that turned out to be a mistake. If Poros breaks, production breaks too. So Forge runs on infrastructure we already have to keep reliable, and improvements help all three environments.

Poros gives us one API across model providers and handles streaming. It’s where we keep the model catalog, with capabilities, context limits, and pricing. It also enforces spend caps per sandbox and lets us compare usage, latency, and cost across prod, local dev, and Forge. Because every request goes through it, we can transparently reroute inference when a provider goes down, and run controlled A/B comparisons for evals by splitting traffic across models centrally without asking employees to change their preferences or adjusting sandbox configuration. It also keeps raw upstream provider API keys off the sandbox: when a task starts, Forge mints a dedicated Poros key scoped to that sandbox and its owner, and revokes it as needed.

2 - Managing task environments

We needed to start environments for new tasks, stop them when they’re idle, and let people come back to them later. We wanted Forge to feel seamless, while also avoiding paying for idle time or adding latency.

To make tasks start and restart quickly, we do as much as we can before a task exists. About twice an hour, we start a sandbox on the latest code, install dependencies, and save the result as a fresh image with Modal’s filesystem snapshots. Modal doesn’t charge us to store snapshots, so keeping fresh images is extremely cheap: we only pay for the sandbox that builds them. A small pool of sandboxes booted from the newest image stays warm, so a new task can claim one that’s already running.

Startup has two parts: boot and claim.

  • Boot: we start Docker and prepare the tools every task will need. The sandbox doesn’t have anyone’s task credentials yet.
  • Claim: when a new task claims a ready sandbox, we add that task’s credentials and configuration, load its skills, and start OpenCode. We immediately start another sandbox to refill the pool.

There is one catch with filesystem snapshots. Restoring a snapshot stays fast as an image grows in bytes, but it slows down as the number of files grows, and our node_modules holds more than a million files. Rather than baking node_modules into the base image or every task’s saved disk, we keep it in a separate snapshot that a sandbox mounts after it boots.

When we stop a task cleanly, we save its filesystem, including code changes, conversation history, and local databases. On resume, we restore the disk and restart the processes. We also back up conversation transcripts and selected output files to S3. Keeping that data outside the snapshot means people can read past conversations without booting a sandbox, and our internal evals can scan transcripts en masse for user friction and token inefficiencies without spinning up a single box.

FORGE / SANDBOX LIFECYCLE
01 · Build 02 · Pool 03 · Claim 04 · Save Refreshed roughly twice an hour on main: builds a lean base image and a separate node_modules directory snapshot (>1M files), verified with a smoke boot before promotion. Sandboxes pre-boot from the newest base image with Docker, shared tools, and node_modules mounted at boot for EPD pools — with zero task credentials inside. A new task claims a warm box in under 5s, injects its scoped Poros key, credentials, and Cantrip skills via tmpfs, starts OpenCode, and immediately boots a pool replacement. Clean stop revokes keys, snapshots the task disk (skipping mounted node_modules), and exports transcripts & outputs to S3; resume restores disk and re-mounts matching deps.
01 Build snapshots ~2×/hr · Modal
Base image Lean root disk
Latest main checkout, Docker, CLI tools, OpenCode, and Caddy — with node_modules unmounted.
node_modules snapshot >1M files
Separate directory snapshot + lockfile SHA fingerprint, kept out of base images and saved task disks.
✓ Smoke-booted & verified before promoting default
02 Warm pool No task creds
BOX 01
Base image node_modules
ReadyClaimed ↓
BOX 02
Base image node_modules
ReadyReady
BOX 03
Base image node_modules
ReadyRefilling ↑
Boot Docker daemon, shared CLIs, OpenCode & Caddy prewarmed in page cache.
Mount node_modules attached at boot for EPD pools (skipped for non-EPD).
03 Claim & run Isolated task
tmpfs identity Never snapshotted
Scoped Poros key and brokered GitHub credentials.
OpenCode + services Live processes
Loads Cantrip skills, starts OpenCode, Caddy, local Postgres & Mongo.
Writable workspace Saved on stop
/root/Owner edits, OpenCode SQLite DB, local DB state, task context.
/root/Owner/node_modules Separate mount
>1M files mounted separately — verified by lockfile SHA, skipped on snapshot.
04 Save, S3 & resume Zero idle cost
Task disk Modal
  • Code changes
  • Session history
  • Local databases
No node_modules · keys revoked
S3 backup Durable
  • Transcripts (.gz)
  • SQLite DB (.zst)
  • Output artifacts
Offline viewing & bulk evals
Clean resume path Bypasses pool
STEP 1 Restore task disk
STEP 2 Re-mount deps
STEP 3 Fresh keys & start
Unexpected timeout or crash also leaves a 30-day Modal exit snapshot.

Running that lifecycle at scale meant starting lots of environments without worrying about capacity restrictions, reservations, or performance degradation. In an early test, we started 500 Modal sandboxes in about 5 seconds. Modal’s v2 sandboxes also gave us everything we needed in one place: Docker, local databases, filesystem snapshots for pausing and resuming work, and the nested virtualization behind our Android emulators. Because they run Docker, they aren’t a bespoke environment. Our local dev, CI, and Forge startup scripts share almost all of the same code.

We’d also been running into out-of-memory failures with some providers. When a session starts, there often isn’t enough context from the prompt, or even from metadata like the Slack channel or the requester’s role, to know what the sandbox will need. Someone in finance doesn’t need the 12 GiB it takes to run an Android emulator, while an engineer’s task might need a lot more memory to build or typecheck the app. Almost all of a sandbox’s lifetime is just an agent sitting there waiting on a model call or waiting to hear back from the person prompting it.

Modal’s CPU and memory bursting is huge here, and it rarely comes up in discussions around sandbox pricing. Because Modal operates at large scale, we can request a bare minimum of CPU and memory up front and let any sandbox burst up to 96 GiB when it needs to, without micro-tuning box sizes. The chances of running out of memory are tiny. Our friends at Modal even recommended we lower our baseline requests. When we did, nobody noticed, and we saved a lot of money. We still pay for what a sandbox uses while bursting, so making the tools inside it efficient still pays off directly. That’s part of why we ported the TypeScript compiler to Rust in tsrs, which cut monolith typechecks from 19 GiB and 80 seconds down to 5 GiB and 7 seconds.

3 - Leverage across the whole company

Forge gets heavy use well beyond EPD. Teammates across sales, support, operations, and finance use it to query Snowflake, Guru, Slack, and Braze, and to build and update their own internal Zeus apps. Making a coding-agent platform work for the rest of the company meant keeping company credentials out of sandboxes, hiding engineering setup when it isn’t needed, and meeting people in the apps they already use.

Charon

We didn’t want every employee injecting MCP credentials or API keys into sandboxes for their own needs, or every team inventing a different way to bootstrap tools. So we built Charon as one central layer for every integration. No third-party API keys live on disk in a task sandbox: Charon holds credentials for Salesforce, Snowflake, Slack, and other internal systems, and agents never have direct access to them. Employees can request new MCPs. Some integrations are shared globally, like read-only Datadog access, while teammates can attach personal connections for their own more sensitive credentials. On every call, Charon checks the user’s access, pauses write operations by default to show what the agent wants to do before it runs, and keeps an audit log of every tool call, who ran it, and what went in and out.

Charon is also built for context efficiency. It uses the Code Mode approach popularized by Cloudflare, so we can configure hundreds of MCPs across business functions without bloating the context window, and agents can efficiently chain calls and aggregate data across multiple third-party tools. Because we own this layer, we aren’t limited to off-the-shelf MCPs either. For an API without a documented schema or an MCP server, we can wrap it in a generic tool where Charon attaches a bearer token and calls the endpoint, while we teach the agent how to use it without ever exposing the token. We’ve used this to let sandboxes poke tightly controlled holes into our production infrastructure in ways an off-the-shelf MCP offering wouldn’t allow.

From the agent’s side, the interface for calling every tool is identical. It doesn’t have to switch between CLIs, MCPs, and raw curl commands. And because Charon is centralized, we use it outside Forge task sandboxes too, including locally and in our internal PR review tool, Minos. There, Charon lets Minos query feature flag state and database planner statistics so it can flag a PR whose query could take down production. As we build more internal systems, they all plug into the same tool layer.

Adapting Forge for every team

For non-EPD teammates, we hide the technical setup controls, skip app dependency installation unless the task needs to run code, and tell the agent to write in plain language and cite its sources.

They shouldn’t have to pick a model either. On non-EPD tasks, Forge chooses both the model and reasoning level automatically by reading the request and any surrounding Slack thread, unless someone overrides it. We size the sandbox separately, since giving a model more reasoning effort doesn’t give an emulator more CPU. We caught a routing gap when a customer-facing teammate asked Forge to record a short walkthrough of our POS loyalty-redemption flow. The first run got stuck navigating setup screens, and rerunning it with a higher-capability model worked on the first try. We updated routing so walkthrough requests automatically get more reasoning effort.

Once someone has a repeatable workflow, they can save it as a skill and share it through Cantrip, our skill library. Forge writes and publishes the skill files directly, so nobody needs GitHub access to publish one. Personal skills load automatically, and shared skills can be turned on by each teammate.

Different roles also work in different apps. Alongside Slack and the web app, we built a native Mac desktop app and a Forge iOS mobile app. Because OpenCode separates the runtime from the UI, the exact same task and sandbox persist across all of them: someone can kick off a bug investigation in Slack, review the walkthrough and preview link right in the thread, and continue the live sandbox in Forge Desktop or on their phone. Forge replies wherever you messaged it last.

Not long ago, it would have been unthinkable for an EPD org our size to build an internal Mac app competitive with Claude Code Desktop, plus a full-featured iOS app. With cloud sandboxes like these and frontier models, that’s what a small team can build for itself now.

FORGE / DESKTOP & IOS
Fix POS loyalty discount
Ready Auto · High $0.64 from #pos-support
Sam Rivera · via Slack
Maple Street Diner says redeeming a 500-point loyalty reward on the POS applies the $10 discount twice when a modifier is added.
bash Reproduce on POS emulator & S710 reader
bash 14/14 POS discount tests · tsrs 7.1s

Scoped loyalty redemptions to base items so attached modifiers are skipped. Verified checkout on the emulated S710 reader and opened PR #4812.

pos/pricing/loyaltyDiscount.ts +4 −2
14 export function applyReward(
15 lines: OrderLine[], cents: number) {
16− return lines.map((l) =>
17− discountLine(l, cents))
18+ const base = lines.filter(
19+ (l) => l.kind === 'base')
20+ return allocateOnce(base, cents)
21 }
▶ Theatron · 0:42 loyalty-discount-fix.mp4
↗ Preview live preview-4812.forge.owner.sh
Fix POS loyalty discount
Forge iOS · Task #4812
Synced · same sandbox

Opened PR #4812 with the walkthrough and preview attached. Ready to notify #pos-support?

› shell 14/14 tests · tsrs 7.1s ✓
loyaltyDiscount.ts +4 −2
− return lines.map(discountLine)
+ return allocateOnce(base, cents)
1m ago ···
Looks clean — post the walkthrough to #pos-support.
Charon · Slack write ✓ Approved

Posted summary and 0:42 walkthrough clip to #pos-support.

↗ preview-4812.forge.owner.sh

4 - From product to platform

Everything above is Forge used interactively. But we also put a clean API underneath it to start tasks, pass context and read back results. Teams in finance, ops, and engineering soon started wiring Forge into their own internal tools and review loops.

The biggest example built on that API is Autoforge. Autoforge runs research tasks looking for bugs and regressions, then starts separate Forge tasks to implement and review fixes. It tracks findings in Linear as engineers review code or ask for changes, and after a fix ships, a follow-up task checks whether it helped. Our next post will cover what we’ve built and learned with Autoforge.

We think Forge is a big step in unleashing the full power of AI. If you want to build a whole company within a company as a team of like 5 people, we’re hiring.