Microsoft Foundry Local
Foundry Local is an on-device artificial intelligence runtime from Microsoft. An application can bundle the runtime, download a language model suited to the user's hardware, and run it on the device. The same software supports speech transcription, text embeddings and image inputs with compatible models. Local inference requires no Azure subscription and incurs no per-token cloud charge. The device can operate offline once it has the model and its execution components.[1][2][3]
Microsoft introduced Foundry Local in public preview at Build on 19 May 2025 and announced general availability on 9 April 2026.[4][2] It distributes the native runtime and software development kits (SDKs) separately from the preview command-line interface (CLI). On 17 November 2026, Microsoft published version 2.5.0 of the runtime and the Python and C# packages.[5][6][7] Its Homebrew formula lists the macOS CLI as preview version 0.14.0.[8]
Background
At Build 2025, Microsoft presented two ways to add local generative AI to a Windows application. Windows AI APIs exposed built-in capabilities, including language tasks backed by Phi Silica on Copilot+ PCs. Foundry Local let developers choose a downloadable model and inspect which versions a particular PC could run. For example, the phi-4-mini alias selects a model from the catalog. It refers to a different model from the copy of Phi Silica supplied with Windows.[4][9]
Foundry Local belongs to the Microsoft Foundry product family. The cloud service hosts frontier models and other services on Azure. The desktop SDK runs a selected model in the user's application. Microsoft's general-availability announcement named Windows, macOS on Apple silicon and Linux x64 as desktop targets. The company had separately announced a gated preview for Android in November 2025. Foundry Local on Azure Local is another deployment option, with Kubernetes and Azure Arc for organizations serving models on their own infrastructure.[1][2][10]
The distinction affects how an application handles loss of connectivity. A desktop transcription application can continue to process recordings with a cached speech model. A developer can also implement a fallback from an on-device model to a cloud deployment. Microsoft's Windows example leaves that choice to the application, which must supply the remote endpoint and credentials for the cloud request.[1][2][9]
Architecture
Applications ordinarily load the Foundry Local Core library into their own process. The core manages the model catalog, downloads, cache and inference sessions. The C interface is the common binary interface for the language bindings. C++ developers can use a header-only wrapper, while C#, Python, JavaScript and Rust applications call the runtime through their respective SDKs. Direct calls need neither the CLI nor an HTTP server.[11][12]
ONNX Runtime executes the model graphs. Its execution providers implement operations for particular hardware, such as an NVIDIA GPU or a Qualcomm neural processing unit (NPU). The core matches a model variant to a provider available on the device. On Windows, Windows ML can acquire and register hardware-specific provider plug-ins. An application can run a model on the CPU if a suitable CPU variant is available.[11][9]
A model has separate download and load stages. Downloading puts the model files in the disk cache, where they survive application restarts. Loading brings a variant into memory so a session can submit requests. Unloading releases the model from memory while leaving its files in the cache. Removing a cached download is a separate operation. Microsoft estimates that the base runtime adds about 20 MB to an application package. Model weights and hardware-specific components have separate storage requirements.[1][11][13]
The 2.5.0 SDK also supports an optional shared native host. Compatible applications can join a host when their runtime builds and settings agree, including the catalog, cache location and execution-provider settings. A catalog lookup by itself does not start the host. Inference can start or join it, and closing one application's manager releases that client's connection. This gives cooperating local processes a way to share the runtime without requiring each to open a web service.[5][6]
Supported models
Microsoft maintains a catalog of device-optimized variants. An alias such as qwen2.5-0.5b lets an application request a model without specifying the processor or quantization format. The catalog can return a different variant on a machine with different hardware. An application can also select an exact variant ID. The SDK exposes model metadata such as supported input types, context length and tool-calling support where those values are known.[11][5][13]
| Family or model | Use documented by Microsoft |
|---|---|
| Phi-4 mini | Microsoft's Windows quickstart uses phi-4-mini for local chat.[9] |
| Qwen | The examples include Qwen2.5 for chat, Qwen3 for text embeddings and a vision-language variant that accepts an image with a prompt.[3][13] |
| gpt-oss, DeepSeek and Mistral | Microsoft named these among the language model families supported at general availability.[2] |
| Whisper | OpenAI's speech-recognition family provides transcription of recorded audio.[2][14] |
| Nemotron Speech | Microsoft's live transcription example uses nemotron-speech-streaming-en-0.6b to produce text as audio arrives.[3] |
| Qwen3.8-27B | Microsoft's local coding integration uses a four-bit variant optimized for NVIDIA GPUs.[15] |
Applications can also supply their own models. Since version 2.1, the SDK can register an existing ONNX Runtime GenAI model directory in a local catalog. Registration points to the existing files and requires a model ID, task metadata and a compatible configuration. In Python the directory must contain genai_config.json. Unregistering the model removes the catalog entry and leaves the developer's original files in place.[16][5]
For a model distributed in another format, compilation is a separate step. Microsoft documents how to take Meta's Llama 3.2 1B Instruct from Hugging Face, use Olive to convert and quantize it, and target the CPU with four-bit weights. The example requires access to the gated upstream model. A team starting with its own PyTorch checkpoint needs a conversion and execution path that supports its architecture and intended device.[17]
Platforms
The native SDK reference lists Windows and Linux binaries for x64 and ARM64, and macOS binaries for Apple silicon. Linux ARM64 support arrived in the 1.2 release. Language packages can have a narrower platform matrix. For example, the Python 2.5.0 package documents Windows x64, Linux x64 and ARM64, and macOS ARM64.[18][3][5]
| Platform | Documented acceleration and distribution |
|---|---|
| Windows | WinML can register providers for supported hardware. They include OpenVINO on compatible Intel devices, Qualcomm QNN on Snapdragon NPUs and AMD Vitis AI on supported AMD NPUs. Microsoft also documents NVIDIA CUDA and WebGPU paths. The preview CLI's WinGet package ID is Microsoft.FoundryLocal.[11][13][19] |
| macOS | ONNX Runtime's WebGPU provider uses Dawn to translate compute shaders for Metal on the Apple GPU. The documented path uses the GPU. Microsoft's CLI formula specifies an ARM64 Mac and macOS Sequoia or later.[11][8] |
| Linux | The native runtime has x64 and ARM64 builds. Microsoft documents CPU, WebGPU and NVIDIA CUDA execution for Linux, subject to the selected model and compatible device libraries. The Python 2.5.0 wheel specifies glibc 2.28 or later on x64 and 2.34 or later on ARM64.[11][18][5] |
Hardware support depends on the model, execution provider and driver. For example, Microsoft instructs developers using the CUDA path to install compatible CUDA and cuDNN runtimes separately. A system that can run a small chat model can still lack the memory for a larger coding model. Microsoft's four-bit Qwen3.8-27B example alone occupies about 18 GB, and the documented setup uses a GPU with at least 24 GB of video memory.[20][15]
Command line interface and SDK usage
The preview foundry CLI can inspect the catalog, download model files, start a local server and open an interactive chat. Microsoft's reference gives these commands:[13]
foundry model list --variants
foundry model info phi-4-mini
foundry chat qwen2.5-0.5b
foundry server status
The first command lists variants so a developer can see what the installed hardware supports. The chat command downloads a matching model on first use. The status command reports the server's actual address and port. A client connecting through the OpenAI API format uses that address with the local model ID. A CLI server can take an operating-system-assigned port, so a hard-coded port can point to the wrong address after a restart.[13]
| Language | SDK distribution |
|---|---|
| C and C++ | The native runtime package includes the C interface and C++ headers. Microsoft's C++ sample restores Microsoft.AI.Foundry.Local.Runtime from NuGet.[7][12][18] |
| C# | Microsoft.AI.Foundry.Local on NuGet. Version 2.5.0 bundles WinML on Windows.[6] |
| Python | foundry-local-sdk on PyPI. Version 2.5.0 lists CPython 3.11 through 3.14.[5] |
| JavaScript and TypeScript | foundry-local-sdk on npm provides bindings for Node.js.[2][12][21] |
| Rust | The foundry-local-sdk crate exposes the manager, model catalog and typed inference sessions.[22] |
The SDK manages the same model lifecycle from code. An application initializes a manager, selects a model, downloads and loads it, and opens a session suited to the task. The Python example below shows the streaming part of a chat after the application has loaded model. The session retains prior turns. The caller can handle each output item as it arrives and unload the model when it has finished using it.[5]
from foundry_local_sdk import ChatSession, MessageItem, Request, TextItem
with ChatSession(model) as chat:
chat.set_streaming(True)
with Request().add_item(MessageItem.user("Describe a lunar eclipse.")) as request:
for item in chat.process_streaming_request(request):
if isinstance(item, TextItem):
print(item.text, end="", flush=True)
The 2.x SDK introduced typed sessions for chat, embeddings and speech, and deprecated the earlier in-process clients modeled on the OpenAI SDK. The HTTP interfaces remain available. The CLI reference documents /v1/chat/completions and /v1/audio/transcriptions, while Microsoft's vision example sends an image to the optional SDK web service using the Responses API. This lets a program that already communicates over HTTP, such as a LangChain application, use a local model.[16][23][3][12]
Privacy and offline operation
Microsoft says that prompts, audio and model outputs sent to the local runtime are processed on the device. An application that needs to work without a network can download the model and required providers ahead of time. A fresh installation can require network access, and selecting a different model later can trigger another download. Users can also choose to share diagnostic logs when reporting problems.[1][11][12]
Runtime telemetry has separate controls. In the JavaScript 2.5.0 SDK, disableNonessentialTelemetry defaults to false. Microsoft documents that even when an application disables nonessential telemetry, the runtime may still send a minimal process-information event. Local inference also leaves the host application in control of any logging or cloud fallback it implements.[21][1][9]
Comparison to Ollama and LM Studio
Ollama, LM Studio and Foundry Local can all run language models on a personal computer. Their application interfaces and supported model formats differ.[12][24][25]
| Software | Model selection and application interface |
|---|---|
| Foundry Local | The SDK embeds a native runtime, retrieves ONNX variants from Microsoft's catalog and can register compatible models already on disk. An app can expose an optional HTTP endpoint.[11][16] |
| Ollama | Users can run models from Ollama's library or use a Modelfile to import supported Safetensors weights and GGUF files. Ollama provides Python and JavaScript libraries and implements a subset of the OpenAI HTTP API.[24][26][27] |
| LM Studio | The desktop app offers model search, downloads and chat. Its runtimes include llama.cpp for GGUF files and MLX on Apple silicon. The project provides Python and TypeScript SDKs, a headless daemon, and endpoints for Chat Completions, Responses and embeddings.[25][28] |
For a developer with an existing set of GGUF files, Ollama and LM Studio document workflows for that format. A Foundry Local integration instead needs a compatible ONNX model. For a developer shipping a specific model with an application, the Foundry Local SDK offers a choice between selecting a variant for the user's hardware and choosing an exact model ID.[26][25][5]
Licensing
The Foundry Local SDK and the native runtime package use the MIT license, which requires the copyright and permission notices to accompany redistributed copies or substantial portions of the software.[5][32] Microsoft distributes the CLI under its own software license terms, and its WinGet manifest classifies the CLI as proprietary.[19] The model publisher separately sets the terms for each set of weights. The CLI's verbose model list exposes a license column, and the catalog's REST representation includes a license description or link to terms.[13][23][31]
For example, Microsoft publishes Phi-4-mini-instruct under MIT, and OpenAI distributes both the Whisper code and model weights under MIT. OpenAI released gpt-oss-20b and gpt-oss-120b under the Apache License 2.0. A model family's presence in the catalog does not establish the terms for every derivative or fine-tune bearing its name.[29][14][30][31]
Documented applications
Microsoft's examples show how hardware and model selection change with the application. The May 2026 release demonstrated a small embedding model for text search, streaming speech recognition and a vision-language model that could describe a screenshot. A speech application can consume partial transcripts as audio arrives. A search application instead receives vectors that it can compare to find text with similar meanings.[3][22]
In November 2026 Microsoft demonstrated GitHub Copilot using Qwen3.8-27B through a local endpoint. It tested four-bit inference on a GeForce RTX 5090 with 32 GB of video memory and a DGX Spark with 128 GB of unified memory. The team used prompts drawn from GitHub issues and reported faster generation than its llama.cpp comparison across the prompt lengths it tested. The figures describe Microsoft's evaluation of that model and those two systems.[15]
Continue reading
- MicrosoftMicrosoft Corporation is an American technology company headquartered in Redmond, Washington, and one of the largest suppliers of artificial intelligence compute, models, and applications.Mentioned 35 times above
- OllamaOllama is a free, open-source runtime for downloading, running, and managing open-weight large language models (LLMs) locally on personal computers and servers.Mentioned 6 times above
- Phi-4Phi-4 is a 14-billion-parameter small language model developed by Microsoft Research and released in December 2024, designed to match or beat models several times its size on reasoning tasks by training…Mentioned 4 times above
- LLaMALLaMA is the original name of a family of large language models developed by Meta AI.Mentioned 3 times above
- llama.cppllama.cpp is an open-source large language model inference engine written in C and C++ by Bulgarian software engineer Georgi Gerganov that runs large language models on consumer-grade hardware without…Mentioned twice above
- Microsoft FoundryMicrosoft Foundry (called Azure AI Foundry from November 2024 to November 2025, and Azure AI Studio before that) is Microsoft's cloud platform for building, deploying and operating generative AI applications…Listed in See also
More from See also
Topics:AI InfrastructureDeveloper ToolsMicrosoftOpen Source AI
References
- ^1 ^2 ^3 ^4 ^5 ^6Microsoft Learn. What is Foundry Local?
- ^1 ^2 ^3 ^4 ^5 ^6 ^7Sam Kemp. Foundry Local is now Generally Available. Microsoft Foundry Blog, 9 April 2026.
- ^1 ^2 ^3 ^4 ^5 ^6Nick Brady. What's new in Microsoft Foundry, May 2026. Microsoft Foundry Blog, 30 May 2026.
- ^1 ^2Windows Developer Blog. Advancing Windows for AI development at Build 2025. Microsoft, 19 May 2025.
- ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9 ^10Microsoft. Foundry Local Python SDK 2.5.0. PyPI, 17 November 2026.
- ^1 ^2 ^3Microsoft. Microsoft.AI.Foundry.Local 2.5.0, C# SDK. NuGet, 17 November 2026.
- ^1 ^2Microsoft. Microsoft.AI.Foundry.Local.Runtime, native runtime and version history. NuGet.
- ^1 ^2Microsoft. Homebrew formula for Foundry Local CLI 0.14.0. 12 November 2026.
- ^1 ^2 ^3 ^4 ^5Microsoft Learn. Get started with Foundry Local on Windows.
- ^Raji Rajagopalan. Foundry Local comes to Android. Microsoft Foundry Blog, 20 November 2025.
- ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9Microsoft Learn. Foundry Local architecture overview.
- ^1 ^2 ^3 ^4 ^5 ^6Microsoft. Foundry Local product overview and native interfaces.
- ^1 ^2 ^3 ^4 ^5 ^6 ^7Microsoft Learn. Foundry Local CLI reference.
- ^1 ^2OpenAI. Whisper repository and license for code and weights.
- ^1 ^2 ^3Microsoft Foundry Blog. Bring Agentic Coding On-Device with Foundry Local. 5 November 2026.
- ^1 ^2 ^3Nick Brady. What's new in Microsoft Foundry, September 2026. Microsoft Foundry Blog, 15 October 2026.
- ^Microsoft Learn. Compile Hugging Face models and run them on Foundry Local.
- ^1 ^2 ^3Microsoft Learn. Foundry Local SDK reference, including native runtime targets.
- ^1 ^2Microsoft. WinGet package manifest for Foundry Local CLI 0.14.0.0.
- ^Nick Brady. What's new in Microsoft Foundry, October 2026. Microsoft Foundry Blog, 5 November 2026.
- ^1 ^2Microsoft. JavaScript SDK 2.5.0 configuration declarations, including telemetry settings. Published npm package.
- ^1 ^2Microsoft. Foundry Local Rust SDK API reference. Docs.rs.
- ^1 ^2Microsoft Learn. Foundry Local REST API reference.
- ^1 ^2Ollama. Documentation and official client libraries.
- ^1 ^2 ^3LM Studio. LM Studio documentation, supported runtimes and SDKs.
- ^1 ^2Ollama. Importing a model.
- ^Ollama. OpenAI compatibility.
- ^LM Studio. OpenAI compatibility endpoints.
- ^Microsoft. Phi-4-mini-instruct model card and license. Hugging Face.
- ^OpenAI. Introducing gpt-oss. 5 August 2025.
- ^1 ^2Microsoft Learn. Best practices and troubleshooting guide for Foundry Local CLI.
- ^Microsoft. License of Microsoft.AI.Foundry.Local.Runtime 2.5.0. NuGet.
Improve this article
Add missing citations, update stale details, or write a clearer explanation. Anyone can edit: changes go live when you publish, and every edit is checked by an editor.
6 revisions · v6 · 2,591 words · full history
Fact-checks are independent of edits: a reviewer re-verifies the article against its sources and stamps the date. How we verify
Research and drafting on this wiki are AI-assisted, under named human editorial standards. How AI is used here
Cite this page: AI Wiki. "Microsoft Foundry Local." aiwiki.ai, updated 1 Dec 2026. CC BY 4.0. https://aiwiki.ai/wiki/foundry_local


