Short answer
When you send a prompt to a cloud AI chatbot, the text leaves your network. It goes to the provider’s servers. From there, the provider’s laws and data terms apply, not yours. A local AI setup runs an open-weight model on hardware that you control, so the prompts and the files stay in-house. Local AI has its own risks, so download models with care and verify each file.
Here is an example. It is made up.
An operations manager at a small engineering company wants help with a supplier contract. They paste three pages into a chatbot and ask for a summary. The summary is useful. Later, the owner asks a simple question: where is that contract now?
Nobody can answer at once. The text is on a server that the company does not control. The provider’s terms say how long the text stays there and who can see it. Those terms are not the company’s terms.
Nobody did anything wrong. The tool worked as designed. This article explains where chatbot data goes, why the place matters, and when local AI is a strong option. It is for owners, operations managers and IT leads at companies with 10 to 500 staff.
Where your data goes when you press Enter
A cloud chatbot is a website or an app. The AI model does not run on your computer. It runs on the provider’s servers.
This is the usual path of a prompt:
- Your device sends the text. The prompt and any uploaded file go over the internet.
- The provider receives it. The provider’s servers process the text and send back an answer.
- The provider stores it. Most providers keep a chat history. Their retention rules say how long.
- The provider can use it. Some plans allow training on chats by default. Some plans do not.
- People can see it in some cases. Providers list cases such as abuse checks, support and human review.
Each step follows the provider’s rules. The details differ from provider to provider and from plan to plan. My first 24 hours plan for pasted client data compares the settings of ChatGPT, Claude and Gemini.
Every provider follows its own laws and its own terms
AI providers come from many places. A few examples show the range:
- Mistral AI is a French company. Its chat app is Le Chat. It also releases open-weight models, and its Mistral 3 family uses the Apache 2.0 license.
- Latam-GPT is an open model built for Latin America. It launched in February 2026.
- Kimi and DeepSeek offer chat apps. Their models are also in the catalog of Ollama, a tool that runs models on your own computer.
- OpenAI, Anthropic and Google run ChatGPT, Claude and Gemini.
None of these providers is good or bad because of where it is based. The main point is simple. Every cloud provider operates under the laws of the places where it works. Every provider also writes its own data terms. When your data leaves your network, those laws and terms apply to it. Your own rules stop at your network edge.
Before staff use any cloud AI for work data, do these steps:
- Read the privacy policy and the terms. Do this for the exact plan that staff will use.
- Find where the data is stored. Look for the country or region of the servers.
- Find which law applies. The terms usually name the law that governs the contract.
- Find the retention rule. Look for how long chats and files stay after deletion.
- Find the training rule. Look for the default setting and the opt-out.
- Find who can see the data. Look for human review, support access and subprocessors.
- Record the answers. Add them to your AI tool register.
If an answer is not clear, ask the provider in writing. Ask your own counsel or insurer about the legal side.
The case for local AI
Local AI means that you run an AI model on hardware that you own or control. This can be a desktop computer, a laptop or a server in your office. The model is an open-weight model. This means that the publisher shares the model files for download.
With local AI, the prompt goes from the keyboard to your own machine. It does not need to leave your network.

Local AI gives you these advantages:
- You know where the data is. It is on your disk, in your building or in your own cloud account.
- You set the retention. You decide what to keep and when to delete it.
- Nobody else trains on your prompts. The model does not send your chats to its publisher.
- You choose the model version. The model does not change unless you change it.
- It can work offline. A local model does not need an internet connection to answer.
Local AI also has limits. Be honest about them before you start:
- You need suitable hardware. Large models need a lot of memory. My guide to VRAM and RAM for local AI explains the basics.
- Smaller models do less. A model that fits on a small machine can be less capable than a large cloud model.
- You own the security. You must update the software, control access and make backups.
- Some local tools also offer cloud models. For example, Ollama says that you can run models “locally or in the cloud”. Make sure that the model you choose runs on your own machine.
Local AI does not need to replace every cloud tool. A good first step is a split. Keep the most sensitive work local, and use an approved cloud tool for the rest.
Start a small local AI pilot
Use these steps for a first test. Keep the scope small.
- Choose one use case. An example is a summary of internal documents that must not leave the company.
- Choose one machine. Use a computer that one person in IT controls.
- Choose one local tool. Examples are Ollama, LM Studio, llama.cpp and AnythingLLM.
- Choose one model. Use the checklist in the next section before you download it.
- Turn off cloud features. Examine the tool settings for cloud models, telemetry and sync.
- Test with sample data first. Use made-up documents before you use real ones.
- Limit access. Give access only to the people in the pilot.
- Record the setup. Write the tool, the model, the version and the settings in your AI tool register.
- Review after a month. Decide if the quality is good enough for the use case.
Downloading models from public hubs has its own risks
Local AI moves the risk. It does not remove it. You now download large files from the internet and run them on your own machine.
Most people get models from public model hubs. Hugging Face is the best known. Other sources include the Ollama model library, Kaggle and the publishers’ own websites. Most models on these hubs are fine. Some are not. These are the main risks.
Some model files can run code
Some model file formats can run code when you load them. The best-known example is pickle, a Python format. Hugging Face says that loading a pickle file can lead to arbitrary code execution. PyTorch files such as pytorch_model.bin often use pickle.
This risk is real. In 2024, JFrog reported a model on Hugging Face that gave an attacker a shell when it was loaded. Pickle is not the only risk. Hugging Face also links to a proof of concept that uses Keras Lambda layers to run code.
Safer options exist. Safetensors is a format made to store model weights safely, as opposed to pickle. The Transformers library loads safetensors files when they are available. Since version 2.6, PyTorch loads only weights by default, which reduces this risk.
Fake and look-alike repositories
A model name can look correct and still be fake. In 2023, Mithril Security tested this. They uploaded a changed model under the name “EleuterAI”. The real publisher is EleutherAI. Only one letter was missing.
Names can also change owners. In 2025, Palo Alto Networks Unit 42 described model namespace reuse. If an author deletes their account, another person can register the same name. Code that downloads the model by name can then get a different model.
Backdoors and poisoned models
A model can behave normally in most tests and still carry a hidden change. The same Mithril Security test changed one fact in the model. For other prompts, the model worked as usual.
Research from Anthropic shows a related point. Its Sleeper Agents paper trained models with hidden triggers on purpose. Standard safety training did not remove those triggers. This was a research test, not a found attack. It shows that a normal test result does not prove that a model is clean.
Unknown training data and licenses
A model card describes a model. Hugging Face says that a model card should list the intended uses, the limitations and the training datasets. Many model cards are incomplete. Then you do not know what data trained the model.
Licenses also differ. Some open-weight models use a standard license such as Apache 2.0. Others use the publisher’s own terms. For example, Google tells users to review the Gemma terms of use before they download Gemma. Read the license before you use a model for business work.
Hub scanning helps, but it is not a guarantee
Hugging Face scans files. It runs a malware scanner on each file smaller than 2 GB. It also lists the imports in pickle files and works with outside scanners. But Hugging Face also says that its pickle scan is “not 100% foolproof”. JFrog reported that the hub marks unsafe pickle files but does not block the download. The final check is yours.
A safe download checklist
Use these steps for each model that you download.
- Confirm the publisher. Start from the publisher’s own website or documentation. Follow its link to the hub.
- Check the spelling. Compare the name of the account and the model, letter by letter.
- Read the model card. Look for the training data, the intended use and the limits.
- Read the license. Make sure that it permits your use, also commercial use.
- Choose a safe format. Prefer safetensors. Avoid pickle files such as
.bin,.ptand.pklfrom unknown sources. - Do not run unknown code. In Transformers,
trust_remote_code=Trueruns code from the model repository. Use it only after you read that code. - Pin the version. Download a specific commit, not only a name. Unit 42 recommends this step.
- Verify the checksum. Compare the SHA256 value of your file with the value that the publisher shows. For large files, Hugging Face uses the SHA256 value as the file ID.
- Scan the files. Use a malware scanner. For pickle files, use a tool such as picklescan or fickling.
- Keep a trusted copy. Store the checked files in your own storage. Load the model from there, not from the hub each time.
- Test on a separate machine first. Use a machine without access to sensitive data.
- Record the model. Write the source, the commit, the checksum and the license in your AI tool register.

This checklist takes some time for each model. That time is small compared to the cost of a bad file on a work machine.
Make the model your own: fine-tune on your own hardware
This is the strongest path for control. Take an open-weight model from a trusted publisher. Then fine-tune it on your own data, on your own hardware.
Fine-tuning means extra training on a small set of your own examples. The model learns your terms, your formats and your style. The training data never needs to leave your network.
This is more practical than many people think. Methods such as parameter-efficient fine-tuning change only a small part of the model. Hugging Face says that this makes it possible to train large models on consumer hardware.
With this path, you control each part:
- The base model. You choose it, verify it and pin its version.
- The training data. You choose what goes in, and nothing leaves your network.
- The result. The new model file stays on your machines.
- The changes. You decide when to retrain and which version to use.
Use these steps:
- Start from a verified base model. Use the download checklist above. Fine-tuning does not remove a hidden problem in the base model.
- Check the license. Make sure that it permits fine-tuning and commercial use.
- Prepare clean data. Use only data that you have the right to use. Remove passwords, keys and data that the task does not need.
- Train on your own hardware. Keep the data and the training run inside your network.
- Test the result. Compare the answers with the base model on the same questions.
- Protect the new model file. A model can repeat parts of its training data. Researchers have extracted names, phone numbers and email addresses from a language model. Give the fine-tuned model the same protection as the data that trained it.
- Record each version. Write the base model, the data set, the date and the test results in your AI tool register.
Cloud or local: a simple guide
Use this table as a starting point for your own rule.
| Type of work | A reasonable choice |
|---|---|
| Public information, marketing drafts | An approved cloud tool on a business plan |
| Internal documents without client data | An approved cloud tool, or local AI |
| Client data, contracts, prices | Local AI, or a cloud plan that your contract permits |
| Passwords, keys, credentials | No AI tool |
Your client contracts can set stricter rules. Follow the contract first.
What not to do
- Do not assume that a cloud chatbot keeps data in your country. Read the terms for the plan that you use.
- Do not judge a provider by its home country alone. Read its terms. The terms tell you more than the location.
- Do not download a model only because it is popular. A fake copy can use a name that looks almost the same.
- Do not load pickle files from unknown sources. Use safetensors when you can.
- Do not think that local means safe. A local machine still needs updates, access control and backups.
- Do not put real client data into a pilot on day one. Test with made-up data first.
Download the templates
Two of my templates help with these steps. The AI tool register records each tool, each model and each data type. The AI vendor questionnaire helps you ask a cloud provider where your data goes. The templates are on GitHub under the CC BY 4.0 license. You can use and adapt them, also for commercial work.
All templates: github.com/nosistech/governance-templates
Back to the supplier contract
Go back to the example. In a better outcome, the company has a clear rule before the paste. Contracts go to a local model on a company machine. The owner then knows the answer at once: the contract is on the company’s own hardware.
Cloud AI is useful, and many tasks fit it well. For your most sensitive data, local AI gives you the clearest answer to where your data goes. Choose your models with care, and the control stays with you.
Questions and feedback about this article are welcome. Contact NosisTech.
Keep reading: AI data and governance
This post is general information, not legal or security advice for your specific systems. The opening story is an example and is fictional. Providers, model hubs and tools can change their terms, features and safeguards at any time.