Skip to main content
skill CX Codex

microsoft-foundry-local — skill for Claude Code

Skill for Claude Code, Codex, Cursor and other IDEs with expert guidance on Microsoft Foundry Local development. Covers CLI setup, Hugging Face model compilation via Olive, embeddings, chat, audio transcription, and function calling.

CC-BY-4.0 214 installs ★ 818 updated 2026-11-09

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add MicrosoftDocs/Agent-Skills --skill microsoft-foundry-local -a claude-code
Open on GitHub

What microsoft-foundry-local does

Runs across all listed platforms and provides reference on best practices, CLI troubleshooting, SDK choice (legacy vs current), and migration paths. Covers Foundry Local configuration: CLI operation, SDK setup, compiling HF models with Olive. Requires network access—fetches documentation via mcp_microsoftdocs:microsoft_docs_fetch or falls back to fetch_webpage.

Includes integration patterns: embeddings and chat APIs, audio transcription (live and file), OpenAI-compatible clients, LangChain, tool calling, REST endpoints. Organized by topic with a reference index linking to learn.microsoft.com documentation.

What it helps with

  • compile Hugging Face models for local deployment with Olive
  • integrate Foundry Local with LangChain, OpenAI SDK or REST endpoints
  • build embeddings, chat, audio transcription and tool-calling features
  • migrate from legacy SDK to the current version
  • resolve CLI configuration and startup issues

Example prompts for the agent

  • Help me compile a Hugging Face model with Olive for Foundry Local
  • Show a Foundry Local transcription example with live microphone input
  • Build a LangChain app that uses Foundry Local with tool calling

How to install microsoft-foundry-local

1Skills CLI (Vercel)

npx skills add MicrosoftDocs/Agent-Skills --skill microsoft-foundry-local -a claude-code

2Manually: put the files in place

~/.claude/skills/microsoft-foundry-local/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/microsoft-foundry-local/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about microsoft-foundry-local

How do I install microsoft-foundry-local in Claude Code?

Run npx skills add MicrosoftDocs/Agent-Skills --skill microsoft-foundry-local -a claude-code in your terminal, then find the skill at ~/.claude/skills/microsoft-foundry-local/SKILL.md. For other IDEs, replace the flag: -a codex for Codex, -a cursor for Cursor, -a gemini-cli for Gemini CLI, -a opencode for OpenCode.

What does microsoft-foundry-local do?

Provides expert knowledge for Azure AI Foundry Local development: CLI and SDK configuration, model compilation, framework integration, code samples for embeddings, chat, audio, and tool calling.

Should I use the legacy or current Foundry Local SDK?

The skill explains the differences between legacy and current SDKs and guides you through migrating existing applications to the latest version.

Source text

SKILL.md · CC-BY-4.0
---
name: microsoft-foundry-local
description: Expert knowledge for Microsoft Foundry Local (aka Azure AI Foundry Local) development including best practices, decision making, configuration, and integrations & coding patterns. Use when compiling HF models with Olive, using CLI/SDK, embeddings/chat, audio, tool calls, or REST apps, and other Microsoft Foundry Local related development tasks. Not for Azure Local (use azure-local), Microsoft Foundry (use microsoft-foundry), Microsoft Foundry Classic (use microsoft-foundry-classic).
compatibility: Requires network access. Uses mcp_microsoftdocs:microsoft_docs_fetch or fetch_webpage to retrieve documentation.
metadata:
  generated_at: "2026-11-08"
  generator: "docs2skills/1.0.0"
---
# Microsoft Foundry Local Skill

This skill provides expert guidance for Microsoft Foundry Local. Covers best practices, decision making, configuration, and integrations & coding patterns. It combines local quick-reference content with remote documentation fetching capabilities.

## How to Use This Skill

> **IMPORTANT for Agent**: Use the **Category Index** below to locate relevant sections. For categories with line ranges (e.g., `L35-L120`), use `read_file` with the specified lines. For categories with file links (e.g., `[security.md](security.md)`), use `read_file` on the linked reference file

> **IMPORTANT for Agent**: If `metadata.generated_at` is more than 3 months old, suggest the user pull the latest version from the repository. If `mcp_microsoftdocs` tools are not available, suggest the user install it: [Installation Guide](https://github.com/MicrosoftDocs/mcp/blob/main/README.md)

This skill requires **network access** to fetch documentation content:
- **Preferred**: Use `mcp_microsoftdocs:microsoft_docs_fetch` with query string `from=learn-agent-skill`. Returns Markdown.
- **Fallback**: Use `fetch_webpage` with query string `from=learn-agent-skill&accept=text/markdown`. Returns Markdown.

## Category Index

| Category | Lines | Description |
|----------|-------|-------------|
| Best Practices | L32-L36 | Troubleshooting Foundry Local CLI issues, applying recommended workflows, and resolving common setup, auth, build, and deployment problems. |
| Decision Making | L37-L42 | Guidance on choosing between legacy vs current Foundry Local SDK and step-by-step instructions for migrating existing apps to the current SDK. |
| Configuration | L43-L50 | Configuring Foundry Local tools: compiling Hugging Face models with Olive, using and tuning the CLI, and setting up SDK configuration options and files. |
| Integrations & Coding Patterns | L51-L61 | SDK and API patterns for using Foundry Local: embeddings, chat completions, audio transcription (live/file), OpenAI-style clients, LangChain apps, tool calling, and REST integration. |

### Best Practices
| Topic | URL |
|-------|-----|
| Apply best practices and troubleshoot Foundry Local CLI | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-best-practice |

### Decision Making
| Topic | URL |
|-------|-----|
| Decide between legacy and current Foundry Local SDK | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-sdk-legacy |
| Migrate applications to the current Foundry Local SDK | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-sdk-migration |

### Configuration
| Topic | URL |
|-------|-----|
| Compile Hugging Face models for Foundry Local with Olive | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-compile-hugging-face-models |
| Operate and configure the Foundry Local CLI | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-use-foundry-local-cli |
| Reference commands and options for Foundry Local CLI | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-cli |
| Reference configuration for Foundry Local SDKs | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-sdk-current |

### Integrations & Coding Patterns
| Topic | URL |
|-------|-----|
| Generate text embeddings with Foundry Local SDK | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-generate-embeddings |
| Integrate Foundry Local with OpenAI-style inference SDKs | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-integrate-with-inference-sdks |
| Live microphone transcription with Foundry Local | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-live-transcribe-audio |
| Transcribe audio files using Foundry Local SDK | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-transcribe-audio |
| Build a LangChain translation app with Foundry Local | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-use-langchain-with-foundry-local |
| Use Foundry Local native chat completions API | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-use-native-chat-completions |
| Implement tool calling with Foundry Local models | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-use-tool-calling-with-foundry-local |
| Foundry Local REST API reference for local inference | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-rest |

© MicrosoftDocs · CC-BY-4.0 · MicrosoftDocs/Agent-Skills

Similar skills

All skills for AI and ML →

From the same set144

The whole set →
azure-document-intelligence The azure-document-intelligence skill guides Azure AI Document Intelligence development, from model selection and API troubleshooting to v4.0 migration. It fetches reference material over the network. CX Codex +1 223installs azure-cost-management azure-cost-management — a skill for Claude Code and Cursor that guides Azure billing API integration, budget alerts, and cost exports. Resolves billing discrepancies and reservation issues. CX Codex +1 222installs azure-cache-redis The azure-cache-redis skill guides Azure Cache for Redis work, from connection failures and tier choices to security, configuration, and deployment. CX Codex +1 218installs azure-virtual-network A skill bundling Microsoft documentation on Azure Virtual Network design, configuration, and operations. Covers subnets, routing, NSGs, peering, and network security across best practices and deployment patterns. CX Codex +1 217installs azure-app-configuration This Claude Code skill guides development with Azure App Configuration. It covers tasks involving feature flags, configuration snapshots, and dynamic refresh. CX Codex +1 214installs azure-advisor Reference guide for Azure Advisor automation, alert configuration, RBAC, and Resource Graph queries. Useful when optimizing Azure cloud setups. CX Codex +1 213installs azure-dns Guides Azure DNS work and automation. It covers zones, records, Private DNS, Resolver setup, migrations, and DNSSEC. CX Codex +1 212installs azure-static-web-apps Knowledge skill for Azure Static Web Apps covering deployment, quotas, routing, security, and backend APIs. CX Codex +1 206installs

Project sponsors

Companies that keep this analytics open