The real decision
"Build vs buy" framing is wrong for in-product AI. The actual decision is which layers you build. Every AI product has five layers: tool definitions, data and knowledge, the agent loop, the gateway and metering, and the embeddable UI surface. Tools and data are always yours. The question is whether the bottom three are worth a platform team.
What building actually costs in 2026
- v1 ship: 2–3 engineers, 6–9 months, $400–700k loaded — gateway, metering, widget, knowledge ingestion, OAuth, audit logs.
- Year-two run rate: 1 dedicated engineer (~$250k) to keep up with model releases, security reviews, and Stripe pipeline edge cases.
- Hidden costs: SOC 2 evidence on a new system, billing reconciliation bugs, OAuth client maintenance for each provider you support.
- Opportunity cost: the same engineers not shipping your core product.
The trap
What Command+K owns for you
- The embeddable widget (overlay + inline modes) with theming hooks.
- The AI gateway: routing, retries, per-user metering, hard cost caps.
- The Stripe rebilling pipeline with idempotency and DLQ.
- MCP transport, OAuth presets for common providers, audit logs.
- Knowledge ingestion and citation enforcement.
What you keep
- Your tools — every MCP tool definition is your code, portable to any host.
- Your data and knowledge sources.
- Your prompts and system instructions.
- Your end-user identity and your Stripe customer.
- The customer relationship — Command+K is invisible (whitelabel by default).
Who should still build
- The assistant is the product (Cursor, Devin, Linear AI).
- You have 3+ engineers fully assigned to AI platform work.
- Your differentiation lives in a novel agent loop, not in tools or knowledge.
- You're already operating a global gateway with metering and rebilling for another use case.
If three of those four are true, build. Otherwise, buy — and revisit at month six.
The "buy, then decide" path
The most common 2026 pattern is to ship on a managed platform in 2 weeks, learn what your users actually do, then re-evaluate at month six. Because tools live behind MCP — an open spec — the work you do is portable. Migrating off is a transport swap, not a rewrite.
Net-net
Building your own gateway, widget, and metering pipeline is a fine project for a platform team that has nothing else to do. For every other team, time to first paying AI revenue matters more than owning the transport. Start on the widget and Monetize, keep your tools portable, decide later.
FAQ
- When does building your own in-product AI make sense?
- When the assistant is your core product (Cursor, Linear's AI), when you have a dedicated AI platform team of 3+ engineers, and when the differentiation is in the agent loop itself. For everyone else — where AI augments an existing product — a managed platform is faster and cheaper.
- What does building in-house actually cost?
- Realistic 2026 numbers: 2–3 engineers for 6–9 months to ship v1 (~$400–700k loaded), then 1 engineer ongoing (~$250k/yr) for model upgrades, security reviews, gateway maintenance, and billing pipeline. That's before any model spend.
- What do I lose by buying instead of building?
- Pixel-level UI control beyond CSS theming, and the freedom to invent novel agent loops. You keep tool definitions, data, prompts, knowledge, and the customer relationship. The platform owns transport, gateway, metering, and the embeddable surface.
- Is buy-then-migrate a real option?
- Yes, and it's the most common 2026 path. Ship on a managed platform in 2 weeks, learn what your users actually do, then decide in month 6 whether the parts worth owning justify a rebuild. MCP makes the tool layer portable either way.