Private AI chat for law firms: self-hosted or in your own cloud

Where your firm's AI chats are stored, where prompts go and who can see them: self-hosted TypingMind Teams with Azure OpenAI, Amazon Bedrock or an internal model.

5 min read
A private AI chat deployment: chats stored in the firm's own database, models in the firm's own cloud, and an audit log of admin changes

If your firm wants AI chat without client material sitting in someone else's app, we'd pick TypingMind Teams, self-hosted on your own servers. Chats are stored in your own MySQL database, and prompts go only to the model provider you choose: OpenAI models on Azure in your own tenant, Claude on Amazon Bedrock in your AWS account, or an internal model, in which case no requests go to OpenAI or Anthropic at all. Self-hosting is a yearly contract, so request a quote for pricing.

If a cloud app is acceptable, ChatGPT Enterprise and Claude Enterprise both offer custom data retention and IP allowlisting. ChatGPT Enterprise has no public price, and Claude Enterprise is $20 a seat a month billed yearly, plus usage, with a 20-seat minimum.

Three questions to ask about any AI chat

"Private" can mean different things, so pin down three:

  1. Where are chats stored? In the vendor's cloud, or in a database you control.
  2. Where do prompts go? Straight to a model provider, and which one, under what terms.
  3. Who can see what? Who can sign in, which models they can use, and who changed which setting.

Where chats are stored

With self-hosted TypingMind Teams, the app runs on your server with Docker, and chats and settings are stored in your MySQL database. You can turn on chat recording for review, and set a retention period so chats older than a set number of days are removed from chat history.

One thing to know: a self-hosted instance still contacts our servers to check its license and look for updates. The license check sends details such as your instance key, hostname and a user's email address, but no chat content.

Where prompts go

This depends on the model provider you connect. Here's what each provider said about its API on December 1, 2026:

ProviderUsed to train models?Retention and location
Azure OpenAINo. Prompts and completions aren't available to OpenAIProcessed in the geography you choose, unless you pick a Global or DataZone deployment
Amazon BedrockNo. Inputs and outputs aren't shared with model providersA zero data retention mode is available. Claude Fable 5 to 5.2 require review retention of up to 30 days
OpenAI APINo, by defaultAbuse monitoring logs kept up to 30 days. Zero data retention for approved customers
Anthropic APINo, by defaultDeleted within 30 days by default, with exceptions such as Usage Policy reviews

If your firm already uses Azure or AWS, Azure OpenAI or Amazon Bedrock keeps the models inside a cloud account you already control. See how to connect Azure OpenAI and Claude on AWS Bedrock.

Who can see what

The admin panel is the same whether we host it or you do:

  • Single sign-on and Directory Sync. Staff sign in with Okta, Microsoft Entra ID or another provider, and leavers lose access when IT removes them.
  • Approved models only. Decide which models each group sees, so a practice group only uses the models your firm has cleared.
  • Usage limits. Cap messages or tokens per user, group or model.
  • Audit logs. Who changed models, users, roles, prompts and agents, with a name and a date.
The Audit Logs page listing changes to chat logs, models, roles, prompts, user groups and agents, with names and dates
Audit Logs: changes to models, roles, prompts and agents, with names and dates.

What self-hosting takes

  • A server that runs Docker, with at least 1 dedicated CPU and 4 GB of memory.
  • A MySQL 8 database and an email (SMTP) account for sign-in emails.
  • Someone in IT to install updates. Self-hosted updates arrive 1 to 3 weeks after the cloud version.

Our install guide walks through it, and how to set up a self-hosted ChatGPT for your company covers the rest, from SSO to usage limits.

Which one to pick

  • TypingMind Teams, self-hosted if chats must stay in your own database and prompts must go to a cloud account you control, with models from more than one provider.
  • TypingMind Teams on our cloud if you want the same admin controls without running a server. It's $299 a month for 5 seats on the Professional plan, then $8 a seat.
  • ChatGPT Enterprise or Claude Enterprise if a vendor's cloud app is fine and you only need one provider's models.

For how legal teams use it day to day, such as contract review and compliance tracking, see TypingMind for legal and compliance. For rolling it out to staff, see shadow AI at work.

Frequently asked questions

Do our chats leave our servers?

With self-hosted TypingMind Teams, chats are stored in your own MySQL database. Prompts go to the model provider you connect, such as Azure OpenAI in your tenant or Amazon Bedrock in your AWS account. With an internal model, no requests go to OpenAI or Anthropic.

Can it run fully offline?

No. A self-hosted instance still contacts TypingMind's servers to check its license and look for updates. The license check sends details such as your instance key, hostname and a user's email address, but no chat content.

Can we use Azure OpenAI in our own tenant?

Yes. Add your Azure OpenAI deployment as a custom model. Microsoft says prompts and completions aren't available to OpenAI and aren't used to train models, and are processed in the geography you choose unless you use a Global or DataZone deployment.

How long are chats kept?

You decide. Turn on chat retention and set a number of days, and older chats are removed from chat history.

Can we see who changed which setting?

Yes. Audit logs record admin changes, such as to models, users, roles, prompts and agents, with the person's name and the date.

How much does self-hosting cost?

Self-hosting is a yearly contract with no free trial. Request a quote for pricing. On our cloud, the Professional plan is $299 a month for 5 seats, then $8 for each extra seat.

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇