Skip to content
The AI Agent Factory

37.7 Build or rent, once more

Approved by
Panaversity ·
9 min read

In everyday life. Renting a flat costs more per month than a mortgage might. Buying costs a deposit, repairs and your weekends. Whether buying pays depends on how long you stay, and how much the deposit is.

What you will learn. What the open platform costs to build, how to work out its payback and break-even volume, and the honest answer to "should we build?"

Why it matters. Everything in this part so far has been per worker. Building the platform is a company decision, with fixed costs that per-worker numbers leave out on purpose.

What building costs

Both paths need building. On Claude Managed Agents, you still build the control plane, governance, evaluation, evolution and the contribution reporting. The paper assumes 4 engineers for 6 months. On the open stack you build all of that and the memory and dreaming that Anthropic would otherwise provide. The paper assumes 9 engineers for 6 months, and $8,000 a month more in fixed running costs.

The extra investment for the open stack, over the managed path, is its 54 engineer-months and $18,000 for infrastructure and security reviews, less the managed path's 24 engineer-months and $9,000:

Engineering cost per monthExtra investment
$3,000 (a Pakistan-based team, in the paper)$99,000
$10,000 (a blended international team)$309,000

These are planning figures, not quotes.

Payback at 1,000 medium workers

Monthly benefit = extra contribution from the open stack − $8,000 extra fixed cost.

Compared withMonthly benefitPayback at $3,000Payback at $10,000
Claude Managed Agents, Sonnet dreaming$17,7715.6 months17.4 months
Claude Managed Agents, Haiku reflection$5,42118.3 months57.0 months
Claude Managed Agents, cost-tuned$101over 10 yearsover 10 years

Read the last row twice. Against a well-tuned Claude setup, at 1,000 medium workers, the saving barely covers the extra fixed cost. The open platform does not pay back on cost alone. At 10,000 workers the same comparison gives about $73,000 a month, and the picture changes.

Break-even volume

Break-even volume = fixed monthly costs ÷ contribution per worker

Say the extra fixed cost is $8,000 a month, and the open stack adds $8.10 of contribution per medium worker over cost-tuned Claude. Then you need about 990 medium workers just to cover it, before repaying the build. Below that, the open stack costs you money compared with the managed path.

The same question with OpenAI

The paper's numbers compare Claude Managed Agents with the open stack. A firm that works with OpenAI faces the same choice, with the same arithmetic.

  • Rent: OpenAI's managed Agents API, mostly on OpenAI's own models (32.9). Like Claude Managed Agents, it runs the harness for you, and one company's price list sets the floor under your model costs.
  • Build: the OpenAI Agents SDK in a Durable Object, or Pi Durable, with an OpenAI model behind AI Gateway as one entry in your registry (35.4). You pay the same build cost as above, plus the durability you add to the SDK yourself (32.6).

The break-even formula does not change. Put the OpenAI model's prices into model.ts, rerun the medium worker, and compare the managed setup's Contribution II with the open stack's. Use the cost-tuned version of the managed setup, as in 37.2: its cheapest model that passes your golden set, not its flagship. Lab 37, Task 6 takes a first step for Lahore Foods' worker: it reprices only the judge rows at an OpenAI price, and the model line moves by cents.

We do not print OpenAI prices here. OpenAI's model line-up and prices changed several times in 2026. Take them from OpenAI's pricing page on the day you run the lab, and write the date beside them in model.ts.

So: build or rent?

The paper's own conclusion, and this part's:

Rent first. Start a new kind of worker on Claude Managed Agents. Learn its workload, build its golden set, and tune its cost there. That is cheap, fast and honest.

Build when at least one of these is true:

  • Scale. Thousands of workers, especially heavy ones, where small per-worker savings add up past your fixed costs.
  • Data rules. A client's data must go to a model or region the managed platform does not offer, or must not go where it does.
  • Model choice per activity. Your work has large routine parts that cheaper models do well, measured on your golden set.
  • Ownership of learning. What your workers learn is the business, and you need it in your own store, on any model.

Do not build to save a few dollars a worker on a few dozen workers, or without a team that can run a platform at night (Chapter 32's fourth question).

Most firms will end up with both, as Chapter 32 suggested. New workers run on the managed platform, and proven high-volume workers on the open stack. The professional layer (memory, rules and tests) is written to move between them. Company-wide finance, across every kind of worker and team, belongs to Part VI.

The invariant. Build your own platform when scale, data rules, model choice or ownership of learning pay for it, not because one worker is a few dollars cheaper.

Check yourself. A firm with 300 medium workers asks whether to build the open stack to save $8 a worker a month. What do you tell them? (Not on cost. $2,430 a month of extra contribution does not cover $8,000 of extra fixed cost. Build only if data rules, model choice or ownership of learning require it.)

  • Building Affordable, Self-Improving AI Workers (Panaversity, 29 November 2026), section 28, and cost model model.ts
Owner
Panaversity