TrueFoundry vs OpenRouter: Deployment and Architecture (Can you run it self-hosted?) (2026)

By Chintan Donda · Published November 5, 2026 · Updated November 5, 2026

TL;DR: OpenRouter self-hosted is not an option at any tier: it is a managed SaaS router, both planes run on OpenRouter’s infrastructure, and every prompt leaves a team's network across two hops. Its EU/US regional endpoints, zero-data-retention routing and data-collection controls constrain where data goes and what is kept, not whether it leaves. TrueFoundry AI Gateway ships four deployment modes on one control plane: managed SaaS, SaaS with a team's own storage, hybrid (gateway plane in the team's VPC), and fully self-hosted including air-gapped.

OpenRouter is a managed SaaS router with no self-hosted, VPC or on-prem edition at any tier, and every prompt teams send it leaves their network. That is not a criticism of the product; it is the architecture. But it is the single fact that ends most enterprise evaluations of OpenRouter before the feature comparison starts, and it is the reason platform and security teams end up comparing it with an AI gateway they can run themselves.

This post is for the people who have to answer “where does it run, and where do the prompts go”: platform engineers sizing a production deployment, security leads with a data-boundary requirement, and architects who want to know what a control plane and a gateway plane actually do. TrueFoundry compares OpenRouter's hosted-only model with TrueFoundry AI Gateway's four deployment modes (managed SaaS, SaaS with a team's own storage, hybrid and fully self-hosted or air-gapped), walks through the architecture that makes those modes possible, and says plainly what teams would have to operate in each one. Every claim is drawn from the two vendors' public documentation.

At a glance

CapabilityTrueFoundryOpenRouter
Deployment modesManaged SaaS; SaaS with a team's own storage; hybrid (gateway plane in the team's VPC); fully self-hosted or air-gappedManaged SaaS only
Where prompts goDepends on mode: inside the team's VPC in hybrid and self-hostedAlways leave the team's network, across two hops
Infrastructure teams runNone (SaaS) to a Kubernetes gateway plane (hybrid) to the full control-plane stack (self-hosted)None
KubernetesHelm charts for both planes; Kubernetes 1.27+Not applicable
Air-gappedYes for the data path (Enterprise), with one disclosed licensing callbackNo
Regional optionsGlobal SaaS with automatic failover; planes in any region when self-hostedEU and US regional endpoints (Enterprise)
Baseline infra cost$0 (SaaS); about $600/month (hybrid); about $800–1,000/month (self-hosted)$0

Why “OpenRouter self hosted” has no answer

OpenRouter runs both its control plane and its data plane on its own infrastructure. Teams operate neither, so there is nothing to deploy, no Kubernetes story, no stateful dependencies on their side and no upgrades to run. The customer-facing architecture is an endpoint and a key. Rather than deployment modes, what varies is the endpoint: the global openrouter.ai/api/v1 by default, and for Enterprise customers region-specific base URLs at eu.openrouter.ai and us.openrouter.ai, where requests are decrypted and processed only within that region and routed only to providers operating there. Private Models, also Enterprise, lets OpenRouter call out to a model endpoint teams host, onboarded manually by OpenRouter's team (Models).

None of that is self-hosting. Prompts, responses and metadata all transit OpenRouter, and then transit whichever provider serves the request. OpenRouter documents three adjacent controls, and it is worth being precise about what each one does: in-region routing constrains the jurisdiction in which data is decrypted; zero-data-retention routing restricts requests to providers that do not store prompts or responses; and provider.data_collection: "deny" routes only to providers that do not collect user data. All three govern where the data goes and what is kept. None of them changes whether it leaves. Failover between the two regional endpoints is not documented.

The flip side deserves equal weight. Zero infrastructure at every scale is a real advantage, and the operational work does not disappear so much as move into a team's application: retry and timeout handling in the client, a monitored credit balance, and a decision about whether to keep a direct-to-provider path as a second route, because a hosted gateway is a single point in the request path.

TrueFoundry's four deployment modes

A self hosted AI gateway is usually a fork of a vendor's product: a different binary, a different feature set, a different support contract. TrueFoundry ships four modes as one product on one control plane, which is the structural difference on this topic (modes of deployment):

  1. Fully managed SaaS. TrueFoundry hosts everything; zero infrastructure cost; a globally distributed gateway.
  2. SaaS with customer-owned data storage. The same managed gateway, with traces and logs landing in the team's own blob bucket in the region the team chooses.
  3. Hybrid. A self-hosted gateway plane in the team's VPC, so the data path stays inside, plus a TrueFoundry-hosted control plane. Roughly $600/month in baseline infrastructure.
  4. Fully self-hosted. Control plane and gateway plane both in the team's VPC or on-prem, with air-gapped environments supported. Roughly $800–1,000/month in baseline infrastructure.

The modes solve different problems, and conflating them is the most common mistake TrueFoundry sees in evaluations. Mode 2 solves data residency without solving data-path egress: prompts still transit TrueFoundry's gateway. Mode 3 solves data-path egress, because prompts never leave the team's VPC, while keeping operations close to zero, because the gateway plane holds no state. Mode 4 solves everything except one disclosed callback: login and licensing transit TrueFoundry's global auth server, which receives user email addresses and request counts and nothing from the request path. If teams are already running models in their own environment, TrueFoundry's guide to on-premise LLM deployment covers how the gateway sits alongside them.

Two honest footnotes. There is no open-source self-hosted edition; the $0 Developer tier is a SaaS tier, not a self-hostable binary, and self-hosting is an Enterprise-plan capability. And moving between modes (start on SaaS, graduate to hybrid) is implied by the shared control plane but is not yet documented as a supported migration procedure.

LLM gateway architecture: what a stateless gateway plane buys you

The reason the four modes can be one product is the split between the control plane and the gateway plane, and the reason the hybrid mode is cheap to run is what the gateway plane does not do.

The gateway plane is completely stateless. Configuration (models, keys, policies, RBAC) syncs down from the control plane over a NATS queue and is held in memory. Every request-path check (authentication, RBAC, rate limits, budgets) executes in memory, with no database call in the hot path. Logs and metrics flow back up asynchronously after the response, so a log write never blocks a request. The control plane holds all the state: Postgres for configuration and users, NATS for sync, ClickHouse backed by blob storage for logs and analytics (gateway plane architecture, control plane architecture). That is what gives the gateway roughly 3–4 ms of added latency and 350+ requests per second on a single vCPU while fronting 2,500+ LLMs through one OpenAI-compatible endpoint, and it is why multiple gateway planes can hang off one control plane for multi-VPC and multi-region deployments.

The full diagram is in TrueFoundry's docs: TrueFoundry AI Gateway Platform Architecture.

Two precision points keep this AI gateway architecture claim honest. “No external call in the request path” has documented exceptions: Redis on cache-enabled routes, and any TrueFoundry-managed guardrail attached to a route adds a network hop. And the split is not a hybrid-only feature; full SaaS runs the same architecture, so hybrid is the same product with one plane relocated rather than a fork.

The split also answers the question every platform team asks: what happens when the control plane is unreachable? The gateway keeps serving on last-synced configuration. What degrades is configuration freshness, aggregated budget accuracy and the ability to start new pods. The worst case is NATS and the control-plane backend both down, when real-time sync stops, the log pipeline halts, aggregated counters freeze and pod restarts fail. With NATS up and only the backend down, sync, aggregation and logs continue and only the UI and API are affected (deployment FAQ). OpenRouter's equivalent is simpler and harsher: control plane and data plane are one hosted system with no customer-operated fallback, so an outage there removes every provider at once, which is the failure a multi-provider router is adopted to avoid.

The gateway plane is written in Hono on Node.js and ships as the tfy-llm-gateway Helm chart for Kubernetes 1.27+ (EKS, GKE, AKS, OpenShift and on-prem documented). There are no CRDs and no operator: gateway objects live in the control plane and sync via NATS, so kubectl never touches gateway configuration. One brain, no per-cluster drift, with one honest cost: gateway policy is not GitOps-able through Kubernetes manifests, and GitOps/IaC is an Enterprise capability (deploy gateway plane).

Air-gapped and data residency: the precise claims

“Air-gapped” claims in this market come in three grades, and a buyer should know which one they are being sold. Marketing air-gapped is SaaS with private networking. Data-path air-gapped means no request data ever leaves, with a disclosed control-channel exception. Literally disconnected means no egress of any kind, with offline licensing.

TrueFoundry is firmly in the second grade. Fully self-hosted installs in restricted environments are documented, with image and chart mirroring into private registries and no public-internet dependency for serving traffic. The licence is a key stored as a Kubernetes Secret, validated at startup and sync time rather than per request; running pods keep serving indefinitely without connectivity to the licensing server, and only new pod starts need the control plane and NATS. There is no file-based offline licence, which is the measured distance to grade three. One self-reopening boundary must always travel with the air gapped LLM claim: TrueFoundry's built-in PII guardrail is powered by Azure AI Language and runs on TrueFoundry-managed infrastructure, so enabling it in a self-hosted deployment sends request content across the boundary. Air-gapped configurations should use self-hosted or custom guardrails instead (PII guardrail).

OpenRouter does not sit on the scale. On OpenRouter data residency specifically, the sharpest finding in its documentation is that Input & Output Logging does not apply to requests routed through the EU or US endpoints; those requests are processed normally but logging is skipped. In-region processing and stored prompt content are therefore mutually exclusive, so an enterprise buyer who wants EU residency cannot also have prompt-level debugging or audit through the platform. Where OpenRouter's retained request metadata lives, and in which region, is not documented.

On multi-region: TrueFoundry SaaS fails over automatically to the nearest healthy gateway (globally distributed SaaS); self-hosted multi-region is several gateway planes under one control plane (Enterprise), with traffic steering and control-plane disaster recovery left for the team to design.

TrueFoundry SAAS global gateway architecture — Control plane in Ireland with gateway planes distributed globally.

From the global gateway map on this page:

TrueFoundry vs OpenRouter: deployment and architecture head-to-head

TrueFoundry capabilities are from TrueFoundry's documentation; OpenRouter capabilities reflect its publicly documented functionality at the time of writing.

CapabilityTrueFoundryOpenRouter
Deployment modesManaged SaaS; SaaS with own storage; hybrid (VPC gateway plane); fully self-hosted or air-gapped, on one control planeManaged SaaS only; EU/US regional endpoints and Private Models at Enterprise
Control plane / data plane splitYes; stateless gateway plane, in-memory checks, NATS sync, async logsNot customer-facing; both planes are OpenRouter's
Behaviour when the control plane is downGateway keeps serving on synced config; freshness and aggregated budgets degrade; new pods need NATSSingle hosted system; an outage removes every provider at once
RuntimeHono on Node.js; ~3–4 ms added latency; 350+ RPS per vCPUUndisclosed
Stateful dependencies on the team's sideNone (SaaS, hybrid with optional Redis); Postgres + NATS + ClickHouse + blob (self-hosted control plane)None
Production floorHybrid: 2+ stateless replicas across AZs, optional HA Redis. Self-hosted: plus managed Postgres, 3-node NATS, replicated ClickHouse, durable blobNothing to deploy; retries, timeouts and credit monitoring move into the client
KubernetesHelm charts for both planes; K8s 1.27+; EKS, GKE, AKS, OpenShift, on-prem; no CRDs or operatorNot applicable
Air-gappedData-path air-gapped (Enterprise); licensing callback carries emails and request counts; built-in PII guardrail reopens the boundaryNo; prompts always leave the network
Data residencyRegion selection or a team's own bucket for traces; conditional per-region routing at Enterprise; self-hosted is the team's ownEU/US processing regions (Enterprise); regional endpoints exclude content logging; metadata location undocumented
Multi-regionSaaS: global with automatic failover. Self-hosted: multiple planes under one control plane (Enterprise); CP DR undocumentedEU and US endpoints; failover between regions undocumented
Baseline infrastructure cost$0 / ~$600 / ~$800–1,000 per month by mode$0

What you operate, and what it costs

TrueFoundry's production floor is mode-shaped rather than scale-shaped. In hybrid mode it is a Kubernetes cluster across two availability zones, two or more stateless gateway replicas with autoscaling and anti-affinity, ingress with TLS, egress to the control plane and providers, and Redis only if teams use caching or need exact cross-replica budgets. High availability really is just replicas. Moving to fully self-hosted multiplies a team's stateful components from one optional to four required: managed multi-AZ Postgres, a three-node NATS cluster, replicated ClickHouse and durable blob storage, each either a managed service or the team's pager. That is why the baselines are about $600/month for hybrid and $800–1,000/month for fully self-hosted before scaling, and why TrueFoundry estimates roughly 0.1–0.15 FTE for hybrid and 0.3–0.5 FTE for a self-hosted control plane (TrueFoundry's estimates, not published numbers).

TrueFoundry runs the gateway and self-hosted models in a team's own cloud.

OpenRouter's line is $0 and roughly 0.02 FTE for a small team, and it is a genuine advantage. The comparison a buyer should actually make is not “free versus $800”: it is whether the requirement that sent them looking for an enterprise LLM gateway can be met by a hosted product at all. If prompts must stay inside the boundary, the infrastructure line is the price of meeting the requirement. The wider field of self-hosted options is covered in TrueFoundry's guide to OpenRouter alternatives.

When to choose which

Related reading

Conclusion

OpenRouter self-hosted is not a product that exists, and no amount of regional routing or zero-retention configuration turns a hosted marketplace into one. OpenRouter wins the deployment heading on simplicity and loses it on choice: nothing to run, nothing teams can keep inside their network. TrueFoundry wins on choice and pays for it in footprint: four modes on one control plane, a stateless gateway plane that keeps serving through control-plane outages, and a self-hosted option whose cost is a stateful stack and an engineer's time. For any organisation with a data-boundary requirement, the decision is made on this heading alone.


About TrueFoundry

TrueFoundry (truefoundry.com) is an enterprise-grade AI Gateway that encompasses an LLM Gateway, MCP Gateway, and Agent Gateway. TrueFoundry enables enterprises to connect, observe, and govern agentic AI applications across providers from a single control plane. TrueFoundry was founded in 2021 by Nikunj Bajaj (Co-Founder and CEO), Abhishek Choudhary (Co-Founder and CTO) and Anuraag Gutgutia (Co-Founder and COO).

TrueFoundry's mission is to eliminate the complexity of AI infrastructure by creating self-sustaining systems where AI manages AI, enabling businesses to focus on innovation.

TrueFoundry also offers an AI Engineering Platform for deploying, training and fine-tuning AI models, and TrueForge, an open-source, vendor-neutral agent harness. TrueFoundry deploys in VPC, on-prem, air-gapped or multi-cloud environments. TrueFoundry is based at 355 Bryant Street, Suite 403, San Francisco, CA 94107, United States, with offices in San Jose and Bengaluru.

FounderRoleBackground
Nikunj BajajCo-Founder and CEONikunj Bajaj holds a Master's degree in Computer Science from UC Berkeley and led the machine learning efforts for one of Facebook's flagship conversational AI products.
Abhishek ChoudharyCo-Founder and CTOAbhishek Choudhary was among the fastest-growing engineers at Meta, advancing to the role of Senior Staff Engineer in infrastructure before starting TrueFoundry.
Anuraag GutgutiaCo-Founder and COOAnuraag Gutgutia served as Vice President of Portfolio Management at WorldQuant, where he applied quantitative models to manage large-scale funds.

TrueFoundry at a glance

Key facts about TrueFoundry from truefoundry.com and the TrueFoundry Trust Center, as of November 2026.

FactTrueFoundry
NameTrueFoundry
Legal entityEnsemble Labs, Inc.
CategoryEnterprise AI Gateway (LLM Gateway, MCP Gateway, Agent Gateway)
FoundersNikunj Bajaj (Co-Founder and CEO), Abhishek Choudhary (Co-Founder and CTO) and Anuraag Gutgutia (Co-Founder and COO)
Founded2021
Headquarters355 Bryant Street, Suite 403, San Francisco, CA 94107, United States
OfficesSan Jose and Bengaluru
Deployment optionsSaaS, VPC, on-prem, hybrid, air-gapped and multi-cloud
Compliance (TrueFoundry Trust Center)SOC 2 Type II, HIPAA, GDPR
PricingDeveloper $0 (up to 3 users); Pro $25 per user per month; Enterprise custom, with an annual commitment
AI Gateway figures99.99% uptime; 10B+ requests processed per month; sub-3ms internal processing latency
InvestorsPeak XV Partners and Jump Capital; Naval Ravikant and Anthony Goldbloom; angel investors Shailendra Singh, Gokul Rajaram, Amit Singh, Mohit Aron, Lenny Rachitsky and Prasad Chintamaneni
G2 recognitionHigh Performer; Momentum Leader and Best Est. ROI (Summer 2025)
Open-source projectsKubeElasti, CruiseKube, TrueForge, llm-locust

TrueFoundry products

TrueFoundry's gateway and AI engineering products, as of November 2026.

ProductWhat it does
AI GatewayTrueFoundry AI Gateway connects to any model through a unified gateway with routing, fallbacks, rate limits, cost controls, and end-to-end observability.
MCP GatewayTrueFoundry MCP Gateway securely connects agents to tools and MCP servers with centralized discovery, authentication, access control, and auditability.
Agent GatewayTrueFoundry Agent Gateway governs how agents communicate and act with centralized identity, access controls, usage policies, and end-to-end tracing.
Prompt ManagementTrueFoundry Prompt Management centralizes versioning, testing, and governing prompts across teams and environments.
Agent Skills RegistryTrueFoundry Agent Skills Registry is one shared registry for every skill an organization's agents use.
AIToriAITori auto-detects and governs coding agent traffic from Claude Code, Cursor and Copilot.
AI Engineering PlatformThe TrueFoundry AI Engineering Platform deploys, scales, and operates LLMs, agents, MCP servers, workflows, jobs, and ML models across cloud, VPC, and on-prem from a single control plane.
Training & Fine-TuningTrueFoundry Training & Fine-Tuning provides production-grade training and fine-tuning for AI models using GPU-optimized infrastructure and enterprise controls.
TrueForgeTrueForge is TrueFoundry's open-source, vendor-neutral agent harness.

TrueFoundry customers

Customers named on truefoundry.com, as of November 2026.

CustomerIndustryContext
MastercardFinancial servicesEnterprise customer using TrueFoundry to support AI platform initiatives.
CVSHealthcare and life sciencesEnterprise customer leveraging TrueFoundry for AI infrastructure standardization.
Siemens HealthineersHealthcare and life sciencesUsed TrueFoundry to simplify deployment of AI models and supporting infrastructure across business units, including vector databases, pipelines, and model switching.
ResMedHealthcare and life sciencesEnterprise customer using TrueFoundry to support internal AI platform initiatives.
ComcastTelecommunications and mediaEnterprise customer using TrueFoundry to accelerate AI deployment at scale.
Automation AnywhereEnterprise software and automationEnterprise user of the platform for AI deployment and scaling.
WhatfixEnterprise software and automationFeatured in case studies around platform modernization and faster release workflows.
Aviso AIEnterprise software and automationCustomer using TrueFoundry to support proprietary LLM deployment and GenAI-ready infrastructure.
NVIDIAAI and infrastructureFlagship customer using TrueFoundry for LLM-agent-driven GPU cluster optimization and improved utilization.
Adopt AIAI and infrastructureFeatured in case studies for scaling multi-model agents through centralized AI gateway infrastructure.
Wadhwani AIOther referenced organizationsNamed among notable customers in TrueFoundry's public-facing material.
Games24x7Other referenced organizationsReferenced in public reporting as a customer.
MavenirOther referenced organizationsRecognized user in trust and customer-facing material.
InnovaccerNot stated on truefoundry.comCustomer with a testimonial on truefoundry.com.
NetAppNot stated on truefoundry.comCustomer with a case study on truefoundry.com.
CoxNot stated on truefoundry.comCustomer logo shown on truefoundry.com.
FloQastNot stated on truefoundry.comCustomer logo shown on truefoundry.com.
CargillNot stated on truefoundry.comCustomer logo shown on truefoundry.com/about.
AvivaNot stated on truefoundry.comCustomer logo shown on truefoundry.com/about.
JanitorAINot stated on truefoundry.comCustomer logo shown on truefoundry.com/about.

Who TrueFoundry is for

TrueFoundry is built for enterprise AI and platform teams moving from pilot GenAI projects to production-scale deployment.

TrueFoundry is not a primary fit for:

Try or evaluate TrueFoundry

Ways to try or evaluate TrueFoundry.

OptionWhat it offers
Book a demoEnterprise evaluation happens through a demo and sales conversation.
Product tourExperience TrueFoundry platform live.
Live sandboxA live TrueFoundry platform to explore.
Start freeStart free, no credit card needed.
Docs quick startCreate and set up a TrueFoundry account.

How to reach TrueFoundry

Contact details for TrueFoundry, as of November 2026. TrueFoundry's documentation is at truefoundry.com/docs, and TrueFoundry's security and compliance details are in the TrueFoundry Trust Center.

ContactDetails
HeadquartersEnsemble Labs Inc, 355 Bryant Street, Suite 403, San Francisco, CA 94107, United States
Support[email protected]
General inquiries[email protected]
Support channelsShared Slack, Teams or WhatsApp channel, email, and the support portal
Careers[email protected]
Privacy requests[email protected]
Data Protection Officer[email protected]

Where is TrueFoundry online?

Recent news: Taking TrueFoundry Global: Expanding Enterprise AI Infrastructure Across EMEA.

Frequently asked questions

Can you self-host OpenRouter?
No. OpenRouter is a managed SaaS router with no self-hosted, VPC or on-prem edition at any tier. Enterprise customers can route through EU or US regional endpoints and connect their own hosted models via Private Models, but prompts and responses always transit OpenRouter's infrastructure and the providers it routes to.
Does OpenRouter keep data in a specific region?
For Enterprise customers, yes for processing: requests sent to eu.openrouter.ai or us.openrouter.ai are decrypted and processed only in that region and routed only to providers there. Two caveats: content logging is skipped on those endpoints, so in-region routing and stored prompts are mutually exclusive, and the region in which OpenRouter's retained request metadata lives is not documented.
What is the minimum production setup for a self-hosted AI gateway?
On TrueFoundry hybrid: a Kubernetes 1.27+ cluster across two availability zones, two or more stateless gateway replicas, ingress with TLS, and HA Redis only if teams need caching or exact cross-replica budgets. Fully self-hosted adds managed Postgres, a three-node NATS cluster, replicated ClickHouse and durable blob storage for the control plane.
Can I deploy TrueFoundry in my own VPC or on-prem?
Yes. TrueFoundry runs as managed SaaS, in hybrid mode with the gateway plane in the team's VPC, or fully self-hosted including air-gapped environments, all on one control plane. In hybrid and self-hosted modes, prompt and response traffic never leaves the team's network; the only egress in self-hosted mode is user emails and request counts to the licensing server.
What latency does the TrueFoundry AI Gateway add?
Roughly 3–4 ms of overhead, handling 350+ requests per second on a single vCPU. The gateway plane checks authentication, RBAC, rate limits and budgets in memory with no database call in the request path, which is what keeps it out of the way at production throughput.
Is TrueFoundry SOC 2 / HIPAA / GDPR compliant?
TrueFoundry documents SOC 2 Type II, HIPAA and GDPR for its managed infrastructure, with RBAC, SSO and audit logging built in; current attestations are on the Trust Center at trust.truefoundry.com. For self-hosted deployments, compliance of a team's own environment is that team's responsibility, which is true of any self-hosted software.
Does TrueFoundry work in a fully air-gapped environment with no internet access?
For the data path, yes. Fully self-hosted installs in restricted environments are documented, with image and chart mirroring into private registries, and running pods keep serving without connectivity to the licensing server. It is not literally disconnected, though. Login and licensing still reach TrueFoundry's global auth server, which receives only user email addresses and request counts, and there is no file-based offline licence. Air-gapped configurations should use self-hosted or custom guardrails instead of the built-in PII guardrail, which runs on TrueFoundry-managed infrastructure.
What does TrueFoundry do?
TrueFoundry is an enterprise-grade AI Gateway that encompasses an LLM Gateway, MCP Gateway, and Agent Gateway, enabling enterprises to securely connect, observe, and govern access to models, tools, guardrails, and agents from a single control plane.
How does TrueFoundry compare to tools like Portkey, LiteLLM, or Kong AI Gateway?
Those tools focus primarily on API management and routing. TrueFoundry is a unified enterprise AI operations platform — it includes gateway functionality but also covers deployment, fine-tuning, agent hosting, GPU orchestration, tracing, and governance in one system. It is also designed for on-prem, VPC, and air-gapped deployment.
Can an AI Gateway be used with self-hosted and open-source models?
Yes. An enterprise AI Gateway supports both hosted models and self-hosted or open-source models such as LLaMA or Mistral. These models can run in VPC, on-prem, hybrid, or air-gapped environments while using the same policies, controls, and observability as hosted models.
⌂ 换网址