Which open-source gateway can replace OpenRouter inside your own infrastructure
When a regulation, a customer contract, an EU residency rule or a lock-in concern blocks sending data through OpenRouter, the closest self-hosted replacements are LiteLLM and Portkey AI Gateway, with vLLM as the option for models you serve inside the organization. LiteLLM runs as a Python SDK or as a self-hosted proxy with an OpenAI-compatible API, and Portkey's AI Gateway can be run with Docker, Node.js or npx. Either one moves the routing layer into your own infrastructure, but the trade-off is direct: you keep control of routing, keys, logging and spend, and you also take on your own contracts and API keys with each model provider.
LiteLLM is MIT licensed, except the litellm/enterprise/ directory, which carries a separate commercial license, so the license review should cover that directory separately from the core repository. Its proxy provides virtual keys, per-project or per-user spend tracking, logging, guardrails and load balancing, and its README recommends Docker images with the -stable tag. Portkey's AI Gateway is MIT licensed and offers conditional routing, weighted load balancing, fallbacks, retries and guardrails. Before you choose, confirm each project's current license text, which features are in the open-source build and which need a paid edition, and whether the logging you enable stores prompts and completions, because that data then sits in your own systems under your own retention rules.
vLLM is an Apache-2.0 inference engine with an OpenAI-compatible API server. It runs open-weight models on NVIDIA, AMD and Intel GPUs and on x86, ARM and PowerPC CPUs, so a gateway can route sensitive requests to models served inside your network. Be aware of what you lose: OpenRouter's hosted provider marketplace and its zero data retention endpoint list do not come with a self-hosted gateway, so you must select, contract and verify every provider yourself. Ask each provider for its DPA, retention and training terms in writing, and confirm that the self-hosted gateway and each provider endpoint are covered by the same risk assessment.
License and deployment terms of the open-source gateways and inference engine
This table compares the license, deployment modes and key features of LiteLLM, Portkey AI Gateway and vLLM, the three open-source components most often weighed against OpenRouter. Read the license row first, because LiteLLM's enterprise directory carries a separate commercial license, and confirm the current license text before approval.
| Component | License | Deployment modes | Features to check |
|---|---|---|---|
| LiteLLM (BerriAI) | MIT for the repository, except the litellm/enterprise/ directory under a separate commercial license | Python SDK or self-hosted proxy server with an OpenAI-compatible API; the README recommends Docker images with the -stable tag | Virtual keys, per-project or per-user spend tracking, logging, guardrails and load balancing. Confirm which of these sit in the open core and which in the enterprise directory. |
| Portkey AI Gateway | MIT | Self-hosted with Docker, Node.js or npx @portkey-ai/gateway | Conditional routing, weighted load balancing, fallbacks, retries and guardrails across many providers |
| vLLM | Apache-2.0 | Inference engine with an OpenAI-compatible API server, run on your own GPUs or CPUs | Serves open-weight models on NVIDIA, AMD and Intel GPUs and x86, ARM and PowerPC CPUs, so a gateway can route to models you host |
| Hosted provider marketplace | Not applicable to a self-hosted gateway | Not replaced by any of the three components | Your organization holds its own contracts and API keys with each model provider |
| License text to confirm | Read the LICENSE file and the enterprise directory notice in each repository | Confirm before each upgrade, since terms can change between releases | Have legal review any use of the enterprise directory features |
What is free to download and what your team must still run
The gateway software in this list is free to download under open licenses, so the license line is not where the money goes. The costs sit in the work of running a gateway that handles customer, patient or EU personal data, and in the provider contracts your organization must still hold on its own.
Software licenses
LiteLLM's repository is MIT licensed, except the litellm/enterprise/ directory, which carries a separate commercial license. Portkey's AI Gateway is MIT licensed, and vLLM is Apache-2.0. Check which directories or add-ons fall under a commercial license before you rely on the free tier. Confirm the license of every container image and plugin you deploy, not only the main repository.
LiteLLM licenseHosting and capacity
A self-hosted gateway runs on compute inside your cloud account, data center or air-gapped network, and that compute is a recurring cost. Gateways are light, but inference servers such as vLLM need GPUs or CPUs sized to the models you serve. Ask your platform team to price the hosting, redundancy and failover for production use, and to state which costs are one-time and which recur.
Upgrades and security patching
Gateway, inference and container dependencies release updates on their own schedules, and you own the patch cycle. The LiteLLM README recommends Docker images with the -stable tag, which narrows what you pull, but it does not replace your own testing. Assign an owner for each component, a test environment and a rollback path before the first production release.
Access control and key management
Your organization holds its own contracts and API keys with each model provider, so every key you store becomes a secret you must rotate, scope and revoke. LiteLLM offers virtual keys and per-project or per-user spend tracking, but identity integration, key lifecycle and offboarding are your responsibility. Confirm how keys are stored, who can read them and how quickly a departing employee's access ends.
Logging retention and audit evidence
Gateway logs can hold prompts, completions and user identifiers, which makes them personal data in their own right. You decide how long logs are kept, where they sit and who can query them, and an auditor will ask for that schedule. Set a retention period in writing, restrict access to logs, and test that deletion actually runs. Self-hosting moves this obligation to you, so it no longer belongs to a hosted vendor's terms.
On-call and provider contracts
A gateway that routes production traffic needs someone to respond when a model endpoint, GPU node or proxy fails, and that staffing is a recurring cost. Each model provider you call requires your own agreement, data processing terms and retention settings, and none of these carry over from OpenRouter's terms. Ask legal and procurement to map every provider contract before traffic moves, and to name who holds the on-call rota.
Which self-hosted setup fits a small team, a regulated organization or an air-gapped network
A small team using a handful of providers usually needs a gateway that gives one OpenAI-compatible endpoint, basic logging and a way to switch models without changing application code. LiteLLM can run as a Python SDK for a single service or as a self-hosted proxy for several users. Portkey's AI Gateway, which is MIT licensed, can run with Docker, Node.js or npx and covers fallbacks and retries across providers. The gateway itself stays inside your environment, but every prompt still goes to whichever provider you configure, so each provider is a separate contract you must hold.
- Gateway hosting: One container or process on infrastructure you already run, with no shared multi-tenant service.
- Provider contracts: You sign a DPA or BAA directly with each model provider, because the gateway does not replace them.
- Keys: Provider API keys sit in your secrets store, and you own their rotation.
- Logging: Decide what request content the gateway writes to disk and how long it keeps it.
- Marketplace loss: You no longer get OpenRouter's catalog of many models behind one bill.
Before rollout, confirm each provider's retention and training terms for the API tier you will use, and document them in your data inventory.
A regulated or large organization needs the gateway to act as a control point: individual keys per team, spend limits, logs that a security team can review and guardrails applied before a request leaves the network. LiteLLM's proxy provides virtual keys, per-project or per-user spend tracking, logging, guardrails and load balancing, and its README recommends Docker images with the -stable tag. Its enterprise directory carries a separate commercial license, so confirm which features you need fall under the MIT-licensed core and which require that license.
- Virtual keys: Issue scoped keys per team or application so revocation does not touch unrelated users.
- Audit logs: Send gateway logs to your SIEM and set retention to match your records policy.
- Access control: Put the proxy behind your identity provider and admin plane, and test those settings yourself.
- Licensing: Check whether the features your auditors ask about sit in the enterprise directory.
- Provider terms: Each upstream provider still processes the data, so its BAA, DPA or retention terms remain your responsibility.
Ask your security team to test the proxy's admin interface, key handling and log contents before any protected data reaches it.
A software company that calls models from inside its own product has a different risk profile. The gateway becomes part of your service, so customer data flows through it on every request, and customers may ask how it is hosted, logged and secured. Portkey's gateway offers conditional routing, weighted load balancing, fallbacks, retries and guardrails, which helps with availability and per-tenant routing rules. Because the gateway runs in your infrastructure, you control tenant isolation and logging, but you also carry the operating burden of uptime and patching.
- Tenant routing: Map customer tiers or regions to specific providers through configuration you can show in a review.
- Fallbacks: Define which providers may receive customer data when the primary is unavailable, and disclose them.
- Logging scope: Keep customer content out of general application logs unless you have a documented need.
- Customer disclosures: Your subprocessor list must name every external model provider the gateway calls.
- Operations: Plan for updates, security patches and capacity, because these now fall to your team.
Review your customer contracts and subprocessor list against the providers the gateway can actually reach in production.
In an air-gapped network, no request can reach a commercial model provider, so the gateway must route only to models served inside the organization. vLLM is an Apache-2.0 inference engine with an OpenAI-compatible API server that runs open-weight models on NVIDIA, AMD and Intel GPUs and on x86, ARM and PowerPC CPUs. A self-hosted gateway such as LiteLLM can then point its routes at vLLM endpoints, so applications keep one interface while every inference stays on your hardware. Hardware choice, model selection and the license of each open-weight model are your decisions.
- Inference servers: Run vLLM on approved GPU or CPU hardware and restrict its network reach to the gateway.
- Model licenses: Confirm that each open-weight model's license allows your intended use.
- Updates: Move model weights, container images and dependencies through an approved transfer process.
- No marketplace: You lose hosted providers, the ZDR endpoint list and the model catalog entirely.
- Egress rules: Block outbound calls from the gateway to any external provider to prove the boundary.
Verify the isolation with a network test that confirms no route to external providers exists, and record the result for your assessor.
What you give up when the hosted routing marketplace is replaced
A self-hosted gateway replaces the routing software, not the hosted provider marketplace behind it. Tools such as LiteLLM, Portkey's AI Gateway or a vLLM-backed setup give you keys, spend tracking, fallbacks and guardrails inside your own infrastructure, but they do not bring along OpenRouter's catalog of third-party providers or its zero data retention (ZDR) endpoint list. Those are part of the hosted service, so when you move off OpenRouter, the question of which model provider sees your data moves with you and becomes your responsibility.
Your organization holds its own contracts and API keys with each model provider it routes to. That means you, not the gateway, must review each provider's terms on retention, training on inputs, data location and sub-processors, and confirm whether that provider will sign a data processing agreement or business associate agreement for your plan. Do not assume that a provider which kept nothing through OpenRouter keeps nothing when you call it directly. Confirm the retention setting on each account and record the answer in your vendor file. Models you serve yourself through vLLM remove this provider step, but they shift the cost to your own GPUs, uptime and patching.
Before you approve a replacement, read what the hosted service currently does so you know which controls you must rebuild. The OpenRouter zero data retention documentation describes how routing can be limited to endpoints that keep nothing, and the OpenRouter in-region routing documentation describes where requests are processed on regional hostnames and which plans include them. Each control you do not replicate in your own gateway, provider contract or configuration becomes a gap that your security and privacy reviewers will need to close in writing.
What drives total cost of ownership beyond the license
This table lists the cost components an organization carries when it replaces OpenRouter with a self-hosted gateway, who is paid for each, and whether it is one-time or recurring. Use it to build a quote request, since most open-source gateways are free to license but not free to run. The main takeaway is that compute, staff time and provider contracts usually outweigh the software license.
| Cost driver | Who is paid or who bears it | One-time or recurring | What to ask for or confirm |
|---|---|---|---|
| Compute for the gateway | Cloud provider or data center team | Recurring | Hosting size for the gateway proxy, database and redundancy in your own accounts or air-gapped network |
| Compute for served models | GPU or CPU owner, plus cloud or hardware vendor | Recurring, and tied to usage peaks | Hardware needed for each open-weight model served through vLLM, and whether capacity is reserved or on demand |
| Deployment and integration staff | Internal platform engineers or an implementation partner | One-time, then recurring | Written scope covering SSO, virtual keys, logging, guardrails and provider routing configuration |
| Upgrades and maintenance | Internal platform team or a retained support provider | Recurring | Release cadence for LiteLLM, Portkey AI Gateway and vLLM, and who tests each upgrade before production |
| Security testing | Independent tester or internal security team | One-time at launch, then recurring | Scope covering prompt injection, key handling, access controls and the gateway admin interface |
| Provider contracts and keys | Your finance and legal teams, with each model provider | Recurring | Whether each provider offers a DPA, zero data retention terms and training opt-outs under your own agreement |
| Log and spend storage | Cloud storage or database owner | Recurring, growing with volume | Retention period for prompt logs, what is stored by default, and redaction of personal data in logs |
| Support terms | Commercial vendor for enterprise editions, or none for community editions | Recurring when purchased | Enterprise license scope, response commitments and whether the LiteLLM enterprise directory is needed |
What the license and your provider contracts require of you
Replacing OpenRouter with a self-hosted gateway moves two sets of obligations onto your team: the license terms of the open-source software you run, and the contracts you hold directly with each model provider. Neither is handled for you once the gateway runs in your own infrastructure.
LiteLLM enterprise directory needs a separate license
LiteLLM's repository is MIT licensed, but the litellm/enterprise/ directory carries a separate commercial license. If your deployment uses features from that directory, you need a commercial agreement with the project's owner, and that cost recurs for as long as those features are in use. Before you deploy, map which proxy features you rely on against the directory boundary, and ask the vendor for written confirmation of what the commercial license covers. A separate commercial license applies to that directory only.
LiteLLM licenseMIT and Apache-2.0 notice duties
MIT and Apache-2.0 licenses are permissive, but they still require you to keep copyright and license notices with the software you distribute or redeploy. Apache-2.0 also carries its own notice and attribution conditions, and internal use of unmodified code usually triggers less than external distribution. Confirm the exact attribution text in each project's license file, keep it in your deployment and internal documentation, and reflect any modifications your team makes to the gateway code. Your legal team should decide whether internal use triggers any obligation in your jurisdiction.
Keys and contracts with each model provider
A self-hosted gateway does not carry over OpenRouter's hosted provider marketplace or its zero data retention endpoint list. Your organization must sign its own agreements with each model provider, hold its own API keys, and confirm each provider's data handling, retention and training terms under those agreements. OpenRouter's terms state it makes no representation about provider data practices, so you cannot assume a provider's protections without your own contract. Ask each provider for its DPA, retention settings and any BAA it offers, and record which signed terms apply to which traffic.
Gateway keys and virtual key management
A gateway that holds provider keys becomes a credential store. LiteLLM's proxy issues virtual keys for projects or users, and you must decide who may create them, how they rotate, and how provider keys are protected at rest and in transit. Keep provider keys in a secrets manager under your control, scope virtual keys to the minimum models and spend they need, and document the owner of each key. Confirm these controls in your own environment, because the proxy's default settings may not match your policy.
Self-hosted models bring their own licenses
If you route to models served by vLLM inside your own infrastructure, vLLM is Apache-2.0, but each open-weight model has its own license and acceptable use terms. Some model licenses restrict commercial use, redistribution or certain applications, so the license of each model matters as much as the gateway's license. Keep an inventory of every model your gateway can reach, record its license and version, and have legal review any model used with regulated data before it is added to the routing configuration.
Who owns the processor role
When you host the gateway yourself, your organization is usually the controller for the personal data passing through it, and each model provider may act as a processor or sub-processor under the contracts you sign. OpenRouter's Data Processing Agreement names the customer as controller and OpenRouter as processor, and a self-hosted setup removes OpenRouter from that chain. Your privacy team must map every party that touches the data, confirm each provider contract includes the processor terms your regulation requires, and update your records of processing to reflect the new architecture.
OpenRouter DPAWhat to collect before approving a self-hosted gateway
This sequence turns a candidate open-source gateway into an approval package that security, privacy and procurement can review before any production traffic moves off OpenRouter. Each step produces a written record that the project maintainers, your own teams or your licensed vendors have confirmed.
Pull the exact license text for each component
Collect the license file from every component you plan to run, not only the gateway. For LiteLLM, that means the repository's MIT license and the separate commercial license that applies to the litellm/enterprise/ directory. Include the licenses of the model server, such as vLLM under Apache-2.0, and of any model weights you intend to serve, because open-weight models carry their own terms. Confirm with the project maintainers that the license files you archived match the versions you will deploy. The output is a dated license register that lists each component, its license identifier, the file location and the approver.
Confirm the edition and enterprise features you need
List the features your use case depends on, such as virtual keys, per-project or per-user spend tracking, logging, guardrails, SSO, or load balancing, and check which edition provides each one. Where a feature sits in a directory under a commercial license, record that as a cost and a legal condition, not a technical detail. Ask the maintainers or your licensed vendor to confirm in writing which features are available under the open-source license and which need a paid agreement. The output is a feature-to-license matrix that the approver signs off on before any build work starts.
Document data handling inside your environment
Map every place prompts, completions, logs, spend records and virtual key metadata are written in your environment, including gateway logs, database tables, observability tools and backups. Record the retention period you set for each store and who can read it. Because a self-hosted gateway does not change what the upstream model provider does with data, list each provider you will call directly, the contract you hold with it, and whether that provider offers zero data retention or a training opt-out for your account. The output is a data flow diagram and a retention table that privacy and security teams can test against your policies.
Assign support and upgrade ownership
Name one owner for each component: the gateway, the model server, the database, the container images and the GPU hosts. Write down who watches release notes, who applies security patches, who tests upgrades in a non-production environment, and who has authority to roll back. The README of LiteLLM recommends Docker images with the -stable tag, so record which tag you pin and the process for moving it forward. Decide whether support comes from in-house staff, a commercial support contract with the project or a partner such as DeployOpen, and get the terms in writing. The output is a responsibility matrix signed by the service owner.
Write the exit path to another gateway
Describe how you would move traffic to another gateway or back to a hosted service if the chosen project changes its license, drops a feature you rely on or stops being maintained. Identify the parts that depend on the gateway's API format, such as OpenAI-compatible endpoints, client code and key issuance, and keep those dependencies behind a configuration layer you control. Record how virtual keys and spend history would be exported. Confirm with the maintainers which export formats exist and whether the license permits you to keep running a fork. The output is a tested runbook and a short list of the components that would need to change.
What catches buyers out when they self-host a gateway
Replacing a hosted gateway with a self-hosted one moves operational and compliance work onto your team. The cards below cover the traps that most often surprise buyers: features gated behind commercial licenses, image tags that fall out of support, provider-side retention that never goes away, and the ongoing staff effort to patch and monitor the stack.
Enterprise features sit in a separate directory
LiteLLM's repository is MIT licensed, but the litellm/enterprise/ directory carries a separate commercial license. Before you approve a deployment, list every control your policy needs, such as SSO, audit features or advanced guardrails, and check whether each one lives in the open core or in the enterprise directory. A pilot built on the free code can then fail review when the enterprise controls are needed. Ask legal to read the license file for the exact scope of the commercial terms.
LiteLLM licensePinning to unsupported image tags
LiteLLM's README recommends Docker images with the -stable tag. Teams that pull a latest image, or pin a tag once and never revisit it, can end up running a build that no longer receives fixes while the security review still reflects the earlier version. Write down which tag you run, who checks for new releases, and how a security fix gets from the upstream project into your registry. Treat the image version as an asset with an owner.
Provider retention questions remain yours
A self-hosted gateway does not replace OpenRouter's hosted provider marketplace or its ZDR endpoint list. Your organization holds its own contracts and keys with each model provider, so the gateway cannot promise that a provider keeps nothing or refrains from training. For every model you route to, confirm the provider's retention period, training terms, data location and DPA or BAA coverage. Document this in the same register you used for the hosted gateway.
Keys sprawl across providers
In a self-hosted setup, each model provider contract brings its own API keys, billing accounts and admin consoles. Virtual keys in the gateway help with per-project spend tracking, but the underlying provider keys still have to be stored, rotated and revoked by your team. Ask who holds each key, where it is stored, how rotation is enforced and how a departing engineer's access is removed from both the gateway and the providers.
Patching and monitoring take ongoing staff time
A self-hosted gateway needs a database, a secrets store, logging, upgrades and an on-call path. Each component adds patches, configuration drift and alert noise that a hosted service would otherwise absorb. Plan for recurring work: reviewing release notes, testing upgrades in staging, rotating credentials and reviewing spend and access logs. Ask who owns each of these tasks and how many hours a month the team has allocated to them before you commit.
Routing to internal models needs GPU capacity
vLLM is an Apache-2.0 inference engine that can serve open-weight models inside your network, so the gateway can route sensitive requests to models you host. That only works if you have GPU or CPU capacity sized for peak use, a model license that allows your use, and monitoring for latency and failures. Confirm the hardware, the model licenses and the fallback route to a contracted provider before sending protected data to an internal endpoint.
vLLM repositoryWhat buyers ask before approving a self-hosted OpenRouter alternative
Does a self-hosted gateway remove the need for provider DPAs?
No. A self-hosted gateway does not remove the need for provider agreements. The organization holds its own contracts and keys with each model provider, so each provider that receives personal data still needs its own data processing terms, retention settings and transfer basis reviewed. Moving the router in-house changes who sees the request in transit, but it does not change how the upstream provider handles the content it receives. Before approval, list every model endpoint the gateway can reach, confirm the contract, retention and training terms for each one, and record which endpoints are allowed for patient, customer or EU personal data. Where a model is served inside the organization on vLLM, the provider question becomes an internal hosting and access question instead.
What does it cost to run a self-hosted AI gateway?
The cost comes from people, infrastructure and upstream model usage, and the gateway software itself is not a line item for MIT or Apache-2.0 projects. Your team or an implementation partner pays for setup, configuration, security hardening, upgrades and monitoring, which is largely one-time work followed by recurring operations effort. Infrastructure costs depend on the hosting environment, the number of users and whether you also serve models on GPUs. Model usage is billed by each provider under the contract you hold with it. Ask any partner for a written scope that separates deployment, testing, documentation and ongoing support, and ask your cloud or data center team for the infrastructure figures that apply to your environment.
Can our internal team run a self-hosted gateway without outside help?
It depends on your team's capacity to operate a production service that handles sensitive data. Running the gateway requires someone to deploy the container or service, connect single sign-on and access control, manage virtual keys and spend tracking, configure logging and guardrails, back up configuration and keep the software current. LiteLLM's README recommends Docker images with the -stable tag, which is a useful starting point for version control. Check whether your engineers can own these tasks on a recurring schedule, whether logs with prompts are stored in systems that meet your retention rules, and whether anyone can respond to a security advisory within your change process. If those gaps exist, a fixed-scope engagement can cover deployment, hardening and documentation while your team keeps ownership.
Which gateway features are enterprise-only or licensed separately?
For LiteLLM, the main exception is the litellm/enterprise/ directory, which carries a separate commercial license while the rest of the repository is MIT licensed. Before you assume a feature is free, read the LICENSE file and the enterprise directory notice, then map each control you need, such as SSO, audit logging, spend limits or guardrails, to the license that covers it. Portkey's AI Gateway is MIT licensed and can be self-hosted with Docker, Node.js or npx, but its hosted control plane and any commercial add-ons are separate products that you should confirm with the vendor. Ask each vendor in writing which capabilities ship in the open-source build and which require a paid agreement.
How should we choose between LiteLLM and Portkey?
Choose based on the controls you must prove and the operating model your team can support. LiteLLM offers an OpenAI-compatible self-hosted proxy with virtual keys, per-project or per-user spend tracking, logging, guardrails and load balancing, which maps well to internal cost allocation and access review. Portkey's AI Gateway is MIT licensed and emphasizes conditional routing, weighted load balancing, fallbacks, retries and guardrails, which suits teams focused on routing policy and resilience. Test both against your own requirements: which providers you need, how logs are stored, whether the license covers your needs, how the project is upgraded, and how each handles data that must not leave your region. Run a short proof of concept with synthetic data before selecting either.
What do we lose when we leave OpenRouter's hosted marketplace?
You lose OpenRouter's hosted provider marketplace, its single billing relationship and its zero data retention endpoint list. A self-hosted gateway does not replace those. Each model provider you add must be contracted, keyed and configured by your organization, and you must maintain the retention and training terms that OpenRouter currently surfaces for each route. You also lose the convenience of switching models through one account without opening new contracts. In exchange you control the routing service, the logs and the network path. Build a list of the models your staff use today, decide which must remain available, and confirm each provider's terms before cutover.
Can we route to models we host ourselves through the gateway?
Yes, if the gateway can be configured to call an OpenAI-compatible endpoint inside your network. vLLM is an Apache-2.0 inference engine with an OpenAI-compatible API server that runs open-weight models on NVIDIA, AMD and Intel GPUs and on x86, ARM and PowerPC CPUs, so a self-hosted gateway can route requests to models served inside your organization. Confirm the license of each open-weight model separately, because the engine license does not cover the model weights. Also confirm that GPU capacity, network segmentation and access control for the model server meet your internal standards before routing sensitive requests to it.
How the gateway, the inference engine and your provider contracts fit together
Your application should call one internal endpoint, and that endpoint should be the only thing that holds model credentials. In a self-hosted design, the gateway (for example LiteLLM, which exposes an OpenAI-compatible API when run as a proxy server, or Portkey's AI Gateway) sits inside your network and receives every request from your applications. The gateway then decides where each request goes: to a model served inside your own infrastructure, or to an external provider. The gateway is a routing layer, not a data processor for the model provider's side of the call. That distinction determines which contracts you need and who you must bind to them.
For requests served inside your network, the path usually runs from the gateway to vLLM, an Apache-2.0 inference engine with an OpenAI-compatible API server that runs open-weight models on supported GPUs and CPUs. Prompts then stay on hardware you control, and the contract question shrinks to your own access controls, logging and retention settings. For requests sent to an external provider, the gateway holds your own API keys, and you hold a separate agreement with each provider. Confirm with each provider which data processing terms, retention settings and regional endpoints apply to the account and plan you have actually signed, because the gateway does not carry those terms over to the call.
Map each route before you approve it. List every provider the gateway can reach, the contract and DPA that covers each one, the retention and training terms on the plan you hold, and the region where the call is processed. Then confirm which routes the gateway may use for patient, customer or EU personal data, and enforce that with routing rules or separate gateway instances rather than relying on developers to pick the right model by name. A self-hosted gateway removes the hosted marketplace, so the zero data retention endpoint list and the provider selection that OpenRouter performs for you must be rebuilt by your own team from each provider's terms.
Request path from your application to models you control
The path starts at your application, which sends requests to a gateway you host inside your own network. The gateway applies virtual keys and guardrails before it chooses a route. Requests for open-weight models go to vLLM servers that run inside your environment, so prompts never leave your network. Requests for hosted models go to external providers under contracts and keys your organization holds directly. Check which route each model name resolves to, and confirm that the provider terms for each external route cover the data you send.
Requests stay inside your network unless routed to a provider you contracted for directly.
How DeployOpen deploys a self-hosted AI gateway under your compliance rules
DeployOpen plans, implements, hardens and documents self-hosted open-source AI gateways inside your own cloud accounts, data centers or air-gapped networks. The work starts from your compliance rules for routing, logging and key handling, so your security and privacy teams can review the gateway before any staff member sends it personal data.
How we scope
- Engagements are fixed-scope, with scope and deliverables agreed in writing before work starts.
- We map which model providers, internal models and teams the gateway must reach, and which contracts you already hold with each.
- We record which requests may carry patient, customer or EU personal data and which logging and retention settings apply to them.
How we build
- We deploy the chosen gateway, such as LiteLLM or Portkey's AI Gateway, in your infrastructure with SSO, access control and audit logging.
- We configure virtual keys, spend tracking and guardrails so provider credentials stay in your secrets store, not with staff.
- We can connect models served inside your environment, such as open-weight models run on vLLM, so sensitive requests need not leave your network.
How we hand over
- You receive documentation of the architecture, data flows, logging settings and key ownership for your compliance and security reviews.
- We test the deployment for prompt injection, permission gaps, data exposure and credential handling, and deliver a findings report with fixes and a retest.
- We prepare control evidence for your compliance assessment, while independent auditors and certification bodies issue any audit reports.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- We track gateway releases and license terms, including the separately licensed enterprise directory in LiteLLM, and plan upgrades with you.
- We keep the documentation current as providers, models and routing rules change, so your review file matches the running system.

