Start with Azure AI Foundry
FYI Microsoft AI Foundry (also referred to as Azure AI Foundry) supports both “chat completions” and “responses” protocols, so use whichever suits your needs best.
If you have an Azure AI Foundry project and API key, create a file enkaidu.yaml and copy in the following configuration, then run enkaidu from the command line in the same folder as the config file.
session:
model: az_gpt5_6luna
auto_load:
toolsets:
- DateAndTime
- FileManagement
- TextEditing
llms:
azure-ai:
provider: azure_foundry
env:
AZURE_FOUNDRY_ENDPOINT: $AZURE_FOUNDRY_ENDPOINT
models:
- name: az_gpt5_6luna
model: gpt-5.6-lunaIf you’re using a different model, change the values pointed to by the name: / model: pair (the name is what you reference in session: model:, the model is the name as defined by your Foundry project).
Environment variables
To use an Azure AI Foundry model, you will need to set the following environment variables before running Enkaidu.
| Env. variable | Need | Description |
|---|---|---|
AZURE_FOUNDRY_API_KEY |
Required | The API key for your Foundry project |
AZURE_FOUNDRY_ENDPOINT |
Required | The bare endpoint URI for your project, e.g. https://myproject.services.ai.azure.com. Just the endpoint, no paths |
AZURE_FOUNDRY_ENDPOINTshould be the project’s bare base URI only (no version or chat path) — for examplehttps://myproject.services.ai.azure.com, not a URL with a trailing path.
Responses protocol Early Access in 0.9.17
You can also drive Azure AI Foundry through the OpenAI “Responses” protocol by using the azure_foundry:responses provider variant instead of azure_foundry:
llms:
azure-ai:
provider: azure_foundry:responses
#
# ... the rest same as above
#The plain azure_foundry provider keeps using the “Chat Completions” protocol. The same AZURE_FOUNDRY_API_KEY and AZURE_FOUNDRY_ENDPOINT environment variables apply. See LLM Providers for details.