# Microsoft Foundry Local

> Source: https://aiwiki.ai/wiki/foundry_local
> Updated: 2026-12-01
> Categories: AI Infrastructure, Developer Tools, Microsoft, Open Source AI
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) - attribute to "AI Wiki (aiwiki.ai)"
> Cite as: AI Wiki. "Microsoft Foundry Local." aiwiki.ai, 1 Dec 2026. https://aiwiki.ai/wiki/foundry_local
> From AI Wiki (https://aiwiki.ai), the free encyclopedia of artificial intelligence. Reuse freely with attribution.

**Foundry Local** is an on-device [artificial intelligence](https://aiwiki.ai/wiki/artificial_intelligence) runtime from [Microsoft](https://aiwiki.ai/wiki/microsoft). An application can bundle the runtime, download a [language model](https://aiwiki.ai/wiki/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]

<figure class="w-56">
<img src="/images/wd-2026-10-28-microsoft-logo-bedc30a55ff1-tile.png" alt="Microsoft logo" width="480" height="155" />
<figcaption>Microsoft logo. Source: <a href="https://commons.wikimedia.org/wiki/File:Microsoft_logo_(2012).svg">Wikimedia Commons</a>, <a href="https://commons.wikimedia.org/wiki/File:Microsoft_logo_(2012).svg#Licensing">Public domain</a>.</figcaption>
</figure>

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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/azure_ai_foundry) product family. The cloud service hosts [frontier models](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/npu) (NPU). The core matches a model variant to a provider available on the device. On Windows, [Windows ML](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/phi_4) mini | Microsoft's Windows quickstart uses `phi-4-mini` for local chat.[9] |
| [Qwen](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/deepseek) and [Mistral](https://aiwiki.ai/wiki/mistral_ai) | Microsoft named these among the language model families supported at general availability.[2] |
| Whisper | [OpenAI](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/llama) 3.2 1B Instruct from [Hugging Face](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/openvino) on compatible [Intel](https://aiwiki.ai/wiki/intel) devices, Qualcomm QNN on Snapdragon NPUs and AMD Vitis AI on supported AMD NPUs. Microsoft also documents NVIDIA [CUDA](https://aiwiki.ai/wiki/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]

```shell
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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/javascript) and [TypeScript](https://aiwiki.ai/wiki/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]

```python
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](https://aiwiki.ai/wiki/openai_responses_api). This lets a program that already communicates over HTTP, such as a [LangChain](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/ollama), [LM Studio](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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]

## See also

- [Azure AI Foundry](https://aiwiki.ai/wiki/azure_ai_foundry)
- [Microsoft](https://aiwiki.ai/wiki/microsoft)
- [Windows ML](https://aiwiki.ai/wiki/windows_ml)
- [ONNX Runtime](https://aiwiki.ai/wiki/onnx_runtime)
- [Phi-4](https://aiwiki.ai/wiki/phi_4)
- [Llama](https://aiwiki.ai/wiki/llama)
- [Ollama](https://aiwiki.ai/wiki/ollama)
- [LM Studio](https://aiwiki.ai/wiki/lm_studio)
- [GPT4All](https://aiwiki.ai/wiki/gpt4all)
- [llama.cpp](https://aiwiki.ai/wiki/llama_cpp)
- [LangChain](https://aiwiki.ai/wiki/langchain)
- [Semantic Kernel](https://aiwiki.ai/wiki/semantic_kernel)

## References

1. Microsoft Learn. [What is Foundry Local?](https://learn.microsoft.com/en-us/azure/foundry-local/what-is-foundry-local)
2. Sam Kemp. [Foundry Local is now Generally Available](https://devblogs.microsoft.com/foundry/foundry-local-ga/). Microsoft Foundry Blog, 9 April 2026.
3. Nick Brady. [What's new in Microsoft Foundry, May 2026](https://devblogs.microsoft.com/foundry/whats-new-in-microsoft-foundry-may-2026/). Microsoft Foundry Blog, 30 May 2026.
4. Windows Developer Blog. [Advancing Windows for AI development at Build 2025](https://blogs.windows.com/windowsdeveloper/2025/05/19/advancing-windows-for-ai-development-new-platform-capabilities-and-tools-introduced-at-build-2025/). Microsoft, 19 May 2025.
5. Microsoft. [Foundry Local Python SDK 2.5.0](https://pypi.org/project/foundry-local-sdk/2.5.0/). PyPI, 17 November 2026.
6. Microsoft. [Microsoft.AI.Foundry.Local 2.5.0, C# SDK](https://www.nuget.org/packages/Microsoft.AI.Foundry.Local/2.5.0). NuGet, 17 November 2026.
7. Microsoft. [Microsoft.AI.Foundry.Local.Runtime, native runtime and version history](https://www.nuget.org/packages/Microsoft.AI.Foundry.Local.Runtime). NuGet.
8. Microsoft. [Homebrew formula for Foundry Local CLI 0.14.0](https://github.com/microsoft/homebrew-foundrylocal/blob/7b52a23b7134c8d13327bee9953da3e9d1c22508/Formula/foundrylocal.rb). 12 November 2026.
9. Microsoft Learn. [Get started with Foundry Local on Windows](https://learn.microsoft.com/en-us/windows/ai/foundry-local/get-started).
10. Raji Rajagopalan. [Foundry Local comes to Android](https://devblogs.microsoft.com/foundry/foundry-local-comes-to-android/). Microsoft Foundry Blog, 20 November 2025.
11. Microsoft Learn. [Foundry Local architecture overview](https://learn.microsoft.com/en-us/azure/foundry-local/concepts/foundry-local-architecture).
12. Microsoft. [Foundry Local product overview and native interfaces](https://www.foundrylocal.ai/).
13. Microsoft Learn. [Foundry Local CLI reference](https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-cli).
14. OpenAI. [Whisper repository and license for code and weights](https://github.com/openai/whisper#license).
15. Microsoft Foundry Blog. [Bring Agentic Coding On-Device with Foundry Local](https://devblogs.microsoft.com/foundry/foundry-local-agentic-coding-qwen3-8-27b/). 5 November 2026.
16. Nick Brady. [What's new in Microsoft Foundry, September 2026](https://devblogs.microsoft.com/foundry/whats-new-in-microsoft-foundry-september-2026/). Microsoft Foundry Blog, 15 October 2026.
17. Microsoft Learn. [Compile Hugging Face models and run them on Foundry Local](https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-compile-hugging-face-models).
18. Microsoft Learn. [Foundry Local SDK reference, including native runtime targets](https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-sdk-current?pivots=programming-language-cpp).
19. Microsoft. [WinGet package manifest for Foundry Local CLI 0.14.0.0](https://github.com/microsoft/winget-pkgs/blob/master/manifests/m/Microsoft/FoundryLocal/0.14.0.0/Microsoft.FoundryLocal.locale.en-US.yaml).
20. Nick Brady. [What's new in Microsoft Foundry, October 2026](https://devblogs.microsoft.com/foundry/whats-new-in-microsoft-foundry-october-2026/). Microsoft Foundry Blog, 5 November 2026.
21. Microsoft. [JavaScript SDK 2.5.0 configuration declarations, including telemetry settings](https://unpkg.com/foundry-local-sdk@2.5.0/dist/configuration.d.ts). Published npm package.
22. Microsoft. [Foundry Local Rust SDK API reference](https://docs.rs/foundry-local-sdk/latest/foundry_local_sdk/). Docs.rs.
23. Microsoft Learn. [Foundry Local REST API reference](https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-rest).
24. Ollama. [Documentation and official client libraries](https://docs.ollama.com/).
25. LM Studio. [LM Studio documentation, supported runtimes and SDKs](https://lmstudio.ai/docs/app).
26. Ollama. [Importing a model](https://docs.ollama.com/import).
27. Ollama. [OpenAI compatibility](https://docs.ollama.com/api/openai-compatibility).
28. LM Studio. [OpenAI compatibility endpoints](https://lmstudio.ai/docs/developer/openai-compat).
29. Microsoft. [Phi-4-mini-instruct model card and license](https://huggingface.co/microsoft/Phi-4-mini-instruct). Hugging Face.
30. OpenAI. [Introducing gpt-oss](https://openai.com/index/introducing-gpt-oss/). 5 August 2025.
31. Microsoft Learn. [Best practices and troubleshooting guide for Foundry Local CLI](https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-best-practice).
32. Microsoft. [License of Microsoft.AI.Foundry.Local.Runtime 2.5.0](https://www.nuget.org/packages/Microsoft.AI.Foundry.Local.Runtime/2.5.0/License). NuGet.

