Foundry Agent Management
Provision, update, and delete Azure AI Foundry Hosted Agents from the CLI or Python SDK. Prompt, model, and config tracked in foundry-kit.yaml.
A Python framework for building, managing, and serving Azure AI Foundry agents. Wire Foundry Hosted Agents to Azure AI Search vector indexes and ship to production via Azure Functions — all from a single CLI and Python SDK.
The Problem
Azure AI Foundry, Azure AI Search, and Azure Functions are powerful individually — but connecting them for production agent deployments means juggling credentials, index schemas, async clients, and deployment configs. foundry-kit handles all of that.
Core Capabilities
Provision, update, and delete Azure AI Foundry Hosted Agents from the CLI or Python SDK. Prompt, model, and config tracked in foundry-kit.yaml.
Create HNSW indexes in Azure AI Search, embed and upsert documents, and run vector similarity queries — all without touching the Search SDK directly.
FoundryClient and SearchManager expose clean async interfaces. Bring your own FastAPI routes or use the built-in app factory to get a chat endpoint in minutes.
One command packages and deploys your agent as an Azure Function. No manual function.json or host.json authoring — foundry-kit generates the deployment artifacts.
Python SDK
FoundryClient and SearchManagerThin, typed wrappers around the Azure SDKs. Chat with a Foundry agent, query a vector index, and assemble a FastAPI app — all with three imports.
Async-first
Built on asyncio — no blocking calls in your event loop
Config-driven
Endpoints and deployment names read from foundry-kit.yaml
DefaultAzureCredential
Works with az login locally, service principals in CI
Quickstart
CLI Reference
foundry-kit config init
Scaffold foundry-kit.yaml interactively
foundry-kit agent init <name>
Provision a Foundry Hosted Agent
foundry-kit agent update <name>
Update agent prompt or model
foundry-kit agent list
List all registered agents
foundry-kit agent show <name>
Show agent details and status
foundry-kit agent delete <name>
Delete agent from Foundry and config
foundry-kit index create <name>
Create an Azure AI Search HNSW index
foundry-kit index upsert
Embed and upload documents to an index
foundry-kit index query
Run a vector similarity query
foundry-kit serve
Start local FastAPI dev server at :8000
foundry-kit deploy
Deploy agents to Azure Functions
Authentication
foundry-kit uses Azure's credential chain. Set environment variables for CI/CD or run az login locally — no secrets ever touch your source.
Service Principal
CI/CD and production deployments
AZURE_CLIENT_IDAZURE_CLIENT_SECRETAZURE_TENANT_IDDeveloper Workstation
Local development — no secrets needed
az loginPrerequisites
Star the repo, open an issue, or jump straight into the enterprise platform for MCP integrations, multi-tenant isolation, and production support.