How Metabot on vLLM keeps prompts inside your network
A security or data team that wants Metabot's natural language requests answered by a model it operates can point Metabase at a vLLM server that exposes an OpenAI-compatible API, so prompts travel only to infrastructure the organization controls. The traffic path is Metabase to your vLLM endpoint, and nothing in that path has to leave your network. Whether that holds in practice depends on how the endpoint is placed, protected and monitored, which is why this section and the ones that follow treat the setup as an infrastructure decision rather than a checkbox in the Metabase admin settings.
vLLM is an open-source inference and serving engine for large language models, licensed under Apache-2.0. It has no paid edition, so the cost of running it comes from accelerator capacity (GPUs or other supported hardware), the surrounding infrastructure, the implementation work to connect it, and the people who operate it. Teams usually choose this path over a hosted provider when their policy requires prompts, schema context and query results to stay inside a data center or private cloud account, or when they already run accelerator capacity and want a single serving layer. Teams that only need a managed model and accept a provider's data terms may find a hosted option simpler to run.
Your organization is responsible for evaluating the model's answer quality, its cost at your expected usage, and how the model handles the data it receives. Metabase and vLLM do not make those decisions for you. Before rollout, confirm with your vLLM and model maintainers which model you will serve, test Metabot's SQL and chart answers against your own warehouse questions, and record who approved the data flow for your compliance file.
Where a Metabot request travels in a vLLM setup
A Metabot request starts in the Metabase UI, passes through the self-hosted Metabase instance, and crosses the network boundary that MB_LLM_ALLOWED_NETWORKS governs before reaching the vLLM server's /v1 endpoints. An optional reverse proxy can allowlist only the user-facing endpoints in front of vLLM, and the GPU or accelerator host sits behind it. The trust boundary between your network and any external network should be checked on every path. Query results used as context follow a separate data path from the model call, so confirm the exact payload contents in your environment.
Metabot model traffic stays on the internal path when networks are configured as intended.
vLLM settings Metabase needs for a private model
This table lists the four inputs you set when pointing Metabot at a vLLM server, what each one does, when it applies, and what to confirm before you configure it. Read it top to bottom as a checklist, since the network and API key settings depend on how your vLLM server is started and placed on the network.
| Setting | What it does | When it applies | What to decide or confirm |
|---|---|---|---|
| OpenAI-compatible base URL | Tells Metabase where the vLLM server listens, using the OpenAI-compatible API path ending in /v1. | Always, for every vLLM provider setup. | Confirm the host, port and that the path ends in /v1 by calling the server from the Metabase host. |
| MB_LLM_ALLOWED_NETWORKS | Permits Metabase to reach a server on a private network address that it would otherwise block. | When vLLM runs on a private or internal network address. | List only the specific subnet or host that serves vLLM, and confirm with your network team that no broader range is opened. |
| API key | Authenticates Metabase requests to the vLLM server. | Only if vLLM was started with the --api-key option. | Match the key to the value passed at startup, store it as a secret, and rotate it on your normal schedule. |
| Model name | Selects which model vLLM serves for Metabot requests. | Always, and it must match the model the server actually loaded. | Confirm the served model name, its accelerator memory needs, context length and that it handles the tool calls and SQL generation Metabot relies on. |
Choosing a vLLM serving layout for your environment
A single host with one or more GPUs is the simplest layout and the one most teams start with. vLLM splits a model across the GPUs in one machine using tensor parallelism, so the weights and compute are shared within the node. Because everything stays on one machine, there is no traffic between nodes to protect, and the main security work moves to the API endpoint that Metabase calls.
- Tensor parallelism: the model is sharded across the GPUs in the host, which is the usual way to fit a larger model into one machine.
- No inter-node traffic: the node-to-node security concerns in the vLLM docs do not apply to this layout.
- Endpoint exposure: the
--api-keyoption does not cover every route, so place a reverse proxy in front that allowlists only the endpoints Metabase needs. - Metrics and health routes:
/metricsand/healthare served by the API server, so decide who on your network can reach them. - Capacity limits: the GPU memory and count on the host set the largest model and the concurrency you can run, so benchmark your own prompts before you commit to hardware.
Before you build, confirm the GPU vendor and driver stack your host needs against the vLLM installation docs, and test your intended model on that exact hardware.
A multi-node layout is needed when one model does not fit on the GPUs in a single machine. vLLM then combines tensor parallelism within each node with pipeline parallelism across nodes. For mixture-of-experts models, data parallel deployment is also available. Multi-node runs use either Ray or vLLM's own multiprocessing backend to coordinate the machines.
- Pipeline parallelism across nodes: layers of the model are distributed across machines, which adds communication between them on every request.
- Insecure by default: the vLLM security docs state that communication between nodes is insecure by default, with no authorization or encryption.
- Isolated network: the docs say node traffic must be protected by placing the nodes on an isolated network, so plan a dedicated segment for this traffic.
- Backend choice: decide between Ray and the built-in multiprocessing backend, and confirm which one your vLLM version supports for your topology.
- Interconnect: network speed between nodes often becomes the bottleneck, so benchmark multi-node throughput rather than assuming it scales with node count.
Do not expose the coordination traffic to the Metabase network. Confirm the isolation design with your security team before you start the build.
A Kubernetes layout suits teams that already run clusters and want rollout, scheduling and GPU allocation handled by the platform. The vLLM docs list several deployment options: native manifests, Helm, the vLLM production-stack, AIBrix, KServe, KubeRay, LeaderWorkerSet, llm-d and NVIDIA Dynamo. Each adds different controllers and assumptions, so the choice should follow your existing platform tooling.
- Native manifests or Helm: the most direct options, with the least extra control plane to operate.
- Serving frameworks: KServe, AIBrix, llm-d and NVIDIA Dynamo add routing or serving layers that need their own review.
- Multi-node controllers: KubeRay and LeaderWorkerSet handle multi-node pods, which matches the isolation requirement above.
- Network policy: use cluster network policies to keep node traffic on a restricted path and keep the API service reachable only from Metabase.
- Upgrades and GPU drivers: plan how cluster upgrades and GPU operator updates interact with model pods.
Confirm which option your platform team already supports and which of them your security team can review. Benchmark on the node pools you plan to use in production.
Connecting Metabot to a self-hosted vLLM server, step by step
This sequence takes Metabot from a plan check to a tested connection in which prompts go to a vLLM server on your network. Each step ends with a check you can repeat before moving on.
Confirm the Metabase plan and Metabot availability
The Metabase administrator checks that the instance's plan and edition include Metabot and the AI provider settings your team needs, using the current pricing page and the supported providers documentation. Ask the vendor to confirm whether a custom provider such as vLLM is available on your plan before any server work begins. Done when the admin settings show the AI provider options for your instance and you have written confirmation of the plan.
Install vLLM from the supported path for your hardware
The platform engineer installs vLLM using the installation guide that matches your accelerators, such as NVIDIA CUDA, AMD ROCm, Intel XPU or CPU, and pins a release you have tested. vLLM is Apache-2.0 licensed with no paid edition, so the cost is the GPU or other accelerator capacity, the surrounding infrastructure and the people who run it. Done when the installed version reports successfully on the GPU host and the model you plan to use is compatible with that release.
Start the vLLM server with your chosen model
The engineer runs vllm serve with the model name and any parallelism options your hardware needs, binding the server to a private interface rather than a public address. Multi-GPU and multi-node layouts need their own review, because vLLM notes that node-to-node traffic is unauthenticated by default and must sit on an isolated network. Done when the server log shows the model loaded and the API server listening on the expected port.
Decide on API key and reverse proxy allowlist
The security owner decides whether to start vLLM with --api-key, which protects the /v1 endpoints but not /metrics, /health or several control endpoints. vLLM's security guidance advises a reverse proxy that allowlists only the endpoints users need, so place the proxy in front of vLLM and expose only the paths Metabase calls. Done when a request to an unlisted path such as /metrics fails from a user network, and the API key is stored in your secrets manager rather than in a shared file.
Test the OpenAI-compatible endpoints from the Metabase host
From the Metabase server, the engineer calls the /v1/models endpoint and then a small /v1/chat/completions request, adding the API key header if one was set. These calls confirm that the Metabase host can reach the server through the private network path. Done when both calls return a valid response, and /metrics is confirmed unreachable from user networks.
Set the base URL and allowed network in Metabase
The Metabase administrator sets the vLLM base URL to the server's OpenAI-compatible address ending in /v1, and sets MB_LLM_ALLOWED_NETWORKS so Metabase may call a server on a private network. The base URL, API key and network setting are typically environment variables on the Metabase host, while the provider fields may appear in the admin settings; confirm the exact admin path and variable names against the supported providers documentation for your version. Done when Metabase restarts cleanly and the provider saves without a connection error.
Select the provider and model, then run a test question
The administrator selects the vLLM provider and the same model name served by vLLM, then asks Metabot a question against a non-sensitive sample database that the test account can read. The question should be one whose answer you already know, so the result is easy to verify. Done when Metabot returns a correct answer, and the vLLM server log shows the request arrived from the Metabase host and not from elsewhere.
Why a private network and an API key are not enough alone
Keeping Metabot traffic inside your network is a starting point, not a finished control. A vLLM server exposes several endpoints, metrics and internal communication paths that an API key does not cover, so each one needs a deliberate decision about who reaches it and what it reveals.
Endpoints the API key does not cover
The --api-key option protects the /v1, /v2, /inference and /cohere routes, but not /invocations, /pause, /resume, /abort_requests, /metrics or /health. The vLLM docs advise against relying on the key alone and recommend a reverse proxy that allowlists only the endpoints Metabase needs. Confirm which routes your proxy passes through before go-live.
Metrics expose operational detail
The /metrics endpoint publishes Prometheus-format data on request counts, token throughput, latency histograms and KV cache use. None of that is a prompt, but it shows who is calling the model and how heavily. Restrict scraping to your monitoring network and decide whether the metrics path is reachable from the Metabase host at all.
Multi-node traffic needs isolation
The vLLM security docs state that communication between nodes in a multi-node deployment is insecure by default, with no authorization or encryption. If you split a model across GPU hosts with tensor or pipeline parallelism, place those nodes on an isolated network segment that Metabase and end users cannot reach. Ask your platform team who owns that segment and how it is monitored.
Key storage and rotation in Metabase
The vLLM key is stored in the Metabase instance, so it becomes one more secret to protect. Decide where it lives, who can read it, and how it is rotated when staff change. Rotating the key on the vLLM side also requires updating Metabase, so plan both changes together and record who approved them.
Prompt logging and retention on vLLM
Prompts and responses pass through the vLLM server, and whether they are written to logs depends on your launch configuration and any proxy or logging agent in front of it. Confirm what your deployment records, where logs are stored, who can read them and how long they are kept. Your retention rule should match the data classification of the Metabase databases Metabot can query.
Egress controls that block other providers
A Metabase instance with access to several AI providers can send prompts to one you did not intend to approve. Restrict outbound traffic from the Metabase host so that only the vLLM endpoint is reachable for model calls, and confirm that the MB_LLM_ALLOWED_NETWORKS setting is no broader than the private range you need. Test the block from the host itself.
What data still leaves the instance when Metabot uses vLLM
Pointing Metabot at a vLLM server keeps the model call inside your network, but it does not by itself keep all Metabot-related data inside it. Map every data path before you sign off. The first is the user's question itself. The second is the schema and metadata that Metabase may send to the model as context so it can write a query, which can reveal table and column names even when no row data is included. Confirm with Metabase exactly what context is sent for each Metabot feature, and whether SQL generation or data lookups send any query results back to the model. Query results are the path most likely to carry sensitive values, so treat them as a separate question.
The third path is storage. Conversation and generated content are kept in the Metabase application database, so its backups, access controls and retention settings apply to Metabot history. The fourth is anything else the Metabase instance calls out to. Metabot is only one of many features, and your existing firewall rules and outbound allowlists should be reviewed against the traffic you find, not against the assumption that the vLLM address is the only destination. Ask Metabase which outbound calls depend on AI settings and which remain on by default.
Finally, the vLLM server is a source of prompt-related data in its own right. Its API server exposes a /metrics endpoint, and the vLLM security documentation notes that the --api-key option does not cover every endpoint. Decide what the server logs, how long those logs are kept, who can read them and whether metrics labels could include request content. Then run a test conversation with a known marker string, search each store for that marker, and record the result. Confirm these behaviors against the current vLLM and Metabase versions you deploy.
What teams ask before running Metabot on vLLM
What does it cost to run Metabot on vLLM?
vLLM itself has no license fee, since it is open-source under Apache-2.0 and has no paid edition. The cost comes from four places: accelerator capacity (GPUs or other accelerators, either bought or rented), the surrounding infrastructure such as servers, storage, networking and a reverse proxy, implementation work to deploy and test the model, and the people who operate it after launch. Hardware and capacity costs recur, while implementation is usually one-time. Separately, confirm on Metabase's pricing page which plan Metabot requires for your instance, because the plan cost is a separate line item. Ask any vendor or partner for a quote that lists each of these components separately.
How long does a vLLM deployment for Metabot take?
The timeline depends mostly on three things: accelerator hardware lead time, approvals for network changes that let Metabase reach the vLLM server, and the model evaluation you run before users depend on it. If you already have GPU capacity and a network path approved, the technical setup is shorter than the approval and testing steps. No duration applies to every environment, so ask for a scoped estimate that names each dependency, who owns it and what is required to close it.
What do we need to provide before the work starts?
Plan to provide four things before the work starts:
- GPU or accelerator access in a environment you control, with enough memory for the model you choose
- Approval for network changes, including the route from the Metabase server to the vLLM endpoint and any allowed network setting for a private address range
- A named owner for the model choice, including who signs off on its license and data handling
- A named owner for the API key and who rotates it when staff change
Missing any of these usually delays the project more than the technical work itself.
Can our own team deploy vLLM for Metabot without a partner?
Yes, a capable team can do it in-house, provided it has an operator who is comfortable with Linux, GPU drivers and runtimes, container or service management, and reverse proxies. The Metabase side is a small configuration: the provider needs the OpenAI-compatible base URL ending in /v1, and a private network needs the allowed networks setting. The harder parts are sizing the hardware, locking down the endpoints and running a model evaluation. Decide early whether your team has that skill set for ongoing operations, not just the first deployment.
How do vLLM upgrades affect our setup?
vLLM ships new minor releases about every two weeks, so an unpinned install can change behavior without notice. Pin the version you tested, read the release notes for each upgrade, and run your test set against the new version in a staging environment before promoting it. Keep the previous version available so you can roll back. Treat the vLLM version, the model files and the Metabase version as one tested combination.
Does switching the model change Metabot's answers?
Yes. A different model, or a different version of the same model, can change how Metabot writes SQL, interprets questions and summarizes results. Before switching, run a fixed set of representative questions against the current and candidate models, compare the generated queries and results with known-correct answers, and check that permissions still apply to the data returned. Record the outcome so the change can be reviewed later.
Does a self-hosted model keep Metabot prompts inside our network?
It keeps prompts on infrastructure you operate, provided the vLLM endpoint is only reachable from inside your network. vLLM's API key only protects some endpoints, and its security documentation recommends a reverse proxy that allowlists only the endpoints users need. Multi-node deployments also need an isolated network between nodes, because inter-node traffic is not encrypted or authenticated by default. Confirm this design with your security team before go-live, since the vLLM security documentation is the reference for these settings.
Limits to confirm in your environment before go-live
A self-hosted Metabot on vLLM depends on several components that none of the vendors guarantee together: the Metabase edition, the model, the GPU hardware, the model terms and the network path. Confirm each item below with the vendor, the model publisher or your own environment before you rely on the setup for real questions.
Metabase plan and provider setting
Confirm that the Metabase version and plan you run include Metabot and the vLLM provider option before you plan the build. Check the provider settings in your own instance, because the feature set can differ by edition and release. Ask Metabase which plan includes Metabot on a self-hosted instance and whether the vLLM provider is available in your version. Record the version in your change record so later upgrades do not silently change the behavior.
Supported AI providersChat completion support in the model
Metabot relies on chat completion requests, so the model you serve must work through the chat endpoint that vLLM exposes. Test the chosen model with a chat request from the same network path Metabase will use, and confirm the response format matches what Metabot expects. Do not assume that a model listed for vLLM supports every feature Metabot calls, and test streaming and tool calling separately if Metabot uses them in your version.
Hardware support in vLLM
vLLM supports NVIDIA CUDA, AMD ROCm and Intel XPU GPUs, several CPU families and Apple silicon, and further accelerators through third-party plugins. Confirm that your specific GPU model, driver and CUDA or ROCm version are supported by the vLLM release you plan to run, and confirm any plugin with its maintainer. Check the installation documentation against your hardware list before you buy or allocate capacity, because unsupported combinations are a common source of delay.
vLLM installation docsModel license and usage terms
Open-weight models ship under different licenses, and some restrict commercial use, redistribution, user thresholds or use in specific sectors. Have legal or procurement read the license and acceptable use policy for the exact model and version you will serve, and record the decision. Confirm that the vLLM license, which is Apache-2.0, does not change the obligations that come with the model weights themselves.
Accuracy and SQL quality on your schema
Metabot's answers and generated SQL depend on how well the model understands your table names, joins and business terms. Build a test set from questions your analysts actually ask, run it against a copy of your schema, and have a data owner grade the SQL and results. Repeat the test after any model, vLLM or Metabase change. Public benchmark scores are not a substitute for this evaluation on your own data.
Outbound network, proxy and certificates
Confirm that the network path from the Metabase application server to the vLLM endpoint is open, including routing, firewall rules, any proxy that inspects traffic, and the certificate authority your internal TLS uses. Check whether the endpoint sits on a private range that needs the allowed networks setting, and test the connection from the same host and service account that runs Metabase. Your security team should confirm that vLLM is reachable only from the Metabase host and not from general users.
How DeployOpen scopes and delivers a self-hosted Metabot model
DeployOpen plans, deploys and documents the vLLM server and the Metabase connection together, so prompts stay on networks you control and your security and compliance teams can review the setup. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we scope
- Map which Metabase instance, users and databases Metabot will reach, and which prompts and query results may leave the network
- Confirm the vLLM host, network segment and GPU or accelerator capacity you can provide
- Agree the model choice, API key handling and the allowed-network range for MB_LLM_ALLOWED_NETWORKS in writing
How we build
- Install vLLM with its OpenAI-compatible server, then confirm the /v1 base URL resolves from the Metabase host
- Place a reverse proxy in front of vLLM that allowlists only the endpoints Metabase needs, since --api-key alone is not enough
- Configure the provider in Metabase, then test Metabot prompts, query generation and failure handling against your data
How we hand over
- Deliver a written configuration record covering the endpoint, network rules, key storage, model version and proxy allowlist
- Document how to restrict vLLM's /metrics and /health endpoints and how to monitor request and KV cache metrics
- Walk your platform, security and compliance teams through the data flows so they can review them independently
How we support
- Plan vLLM upgrades around its roughly two-week minor release cadence, with a test run on your model before each change
- Retest the proxy allowlist and Metabase connection after Metabase or vLLM upgrades, which are scoped separately
- Offer ongoing support, upgrades and continuous testing as a retainer if your team wants DeployOpen to keep operating the stack

