Taking the n8n self-hosted AI starter kit to production

The starter kit gets a local AI stack running quickly, but production needs authenticated model and vector services, isolated networks, tested backups and monitoring. This page explains what changes and what to plan.

On this page

Taking the n8n self-hosted AI starter kit to production: what changes first

A working starter kit on a laptop or test server proves that n8n, Ollama and Qdrant can talk to each other. It does not prove they are safe to expose to real users. The kit is built to get a team running quickly, and its defaults reflect that. Ollama binds to 127.0.0.1 on port 11434 by default, and its local API does not require authentication. A self-deployed Qdrant instance listens on all network interfaces and has no authentication configured until someone sets it. Both behaviors are reasonable for a single developer on one machine. They become the first problems to fix once other people, other services or a wider network can reach the stack.

The work starts with a short inventory of what the kit exposes and to whom. For Ollama, that means deciding whether the bind address changes through OLLAMA_HOST, and placing a reverse proxy with authentication in front of it if other hosts must call it. For Qdrant, it means enabling API keys, choosing whether read-only keys suit the retrieval workflows, and deciding whether JWT-based per-collection permissions are needed. Teams should also confirm where Ollama models are stored, since OLLAMA_MODELS moves them, and whether OLLAMA_NO_CLOUD=1 should be set so inference stays on local hardware. Each of these settings is a decision with an owner, not a default to accept.

DeployOpen plans and implements this hardening as part of a fixed-scope engagement, with the scope, deliverables and timeline agreed in writing before work starts. Typical work covers network placement, authentication and TLS for each service, GPU host preparation, a move from local storage to PostgreSQL for n8n, secrets handling, backups and monitoring. The work recurs only when the stack changes, through upgrades and new models, which is where a retainer may fit. Ask any partner for the written scope, the named controls, the test evidence and what remains with your own team after handover.

How the production AI stack fits together

The diagram starts at users on the corporate network, who reach n8n only through a reverse proxy. Inside the n8n tier, the main instance and workers share PostgreSQL for workflow data and Redis for queued executions, and every process that touches credentials must hold the same encryption key. Model and vector traffic crosses a second trust boundary to an Ollama host on a GPU server and a Qdrant node on private addresses. Check that only the reverse proxy and n8n tier can reach these services, that Ollama and Qdrant require authentication from n8n, and that credential-bearing links are the ones you have deliberately protected.

Trust boundaries and credential-bearing links in a production n8n AI stack.

What each component needs before production

Ollama is built for local use, so its defaults favor a single developer machine. The local API on port 11434 needs no authentication, and the server binds to 127.0.0.1 unless told otherwise. Moving it onto a shared host means deciding who can reach it, where models live and how much concurrent load the host can carry. Ollama's own FAQ describes exposing it through a proxy such as Nginx, which is where access control belongs.

  • Bind address and proxy: Set OLLAMA_HOST only as far as the proxy needs, then place a reverse proxy with authentication and TLS in front of it so no client calls port 11434 directly.
  • Model storage: Move models with OLLAMA_MODELS to a volume you back up and size deliberately, rather than the default user directory on the host.
  • Concurrency limits: Tune OLLAMA_NUM_PARALLEL (default 1), OLLAMA_MAX_LOADED_MODELS (default 3 per GPU, or 3 on CPU) and OLLAMA_MAX_QUEUE (default 512) against the hardware and the workflows that call the API.
  • Cloud features off: Set OLLAMA_NO_CLOUD=1 or the equivalent server configuration so prompts stay on your host and no cloud inference path is used.

Confirm with your security team which proxy and authentication method they will review, and load test the chosen concurrency values with your real workflows before go-live.

Production options for the AI stack and when each fits

This table compares the main hosting and topology choices for Ollama, Qdrant and n8n once the starter kit leaves a test machine. Read each row for the situation where the option fits and the cost or operational trade-off you accept, then confirm the details with the vendor and in your own environment before you commit.

Component and optionFits whenTrade-off to accept
Ollama on dedicated GPU hostsModels are large or many users call them at once, and you need predictable response timesHardware is a fixed cost to buy or reserve, and GPU driver and capacity planning becomes your team's job
Ollama on CPU hostsUsage is light, models are small, or latency targets are relaxedResponses are slower, and OLLAMA_NUM_PARALLEL defaults to 1 per model, so concurrent users queue
Qdrant single nodeA proof of concept or a small collection that one host can hold and that can tolerate downtimeNo node failure tolerance, and recovery depends on your snapshot and restore process
Qdrant three-node distributed clusterProduction retrieval where a single node failure must not stop searchesRaft, shards and replicas add operational work, and a replication factor of 2 doubles storage
Qdrant Helm chart (community)Your team runs Kubernetes and accepts self-managed upgradesThe chart lacks enterprise features such as zero-downtime upgrades and automatic shard rebalancing
Qdrant enterprise Kubernetes operator (Private Cloud)You need zero-downtime upgrades and automated shard rebalancing inside your own clustersPriced through Qdrant sales, so ask for a written quote covering support and scope
Qdrant Cloud, Hybrid Cloud or Private CloudYou want the vector database run as a service, or keep data in your infrastructure with vendor-managed clustersManaged tiers add a vendor dependency, and tier SLAs and SSO availability differ, so confirm them on the pricing page
n8n single main instanceLow execution volume, one team, and no need for separate webhook or worker capacityTriggers, webhooks and executions share one process, and a single failure stops all automation
n8n queue modeExecution volume grows and webhooks or long AI runs must not block each otherWorkers need the main instance's encryption key and access to PostgreSQL and Redis, and multi-main high availability requires an Enterprise self-hosted license

How to move the starter kit to a production stack

This sequence turns the starter kit's single-host, unauthenticated setup into a production stack where each component is secured, sized, backed up and tested for restore. Each step closes with a check your team can run before moving on.

  1. Inventory the kit and its data

    Your platform or AI engineering lead lists every container, volume and port in the starter kit, then records which data lives where: n8n workflows and credentials, the Ollama model directory, and Qdrant collections. Note which services are reachable from outside the host and which store personal or regulated data. Confirm the Ollama model directory location for your operating system, since the default path differs between Linux, macOS and Windows, and identify the variable that moves it if you need a dedicated disk. The step is done when you have a written map of components, data stores, exposed ports and owners that the security team has reviewed.

  2. Size GPU and storage hosts

    Your infrastructure team decides which hosts run model inference and which run the vector store, n8n and PostgreSQL, because model serving and database workloads have different hardware needs. Qdrant needs block storage with a POSIX-compatible file system and cannot run on NFS or object storage, so choose SSD or NVMe volumes for it. Ollama concurrency defaults to one parallel request per model, so set OLLAMA_NUM_PARALLEL and OLLAMA_MAX_LOADED_MODELS deliberately against the GPU memory you have. The step closes when a load test of your expected prompt volume stays within memory and queue limits on the chosen hosts.

  3. Isolate the network

    Place model and vector services on a private network segment that only n8n and the admin path can reach. Ollama binds to 127.0.0.1 on port 11434 by default, so confirm the OLLAMA_HOST setting before you change it, and do not publish 11434 or Qdrant's ports to the internet. Qdrant listens on all interfaces by default and has no authentication, so restrict its ports at the host or network firewall. Set OLLAMA_NO_CLOUD=1 if you need local inference only. The step is done when a scan from outside the segment shows no open model or vector ports and n8n can still reach both services.

  4. Put Ollama and Qdrant behind authentication and TLS

    Your security engineers place a reverse proxy such as Nginx in front of Ollama, since its local API has no authentication, and enforce client authentication there. For Qdrant, enable an admin API key and a read-only key, and configure TLS for REST and gRPC. Where teams need per-collection rights, evaluate the JWT-based access control that Qdrant documents. Store every key in your secrets manager, not in compose files. The step is done when unauthenticated requests to both services are refused, a request with the correct credential succeeds over TLS, and the n8n credentials are updated to use them.

  5. Move n8n to PostgreSQL and queue mode

    Your platform team replaces the starter kit's default database with PostgreSQL and confirms n8n starts cleanly against it with the existing encryption key. If execution volume requires it, split the instance into a main process, webhook processors and workers, with Redis passing executions to workers that read and write PostgreSQL. Every worker and webhook processor must share the main instance's encryption key so it can read credentials. Note that multi-main high availability is limited to Enterprise self-hosted deployments. The step is done when a test workflow triggered by webhook runs on a worker and writes its execution record to PostgreSQL.

  6. Manage the encryption key and secrets

    Your security team records the n8n encryption key in a secrets manager, restricts who can read it, and confirms the same value is loaded on every n8n process that touches credentials. Remove API keys for Ollama and Qdrant from workflow JSON and environment files in source control, and rotate any keys that were committed earlier. Document the rotation procedure, because changing the encryption key without a migration plan can make stored credentials unreadable. The step is done when a search of your repositories and container definitions finds no plaintext keys, and a restart of every n8n process succeeds with credentials still resolving.

  7. Configure backups including Qdrant snapshots

    Your operations team schedules PostgreSQL backups for n8n data, copies the encryption key to the secrets store, and archives the Ollama model directory if rebuilding it would be slow or impractical. For Qdrant, create collection snapshots on a schedule and store them off the host, following the snapshot documentation for your version. Confirm the backup schedule and retention with your compliance team, because the required periods come from your own policies. The step is done when each backup job reports success and the snapshot files are visible in the off-host storage location.

  8. Add monitoring

    Your observability team collects health and resource metrics for the GPU hosts, Ollama, Qdrant, n8n and PostgreSQL, and sets alerts on disk usage for Qdrant volumes, queue backlog in n8n, and failed executions. Check the monitoring and logging guidance for n8n and the Qdrant audit logging feature available in recent releases, and enable it where your audit policy requires it. Confirm which logs contain personal data before you ship them to a central store. The step is done when a deliberately stopped Ollama process triggers an alert within your alerting path and the alert reaches the on-call channel.

  9. Run a restore test

    Your platform team restores the latest PostgreSQL backup, the Qdrant snapshot and the encryption key into a separate environment, then starts n8n and runs a retrieval workflow against the restored collection. Time the restore and record every manual step, since those steps become the runbook. Repeat the test on a schedule and after each upgrade of n8n, Ollama or Qdrant. The step is done when the restored environment answers the test query with the expected documents and the runbook has been signed off by the operations owner.

Security controls for Ollama, Qdrant and secrets

The starter kit runs Ollama, Qdrant and n8n with settings that suit a laptop, not a shared network. The controls below cover the model and vector tiers, the secrets that connect them and the logs that show what happened. Confirm each one in your own environment before any user or customer data reaches the stack.

Keep the Ollama API off shared networks

Ollama's local API on port 11434 has no authentication, and it binds to 127.0.0.1 by default. If you change the bind address with OLLAMA_HOST, anything that can reach that port can run inference on your hardware. Confirm the listener with your host firewall and container port mappings, and place any proxy in front of it with its own access control.

Ollama FAQ

Require Qdrant API keys and TLS

Self-deployed Qdrant listens on all interfaces with no authentication configured. Set an admin key and a read-only key, then enable TLS for REST and gRPC so n8n credentials and document content are not sent in clear text. Confirm the keys are set in the container or service configuration and that the read-only key is what your retrieval workflows use.

TLS and API keys
v1.2.0
Qdrant security docs

Separate model and vector tiers

Place Ollama, Qdrant and PostgreSQL on a network segment that user workstations cannot reach directly. Only the n8n main instance, workers and webhook processors should connect to them. Confirm this with a test from a user subnet, which should fail, and from the n8n network, which should succeed.

Keep secrets out of workflow exports

Workflow JSON exports can carry node parameters, so API keys pasted into HTTP nodes or model settings may travel with them into Git or a ticket. Store credentials in n8n's credential store, and use environment variables or an external secrets manager for host-level values. Confirm that a sample export contains no key material before it leaves the instance.

Share the encryption key across workers

In queue mode, every worker and webhook processor must hold the main instance's encryption key so it can decrypt credentials stored in the database. A worker started with a different or missing key fails on credential use, and a lost key makes stored credentials unreadable. Confirm the same key on every node, record it in your key management process, and test a credential-backed workflow on each worker.

n8n queue mode docs

Log vector operations for review

Qdrant's JSON audit logging records authenticated API operations, which helps show who inserted, searched or deleted vectors. Enable it, ship the logs to your central store, and set retention to match your data policy. Confirm that a test insert and delete both appear with the key used, since the log is only useful if it records the caller.

Audit logging added
v1.17.0
Qdrant security docs

Backups, monitoring and day-two operations

Back up the stateful parts of the stack separately, because each one fails and restores differently. The n8n PostgreSQL database holds workflows, execution history and encrypted credentials, so it is the backup you cannot rebuild. Take it on a schedule with point-in-time recovery if your database platform supports it. Qdrant collections are the second stateful store. Use Qdrant's snapshot feature (documented in the Qdrant snapshots docs) for each collection, and store the snapshot files off the host. Ollama model storage is the cheapest to lose, because models can be pulled again, though the pull requires network access and the exact model tags you approved. Keep the n8n encryption key, Qdrant API keys and Ollama host settings in your secrets manager, not inside the backup archive, so a restore does not expose them and a lost key does not silently break every stored credential.

A backup has no value until a restore has succeeded on a separate host. Schedule a restore test that rebuilds n8n against a copy of the PostgreSQL dump, reloads a Qdrant snapshot, and confirms that a stored n8n credential still decrypts and that a retrieval workflow returns known results. Record how long the restore took and which steps needed manual work. Confirm with your database and storage teams how retention, encryption at rest and off-site copies are handled, since those choices drive recurring storage cost.

Monitor the parts of the stack that fail first under AI load. On the GPU host, track GPU memory use against the models you loaded, because a model that does not fit will spill or fail. Watch Ollama's request queue against OLLAMA_MAX_QUEUE (default 512 queued requests) and the concurrency limits OLLAMA_NUM_PARALLEL and OLLAMA_MAX_LOADED_MODELS, so you see saturation before requests are rejected. For Qdrant, watch node health and free disk space on the block storage volume, since Qdrant cannot run on network or object storage and disk exhaustion is a direct outage risk. Plan upgrades on each project's own cadence: Ollama ships releases frequently, and the latest Qdrant release on GitHub as of October 2026 is v1.19.2. Test each upgrade against a restored copy first, and confirm with your vendor or the project's release notes which versions your deployment needs.

Limits to confirm in your environment

Several parts of a production AI stack depend on facts that change by edition, vendor plan, hardware or license terms. Confirm each item below before you size hosts, sign a contract or promise a design to your security team.

GPU driver and hardware support

Ollama runs on macOS, Windows, Linux and Docker, but whether a specific GPU, driver and container runtime combination works depends on your hardware and the versions you pin. Test the exact host image with the models you plan to serve, and record the driver version next to the model list. Ask your hardware vendor and the Ollama documentation which GPU generations are supported before you buy or reserve capacity.

Ollama FAQ

Model licenses for chosen models

Ollama itself is MIT licensed, but each model carries its own license terms that govern commercial use, redistribution and output reuse. Build a register of every model and version you intend to run, with its license text, owner and approval date. Have legal review the register before the model reaches production data.

SSO for n8n by edition

SAML single sign-on is documented for the Business and Enterprise plans, so a Community edition deployment may need a different identity approach. Confirm which edition you will run, whether your identity provider setup matches the documented guides, and who pays for the plan. Check this before you design the login flow for the AI workflow editors.

n8n SAML docs

Multi-main high availability

Running several main instances for high availability is restricted to Enterprise self-hosted deployments. If your uptime target needs more than one main instance, that requirement shapes the edition decision and the budget, not only the architecture. Ask n8n to confirm the current terms in writing, and plan a recovery procedure for a single main instance if you stay on another edition.

n8n queue mode docs

Qdrant Cloud and Hybrid Cloud pricing

The free Qdrant Cloud tier is a single node with limited resources, and Standard and Premium tiers are usage priced or priced by minimum spend. Hybrid Cloud and Private Cloud are priced through Qdrant sales, so no list price is available to plan against. Request a written quote that names the node count, replication factor, support level and SSO or private link requirements.

Qdrant pricing

Sustainable Use License limits on internal use

The Sustainable Use License permits use for your own internal business purposes, but it does not allow redistribution for commercial purposes or embedding in a product you sell. Enterprise-licensed files marked with .ee need a separate valid license. Have counsel confirm that your planned use, including any customer-facing AI feature, fits these terms before you build it.

n8n license text

Questions teams ask before taking the AI starter kit to production

What drives the cost and effort of moving the n8n AI starter kit to production?

The cost follows the number of hosts, the network work and the amount of testing and documentation the stack needs. A starter kit runs n8n, Ollama, Qdrant and PostgreSQL together on one machine for trial use, so production usually means separate hosts for each component, a GPU host sized for the models you plan to run, private network paths between services, TLS and authentication on Qdrant and Ollama, a backup and restore test, and monitoring. Each of these adds build, review and handover work. Ask any quote to list the hosts, the network changes, the test cases, the documentation and the handover sessions as separate lines, and to state which items are one-time and which recur, such as patching, model updates and backup checks.

Can our internal team take the starter kit to production without a partner?

Yes, many teams can, if they already run Linux servers, container platforms, reverse proxies and PostgreSQL backups. The skills that are often missing are GPU host setup, securing services that ship without authentication by default, and writing evidence for security or compliance reviews. Qdrant's security documentation states that self-deployed instances listen on all interfaces with no authentication configured by default, and Ollama's local API at port 11434 has no authentication. Before deciding, check whether your team has someone who can own the hardening, the restore test and the upgrade plan after go-live. A partner is most useful for a fixed scope with a written handover, so your team can run the result without relying on the builders.

How long does moving the starter kit to production take?

The duration depends on how many components are in scope, how many environments you need, how many approvals the change requires and how much of the security work is new to your team. A single-team pilot that reuses existing hosts and identity services takes less time than a stack with GPU hosts, a multi-node Qdrant cluster, private networking and an audit trail for regulated data. No timeline is fixed in advance. Ask for a timeline in the written scope that shows each phase, the dependencies on hardware delivery and access approvals, and the points where your decision makers must sign off before the next phase starts.

What do we need to provide for a production AI stack project?

The work needs more from the client than from the builders. Typical requirements are:

  • Access to the cloud accounts, data center or air-gapped network where the stack will run, with the rights to create hosts, load balancers, storage and DNS records
  • Hardware or instance choices for the GPU host, storage that meets Qdrant's block-storage requirement, and capacity for PostgreSQL
  • Named decision makers for data classification, model choices, identity integration and go-live approval
  • Change windows for cutover, plus a rollback plan agreed with your operations team
  • Copies of your data handling rules, so retention and backup decisions match policy

Confirm these items in the scope before the work starts, because missing access or hardware is the most common reason a schedule slips.

Should Ollama and Qdrant run in our cloud account or on premises?

Run them where your data governance rules and your existing operations model say they belong. Ollama states that when it runs locally it does not see your prompts or data, so a self-hosted runtime keeps inference inside your environment, and its paid cloud plans are optional. Qdrant's open-source engine is free to self-host, and its Hybrid Cloud and Private Cloud options run managed clusters on your infrastructure or in a dedicated environment priced through Qdrant sales. Consider where the source documents live, where latency-sensitive users sit, whether GPU capacity is available in each location, and how your auditors will review access logs. Confirm the cloud and hosting options with each vendor before choosing, because pricing and feature tiers change.

Does DeployOpen issue audit reports or certifications for the AI stack?

No. DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies perform those assessments. DeployOpen prepares the systems, controls and evidence that assessors ask for, such as documented access controls, configuration baselines, backup test records, audit logging settings and change records for the self-hosted n8n, Ollama and Qdrant components. Ask any provider to state in writing which evidence they will deliver, and ask your auditor which evidence they need before the build starts, so the work matches the assessment.

Does the starter kit support Qdrant's enterprise features for production?

Not automatically. Qdrant documents three production paths: managed Qdrant Cloud, a community-supported Kubernetes Helm chart, and an enterprise Kubernetes operator offered as part of Qdrant Private Cloud. The Helm chart lacks enterprise features such as zero-downtime upgrades and automatic shard rebalancing. Qdrant's security features, including admin and read-only API keys, TLS, JWT-based per-collection permissions from v1.9.0, and JSON audit logging from v1.17.0, must be configured on purpose. Check which path matches your upgrade and availability needs before you design the cluster.

When a partner speeds up the move to production

A partner earns its place when the stack stops being one team's side project and becomes shared infrastructure with evidence obligations. Three conditions usually trigger that shift: several teams sharing one Ollama and Qdrant estate, regulated data (health, payment or personal records) entering prompts or vector collections, or an existing security review that will ask for configuration evidence you cannot produce quickly. Each one multiplies the work in the components covered above, because access control, logging and retention must then be designed for people other than the builders. GPU capacity planning is the fourth trigger. Ollama's default of one parallel request per model and its queue limits mean that concurrency decisions, model placement across cards and memory headroom need measurement on your hardware, not assumptions. Ask any partner to show how they will set OLLAMA_NUM_PARALLEL and OLLAMA_MAX_LOADED_MODELS against a load test, and what they will do if the results disagree with the plan.

The trade-off against building in-house is mostly about who carries the knowledge after go-live. An internal team keeps full control and absorbs the ongoing cost of patching, model updates, Qdrant upgrades and on-call. A partner shortens the first build and the evidence-gathering phase, but only if the handover is written down. Before signing, confirm which artifacts transfer (configuration in version control, runbooks, backup and restore test records, network diagrams and the list of accounts with access) and whether your staff will rebuild the stack alongside the partner. Cost follows the written scope: one-time build and review effort, plus any recurring retainer for upgrades and testing. Request quotes that separate those lines and name the hardware and hosting you will pay for directly.

A fixed-scope written agreement should name the components in scope (for example, the Ollama host, the Qdrant nodes, the PostgreSQL database that holds n8n data, and the network paths between them), the controls to be delivered, the evidence format, acceptance tests and the retest. It should state who owns credentials and encryption keys, including the n8n encryption key that worker and webhook processors need in queue mode, and how that key is rotated. It should also state what is excluded, such as changes to upstream models or the workflows themselves, and how change requests are priced. Ask for explicit terms on data access during the engagement, where any test data is stored and when it is destroyed. A scope that cannot answer those questions is not yet ready for a quote.

How DeployOpen works on this

DeployOpen plans, builds, hardens and documents self-hosted platforms inside your own cloud accounts, data centers or air-gapped networks. For a production AI stack around n8n, that means turning the starter kit's components into a reviewed architecture with written scope, tested controls and an operating handover your team can run.

How we scope

  • Inventory which n8n edition, Ollama hosts, Qdrant nodes and PostgreSQL databases the stack will use before any build starts.
  • Agree the written scope in advance, including network zones, secret storage, backup targets and monitoring requirements for each component.
  • Confirm with your team which n8n features your plan includes, since queue mode and multi-main setups depend on the edition you hold.

How we build

  • Deploy Ollama bound to a private interface, with OLLAMA_HOST, model storage path and concurrency settings documented in your environment.
  • Configure Qdrant with API keys, TLS and network isolation, then verify that unauthenticated access is blocked from every network segment.
  • Test the assembled stack end to end, covering encryption key distribution to workers, restore from backup and failure of a single component.

How we hand over

  • Deliver configuration records, network diagrams, secret locations and a runbook covering each component's start, stop and upgrade steps.
  • Document the retention, restore and monitoring settings your auditors or security reviewers will ask to see, in plain language.
  • Walk your operations and security staff through the runbook and the test results so they can run the stack without us.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing alongside the original engagement.
  • Plan component upgrades against vendor release notes, such as n8n's weekly minor releases and Ollama's frequent releases, with a test before each change.
  • Retest after any change to network rules, model versions, vector collections or n8n's encryption key, and report the findings in writing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.