Skip to content

Build an agent

The AI agent infrastructure stack: every layer and who sells it, for teams building agents

10 layers, from the model and memory to email, phone, browser and sandbox. The companies that sell each, their prices as listed on 22 November 2026, and where one API covers several at once.

The AI agent infrastructure stack is every service an agent needs beyond its model: a runtime, memory, tools and MCP (the standard way agents call tools), email, phone, a cloud browser, a sandbox, an identity and traces of every step. Each of these 10 layers has specialist vendors, so a working agent often runs on 5 or more accounts, keys and bills. Email, phone, browser and sandbox, the parts that reach the outside world, are the ones most often bought from different companies.

ComparedAI agent infrastructure companies comparedGo straight to the comparison
On this page
  1. What is the AI agent infrastructure stack?
  2. The 10 layers of the AI agent tech stack, and who sells each
  3. How to choose the layers for your agent
  4. AI agent infrastructure companies comparedCompared
  5. Where one API replaces several
  6. What the stack leaves to you
  7. Questions about the AI agent infrastructure stack

Founders, CTOs and engineers building agents meet the same question once a demo has to become a product: what does the agent run on besides the model? Most agents in production need the same 10 layers, whether they answer customers, work inside supplier portals or run jobs for a team. Each layer comes with what it gives the agent, who sells it, its price as listed on 22 November 2026, and where it stops.

What is the AI agent infrastructure stack?

A model does 3 jobs well: it reasons, writes and chooses a tool. On its own it can’t receive an email, answer a phone, stay signed in to a website or run code for an hour. Each of those jobs is a layer, and each layer is sold as a service. Most agents in production use some or all of these 10:

  1. Model: reads the task, decides the next step and picks a tool.
  2. Runtime and orchestration: the loop that calls the model, runs its tools, keeps state and handles waiting.
  3. Memory: facts the agent keeps from one session to the next.
  4. Tools and MCP: the functions the agent can call, and the open standard that connects them.
  5. Email: an address the agent sends from and receives at.
  6. Phone and messaging: a number for calls and texts, plus iMessage, WhatsApp, Slack or Telegram.
  7. Browser: a cloud browser that opens pages, fills forms and keeps its logins.
  8. Sandbox: an isolated computer where the agent runs code and processes files.
  9. Identity: who the agent acts as, in someone else’s accounts or under a name of its own.
  10. Observability: traces of every model call, tool call, cost and error.

A support agent that answers chats may use 5 of these. An agent that signs up to portals, waits for codes and processes invoices, like Ferndale’s accounts agent in the example, uses all 10.

Part of the stackWhat it gives the agentWho offers it
ModelReasoning, writing and the choice of toolAnthropicOpenAIGoogle
Runtime and orchestrationTurns, tool calls, state and retriesOpenAI Agents SDKClaude Managed AgentsCloudflare Agents SDK
MemoryFacts kept across sessionsMem0OpenAI Agents SDK sessionsClaude’s memory tool
Tools and MCPFunctions the model can callMCP servers from each vendorComposio
EmailAn address that sends and receivesAgentMailNylasBird
Phone and messagingNumbers, texts, calls and chat appsTwilioAgentPhoneVapi, for voice agents
BrowserA cloud browser that keeps its loginsBrowserbaseKernelSteelBrowser Use
SandboxA computer to run codeE2BDaytonaModalVercel Sandbox
IdentityAccess to accounts, or a name of its ownAuth0, for acting in a user’s accountsToolkits that hold an inbox, number and browser under one name
ObservabilityTraces, costs and evaluationsLangfuseLangSmithDatadog
The AI agent infrastructure market map: each layer, what it gives the agent and who offers it, from their own pages as listed on 22 November 2026

The 10 layers of the AI agent tech stack, and who sells each

Model: the part that reasons

The model reads the task, decides the next step and chooses which tool to call. As listed on 22 November 2026, Anthropic’s pricing page put Claude Opus 5.5 at $4 per million input tokens and $20 per million output tokens. Claude Sonnet 5.5 was $2 and $10, and Claude Haiku 5.5 $0.10 and $0.50 for prompts up to 100,000 tokens. OpenAI’s GPT and Google’s Gemini models are the other common choices.

Tools add to the model bill. Anthropic’s tool use guide says each tool’s name, description and schema count as input tokens, and the API adds a system prompt of 286 tokens on Claude Opus 5.5 whenever tools are present. Pick the model by price per million tokens at your volume, how reliably it calls tools, and how fast it answers.

Runtime and orchestration: the loop around the model

The runtime calls the model, runs the tools it asks for, sends the results back and repeats until the task is done. It keeps state between turns, retries failed calls and decides what happens while the agent waits. OpenAI’s Agents SDK builds that loop in Python from a few parts: agents with instructions and tools, handoffs between agents, guardrails that check inputs and outputs, sessions for memory, and built-in tracing. It can also run an agent inside an isolated sandbox workspace and call tools on remote MCP servers.

Anthropic hosts the loop as Claude Managed Agents. Its pricing page bills $0.08 per session-hour of running time, and time spent idle, such as waiting for your next message, isn’t counted. How to build an AI agent from scratch walks through writing the loop yourself, and long running AI agents covers agents that wait weeks for an email.

Memory: what the agent keeps between sessions

Memory stores facts the agent should keep beyond one conversation: a user’s preferences, a decision made last week, where a task stands. Mem0’s pricing page offered a Free plan for unlimited end users on 22 November 2026. It covered 10,000 memory adds and 1,000 retrievals a month for the first 30 days with model calls included, or 50,000 adds and 10,000 retrievals with your own model key. Its Custom plan adds graph memory, user profiles, single sign-on and deployment on your own servers.

Simpler agents use the memory their framework provides. The OpenAI Agents SDK keeps sessions, and Claude’s memory tool stores information across conversations in files you control, per Anthropic’s tool use guide. Memory holds what the agent chose to remember. The emails, texts and pages it received stay with whichever service received them.

Tools and MCP: how the agent acts

A tool is a function the model can call, described by a name, a description and an input schema. The model returns a structured call, and your code or the provider runs it. MCP, the Model Context Protocol, is the open standard that lets any AI application find and call a server’s tools without code written for each one. The current MCP specification, dated 28 July 2026, defines hosts, clients and servers that exchange JSON-RPC 2.0 messages, and servers that offer tools, resources and prompts. The glossary defines each part.

Composio connects agents to more than 1,700 apps over MCP or its SDK and manages each app’s sign-in, and its free Hobby plan included 100,000 tool calls a month on 22 November 2026. A tool calls something that already exists. When the agent needs an inbox or a phone number of its own, a service has to create and hold it. AI agent tools vs MCP sets tools, MCP servers and skills side by side.

Email: an address that sends and receives

An agent with its own inbox can sign up for services, receive login codes and replies, and write from an address people recognise. As listed on 22 November 2026, AgentMail’s pricing page offered 3 inboxes and 3,000 emails a month free, 10 inboxes for $20 a month and 150 for $200. Every plan included SDKs, websockets, an MCP server and a webhook, which sends each new email to your code the moment it lands. Nylas and Bird also sell inboxes for agents. Look for your own domain, threads, attachments and how fast a reply reaches your code.

Phone and messaging: a number people can reach

A number lets customers call and text the agent, and lets the agent receive the codes sites send by text. As listed on 22 November 2026, Twilio’s US SMS pricing put a local number at $1.15 a month and a text at $0.0083 per segment, sent or received, plus carrier fees. Its voice pricing listed calls at $0.014 a minute out and $0.0085 in.

AgentPhone sells numbers built for agents at $3 a month, with calls at 13¢ a minute through your own agent, texts at 2¢ a segment and iMessage lines from $150 a month. Vapi hosts voice agents for $0.05 a minute plus the model, voice and transcriber you choose, and its own estimate for 1,000 minutes came to $82 to $129 a month. US numbers that send texts have to be registered with the carriers. For business texting from ordinary 10-digit numbers, that registration is called 10DLC. AgentPhone lets you file it from its dashboard, and Twilio lists its A2P 10DLC fees separately.

Browser: a session that stays signed in

A cloud browser lets the agent open pages, fill forms and stay signed in to sites with no API. It usually runs as a headless browser, which is a browser without a screen that code drives. As listed on 22 November 2026, Browserbase’s pricing page started free with 1 browser hour. Developer was $20 a month for 100 hours, then $0.12 an hour, and Startup $99 for 500 hours, then $0.10, with proxy traffic billed per GB. Browserbase makes Stagehand, a framework for browser agents, and works with Playwright and Puppeteer.

Kernel, Steel and Browser Use sell cloud browsers too. Claude’s browser use tool gives the model the actions, and it runs in your own browser environment, per Anthropic’s tool use guide. Browser automation tools for AI agents compares the options, and can AI agents log in to websites covers sessions, codes and what sites allow.

Sandbox: a computer to run code

A sandbox is an isolated computer where the agent runs code, reads files and processes data away from your own servers. As listed on 22 November 2026, E2B’s pricing page billed a running sandbox by the second, about $0.05 a vCPU hour and $0.016 a GiB hour of memory. Its Hobby plan was free with a one-time $100 credit and sessions up to 1 hour, and Pro was $150 a month plus usage, with sessions up to 24 hours. Daytona, Modal and Vercel sell sandboxes as well.

Model providers run code too. Anthropic gives each organisation 1,550 free hours of its code execution tool a month, then $0.05 an hour per container, on the same pricing page. Before you choose, check how long a session can last and whether you pay while the agent waits.

Identity: who the agent acts as

Identity has 2 meanings in this stack. The first is access, permission for an agent to act inside a user’s accounts. Auth0’s page for AI agents describes agents acting on a user’s behalf, with permissions defined once, applied across systems and every action auditable. The second is presence, one name that holds the agent’s own inbox, number and browser profile. With presence, a code texted to the agent’s number reaches the browser session that asked for it. Bought from 3 vendors, that join is left to your code.

Observability: what the agent did, step by step

Observability means traces of every model call, tool call, cost and error, with evaluations that score the results. As listed on 22 November 2026, Langfuse’s pricing page offered a free Hobby plan with 50,000 units a month and 30 days of data. Core was $29 a month with 90 days, and Pro $199 with 3 years. Langfuse is open source, can be self-hosted and builds on OpenTelemetry, an open standard for traces. The guide to AI agent observability, the tools that trace and score agents, compares it with 5 others, including LangSmith, Arize Phoenix, Datadog, Helicone and Braintrust.

How to choose the layers for your agent

  1. List what the agent must touch outside your code. A portal to sign in to, codes by text, replies by email, files to process. A pass: every item maps to one row of the market map, such as Browser or Phone.
  2. Mark what must share one identity. A login code and the browser that asked for it, or the number a customer calls and the inbox that confirms the booking. A pass: you know which pieces must belong to the same agent.
  3. Price the waiting as well as the working. An agent that waits 3 days for a reply pays for those days on any piece billed while idle. A pass: you know the cost per agent per month for 1 agent and for 10,000.
  4. Count accounts, keys, webhooks and bills. Each vendor adds a key to rotate, a webhook format to parse and an invoice to reconcile. A pass: one place shows every event for one agent, in order.
  5. Check the rules that come with each service. US texting registration, each site’s own terms, and the MCP specification’s rule that hosts get the user’s consent before a tool runs. A pass: the agent follows each one by design.
  6. Decide what you will watch. Time to ship, task success, latency from a message landing to the agent acting, and cost per agent. A pass: each has a number before launch.

AI agent infrastructure companies compared

We make Obsession, so every other option is described from its provider’s own pages as of 22 November 2026.

OptionWhat it does wellPriceWhere it stopsBest for
A model with no outside piecesReasons and writes with nothing extra to runModel tokens onlyCan’t receive email, browse or run codeDrafting and answers from what it knows
Build every piece yourselfFull control of every piece and its dataServers, plus engineering hoursDeliverability, carrier registration and browser upkeep become your jobTeams with infrastructure engineers and one piece that matters most
AnthropicClaude models, tools, Managed AgentsModels, built-in tools and a hosted agent loopOpus 5.5: $4 in, $20 out per million tokensManaged Agents: $0.08 a running session-hourBrowser use runs in your own browserTeams building on Claude
OpenAI Agents SDKAgents, handoffs, guardrails, sessions and tracing in PythonInstalled with pipModel calls billed separatelyOutside services come in as toolsPython teams that want a ready-made loop
Mem0memoryMemory across sessions for unlimited end usersFree: 50,000 adds a month with your own model keyCustom planMemory onlyAgents that must remember each user
Composiotools and app connections1,700+ apps with sign-in handled, over MCP or SDKHobby: 100,000 tool calls a month freePaid tools billed per callWorks through accounts users already holdAgents acting in a user’s own apps
AgentMailemail inboxesInboxes, threads, webhooks, MCP and SDKsFree: 3 inboxesDeveloper $20 a monthStartup $200 a monthEmail onlyAgents that need an inbox and nothing else
Twilionumbers, texts and callsNumbers, texts and calls at any volumeNumber $1.15 a monthText $0.0083, plus carrier feesNo cloud browser or sandboxA phone line at high volume
AgentPhonenumbers for agentsNumbers, texts, calls and iMessage on one webhookNumber $3 a monthCalls 13¢ a minute, texts 2¢Phone and messaging onlyAgents that live on the phone
Vapivoice agentsHosted voice agents with the models you choose$0.05 a minute, plus model, voice and transcriberVoice onlyTeams shipping a voice agent
Browserbasecloud browsersBrowser fleets, Stagehand, Playwright and PuppeteerFree: 1 browser hourDeveloper $20 a monthStartup $99 a monthProxy traffic billed per GBNo inbox or number describedBrowser-only agents at scale
E2BsandboxesIsolated machines billed by the secondAbout $0.05 a vCPU hourPro $150 a month plus usageSessions up to 1 hour on Hobby, 24 on ProLong, busy code runs
Auth0 for AI agentsaccessPermissions to act for a user, every action auditableFree to tryAccess to existing accounts, with no address of its ownAgents acting inside a user’s systems
LangfuseobservabilityTraces, costs and evaluations, open source and self-hostableFree: 50,000 units a monthCore $29, Pro $199 a monthShows what the agent did, without running itEvery agent in production
ObsessionOursEmail, Phone, Messaging, Browser, Sandbox, PersonasEvery outside piece under one identity, with one event logFree, then $20, $99 or $499 a month; usage per pieceModel, runtime and memory stay yours; stops before payment unless given your cardAgents that need more than one of an inbox, a number, a browser and a sandbox
AI agent infrastructure companies by layer, from each provider’s own pages, as listed on 22 November 2026. Prices in US dollars

Where one API replaces several

An agent that signs up to a supplier portal touches 4 layers in a minute. The browser fills the form, the portal texts a login code to the agent’s number, the code has to reach the same browser session, and the confirmation lands in the agent’s inbox. Bought separately, that is 4 accounts, 4 keys and 4 bills, and your code joins them by matching a phone number to a browser session. The cost shows in time to ship, and again each time one vendor changes its webhook.

AgentMail, Twilio, Browserbase and E2B in one API works one agent’s month out piece by piece, on 4 bills and on 1. The model, the runtime, memory and traces stay with whichever vendors you pick for them, such as Anthropic, Mem0 and Langfuse.

Obsession is the toolkit for AI agents, with email inboxes, phone numbers and texts, iMessage, WhatsApp, Slack and Telegram, a cloud browser and a sandbox on one API and one bill. In the Build agent products blueprints, obsession.personas.create({ inbox: true, phone: "US", browser: true }) gives an agent an inbox, a US number and a browser under one identity. That persona is free while it waits, and every email, text and page reaches one webhook as email.received, sms.received or page.visited.

What the stack leaves to you

  • The job itself. The model and your instructions decide what the agent attempts, and evaluations show whether it worked.
  • The rules. US carriers require texting registration, and each site sets its own terms for agents. A well-built agent follows both and records every step.
  • Security. The MCP specification says tools represent arbitrary code execution, and that descriptions of tool behaviour, such as annotations, are untrusted unless they come from a trusted server. Give each agent only the tools its job needs.
  • Prices. Every price here is as listed on 22 November 2026. Check each vendor’s page before you commit, since plans and allowances change.

Questions about the AI agent infrastructure stack

AI agent infrastructure is everything an agent needs besides its model: a runtime, memory, tools and MCP, email, phone and messaging, a browser, a sandbox, an identity, and observability such as step-by-step traces. Each is sold as a service, so most teams combine several vendors.

Most agents use some or all of 10 layers: model, runtime and orchestration, memory, tools and MCP, email, phone and messaging, browser, sandbox, identity, and observability. A support agent may use 5 of them. An agent that signs up to portals, waits for codes and processes invoices uses all 10.

As listed on 22 November 2026, models come from Anthropic, OpenAI and Google, the runtime from the OpenAI Agents SDK or Claude Managed Agents, and memory from Mem0. Composio and vendors’ own MCP servers supply tools, and AgentMail supplies email. Twilio, AgentPhone and Vapi cover phone and voice, Browserbase browsers, E2B sandboxes, Auth0 access, and Langfuse traces and evaluations.

It sorts vendors across the 10 layers by the job each does for the agent, so you can see what you have covered and where two vendors overlap. Several now span 2 or more layers: Composio connects more than 1,700 apps and handles their sign-in, Anthropic sells models, tools and a hosted runtime, and agent toolkits put email, phone, browser and sandbox on one API.

It means renting the pieces an agent needs, such as inboxes, phone numbers, browsers and sandboxes, from a provider that runs them and bills by use. The alternative is running your own mail servers, phone lines and browser fleets. Most layers in the stack are sold this way, with free plans to start.

At prices listed on 22 November 2026, a US number cost $1.15 to $3 a month, a browser hour $0.10 to $0.12 past free allowances, and a running sandbox about $0.05 a vCPU hour. Model tokens scale with how much the agent reads and writes. The total depends on what the agent touches and how long it waits.

One agent’s month, priced piece by piece

No. An agent can call tools defined in your own code through the model’s function calling. MCP helps when the same tools must work in several applications, such as Claude Code and Cursor, or when a vendor already offers a server.

AI agent tools vs MCP
ShareLinkedInX

Sources

In the order the article cites them. Every link was checked on 22 Nov 2026.

  1. PricingAnthropic
  2. Tool use with ClaudeAnthropic
  3. OpenAI Agents SDKOpenAI
  4. PricingMem0
  5. Specification, version 2026-07-28Model Context Protocol, 28 Jul 2026
  6. ComposioComposio
  7. PricingAgentMail
  8. SMS pricing in the United StatesTwilio, Nov 2026
  9. Programmable Voice pricing in the United StatesTwilio, Oct 2026
  10. PricingAgentPhone
  11. PricingVapi
  12. PricingBrowserbase
  13. PricingE2B
  14. Ship AI agents faster and more securelyAuth0
  15. PricingLangfuse

What should your first AI agent do?