From Prototype to Production Agent Without Touching a Load Balancer or VPC
Managed hosting only works if it enforces policy, state, and recovery.

Managed cloud hosting for AI agents should provide code execution, durable state, per-user isolation, policy enforcement, and recovery. For most founders, the best place to start is a managed platform whose defaults meet the agent’s needs in production. Closing the gap from prototype to production requires controlling what an agent can do and recovering when it goes wrong.
Why a working prototype is not a production agent
At 3 AM, an agent can be stuck in a loop that burns tokens while its server looks perfectly healthy. The missing protection is an operational layer that limits actions, preserves state, and makes failures visible.
The demo usually has one user, the builder, with no uptime obligation, cost cap, or dependable record of what happened. Production brings those obligations together. The agent must survive process restarts, pick up half-finished tasks, keep sensitive data inside a perimeter, and leave a record an auditor can follow. At the same time, uptime monitoring can miss a confident wrong answer or a silent regression after a model update.
The eight things production agents actually need, in order
Production readiness develops through a sequence of controls. The eight controls provide a map for evaluating the operational layer, starting with what could go wrong and ending with proof that recovery works. Number 1 is a threat model. Number 2 is pre-dispatch policy enforcement, which puts a decision boundary before an action. Number 3 is approval workflows for risky actions, and number 4 is least-privilege scoping.
Number 5 is output safety, and number 6 is structured audit trails. Number 7 is staged rollout gates. Number 8 is tested rollback drills. The controls after policy enforcement depend on that earlier decision point because intervention has to happen before the agent produces a side effect. Without it, an agent can run SQL injection against a production database even if it did well in staging.
The Microsoft Agent Governance Toolkit, Galileo Agent Control, and CyberArk’s Secure AI Agents Solution formalize subsets of these controls. This is not a startup-only concern. The OWASP Top 10 for Agentic Applications 2026 supplies an agent-security framework, while NIST AI RMF supplies voluntary risk-management guidance. Together, these frameworks help give security reviews a structure, but they do not replace the controls themselves.
Why persistent state is the first infrastructure decision that actually matters
Those controls need dependable state beneath them. Conversation history, user settings, and audit logs cannot disappear when a process restarts or remain half-written after a failure. Postgres is the standard choice for this permanent record because it supports transactional writes. Confusing permanent records, temporary session data, and similarity search creates lost context, duplicate execution, and failures that cannot be replayed.
The practical model has three distinct layers. Redis holds the current turn with an expiry, while a background worker copies finished turns into Postgres. The worker embeds selected content from finished turns into pgvector, which runs inside the existing Postgres instance. A new turn reads Redis while the session is fresh and falls back to Postgres when it has gone stale. Each layer has a specific purpose.
Teams should start with pgvector when similarity search is needed and move to a dedicated vector database only when speed or scale requires it. Secrets and personal data should stay out of the vector index. An ID can point to the real content in Postgres. Agents that do not recall old conversations or search documents can skip the vector layer.
How the absence of per-user isolation turns every customer into a shared-access risk
The agent must know whose context it is allowed to use and whose authority it exercises. A shared API key gives every session the same downstream access unless another boundary restricts it. That makes customer separation an architectural requirement before onboarding.
Per-user identity supplies the missing boundary. The agent inherits the caller’s verified identity, such as an OAuth JWT subject, OIDC claims, or an identity-provider-attested role, and presents it to downstream tools. Without that separation, access available to one customer’s session can extend to another, including file reads, API calls, and billing events. This can lead to failed audits and HIPAA penalties where those rules apply.
HIPAA requires unique user identification and immutable audit controls. Claude Managed Agents are explicitly not eligible for a HIPAA BAA, so hosting eligibility has to enter the decision before deployment. For B2B delivery, the architecture described here is one isolated, persistent agent per customer, provisioned automatically at onboarding. That provisioning should require only a single API call.
What pre-dispatch policy enforcement is and why it is the highest-leverage control
Automatic provisioning establishes whose agent is running. Pre-dispatch policy enforcement then decides whether that agent may take a particular action before the tool call executes. This is the critical intervention point. An audit log can record an unauthorized action, and an output filter can catch a bad response, but neither can undo a side effect that has already happened.
The policy check can run in-process or out-of-process. In-process means it runs inside the agent’s trust boundary, as with the toolkit, Agent Control, and NeMo Guardrails. Out-of-process means an external service makes the decision, as with Microsoft Authorization Fabric and CyberArk. An external gatekeeper is especially relevant to regulated deployments because a compromised agent cannot bypass it from inside its own process.
Approval workflows sit directly on that decision point. Low-risk actions proceed automatically, while high-risk actions wait for human review before execution resumes. Least-privilege scoping restricts the agent to the permissions its current task needs. Even if a staging run goes well, the agent still needs this boundary because production inputs may ask it to do something staging never tested.
The staged rollout requirement and what goes wrong in an all-at-once cutover
Before touching infrastructure, a team should write down four numbers, namely its p95 latency target, success-rate floor, per-request cost ceiling, and per-user daily cost ceiling. These define what acceptable operation means. Without them, hosting decisions tend to optimize the easy parts while leaving cost and correctness loosely specified. They also give release decisions something firmer than confidence in a demo.
Testing should start before live traffic reaches the agent. Synthetic and replay tests run production requests through the policy engine without causing side effects, so they catch correctness regressions without putting user actions at risk. The rollout then moves from a canary through incrementally larger traffic shares to full traffic. Each increase depends on objective gates, including error budget, policy-decision latency at the 99th percentile, and approval-workflow turnaround time.
A direct staging-to-full-traffic cutover skips those chances to stop. At well above expected load, scheduler queues can back up and retry storms can cause duplicate executions and conflicting automated responses. Tested rollback is another release gate. If a team has never done the drill, it may try it for the first time during a 3 AM incident, when it needs a record of actions it can trust.
What an audit trail actually needs to contain to be useful after an incident
A record that says what happened but omits the authority behind it requires reconstruction under a deadline to become a defensible audit trail. Each action needs three things captured immutably, which are the full input context, the policy snapshot active at decision time, and the identity of whoever approved or delegated the action. Without those, the postmortem begins with “we think”.
Knowing what the agent did, in what order, and with whose approval allows state reconstruction and clean replay from the last valid checkpoint. Uptime monitoring cannot supply that evidence or detect silent wrong answers, slow regressions, and looping tool calls. Run records tied to evaluation baselines address those agent-specific failures. More enterprise customers also require audit logs to be streamed into a security monitoring system, so teams have to deliver that record even when they do not need it for debugging.
What managed cloud hosting for AI agents should provide
The hosting choice follows from the responsibilities a team is willing to own. Managed or no-code hosting is the best place to start for agents whose compliance, tool-access, and reliability needs fit platform defaults. It can reduce the path to production to minutes or days with very little infrastructure work. The qualification is important. Fast deployment is useful only if the platform also satisfies the operational requirements established above.
For framework- and model-flexible deployments, Amazon Bedrock AgentCore is a named managed option to evaluate. AgentCore is framework-agnostic and model-agnostic, but those properties alone do not establish a fit for a particular isolation or compliance requirement. For B2B agents that start running at customer onboarding, the key needs are a private, persistent environment for each customer and API-based provisioning. A generic cloud runtime alone does not show that it can provide either.
Self-hosting suits teams that want to own the environment, especially when data sovereignty requires that control. It also means owning setup, monitoring, recovery, and updates. Managed hosting puts data in a vendor environment but removes much of that infrastructure work from the founding team. The recommendation is to start managed where requirements permit and migrate only if per-request economics force the change, rather than buying control before there is a concrete reason to use it.
Integrations and tool authentication as an ongoing operational responsibility
Hosting does not end the operational boundary. Every external tool introduces credentials that must be provisioned, scoped, rotated, and audited. Doing all this by hand at scale becomes another full-time job. A per-user agent should receive only the OAuth scopes its tasks require.
Composio’s Shared Connections, introduced September 2026, let a team make a company account available to an agent without passing around a password. That handles how credentials are shared, but the team still depends on managed authentication, which can fail too. Composio reported periods when its API worked poorly and a long stretch when webhook triggers were unavailable in April 2026. A cleanup job had stopped pruning a trigger-processing table.
Tool authentication also has to remain visible in the audit trail. A record saying “agent called GitHub” leaves out the information needed to establish authority and reconstruct the action. The record must identify which user’s OAuth token was used and exactly what the agent did.
What it actually takes to clear the production gap without owning infrastructure
The practical decision starts with performance and cost targets, continues with a hosting tier whose defaults satisfy them, and reaches the isolation model before a second customer is onboarded. That order prevents infrastructure preference from dictating the product’s operating limits. Most founding teams run into failures in policy, state, and audits long before they hit compute limits. More direct control over servers does not resolve those failures by itself.
Teams should start managed, instrument everything, and migrate only if economics force it. This does not mean handing accountability to a vendor. The team chooses a platform that does the infrastructure work while it sets rules for how the agent should behave, checks the evidence, and tests recovery. The distinction is between owning the requirements and operating every component that fulfills them.
For founders selling private, persistent agents to businesses, the unit of scale is one isolated sandbox per customer. A single API call should activate it at onboarding. Hand-provisioning a VPS for every client turns customer growth into backend work, even though the underlying policy and state problems have known solutions. The right ownership model lets founders spend that time selling the product.


