Yes — there is an Angular component for Open WebUI. ngx-open-web-ui-chat is an open-source (MIT) Angular library that puts a ready-made chat UI into your app and connects it to an Open WebUI instance: one npm install, three inputs (endpoint, modelId, apiKey), and answers stream in over Socket.IO. We built it at MiCode and publish it on npm and GitHub. This guide gets it running in about 15 minutes.
What you need
An Angular 20 application, a running Open WebUI instance (local or on a server) with at least one model, and an Open WebUI An API is the interface two systems use to exchange data automatically, with no Excel exports and no copying by hand. Full definition → key, which you generate under Settings → Account → API keys. The component is zoneless: it is built on Angular signals and does not use zone.js.
Install
- Command
- Why
npm install ngx-open-web-ui-chat- The component itself
npm install ngx-markdown marked socket.io-client- Peer dependencies, if the app does not have them yet
Register the providers
- Code (main.ts, angular.json)
- What it does
bootstrapApplication(AppComponent, { providers: [ ... ] })- The providers in the next rows go into this array in main.ts
provideZonelessChangeDetection()- Change detection without zone.js, which is how the component runs
provideHttpClient(withInterceptorsFromDi())- Calls to the Open WebUI API
provideMarkdown()- Renders the model's answers as markdown
"polyfills": []- In angular.json: remove zone.js from polyfills
Without these providers the chat does not work: HTTP carries the calls to the Open WebUI API, markdown renders the model's answers, and zoneless change detection matches how the component is built.
Add the chat
- Component code
- What it does
import { OpenwebuiChatComponent } from 'ngx-open-web-ui-chat';- A standalone component, no NgModule
imports: [OpenwebuiChatComponent],- Add it to your component's imports
<openwebui-chat- The chat tag in your template
[endpoint]="'https://ai.example.com'"- Address of your Open WebUI instance
[modelId]="'llama3'"- Model id as Open WebUI lists it
[apiKey]="apiKey"></openwebui-chat>- Open WebUI API key
endpoint is the address of your Open WebUI, modelId is the id of a model loaded there (llama3, mistral, qwen2, or any Ollama or API model your Open WebUI exposes), and apiKey is the key you generated.
What works out of the box
The chat keeps the whole conversation and sends it with every request, renders markdown, streams the answer A token is a fragment of text, usually a piece of a word, and it is the unit AI models measure length and charge by — bills are counted in tokens, not in questions. Full definition → by token, and lets the user stop generation, continue, regenerate or rate an answer, attach files and record a voice message. Optional inputs turn on a chat history sidebar (history), folders, notes, server-side tools and integrations such as web search; language switches the interface between ten languages, and style passes your own CSS.
Where to look next
A live demo runs at micode-ai.github.io/ngx-open-web-ui-chat, the full list of inputs, outputs and methods is in the README on GitHub, and the package is on npm. Questions or a feature idea? Open an issue on GitHub or write to development@mi-code.pl.
Frequently asked questions
- Is there an Angular library that connects a chat UI to Open WebUI?
- Yes. ngx-open-web-ui-chat is an open-source (MIT) Angular component from MiCode: you install it from npm, give it your Open WebUI address, a model id and an API key, and it renders a ready-made chat with streamed answers.
- How do I add an AI chat component to an Angular app with a single npm install?
- Run npm install ngx-open-web-ui-chat, add provideHttpClient, provideMarkdown and provideZonelessChangeDetection in main.ts, import the standalone OpenwebuiChatComponent, and put <openwebui-chat> in a template with the endpoint, modelId and apiKey inputs.
- What do I need before using ngx-open-web-ui-chat?
- An Angular 20 application running without zone.js, a running Open WebUI instance with at least one model, and an API key generated in your Open WebUI account settings.
- What can the chat do?
- It streams answers over Socket.IO, keeps the whole conversation, renders markdown, lets the user stop or regenerate an answer, attach files and record voice. Optional inputs add chat history, folders, notes and tools, and the interface comes in ten languages.
- Is the component free?
- Yes. It is open source under the MIT licence, with the code on GitHub (micode-ai/ngx-open-web-ui-chat) and the package on npm.