Cover illustration for “When Your Agent Is Ready but Your Infrastructure Knowledge Is Zero”
First Agent Setup

When Your Agent Is Ready but Your Infrastructure Knowledge Is Zero

November 9, 20269 min read1,953 words

Share

Text: Marcus Oyelaran

Managed hosting can cover the five layers a solo founder lacks.

To deploy AI agents without DevOps or infrastructure knowledge, a solo founder needs managed hosting that handles execution, state, security, recovery, and cost limits. An agent-powered product also needs an isolated, persistent agent for each customer, provisioned automatically at signup. The gap between a working agent and a reliable product is a systems problem that a founder can route around.

Why a working agent and a production agent are two different things

A builder tests an agent repeatedly, gets good results, deploys it, and the third real user breaks it. The agent may still reason correctly. What changed was the environment around it. Local testing involved one user, one request at a time, and forgiving conditions, while production introduces concurrent requests, interruptions, hostile input, and real spending.

Small delays across database queries, search calls, and code execution accumulate into a slow response. Conversation history held only in memory disappears when the process crashes, while poorly managed context quietly inflates token costs. A weak isolation boundary lets prompt injection reach beyond the conversation, and an agent caught in a loop can run up costs unless the system sets a limit.

These failures also feed into each other. Slow responses lead to retries, retries use more tokens, and those higher costs leave less money to spend on reliability. Better answers from the model do not fix that chain. Production reliability depends on the system around the agent.

The five infrastructure layers a production agent actually depends on

Compute is where the agent code runs. Serverless functions suit stateless work with unpredictable traffic but introduce cold-start delays, while containers give stateful agents consistent environments at the cost of orchestration work. Dedicated virtual machines accommodate high-volume or GPU-dependent workloads with more operational complexity. Choosing the wrong fit can slow things down or cost more than needed.

State and memory keep what the agent needs between steps or sessions. Extraction tasks that run on their own may need no lasting memory, but support agents need to keep conversation history, preferences, and intermediate results. Redis can hold short-term state, a database long-term records, and a vector store semantic memory. Recent exchanges can stay complete while a cheaper model summarizes older context to control costs. Without durable state, a restart erases the session.

Communication connects the agent to users and tools. REST supports synchronous requests, WebSockets support live streaming, and message queues support work that continues after the initial request. Each connection to an outside system also needs credentials, error handling, and retries. Without those controls, a tool failure can interrupt the workflow.

Observability shows what happened across the steps when something goes wrong. Ordinary application monitoring does not show which model call, tool call, retry, or handoff caused the problem. Agent tracing needs those details and the reason execution ended. Without them, a response code offers little help with diagnosis.

Security controls access at the boundaries between systems. Secrets vaults hold API keys, network policies restrict reachable services, and execution isolation separates customer workloads. These protections sit outside the agent’s prompt. Without them, an instruction intended for the model can become a route into data or systems it should never reach.

Why the architecture pattern you pick shapes every other decision

A stateless agent handles each request on its own, so it is easy to add instances and one instance’s failure does not affect the others. The trade-off is context. Every request must bring what the agent needs, making this pattern suitable for document analysis or classification.

A stateful agent remembers earlier turns, so storage and request routing become part of its design. The system must send a user back to the same instance or make shared state available to any instance. A crash now threatens an ongoing conversation. Support agents and coding assistants therefore need more than the infrastructure required for independent requests.

Event-driven agents introduce another set of dependencies. They acknowledge a task immediately and notify the user when it finishes, which suits long workflows involving several tools. To do that, they need queues, worker pools, a place to store results, and notifications. A customer service product might combine all three patterns for FAQ lookups, conversations, and investigations across systems.

Can a founder start stateless and upgrade later? State reaches into storage, session routing, and client behavior, so adding it after launch can mean a rewrite. This architectural choice needs attention before traffic grows.

What security controls production agents require before they touch real users

Even a well-chosen execution model leaves a separate security gate. Prompt injection can arrive directly through a conversation or indirectly through retrieved documents, tickets, and web pages. Content from an internal system is still untrusted if customers can write to it. The location of the text does not make its instructions safe.

A system prompt cannot enforce a data boundary. Instructions against accessing certain records can be bypassed through injection or undermined by model changes and multi-step behavior. Access restrictions therefore belong at the data layer. Tools also need minimum permissions, with read-only access where writes are unnecessary, and idempotency controls that prevent repeated calls from creating duplicate refunds, tickets, or emails.

EU AI Act Article 50, enforceable from 2 August 2026, requires disclosure when people interact directly with AI unless that is obvious from context. The HIPAA Security Rule requires technical safeguards that a prompt telling an agent not to access certain PHI categories does not provide.

Production controls include deterministic policy checks before dispatch, staged releases with objective gates, and immutable records of approvals, applicable policies, and exact outputs. SOC 2 Type II leaves open questions about how a model provider handles data, whether action records satisfy a regulator, and how transcripts are retained and deleted.

The integration layer: connecting agents to business systems at scale

A secure agent still needs connections to do useful work. A model can reason about an email or an issue, but sending the email or opening the issue requires a live, authenticated connection. That creates work beyond getting the agent to run. Credentials, permissions, retries, and maintenance become part of every useful action.

The workflows themselves can sound deceptively simple. A Gmail and Notion pipeline checks for matching emails each morning and creates tasks with the subject, sender, summary, and thread link. A GitHub and Linear connection turns a labeled pull request into an issue. A HubSpot and Gmail agent retrieves leads due for follow-up, generates personalized messages, and sends them weekly.

Rather than loading every possible action into the model’s context upfront, runtime discovery exposes a small set of meta-tools through which the agent finds specific actions. This lets the number of integrations grow without making the context grow along with it.

Composio addresses this layer with pre-authenticated tools for applications including GitHub, Slack, Gmail, and Notion. Its managed cloud service handles integrations and OAuth tokens and offers SOC 2 and ISO 27001:2022 certifications. That is a specific role alongside the rest of the stack.

What per-user isolation means and why it is the right architecture for agent-powered products

Connecting one agent to one person’s tools is not the same as selling agents to customers. Each customer has their own credentials, data, conversation history, and ongoing work. A shared agent without enforced boundaries risks leaking state between sessions and exposing one user’s data to another’s queries. One runaway workload can also degrade everyone else’s performance.

For this product model, the unit of scale is one isolated, persistent agent per customer. Separate API keys separate billing in that architecture while leaving execution, state, and independent recovery of one customer’s agent unaddressed. For agents executing untrusted or model-generated code, namespace separation is insufficient, requiring microVM isolation or a hardware-enforced equivalent.

The harder step is making this automatic. Onboarding must provision the customer’s agent with billing, monitoring, and recovery attached, rather than leave the founder logging into a server for every signup. Creating one instance manually is tractable. Creating them repeatably and safely turns a working agent into a multi-tenant systems project.

What it actually costs a founder to self-manage this stack

The server bill leaves out the largest demand on a non-infrastructure founder. Setup consumes time, but monitoring, recovery, updates, and security consume it repeatedly. That time cannot also go to customers, product improvements, or sales. The cost continues after deployment looks finished.

Monitoring means watching for crashes, latency spikes, and runaway spending, or building systems to do that watching. Recovery means restoring state, reconnecting integrations, and notifying the affected user when automation is absent. Model updates, dependency changes, and security patches must avoid disrupting existing sessions. Hard token limits, secrets rotation, network policies, and audit records also need care over time.

Every signup needs provisioning, integration setup, and isolation checks unless the founder builds automation to do that work. Skipping that work saves time but puts reliability and security at risk. Once founder time enters the comparison, self-management becomes materially more expensive than managed hosting for a founder without dedicated DevOps support.

How to deploy without DevOps and what managed agent hosting actually handles

A founder needs a platform that owns the production stack, including the work beyond running code. Managed compute provisions and scales execution environments without requiring the founder to select instance types, manage Docker images, or configure Kubernetes. Health monitoring and session recovery belong with that service. Otherwise, the founder still has to do that work.

Security needs the same division of responsibility. A suitable platform enforces encryption in transit and at rest, manages secrets, and isolates customer workloads rather than depending on the founder to assemble those protections. Hard per-session token limits contain looping agents. Managed model and dependency updates give the founder one less deployment task to keep doing.

For a customer-facing agent product, automatic provisioning is an additional requirement. A service that hosts one agent but leaves every new customer’s setup to the founder has not solved onboarding. The useful comparison is therefore specific. Hosting must cover execution, recovery, protection, spending limits, and updates, while product-ready provisioning must create each customer’s isolated, persistent environment automatically.

Stripe let software companies take payments without having to become payments companies. Managed agent infrastructure follows the same logic. The founder keeps responsibility for the product and its customers while choosing a provider to handle the systems that keep the agent running.

What to do before deploying: the minimum checklist for a founder with zero infrastructure background

Before deployment, a founder needs answers to five questions.

Does the agent need to remember previous sessions, or is each request independent? That answer determines the state and storage requirements against which hosting options must be judged.

For a multi-tenant product, is each user isolated at the execution layer through a microVM or equivalent?

Does the platform enforce a hard token or cost limit for every session? A prompt that asks the agent to spend carefully cannot stop a looping agent from running up a runaway bill.

When an agent crashes mid-session, who detects the failure, restores the session, and notifies the user? If every step falls to the founder, deployment has created a recurring support obligation.

What commitments cover training use of conversations, files, and session data, data export, and cancellation on the customer’s own terms? Those commitments are basic requirements for a customer-facing product and need to be settled before signup.

If those answers are missing, the next step is finding a managed service that can supply them and take responsibility for the work behind them. Agent37, a managed hosting platform built specifically for AI agents, is one such option, provisioning an isolated, persistent agent per customer through one click or one API call. A founder who routes around this gap correctly can ship faster, recover faster, and scale without hiring a DevOps team.

More in First Agent Setup