Local vs cloud AI agent: privacy, hardware, model quality and cost
A local AI agent runs on a language model hosted on your own servers or computers, so data never leaves your perimeter. A cloud agent calls a provider’s model through an API: it is quicker to launch and the models are usually stronger, but requests leave your systems under the provider’s terms. The choice depends on how sensitive the data is, how good the answers must be, how many requests you expect and who will maintain the system. Often the best option is a hybrid: sensitive data stays inside, everything else goes to the cloud.
Open the software development page
What “local” and “cloud” actually mean
Every AI agent has several parts: data sources, a language model, semantic search, tools for actions, access rules and a log. This structure is covered in detail in the guide AI agent for business. When people say “local” or “cloud” agent, they usually mean just one part — where the language model runs.
It helps to know that even a cloud agent does not have to keep everything with the provider. Documents, search, the log and access rights can live on your servers, while only the text of a specific request and the fragments found for it go out. So the more precise question is: which data, and how much of it, may be sent to an external model.
| Local model | Cloud model | |
|---|---|---|
| Where it runs | On your servers or computers | On the provider’s servers, accessed via API |
| Where request data goes | Stays inside your perimeter | Goes to the provider under its terms |
| Launch | Hardware and environment must be prepared | An access key and a contract are enough |
| Model updates | Your job | Handled by the provider |
| How costs grow | In steps: new hardware for more load | In proportion to the number and length of requests |
Data privacy: what leaves your systems
In a cloud setup the provider receives the request text plus everything the agent pulled into it from your documents. What the provider does with that data — whether it stores it, for how long, and whether it uses it for anything other than the answer — is set by its terms and the plan you choose. Read them before launch, not after.
A local setup removes that question but adds another: security becomes entirely yours. The model server has to be protected, updated and backed up like any other system holding confidential data.
Some techniques reduce risk in either setup:
- Minimum data per request: the agent passes the model only the fragments it found, not the whole archive.
- Masking: personal data and account details are replaced with placeholders before sending and restored inside your perimeter.
- Separate access: a sales agent cannot see HR documents, even if they sit on the same server.
- A log: you can see which fragments were sent and where.
The general principle for any setup is to process sensitive data where it already lives and send outside only what the task cannot do without.
Hardware and infrastructure for a local agent
A language model needs computing power. A local deployment usually uses a server with a graphics card that has enough video memory for the chosen model: the larger the model, the more memory it needs and the more expensive the hardware. Compressed versions of models run on more modest hardware but lose more quality on complex tasks.
Besides the model itself, you will need:
- an environment for running and updating models;
- load monitoring and failure alerts;
- backups of the knowledge base and the log;
- headroom for concurrent requests: ten employees asking the agent at once load the server differently from one;
- a person or team responsible for all of this.
A cloud model removes these concerns: hardware, updates and scaling stay with the provider, and you pay per request. Maintaining the agent itself — sources, rules and checks — is needed either way; how that works is described on the page software support and maintenance.
Model quality: what to expect from each setup
The largest cloud models are generally stronger at complex reasoning, long documents and work across several languages. Open models that you can run yourself have also improved a lot and handle narrow tasks well: splitting an email into fields, classifying a request, answering from a document fragment that was found.
In practice, an agent’s answer quality depends on data and search at least as much as on the model. If the knowledge base holds outdated policies, no model will help. If search finds the exact fragment, even a small model often phrases the right answer. More on this in the guide AI assistant for a company knowledge base.
That is why the model is chosen not by rankings but by testing on your own examples: collect a few dozen real questions and documents, run them through different options and compare the answers with what an employee would say. The same set of examples then checks quality after every change.
Total cost of ownership: what it consists of
Comparing setups by the price of a single request makes little sense — look at the full cost over a year or two.
| Cost item | Cloud model | Local model |
|---|---|---|
| Building the agent | Required | Required, plus setting up the model environment |
| Running the model | Pay per request, grows with volume and text length | Hardware or server rental, hosting, electricity |
| Maintenance | Agent, sources, checks | The same plus the server, model updates, monitoring |
| Growing load | The bill rises gradually | New capacity has to be bought or rented |
As a rule, with a small or uneven volume of requests the cloud is usually cheaper at the start. With a steadily large volume and strict data requirements a local setup can pay off, but this has to be calculated on your numbers. What makes up the budget for the development itself is covered in how much software development costs.
The hybrid setup
You do not have to choose one or the other. A common option is to split tasks by sensitivity and complexity:
- A local model processes documents with personal and commercial data, extracts fields and masks what is not needed.
- A cloud model receives already anonymised text and takes on complex wording and long reasoning.
- The routing rule is written down explicitly, and the log shows where each request went.
To avoid depending on one provider, the agent is built so the model can be replaced without rebuilding the whole system. We choose the model for the task: answer quality, speed, running cost and requirements for where data is processed.
How to build and configure an AI agent step by step
The order of work barely depends on where the model will live:
- Pick one task and agree on what counts as success.
- Describe the data: which sources are needed and which of them must not leave your systems. This answer largely settles the local-or-cloud question.
- Collect a set of test examples from real work.
- Compare several models and hosting options on that set.
- Configure the agent: instructions for the model, connected sources, tools with minimal rights, rules for when the agent must ask a person.
- Launch for a small group, watch the log and fix weak spots.
- Expand tasks and sources once the first scenario works reliably.
“Configuring an AI agent” is mostly about boundaries and checks, not about finding a magic prompt. How we run this work is described on the page AI agent development.
An AI agent platform or your own system
Agent platforms and builders let you assemble an assistant quickly: upload documents, write instructions and connect ready-made actions. That is handy for testing an idea. Limits appear when the agent needs your systems, your own access rules or processing inside your perimeter — on a platform, data and the set of actions follow the platform’s rules. How to weigh this choice is covered in custom software vs off-the-shelf.
A word on systems made of several agents. In such a setup each agent has its own role: one finds documents, a second drafts, a third checks the draft against the rules. This helps in complex processes, but every link is one more place where an error can occur. It is safer to start with one agent and split it into roles when that is truly needed.
If part of the process follows clear rules, it is better handed to ordinary business process automation, leaving the agent to work with text.
All the areas we work in — from AI agents to apps and integrations — are gathered on the page about custom software development.
Frequently asked questions
Which is safer: a local or a cloud AI agent?
A local model does not send data outside, but all server protection is on you. A cloud model sends requests to the provider under its terms. In both cases security comes from access boundaries, minimum data per request and a log.
Do I need a graphics card for a local AI agent?
Usually yes: a language model needs video memory, and the larger the model, the more it needs. Compressed models run on simpler hardware but handle complex tasks worse.
Is a local model worse than a cloud one?
On complex reasoning and long documents, large cloud models are usually stronger. On narrow tasks with good search over your documents the gap can be small — this is checked on your examples.
Which is cheaper in the long run?
It depends on request volume. With low volume the cloud is cheaper; with steadily high volume and strict data requirements a local setup can pay off. Compare the full cost over a year or two.
Can both options be combined?
Yes. A local model handles sensitive data, while a cloud model gets anonymised text and complex tasks. A routing rule and a log keep the setup transparent.