What self-hosted live chat is
A live chat product has three parts: a widget on your website, a server that routes conversations to your agents, and a database that stores every message. Hosted tools run all three in their cloud. Self-hosted software runs them on a server you choose, which can be a machine in your office, a server in a data centre you contract, or a cloud virtual machine you manage yourself.
The practical differences are three: where the data sits, who patches and backs up the system, and what you pay. DChat is self-hosted live chat: the server, dashboard and widget are installed on your server, and the database is your SQL Server.
Who should self-host, and who should not
Self-hosting suits teams that must keep customer conversations on their own infrastructure, for example for internal policy, regulated data, or a network that has no outside internet access. It also suits teams that want a fixed cost for unlimited agents rather than a monthly charge per seat.
Hosted tools are the better choice if you have no one to look after a server, you want a vendor to carry the uptime risk, or you need a managed mobile app and a large catalogue of integrations on day one. Choosing hosted is a reasonable decision; the trade-off is that the vendor, not you, owns the data and the schedule.
What you need
- Runtime: the ASP.NET Core 8 runtime. On Windows with IIS, install the ASP.NET Core Hosting Bundle instead.
- Database: Microsoft SQL Server 2022 is recommended. SQL Server 2019, 2017 and 2014 are also supported.
- Memory: at least 1 GB of RAM, with 2 GB or more recommended for smoother operation.
- Operating system: Windows Server 2016 or later is the recommended path. Linux is supported on distributions with .NET 8 coverage, including common Ubuntu, Debian and RHEL-family options. Docker hosting is also supported.
- HTTPS: serve the dashboard and the widget over HTTPS, behind IIS or Nginx.
Full details are on the system requirements page.
What it costs
The Community edition is free for production, with unlimited agents and unlimited domains, and it has no expiry. Premium costs $19 per agent per month and adds the AI assistant, custom roles, automation, extra channels and voice. You pay only for the agents you choose to cover, and nothing renews automatically. Enterprise costs $49 per agent per month and adds single sign-on and advanced SLA policies.
Your own costs are the server, the database, your bandwidth and your time. If you connect OpenAI or Anthropic for the AI assistant, the provider bills you directly for model use under your own key. Check the pricing page for the current figures.
How to install DChat
The steps below summarise the deployment guide. Follow the guide itself for exact commands and settings.
- Install the ASP.NET Core runtime or the IIS Hosting Bundle on the server.
- Create a blank database in SQL Server, then run the install script. The script can be run again safely.
- Edit
appsettings.json with your connection string, your public address and your settings. A reference copy is included.
- Place your licence file in the application folder if you have a Premium or Enterprise licence. The Community edition needs no licence file.
- Host the application behind IIS on Windows, or Nginx on Linux, with HTTPS.
- Add the widget snippet to your website, then test a conversation end to end on a staging address before you go live.
Where your data lives
Message transcripts, visitor details such as name, email and the page they were on, department and agent assignments, ratings and the audit trail of admin actions are all stored in your SQL Server database. Back up that database the same way you back up your other business data, and keep your licence file and configuration safe too.
For more on what is stored and how to answer a deletion request, read where live chat data is stored.
Choosing the AI model
The AI assistant can use three kinds of model. With OpenAI or Anthropic, you connect your own key, so you control what is sent and you pay the provider directly. With a local Ollama model, the prompts and answers stay on your own servers, and there is no per-message charge from us. The assistant answers from your help articles, a crawl of your website, and any PDF, Word or CSV files you add, and it hands the conversation to a person when it cannot answer confidently.
Read the self-hosted AI chatbot page and the Ollama setup guide for the details.
Keeping it running
Plan for four ongoing tasks: install updates when you choose to, back up the database, renew the operating system and runtime on their normal schedule, and watch the server's disk space and memory. Keep a copy of your configuration and licence file somewhere safe. If the server fails, a restore from backup plus the licence file brings the system back. The backup and restore guide has the steps.
If you enable automatic licence renewal, it is off by default. When it is on, it sends your existing licence file once a day over HTTPS and receives a renewed one. Nothing else leaves the server.
Self-hosted or hosted: the honest comparison
| Question |
Self-hosted (DChat) |
Hosted live chat |
| Where data is stored | Your SQL Server database | The vendor's cloud, under its policies |
| Who keeps it running | You, or your IT team | The vendor |
| Cost model | Free Community with unlimited agents; Premium is $19 per covered agent per month | Usually priced per seat or per conversation, plus add-ons |
| Time to first chat | Depends on your server and an hour or more of setup | Usually minutes |
| Native mobile apps and large integration catalogues | DChat has no native mobile app; integrations are fewer than large hosted vendors | Often included; check each vendor |
Questions people ask
What is self-hosted live chat?
Self-hosted live chat is chat software you install and run on your own server, with your own SQL Server database. Visitors talk to your agents through a widget on your website, and the conversations are stored in your database rather than a vendor's cloud.
Is DChat free to self-host?
Yes. The Community edition is free for production with unlimited agents and unlimited domains, and it has no expiry. Premium adds the AI assistant, custom roles, automation, extra channels and voice at $19 per agent per month, on the agents you choose to cover. Enterprise adds single sign-on and advanced SLA policies at $49 per agent per month.
What do I need to self-host DChat?
The ASP.NET Core 8 runtime, SQL Server 2014 or later (SQL Server 2022 is recommended), and at least 1 GB of RAM (2 GB or more recommended). Run it on Windows Server 2016 or later with IIS, on Linux behind Nginx, or in Docker.
Does self-hosting keep my chat data private?
Conversations, visitor details and audit records are stored in your own database. If you use a cloud AI model such as OpenAI or Anthropic, the content you send to that model goes to that provider under your own key. If you run a local Ollama model, the AI prompts and answers stay on your infrastructure.
Is self-hosted live chat harder to run than hosted chat?
Yes, somewhat. A hosted vendor handles the server, backups, patches and uptime. With a self-hosted install you do those yourself, so you need someone who can keep a Windows or Linux server, SQL Server and HTTPS running.