Onyx with Ollama for private enterprise search and chat
Your staff want to search and ask questions across company documents, but your data rules say the content cannot go to a hosted model provider. Onyx paired with a self-hosted Ollama server is one way to meet that requirement. Onyx supplies the application layer: connectors that pull content from source systems, indexing for retrieval-augmented generation (RAG), AI chat, and agents and actions. Ollama supplies the local model runtime that generates answers. Onyx documents support for self-hosted models through Ollama, and Ollama states that when it runs locally it does not see your prompts or data. Onyx is MIT licensed in its Community Edition, while code in its ee directories falls under the Onyx Enterprise License, so confirm which features your deployment depends on before you commit.
The pairing fits best when the documents already live in systems your organization controls, such as SharePoint, Confluence, Google Drive or Jira, and when the team can accept that answer quality depends on the model size and hardware you provision. Onyx connects to more than 50 applications and syncs their permissions, so answers draw only on documents a user can already see in the source system. Verify that sync for each connector in a test tenant before any broad rollout, and check how it handles groups, deleted files and documents moved between folders. Also confirm which of these controls your chosen Onyx edition provides, including SSO, SCIM provisioning and role-based access control, since Onyx lists several of them among its enterprise features.
Plan the work as two linked builds: the Onyx stack (database, index, Redis, model servers and object storage) and the Ollama server that Onyx calls for chat and embeddings. Ollama's default bind to 127.0.0.1 on port 11434 must change so Onyx's containers can reach it, and that change must sit behind network controls because the local API has no authentication. Decide early which chat and embedding models you will run, then size GPU memory for those models and for concurrency settings such as OLLAMA_NUM_PARALLEL. Ask your implementation partner or internal team to document the connector list, permission tests and model choices as evidence for your security and compliance reviewers.
Source data reaches Ollama only through Onyx's permission-filtered index
The diagram starts at source applications such as SharePoint, Confluence and Slack, whose documents pass through Onyx connectors into the Onyx index and Postgres inside the self-hosted boundary. A user's chat or agent request is checked against the synced permissions, retrieved passages are sent to the Ollama server on the internal network, and the answer returns to the user. Check that the Ollama server has no route to the internet and that connector credentials are scoped to read-only access.
Documents and queries flow through Onyx to a local Ollama model inside one trust boundary.
Which Onyx deployment fits your Ollama setup
Onyx Standard is the full deployment and the one to plan for when document search over company data is the main goal. It runs a vector and keyword index, background sync workers that keep connected sources current, model inference servers, object storage and Redis alongside the application. Because Ollama serves the models, Onyx Standard adds the most moving parts on your side, and each one needs sizing, backup and patching.
- Index service: Onyx's documented infrastructure includes Postgres, Vespa or OpenSearch for the index, so you choose and operate the index engine.
- Sync workers: Connector jobs run in the background, which means credentials, schedules and failure alerts must be managed.
- Inference servers: Onyx's model servers sit between the application and Ollama, so network paths and timeouts need testing.
- Object storage and Redis: Both add state that must be included in backup and restore plans.
- Deployment options: Docker, Kubernetes, Helm or Terraform are documented, so the team should pick one and keep it consistent.
Before committing, ask the vendor which services the chosen version requires, what the recommended sizing is for your document volume, and whether air-gapped installs follow the same service list.
Onyx Lite is a lighter deployment for chat and agents. It omits the vector database and background workers, so it has fewer services to run and fewer components to patch. It fits teams that want a private chat interface over local models and do not need a continuously synced document index. Lite is a poor fit when staff expect answers grounded in a large, permission-aware corpus, since that capability depends on the indexing path that Lite leaves out.
- Fewer services: Without a vector index or sync workers, the footprint and operating tasks are smaller.
- Chat and agents: Conversational use with Ollama-served models is the primary workload.
- No continuous sync: Documents do not refresh from connected sources in the background, so freshness must be handled another way.
- Lower operational load: Fewer backups and upgrade paths reduce the surface your team maintains.
- Scale limits: Confirm with the vendor what document and user volumes Lite handles well.
Confirm with the vendor exactly which features Lite supports at your target version, including connectors, agents and permission handling, before choosing it for a search use case.
Onyx is open core. Community Edition is MIT licensed and covers RAG, AI chat, agents and actions. Code in the ee directories falls under the Onyx Enterprise License, and the Enterprise Edition adds premium features such as role-based access control. The split matters for security reviews, because SSO and RBAC are the controls most often requested by identity and compliance teams. Read the license files for the exact boundary before assuming a feature is available in the open source build.
- Community Edition: MIT licensed, suitable for evaluation and for teams that accept its feature set.
- Enterprise Edition: Self-hosted with premium features, including RBAC, under the Onyx Enterprise License.
- SSO options: Google OAuth, OIDC and SAML are listed among enterprise features, so confirm which build exposes each one.
- SCIM provisioning: User provisioning is also listed as enterprise functionality and needs confirmation for your version.
- Audit features: Query history auditing and usage analytics should be verified in the build you deploy.
Ask the vendor for a written feature matrix by edition, the license terms that apply to your deployment, and whether the Enterprise Edition price and support terms are quoted separately from infrastructure costs.
Choosing between these options is easier when you start from the requirement rather than the product list. Map each need to the deployment shape and edition it demands, then check that the chosen combination supports every requirement. The table of needs below is a starting point for a design review with your security and platform teams.
- Grounded search over many sources: Requires Onyx Standard with the indexing and sync services.
- Private chat with a few approved models: Lite may be enough if the team accepts the feature limits.
- Per-user document permissions and RBAC: Requires confirming Enterprise Edition features for your version.
- Central identity with SSO and provisioning: Requires confirming SSO and SCIM support in the edition you select.
- Air-gapped or restricted networks: Requires confirming that the chosen edition and services run without external calls.
Before a rollout, confirm with the vendor the supported Onyx version, the Ollama integration path and any licensing terms that affect your organization.
Ollama settings that shape Onyx performance
This table compares the six Ollama server settings that most affect how a shared Ollama server responds to Onyx chat users and indexing jobs. Read each row against your expected concurrent users and sync schedule, then confirm the value your Ollama version uses before you size hardware. The main takeaway is that the defaults assume one request per model, so concurrency settings need a deliberate change before Onyx goes into production use.
| Setting | Default | When it matters for Onyx |
|---|---|---|
| OLLAMA_HOST | 127.0.0.1:11434 | Onyx containers or a separate host can only reach Ollama if the bind address allows it. Keep Ollama on a private interface and restrict access to the Onyx model server, since the local API has no authentication. |
| OLLAMA_MODELS | Platform default folder | Model files for chat and embedding models share this storage. Point it at a volume with enough space for every model you approve, and back it up as part of the build. |
| OLLAMA_NUM_PARALLEL | 1 request per model | Chat answers and indexing embedding calls compete for the same model slots. At the default, concurrent Onyx users queue behind one another, so raise this only after checking VRAM headroom for the context length you use. |
| OLLAMA_MAX_LOADED_MODELS | 3 times the GPU count, or 3 on CPU | Onyx may use a chat model and a separate embedding model at once. If more models are loaded than this limit allows, Ollama unloads and reloads them, which adds latency to each request. |
| OLLAMA_MAX_QUEUE | 512 queued requests | During a full connector sync or a busy hour, requests wait in this queue. Confirm with users what delay is acceptable, since a deep queue hides overload and makes answers slow rather than failing fast. |
| OLLAMA_NO_CLOUD | Cloud features enabled unless set to 1 | Set this to 1 so Onyx traffic never reaches cloud-hosted models. Confirm the setting also covers your Ollama version and any server configuration file your team uses. |
Connector choices that set your data exposure
Each Onyx connector decides which content enters the index, how often it refreshes and which identities can read it back. Make these choices per source before anyone runs a first sync, because the answers shape both search quality and what the local models can see.
Choose which sources to index
Start with the systems that hold the documents people actually need, and leave out repositories that hold regulated, personal or legacy data without a clear owner. Every connected source adds content to the index, which also means more material the chat model can summarize. Confirm the connector list against the Onyx release you deploy, since the repository directory changes between versions.
Connectors directorySet sync frequency by source
Sync frequency controls how quickly edits and deletions reach the index. Fast-changing sources such as chat or email may need frequent syncs, while policy libraries and archives can refresh less often. Ask the Onyx team how deletions and revoked files are handled in your release, because a stale copy in the index is still searchable until it is removed.
Scope the service account
Connectors usually authenticate with a service account or an application registration that reads content across the source. Grant read access only to the sites, mailboxes, projects or spaces in scope, and record who owns the credential. Review the grant list whenever a new source is added, since an over-broad account exposes content that no user chose to index.
Map permission sync to the source
Onyx README states that it syncs source permissions so answers only draw on documents the user can already see. Test this with a sample user for each source by asking a question whose answer sits in a restricted folder. Confirm which permission types each connector syncs, including group membership, shared links and inherited folder rights, because gaps here are the most common route to overexposure.
Onyx READMEPlan for mail and chat sources
Outlook, Gmail, Teams and Slack hold personal messages and informal decisions that were never meant for wide search. Decide whether to index whole mailboxes, specific channels or nothing, and document the basis for that choice with your privacy team. Mixing these sources with document libraries in one index makes later removal harder.
Confirm identity and deletion handling
Check how each connector maps source users to Onyx accounts, especially when identity comes from SSO or SCIM provisioning. Confirm how departed employees and removed permissions propagate, and test that removing a user from a group removes access in the next sync. Record these checks as evidence, since they answer the access questions an assessor is likely to ask.
Setup sequence for Onyx with Ollama
This sequence takes a self-hosted Ollama server and a self-hosted Onyx deployment from empty infrastructure to a tested private search and chat system, where each user only sees documents their source application already allows. Each step closes with a check so the team knows when it can move on.
Size and install the Ollama server
The infrastructure or platform engineering team sizes a host for the expected models, context lengths and concurrent users, then installs Ollama on a machine with no route to the public internet if the network is restricted. Hardware choices, including GPU memory against model size, are covered in the hardware sizing guidance. Ollama runs locally without seeing prompts or data, but you should still confirm that cloud features are off with OLLAMA_NO_CLOUD=1 or the server configuration file. Done means the service starts, the version is recorded, and a local model responds to a test request from the host itself.
Pull approved models and set model storage
The platform team, with the security or compliance owner, agrees on the model list and checks each model's license and provenance before pulling it. Set OLLAMA_MODELS to a directory on a volume with enough space and backups, instead of the default path for your operating system. Confirm the models are listed on the server and that the storage path matches the variable. Done means the approved models load from the configured directory and a restart of the service keeps them available.
Bind OLLAMA_HOST to the Onyx-reachable interface
Ollama binds to 127.0.0.1 port 11434 by default, which Onyx cannot reach from a separate container or host. Set OLLAMA_HOST to the private interface or network address used by Onyx, and do not bind to all interfaces unless a firewall restricts access. The local API has no authentication, so network rules must limit port 11434 to the Onyx hosts only. Confirm your authentication approach with your security team before go-live. Done means a request from an Onyx host reaches the API, and a request from any other host is blocked.
Deploy Onyx with Docker, Kubernetes or Helm
The platform team deploys Onyx using Docker, Kubernetes with Helm, or Terraform, depending on the infrastructure standard. Onyx Standard includes the vector and keyword index, background sync workers, model servers, object storage and Redis, while Onyx Lite omits the vector database and background workers, so choose the variant that matches the search requirements. Keep the database, index and processing inside the restricted network. Done means all Onyx services report healthy and the web interface loads for an administrator account.
Add the Ollama provider in Onyx
In the Onyx admin settings, add Ollama as a model provider and enter the address and port of the Ollama server reachable from Onyx. Register the chat model and any embedding model you approved, and set one as default for answers. Onyx also supports LiteLLM and vLLM, but this sequence uses Ollama directly. Done means a test prompt returns an answer from the local model and the provider shows as connected.
Create connectors with scoped service accounts
For each source, such as SharePoint, Confluence, Google Drive or Jira, the source administrator creates a service account with read access limited to the sites, spaces or projects to be indexed. Configure the connector in Onyx with that account and start an initial sync. Onyx syncs source permissions, so answers draw only on documents the user can see in the source application. Done means the sync completes without authorization errors and the indexed document count matches what the service account can read.
Run a two-user permission test
Use two test accounts that you already know can see different documents in a source application, and record which documents each one should see. Ask the same questions in Onyx as each user and check that the citations match the source permissions. Include at least one question that targets a document only one user can access. Done means each user receives answers only from documents they are permitted to see, and any mismatch is logged as a defect and fixed before validation continues.
Validate answers and review logs
Test a fixed set of representative questions against known source documents, and check that citations point to the right content and that the model answers from that content. Review Onyx query history and audit records, and the Ollama server logs, to confirm that requests reach only the approved model and host. Record the results and the configuration versions for the security review file. Done means the answer set passes the agreed criteria and the logs show the expected access, with no traffic leaving the restricted network.
Permissions and data handling to verify before launch
Onyx answers only from what a user is allowed to see, but that protection depends on identity, admin settings and the network around Ollama. Each card below is a check to complete before staff use the system with real company data.
Permission sync to source applications
Onyx syncs document permissions from connected applications, so answers should draw only on files the asking user can already open in the source system. Test this with a restricted test account on each connector, including a document shared to one group only, and confirm that a user outside the group gets no excerpt in chat. Re-test after connector re-indexing, because permission changes in the source take effect only when the sync runs.
Onyx READMESSO with Google OAuth, OIDC or SAML
Sign-in should go through your identity provider, using Google OAuth, OIDC or SAML as listed in Onyx's enterprise features. Confirm which of these your Onyx edition supports, how session lifetime is set, and what happens when a user is disabled in the identity provider but still holds an active session. Document the redirect URIs and certificate rotation steps before go-live.
SCIM user provisioning
SCIM lets your identity provider create, update and deactivate Onyx accounts automatically, so offboarding does not depend on someone remembering to remove a user. Test a deprovisioning event end to end and confirm whether group membership maps to Onyx roles. Ask the vendor which SCIM attributes are required and how deactivated users are handled in indexed data.
Role-based access control design
Define roles for administrators, connector owners, standard users and auditors before connecting sources, since RBAC is a premium feature in Onyx Enterprise Edition. Map each role to who may add connectors, change model settings and view other users' history. Confirm which roles can change the model endpoint, because that setting decides where prompts and retrieved text are sent.
Query history auditing
Onyx records usage analytics and query history, which your compliance team may need for investigations and for retention decisions. Decide who may read query logs, how long they are kept and whether they include retrieved document text. Test that an audit reviewer can find a specific user's queries without gaining access to documents that user could not see.
Ollama API exposure and authentication
The local Ollama API has no authentication, so anyone who reaches port 11434 can run inference. Keep it bound to 127.0.0.1 or a private interface, restrict it with firewall rules, and if Onyx runs on another host, place an authenticated proxy in front of it. Verify from an unauthorized network segment that the port does not respond.
Ollama FAQDisabling Ollama cloud features
Set OLLAMA_NO_CLOUD=1 on the Ollama server, or use the server configuration file, so that cloud features stay off for this deployment. Then confirm that requests to cloud model names fail and that no outbound calls to Ollama cloud endpoints appear in egress logs. Record the setting in your configuration baseline so later upgrades do not silently re-enable it.
Ollama FAQLimits to confirm in your environment
Is Onyx v4.9.2 compatible with Helm chart 0.9.17?
Confirm the pairing before you deploy, because the supplied release information lists Onyx v4.9.2, released on October 15, 2026, and a Helm chart at version 0.9.17 as of October 16, 2026, but it does not state a compatibility matrix between them. Check the Onyx GitHub releases page and the chart's release notes for the image tag each chart version expects, and pin both versions in your deployment code. Test the pair in a non-production cluster first, including database migrations, since a chart and application upgrade can change the infrastructure services they expect. Record the exact versions in your change log so a rollback targets a known-good pair.
How fast does Ollama release new versions, and how often should we upgrade?
Ollama ships frequent releases, so plan for a regular review cadence rather than an occasional upgrade. The supplied release record shows v0.40.5 released on 14 October 2026 and v0.40.6 published as a pre-release on 16 October 2026, which is two days apart. Treat pre-releases as candidates for testing only, and promote a version to your shared server after it passes your model load, latency and API regression checks. Confirm with your team how long a release must run in staging before it reaches production, and document who approves each upgrade.
Do the model licenses allow commercial use inside our organization?
The license of each model governs use, and Ollama's MIT license covers only the runtime. Each model weight set has its own terms that can restrict commercial use, redistribution, acceptable use or output reuse, so review the license file of every model you pull or import. Record the license, version and approval date for each model in your model register, and remove any model whose terms your legal team has not cleared. Your legal or compliance team should make this decision, and DeployOpen can help prepare the register as part of an implementation.
What does an air-gapped Onyx installation require from us?
Onyx documents a deployment that can be air-gapped, with the index, database and processing running inside a self-contained set of services, deployable with Docker, Kubernetes, Helm or Terraform. Air-gapping still needs you to transfer container images, Helm charts, Ollama binaries and model weights into the isolated network through an approved process, and to confirm that no service phones home during startup or indexing. Verify each step against the official deployment documentation in your environment, and test updates through the same transfer path. Plan the image mirror, the model import and the connector behavior with no outbound internet access before the build starts.
How much indexing throughput can a self-hosted Onyx and Ollama stack handle?
The supplied facts do not give indexing throughput figures, so measure it in your own environment rather than rely on a general number. Indexing speed depends on the number of documents, document size, connector API rate limits in each source application, embedding model speed and the capacity of the index, which the Onyx deployment documentation describes as Postgres, Vespa or OpenSearch with Redis and model servers. Ollama's defaults also matter, since OLLAMA_NUM_PARALLEL defaults to 1 parallel request per model and OLLAMA_MAX_QUEUE defaults to 512 queued requests. Run a timed initial sync on a representative sample, then extrapolate with your own numbers.
Which Onyx features fall under the Enterprise License in ee directories?
Onyx Community Edition is MIT licensed and covers retrieval-augmented generation, AI chat, agents and actions, while code in the ee directories is governed by the Onyx Enterprise License. Read the LICENSE file and the directory layout in the repository to see which modules you would run, and confirm with Onyx before you rely on any enterprise-only feature such as role-based access control or SCIM provisioning. Ask your legal team to review the license terms that apply to the edition you choose, including whether self-hosting an enterprise module needs a separate agreement.
Does Onyx keep source document permissions when Ollama answers questions?
Onyx syncs permissions from connected applications, so answers should draw only on documents the user can already see in the source system. Confirm this behavior for each connector you enable, because sync timing, group membership changes and deleted documents can leave stale access for a period. Test with at least one user per restricted group, check that revoked access disappears after a sync, and review query history auditing before you give broad access. Ollama does not provide this document-level control itself, so the permission model rests on Onyx and the source applications.
Can the local Ollama API be exposed to Onyx without authentication?
The local Ollama API at localhost:11434 does not require authentication, and Ollama binds to 127.0.0.1 by default, so Onyx must reach it through a supported network path. If you change the bind address with OLLAMA_HOST or place a reverse proxy such as Nginx in front, add authentication and restrict network access yourself, because the API itself does not enforce it. Keep cloud features off with OLLAMA_NO_CLOUD=1 when data must stay local, and verify the setting in the server configuration file.
How DeployOpen scopes and supports Onyx with Ollama
DeployOpen treats Onyx and Ollama as one private search and chat system inside your infrastructure, with the connectors, model settings, permissions and hardware agreed before any build starts. Engagements are fixed-scope, so the written scope sets what gets deployed, tested, documented and handed over. Ongoing support is available as a retainer once the system is live.
How we scope
- Written scope lists which connectors, such as SharePoint, Confluence or Google Drive, will be synced for your environment
- Permission mapping is agreed up front so answers only draw on documents each user can already see in the source application
- Model choice, context length and expected concurrency are documented against the hardware you will provide for Ollama and Onyx
- Identity approach for SSO, SCIM provisioning and role-based access is confirmed with your identity team before build
How we build
- Onyx is deployed in your environment using Docker, Kubernetes, Helm or Terraform, matching your existing platform standards
- Ollama is configured as a model server on a private address, with OLLAMA_HOST and model storage set to your chosen paths
- Each connector is configured with its access scope and tested against a sample of documents that include restricted content
- Cloud features are turned off where your data rules require it, and the configuration is recorded for review
How we hand over
- Architecture and data flow documentation shows where documents, embeddings, prompts and logs are stored and processed
- Permission test results record which users saw which documents during testing, with fixes and a retest where needed
- Runbooks cover connector re-sync, model loading, adding models and restoring the Onyx index from backup
- Admin training and a handover session walk your team through user management, audit logs and query history review
How we support
- Ongoing support, upgrades and continuous security testing are available as a retainer after handover
- Upgrade planning follows the Onyx and Ollama release channels, with changes tested in a non-production copy first
- Retainer scope, response expectations and review cadence are written into the agreement, so you can confirm them before signing
- Security testing of the search and chat setup can be repeated as connectors, models or users change

