Skip to content
Back to blog

When Should AI Queries Run Locally?

How to estimate the share of your AI queries that can run locally: routing architecture, cost, latency and confidentiality.

Ulysse Trin 5 min read

The essentials in 5 points

The short answer

Many everyday AI queries are simple: rephrase text, extract information, classify a message, summarize a document, or answer a factual question. But the proportion that a local model can handle depends on context, hardware, and the required quality level. The practical consequence is to measure that proportion on a representative sample before sizing the architecture.

The architecture that exploits this finding is the local-first router. Each query goes to a local model first, and only switches to the cloud if a difficulty threshold is crossed. The rest of this article details how that switch works, what it changes for cost, latency and confidentiality, how to audit your traffic to size it, and what its limits are.

The figure and where it comes from

What matters is not a generic figure but a change of question: the question is no longer “what can run locally?” but “what really needs the cloud?”. The answer comes from a real query set, explicit quality criteria, and a measurable escalation threshold.

That reversal holds because small models have caught up. By the summer of 2026, modestly sized open source models match far larger ones on everyday tasks, and a nine-billion-parameter model is enough to cover a large share of daily work. The share reserved for the cloud corresponds to queries that demand long reasoning, very specialized knowledge, or a creativity that only the high end still reaches.

The local-first router architecture

The principle is simple. A router receives each query and directs it to a local model first. A difficulty-estimation mechanism decides whether the local answer is enough or whether the query should escalate to a more capable cloud model. The threshold can be tuned on various signals: length and complexity of the request, the local model’s confidence, the presence of sensitive data that must not be exposed.

The appeal of this design is that it flips the default. A cloud-by-default architecture sends everything to the provider, including trivial queries that do not need it. A local-first architecture only calls the cloud for the fraction that justifies it. The result can cost less, expose less data, and reduce network dependency, provided that quality and operating costs are measured.

What it changes: cost, latency, confidentiality

Cost. A query served locally has a near-zero marginal cost. Once the hardware is amortized, there is no per-token billing for the local share of traffic. If most queries go local, the cloud bill shrinks to the remaining complex fraction. For an organization handling a large volume of everyday queries, the cumulative gap over a year is significant, without a single price tag capturing it: it all depends on the traffic profile.

Latency. With a local model, the query never crosses the network. No round trip to a distant data center, no dependence on connection quality. For interactive uses, code autocompletion or continuous assistance, this responsiveness is felt immediately in use.

Confidentiality. This is the argument that goes beyond cost. A query served locally never lets the data leave the device. Recent disputes around data sharing by online AI services are a reminder that as soon as data leaves the device, it escapes control and can leak through unforeseen channels. For a regulated profession, for medical or financial data, local-first is not an optimization, it is the guarantee that the data never goes to a third party.

How to audit your traffic to size it

You do not size a local-first architecture by guesswork. The right method starts with an audit of real AI traffic. Log the queries sent to the assistants in place, classify them by complexity and by data sensitivity, then estimate the share that would fit on a local model. This upfront measurement answers two questions: what hardware to plan for the local load, and what fraction of traffic will legitimately stay in the cloud.

Without this audit, two mistakes loom. Over-sizing the local infrastructure for traffic that does not justify it, or conversely underestimating the complex share and degrading quality by forcing local processing where the cloud is called for. A local-first router is only as good as its tuning, and that tuning rests on measurement.

The limits of the approach

The approach has a cost worth naming. First, maintenance: a fleet of local models has to be updated, monitored, corrected. That load does not exist with a fully managed cloud API. Then, quality on complex cases: the 30% of queries that justify the cloud switch really do justify it, and a poorly tuned router that keeps them local produces subpar answers. Finally, MLOps: operating a router, measuring difficulty, handling switches and monitoring quality demands skills that not every team has in house.

These limits do not call the approach into question: they set its conditions. Local-first cuts the bill and the leak risk, it does not remove the need for know-how to run the whole thing. It is an architectural trade-off, not a turnkey solution.

Where to start

The first step is not to pick a model, it is to measure. An audit of AI traffic establishes the share that can truly be handled locally, quantifies the possible saving, and identifies the data that must never leave. From there, the architecture is sized on facts, not on intuition.

Colombani.ai designs this kind of sovereign AI architecture (local-first router, controlled cloud switch, data kept in Europe) and measures the expected return as part of an AI audit, which quantifies the saving and the load before any investment. The expertise involved is certified by Anthropic (Claude Certified Architect), and the local AI training then lets your teams run the setup autonomously.

Sources

Frequently asked questions

What share of AI queries can run locally?

There is no reliable universal percentage: the share depends on your use cases, models, hardware and quality threshold. Measure it on a representative sample of real queries, then reserve cloud escalation for cases that exceed the local model's capabilities or confidence threshold.

What is a local-first AI architecture?

It is an architecture where a router sends each query to a local model first, and only switches to a cloud model when a difficulty threshold is crossed. The opposite of a cloud-by-default architecture. Most everyday queries are served locally at near-zero marginal cost, with the cloud called only for the cases that deserve it.

What is the impact of a local-first architecture on the AI bill?

Queries served locally have a near-zero marginal cost : no per-token billing once the hardware is amortized. If most traffic goes local, the cloud bill narrows to the remaining complex fraction. The real saving depends on the traffic profile, which an audit lets you measure before sizing.

How do I know what share of my AI traffic can run locally?

By auditing real traffic : log the queries sent to AI assistants, classify them by complexity and by data sensitivity, then estimate the share that fits on a local model. This upfront measurement avoids over-sizing the local infrastructure or underestimating the share that must stay in the cloud.

What are the limits of a local-first approach?

Three limits, frankly stated : maintaining the local fleet (model updates, monitoring), lower quality on the most complex cases that justify the cloud switch, and the MLOps load of operating a router. The approach cuts the bill and the leak risk, it does not remove the need for skills to run the whole thing.