Most people use AI through a provider's service: you send a request over the internet to a model running in someone else's data center and get a response back. Running AI locally means the model runs on hardware you control, such as your laptop, a workstation in your office, or a server you manage. Your prompts and documents do not have to leave that machine. This article explains what that involves and when it makes sense.
The basic idea
When you use a hosted AI service, three things live with the provider: the model, the computing hardware that runs it, and, at least temporarily, your data. When you run AI locally, all three live with you.
This is possible because many capable models are released as open weights, meaning the trained model files can be downloaded and run by anyone with suitable hardware and software, subject to the model's license. Free tools make running these models much easier than it used to be. See Tools for running models locally.
"Local" and "self-hosted" are often used interchangeably. Local usually suggests a personal computer or an on-site machine. Self-hosted can also include a server you rent and manage in a data center, which keeps control with you even though the hardware is not in your building.
Why businesses run AI locally
Privacy and data control
The most common reason. When the model runs on your hardware, sensitive documents, customer data, and proprietary information do not need to be sent to a third party. That can simplify compliance, satisfy client confidentiality requirements, and remove questions about provider retention and training policies. See Will an AI provider train on your data?
Predictable costs
Hosted APIs charge per token. Local models have no per-request fee: once you own the hardware, running more requests costs mainly electricity. For steady, high-volume workloads, this can be economical. For light or occasional use, hosted services are usually cheaper.
Independence and control
Local models do not change unless you change them. A provider cannot retire the model you rely on, change its behavior with an update, raise prices, or suffer an outage that takes your workflow down. You choose when to upgrade.
Offline and low-latency use
Local models work without an internet connection, which matters for field work, secure environments, or unreliable connectivity. Responses can also be fast for small models because there is no network round trip.
Customization
You have full control over the model, its settings, and fine-tuning, without depending on what a provider allows.
What it takes
Running a model locally requires:
- Hardware with enough memory, ideally a capable graphics card or a computer with large unified memory. See Hardware for local AI.
- A model suited to your task and hardware, downloaded from a source such as Hugging Face or through a tool's built-in library.
- Software to load and run the model, such as Ollama, LM Studio, llama.cpp, or vLLM.
- An interface for people or applications to use it: a chat window, an API your apps can call, or an integration with existing tools.
- Maintenance: updates, security, monitoring, and backups, like any other system.
For an individual experimenting on a recent laptop, setup can be a matter of installing an app and downloading a model. For a business serving a team or an application reliably, it is an IT project.
The realistic limits
Local AI is genuinely useful, but it is important to be clear-eyed about the tradeoffs.
Capability gap
The most capable frontier models are generally available only as hosted services and run on large clusters of specialized hardware. The open-weight models that fit on typical business hardware are often smaller and less capable at complex reasoning, nuanced writing, and difficult coding. The gap has narrowed considerably, and many everyday tasks, such as summarizing, drafting, classifying, extracting information, and answering questions from your documents, work well with smaller local models. But for the hardest tasks, hosted frontier models usually still lead.
Hardware costs
Running larger models well requires expensive hardware, especially graphics cards with lots of memory. Serving many simultaneous users requires more still.
Responsibility
You are responsible for keeping the system running, secure, and updated. There is no provider support line.
Speed at scale
A single machine can handle a limited number of simultaneous requests. A popular customer-facing feature may need more capacity than a single local server provides.
Fewer built-in features
Hosted services bundle web search, file handling, image generation, and polished apps. Locally you assemble these yourself from open-source tools, which is increasingly feasible but takes effort.
Common uses for local AI
- Private document assistants that answer questions from internal files using retrieval-augmented generation.
- Summarizing and drafting with confidential material, such as legal, medical, or financial documents.
- Classifying and extracting data from forms, emails, and records at high volume.
- Transcription of meetings and calls with open speech recognition models.
- Coding assistance on proprietary codebases.
- Experimentation and learning without usage fees.
A hybrid approach
Many businesses do not choose all-local or all-hosted. A common pattern:
- Run a local model for sensitive data and high-volume routine tasks.
- Use hosted frontier models for complex tasks involving non-sensitive information.
- Route each request to the appropriate option based on the data and the difficulty. See How routers add intelligence to the intelligence.
Local AI vs hosted APIs vs private cloud compares the options in more detail.
Key takeaways
- Running AI locally means the model, the hardware, and your data all stay under your control.
- Main benefits: privacy, predictable costs at volume, independence from providers, and offline use.
- It requires suitable hardware, an open-weight model, software to run it, and ongoing maintenance.
- Local models are capable for many everyday tasks but usually trail the largest hosted models on the hardest ones.
- Many businesses use a hybrid of local and hosted models.