Best private AI chat platforms for government and public sector

Government and public sector teams can self-host Open WebUI, LibreChat, AnythingLLM or Onyx inside their own network. This page shows which one fits each situation based on offline needs, document permissions, branding rights and the operating effort your team can staff.

On this page

Which private AI chat platforms for government fit which situation

A public body that must keep prompts and documents inside its own network should choose by the job each platform does. Open WebUI fits offline, single-deployment chat with local or approved cloud models, LibreChat fits multi-provider chat with agents and MCP tools, AnythingLLM in Docker fits shared document workspaces with access rules, and Onyx fits answers that must respect the permissions of the source system. Open WebUI's documentation describes a platform built to run entirely offline, so decide early whether any cloud endpoint is approved at all. Check the Open WebUI License documentation before rollout, because branding changes above 50 users in a rolling 30-day period need an enterprise license or written permission. LibreChat's reference Docker Compose file runs MongoDB, Meilisearch and a separate RAG API, so confirm each container sits inside the network boundary.

AnythingLLM's Docker version supports many simultaneous users with user management and rule-based access to workspaces and documents, as described in its AnythingLLM Docker overview. Its desktop version is single-user without permissions, so a shared government workspace needs the Docker server. Map each workspace to a records classification and test that a user outside the group cannot see its files or chats. Onyx works differently: it connects to more than 50 applications and syncs their permissions, so an answer draws only on documents the asker could already open in the source system. Test this with a restricted and an unrestricted account in SharePoint or Confluence, and confirm which features need the Onyx Enterprise License, since code in its ee directories falls under that license.

Commercial hosted services need the same checklist answered in writing by each vendor before a shortlist decision. Ask where prompts, uploaded files and logs are stored and processed, whether a model can run inside your network, which roles and SSO settings apply, how retention and deletion work, and which subprocessors touch the data. Compare those written answers with the offline and permission behavior described above, and request each component's license terms, since a free core and a paid tier can differ on the controls your auditors will ask about.

Private AI chat platforms for government by scenario

This table matches six government scenarios to the platform that fits each one best, with the condition under which that pick stops holding. Read each row as a starting shortlist and confirm the named condition in your own environment before procurement. Scenarios are illustrative and depend on your data classification, identity setup and team size.

ScenarioBest fitWhy it fitsStops holding when
Offline or air-gapped useOpen WebUIDocumented as built to run entirely offline, with Ollama and OpenAI-compatible APIs for local and cloud models.Model updates cannot be staged inside the enclave, or branding changes exceed 50 users in 30 days without enterprise terms.
Branded internal assistantLibreChatMIT-licensed, so the Open WebUI branding clause does not apply. Confirm any attribution terms in its files first.Your sponsor requires a vendor white-label license with support, which Open WebUI offers through enterprise sales.
Shared multi-team deploymentOpen WebUIOne interface connects Ollama, OpenAI, Anthropic or any OpenAI-compatible provider for many teams.Teams need separate keys and budgets per team, which a gateway such as LiteLLM handles. Confirm the chat layer fits.
Small document review teamAnythingLLM (Docker)Docker version supports many users with admin and rule-based access to workspaces and documents.Users need the single-user desktop app, which has no permissions, or source-system permissions must follow each document.
Answers limited to records each user may already seeOnyxSyncs permissions from 50+ connected applications, so answers draw only on documents users can see in the source.A required source is missing from the connectors directory or its permission sync is not verified in your environment.
Agents that call internal toolsLibreChatSupports Model Context Protocol tools, no-code custom agents and a sandboxed code interpreter.Tool calls need approval chains or heavy orchestration, where Dify or n8n may fit. Confirm each MCP server's permissions first.

What each open-source option is built for and how it is licensed

Each option ships its core under a different license, and the difference shows up in branding obligations, paid features and who controls the upgrade path. Check the license file for the exact edition you deploy, because several of these projects gate enterprise features behind separate terms. Your user count, your need for shared access control and whether you must search existing applications decide which card applies.

Open WebUI for offline chat

Open WebUI is a self-hosted chat interface for Ollama and any OpenAI-compatible API, built to run entirely offline. Since v0.6.6, its code falls under the Open WebUI License, which should be treated as not OSI-approved open source. The license bars altering or removing branding above 50 users in a rolling 30-day period, unless you hold an enterprise license or written permission. Pick it when one offline chat front end serves a large workforce and you can keep the branding or budget for an enterprise quote.

Latest release
v0.12.3
Open WebUI License docs

LibreChat for multi-provider agents

LibreChat is MIT licensed, and its license contains no branding restriction. ClickHouse acquired the project in November 2025 and says existing deployments continue unchanged, so get its roadmap and support terms in writing. The reference stack adds MongoDB, Meilisearch and a separate RAG API, and the latest tag is marked pre-release, so test before you pin it. Pick it when you need MCP tools, no-code agents and several model providers in one front end, and your platform team can run that stack.

Latest tagged release
v0.8.8
ClickHouse acquisition post

AnythingLLM desktop or Docker server

AnythingLLM is MIT licensed and chats over your documents, with LanceDB as the default vector store. The desktop app is single-user with no permissions, so it fits one person on one machine and no shared use. The Docker server adds user management, admin roles and rule-based access to workspaces and documents, which is the form a government unit would review. Pick it when a department needs document chat for a modest group and you will run the Docker server with access rules you have tested.

Latest release
v1.18.0
AnythingLLM Docker overview

Onyx for permission-aware search

Onyx is open core: its Community Edition is MIT licensed, and code in ee directories falls under the Onyx Enterprise License. It syncs permissions from more than 50 connected applications, so answers only use documents each user can already see. Confirm that the connectors you need, such as SharePoint or Confluence, are in the version you pin. Pick it when the main job is searching company applications under existing permissions and your legal team accepts a second license for any ee code you deploy.

Latest release
v4.9.2
Onyx LICENSE file

Side-by-side capabilities across the four options

This table compares four chat platforms for government and public sector teams, with Open WebUI and LibreChat on the left and AnythingLLM and Onyx on the right. Read each cell as documented behavior or as an item to confirm with the vendor, because SSO, audit logging and permission sync are not documented for every option. The main takeaway is that offline operation, permission-aware retrieval and the Open WebUI branding clause above 50 users each change the shortlist, so check them first.

CapabilityOpen WebUI and LibreChatAnythingLLM and Onyx
License and editionsOpen WebUI: Open WebUI License from v0.6.6, BSD-3-Clause through v0.6.5, branding rules above 50 users. LibreChat: MIT licensed.AnythingLLM: MIT licensed. Onyx: open core, Community Edition is MIT, ee directories under Onyx Enterprise License.
Latest release and dateOpen WebUI: v0.12.3, October 16, 2026. LibreChat: v0.8.8, October 1, 2026, marked pre-release.AnythingLLM: v1.18.0, October 13, 2026. Onyx: v4.9.2, October 15, 2026.
Model providers and local modelsOpen WebUI: Ollama and OpenAI-compatible APIs, documented for offline use. LibreChat: major cloud providers plus custom endpoints such as Ollama.AnythingLLM: built-in Lemonade and llama.cpp engine, many cloud providers. Onyx: Ollama, LiteLLM, vLLM, plus Anthropic, OpenAI, Gemini.
Document retrieval and permission syncOpen WebUI: confirm document retrieval and permission sync with the vendor. LibreChat: RAG API service, confirm permission sync with the vendor.AnythingLLM: LanceDB default, several alternative stores, confirm permission sync. Onyx: connects to 50+ applications and syncs their permissions.
Multi-user admin and desktop or server formOpen WebUI: self-hosted server, confirm user roles and group access with the vendor. LibreChat: server deployment, confirm admin and access rules with the vendor.AnythingLLM: Docker server supports many users with admin and workspace access rules; desktop is single-user. Onyx: confirm admin and access model with the vendor.
Agents, MCP tools and code executionOpen WebUI: confirm agents, MCP and code execution with the vendor. LibreChat: no-code agents, MCP tools, sandboxed code interpreter.AnythingLLM: confirm MCP and code execution with the vendor. Onyx: Community Edition covers agents and actions, confirm MCP and code execution.
SSO and audit loggingOpen WebUI: confirm SSO and audit logging by edition with the vendor. LibreChat: confirm SSO and audit logging with the vendor.AnythingLLM: confirm SSO and audit logging for Docker version. Onyx: ask which edition includes SSO and audit logging.
Deployment componentsOpen WebUI: confirm components and scaling path with the vendor. LibreChat: MongoDB, Meilisearch and RAG API services.AnythingLLM: desktop app or Docker. Onyx: Helm chart version 0.9.17 as of October 16, 2026.

How the licenses change branding, redistribution and paid editions

For Open WebUI, the license question depends on the release you run and how many people use it, so pin the version before you plan any rebrand. Code through v0.6.5 remains BSD-3-Clause. From v0.6.6 onward, the Open WebUI License forbids altering or removing Open WebUI branding in any deployment with more than 50 users in a rolling 30-day period, unless the operator holds an enterprise license or written permission from the copyright holder. Count active users across any rolling 30-day window, not the number of seats you expect to buy. Enterprise pricing is not published and is quoted after you contact sales with an expected seat count. Ask for the branding and white-labeling terms in writing before the deployment is approved.

LibreChat and AnythingLLM are both MIT licensed. The MIT terms let you modify, rebrand and redistribute the code, provided the copyright and permission notice stay in copies of the software. Neither license ties branding to user counts, so the main compliance work sits in what you build around the code. Check whether your design depends on hosted add-ons, plugins or model services that carry their own terms, and confirm with each project whether any feature is offered under separate commercial terms. For a government rollout, record the exact release in production, such as the LibreChat v0.8.8 tag or an AnythingLLM v1.18.0 build, so the legal review covers the code that actually runs.

Onyx splits its code in two. Onyx Community Edition is MIT licensed, but code in ee directories falls under the Onyx Enterprise License, so a build that includes those directories is governed by different terms. Before deployment, list which ee directories your build uses and which features depend on them, especially the connectors, permission sync and admin functions your users will rely on. Get the enterprise terms in writing for any feature that sits there. Before any rebrand or public-facing use of Open WebUI, LibreChat, AnythingLLM or Onyx, have counsel review the license file for the exact release, the notice requirements and any procurement clause that restricts third-party terms. Treat that review as a gate in the rollout plan.

Where each option runs: offline, government cloud or on-premises

An air-gapped or offline network has no route to the internet, so every component the chat platform needs must be brought in and run locally. Open WebUI's documentation describes it as built to run entirely offline, and it connects to Ollama or any OpenAI-compatible endpoint, so the model runtime can sit on the same isolated segment. LibreChat and AnythingLLM need the same review before they are accepted for this setting.

  • Model runtime: Ollama or another OpenAI-compatible server must run inside the enclave, with model weights moved in through your approved transfer process. Open WebUI's documented connections cover both Ollama and OpenAI-compatible APIs.
  • Container and package mirror: Images for the chat front end, its database and any search or vector service need an internal registry. Pin exact image tags so the upgrade path stays predictable.
  • Egress verification: Use network monitoring to confirm the platform makes no outbound calls for telemetry, update checks or model downloads. Default settings can differ between releases, so test the version you deploy.
  • Embedding models: Retrieval features need an embedding model available locally. Confirm which embedder each option uses by default and whether it downloads anything on first run.
  • Update path: Plan how new releases cross the air gap, including release note review. Open WebUI v0.12.3 was published on October 16, 2026, so your intake cycle should expect frequent updates.

Ask your integrator to document every outbound destination the platform contacts in default and recommended configurations, then check that list against the enclave's firewall rules.

The decision path from requirements to a shortlist

The path starts with whether the network must be offline, and every candidate must be checked against that before the other questions. Next, if answers must respect source-system permissions, Onyx is the branch to test first. If shared multi-user document workspaces are needed, AnythingLLM in Docker is the match. If branding or white-labeling is required, the Open WebUI license terms apply, and removing branding needs an enterprise license or written permission. If multi-provider agents and MCP tools are the priority, LibreChat leads. Pick two options for a pilot, then check any hosted commercial service against the same written questions before it joins the shortlist.

Requirement questions narrow four candidates to a two-option pilot.

How to choose private AI chat platforms for government in a pilot

This sequence moves a government team from written requirements to a tested pilot and a signed scope. Each step names an owner in security, records, procurement or the platform team and closes with a record that a reviewer can check before any wider rollout.

  1. Write requirements before comparing products

    Security and records leads write the requirements first: expected user count, the data classes the assistant may touch (for example, public, internal and restricted records), whether the deployment must run offline, branding needs, the identity provider for single sign-on, and the audit evidence your records and audit teams expect. Open WebUI's license forbids altering its branding once a deployment exceeds 50 end users in a rolling 30-day period, unless you hold written permission or an enterprise license, so the user count settles whether branding is a question at all. Output: a signed requirements sheet that the platform team and procurement both accept.

  2. Shortlist two options and verify licenses

    The platform team picks two candidates, for example Open WebUI and LibreChat, and procurement checks each license and release status on the official project pages. LibreChat is MIT licensed, and its latest tagged release is marked as a pre-release. ClickHouse announced it had acquired LibreChat, so confirm the ownership change and its effect on your support terms in writing. Open WebUI code from v0.6.6 onward falls under the Open WebUI License, so its branding clause needs review here. Output: a dated license note for each candidate, filed with the records team.

  3. Pin a tagged release version

    The platform team deploys one specific tagged release and avoids floating branches or latest image tags, recording the tag, image digest and source commit in the change record. If the release page marks that version as pre-release, the security lead decides in writing whether a pilot may run it. Output: a version manifest that matches the running containers. Upgrades later follow the same path, so the pilot tests the upgrade process too.

  4. Run a small pilot on approved endpoint

    The platform team connects the pilot to one model endpoint that security has approved, such as a self-hosted runtime like Ollama or an OpenAI-compatible service inside your boundary, and records where prompts and responses are processed and stored. Open WebUI and LibreChat both accept OpenAI-compatible endpoints, so the endpoint review can be reused if you compare both. The business owner names a small user group, and the pilot starts with only those accounts. Output: a data flow diagram and an approved-user roster signed by the business owner.

  5. Test permissions, single sign-on and logs

    Security staff run scripted test cases with a standard user account: the user should not reach admin settings, workspace and document access should follow group rules, single sign-on should enforce the identity provider's policy, and chat and admin events should appear in the logs with user, time and action. AnythingLLM's Docker version offers user management and rule-based access to workspaces and documents, while its desktop version has no permissions, so it stays out of any multi-user test. Output: a pass or fail record for each case, with every failure fixed and retested before sign-off.

  6. Confirm retention and export with records

    The records team checks that chat history, uploaded documents and admin logs can be exported, retained and deleted under your records schedule, and that log access is limited to named reviewers. LibreChat can import ChatGPT conversations and export in several formats, so test whether those formats meet your records officers' needs before you commit. If a gateway such as LiteLLM sits in front of the models, confirm that SSO/SAML and audit logs are included in the edition you are buying, since its documentation lists them as enterprise features. Output: a retention and export memo signed by the records officer.

  7. Obtain written scope and quote

    Procurement asks each remaining candidate for a quote built from a written scope that lists deployment, identity integration, hardening, backup, upgrades, documentation and support. Mark which items are one-time and which recur, and ask what raises each cost, such as user count or identity connections. DeployOpen's engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and it does not publish a price list, so the quote follows from the written scope. Output: a signed statement of work and a quote that the security lead accepts before any rollout.

What drives cost of ownership and the cost of switching later

The one-time costs are hosting setup, integration, hardening and the migration of users and their history, and each one is paid to a different party. Your infrastructure team or an implementation partner is paid to stand the platform up in your cloud account, data center or air-gapped network, connect it to your identity provider and log pipeline, and harden it to your baseline. Licensing is a separate line. LibreChat is MIT licensed, so the code itself carries no license fee, and what you pay for is labor and infrastructure. Open WebUI works differently. Once a deployment has more than 50 end users in a rolling 30-day period, the Open WebUI License requires an enterprise license or written permission before you alter or remove its branding. That quote follows only after you contact enterprise sales with an expected seat count, so put your realistic user count in the scope now.

Recurring costs are staff time for upgrades and monitoring, backups, model access, security testing and enterprise licenses where they apply. The LibreChat reference compose file runs MongoDB, Meilisearch and a separate RAG API service, so the backup plan must cover each data store and the uploads they reference, and restore tests must run against all of them together. Model access is usually billed per token by the provider. If you serve open-weight models through Ollama or another local runtime on your own hardware, that cost moves to GPUs, power and the people who keep them running. Security testing recurs after major upgrades and after each new connector or tool is added. Ask every quote to split these lines: who performs each upgrade, whether restore tests are included, and whether model spend is billed to you directly or passed through.

Switching later is cheapest when the export path is documented before you commit. LibreChat documents importing conversations from LibreChat, ChatGPT and Chatbot UI, and exporting conversations in several formats, which makes ChatGPT history the documented import path for teams moving off that service. For other platforms, including Open WebUI and AnythingLLM, confirm in writing how conversations, user accounts, roles, workspace permissions and document indexes can leave the system. Run a test export on a sample account, check that it keeps user attribution and timestamps, and confirm whether embeddings must be rebuilt in a new vector store. Write the export format and an exit assistance clause into the scope or contract, and request migration work as a separate line in the quote so the cost of leaving is known before you sign.

What buyers ask before hiring outside help on private AI chat

How much effort does a self-hosted private AI chat rollout take?

A self-hosted rollout is mostly integration and governance work. The installation step is only one part of the effort, which rises with the number of identity providers you connect, the document sources you index, the model endpoints you route to, and the logging, backup and upgrade procedures your security team expects. The largest share often sits in access control design, testing and documentation. Cost has two parts. The base software carries no license fee in most cases, but some vendors sell enterprise licenses for added features or branding. Services are a separate cost, usually a fixed-scope project followed by an optional retainer for upgrades and testing. Ask every provider for a written scope that lists each integration, environment and deliverable, so quotes can be compared on the same basis.

How long does a private AI chat deployment take to implement?

The timeline comes from the written scope, so no general duration applies to every deployment. Ask each provider to state the schedule in the quote, with phases and dates tied to the agreed deliverables. The main drivers are the number of environments (test, staging and production), the identity integration, the document connectors and permission rules, the model endpoints, and the approvals your records owner and security team need before go-live. Network change requests and hardware procurement often run on their own schedule in government networks, so start them early. Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask for a named acceptance step at each phase, including security testing and documentation review, so you can see where time is spent.

What does our government team need to provide for a self-hosted AI chat?

Your team must supply five inputs before implementation starts, and each one needs a named owner.

  • Identity provider: the SSO system, the protocols it supports and the group or role claims the chat platform will use for access control.
  • Network: the zone or segment the service runs in, the outbound routes allowed to model endpoints and the firewall change process.
  • Model endpoint: an approved inference service, self-hosted or contracted, with the data handling terms your legal team has accepted.
  • Records owner: the person who sets retention, export, legal hold and deletion rules for chat history and uploaded documents.
  • Accounts: cloud or virtualization accounts, service accounts, admin roles and the backup target.

Confirm each item against the documentation for the platform you choose, since supported identity protocols and connectors differ between products.

Can we self-host private AI chat without an outside implementation partner?

Yes, a team with the right skills can self-host these platforms without an outside partner. The deciding factor is whether people inside your organization can operate container platforms, configure SSO and access control, run backup and restore tests and apply upgrades on a set schedule. Check three things before deciding. First, count the staff who will own the system after go-live, including those who will handle upgrades. Second, check whether the release line and upgrade path fit your change process, since security teams usually ask for pinned versions and tested rollbacks. Third, include staff time in the cost comparison, since it is often the largest ongoing cost. If gaps remain, a fixed-scope project can cover the build and handover, and a retainer can cover upgrades and continuous testing. DeployOpen plans, implements, hardens, backs up, upgrades, documents and supports self-hosted platforms inside your own infrastructure, so you can buy the parts you lack and keep the rest in-house.

Does Open WebUI branding require an enterprise license for our deployment?

Only when you alter or remove Open WebUI branding and have more than 50 end users in any rolling 30-day period. Since v0.6.6 (April 19, 2025), Open WebUI code is under the Open WebUI License, which includes a branding protection clause, and code through v0.6.5 stays BSD-3-Clause. The restriction does not apply if the copyright holder gives written permission or you hold an enterprise license. Enterprise licenses allow white-labeling and custom branding, with dedicated support options, and pricing is not published. You contact enterprise sales with an expected seat count to get a quote. Confirm how seats are counted and what the branding terms cover against the Open WebUI License documentation before you plan the rollout. DeployOpen is not an Open WebUI partner, so send licensing questions to the vendor directly.

Is LibreChat's pre-release tag safe to run in production?

The pre-release tag alone does not settle whether a version is ready for production, so you need your own test and rollback plan before you use it. The latest tagged release on GitHub, v0.8.8, was published on October 1, 2026 and is marked as a pre-release, as listed on the LibreChat GitHub releases page. A common approach is to pin a specific tagged version, test upgrades in a staging copy, read the release notes for breaking changes and keep a tested rollback. Ask the maintainers or your provider which release they recommend for your use case. LibreChat is MIT licensed. ClickHouse announced on November 4, 2025 that it had acquired LibreChat and that existing deployments continue unchanged, with ongoing investment in the open-source project. Confirm with the vendor how that statement applies to the release line you plan to run.

What accreditation evidence does a government AI chat deployment need?

DeployOpen prepares the systems, controls and evidence that an accreditation or compliance review will examine, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies perform that work, and in government settings the authorizing body decides whether a system can go live. Evidence commonly includes an architecture description, identity and access configuration, audit log settings, data handling and retention rules, backup and restore records, change history and test results. Ask your authorizing official or accreditation body which artifacts they require and in what format before scoping the work. Then confirm that the platform's own documentation covers the controls you need to show, since a platform can support a control while your deployment still needs its own evidence. Name the assessor or authorizing body in the written scope so their requirements are built in from the start.

How DeployOpen scopes and delivers a private AI chat rollout

DeployOpen plans, implements, customizes, integrates, hardens, backs up, upgrades, documents and supports self-hosted platforms inside your own infrastructure, including cloud accounts, data centers or air-gapped networks. For a government or public sector chat rollout, that work starts with a written scope agreed before any work begins.

How we scope

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • The scope lists the chat platform, identity provider, model providers, user groups and document access rules.
  • Licensing is checked early, since terms like the Open WebUI License branding clause can affect the rollout.

How we build

  • Deployment runs inside your cloud accounts, data centers or air-gapped network, using the platform's documented install path.
  • Identity integration, access control and audit logging are configured and tested so your compliance team can review them.
  • Security testing covers prompt injection, file and tool permissions, data exposure and credential handling where the platform supports them.

How we hand over

  • Handover includes the documentation, configuration record and the backup and upgrade steps agreed in the scope.
  • Compliance evidence is prepared for your assessors, such as access settings, logs and configuration exports.
  • DeployOpen prepares evidence but does not issue audit reports; independent auditors and certification bodies do.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after the initial delivery.
  • Ask the retainer to name which upgrades, retests and reviews it covers before you sign.
  • Ask for response expectations and escalation paths to be written into the agreement before you sign.

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.