Skip to content

Configuration File Reference

Complete reference for the config.json file.

Full Schema

json
{
  "defaultProvider": "azure-foundry",
  "providers": {
    "azureFoundry": {
      "endpoint": "https://YOUR-RESOURCE.services.ai.azure.com",
      "apiKey": "your-api-key",
      "authMode": "apiKey",
      "models": [{ "id": "gpt-4o", "description": "GPT-4o" }],
      "chatCompletionPath": "/chat/completions",
      "apiVersion": "2024-10-21"
    },
    "azureAgents": {
      "endpoint": "https://RESOURCE.services.ai.azure.com/api/projects/PROJECT",
      "agentId": "my-agent-id",
      "apiKey": "optional-api-key",
      "apiVersion": "2025-05-15-preview"
    },
    "azureAnthropic": {
      "endpoint": "https://RESOURCE.openai.azure.com/anthropic",
      "apiKey": "your-api-key",
      "models": [{ "id": "claude-opus-4-6", "description": "Claude Opus 4-6" }]
    },
    "azureResponses": {
      "endpoint": "https://RESOURCE.openai.azure.com",
      "apiKey": "your-api-key",
      "models": [{ "id": "gpt-5.2-codex", "description": "GPT-5.2 Codex" }]
    }
  },
  "telemetry": false
}

Root Fields

defaultProvider

  • Type: string
  • Default: "azure-foundry"
  • Values: "azure-foundry", "azure-agents", "azure-anthropic", "azure-responses"

The provider used when --provider is not specified on the command line.

telemetry

  • Type: boolean
  • Default: false

Telemetry opt-in switch. No telemetry is currently implemented — this is a placeholder for future use.

Azure Foundry Provider

Path: providers.azureFoundry

For standard Azure OpenAI chat completions API.

FieldTypeRequiredDefaultDescription
endpointstring (URL)YesAzure resource URL
apiKeystringNoAPI key for authentication
authModeenumNo"apiKey""apiKey", "azureCli", "managedIdentity"
modelsarrayNo[]Available models
chatCompletionPathstringNo"/chat/completions"API path suffix
apiVersionstringNo"2024-08-01-preview"API version parameter

URL Construction

{endpoint}/openai/deployments/{model}{chatCompletionPath}?api-version={apiVersion}

Azure Agents Provider

Path: providers.azureAgents

For Azure AI Foundry Agent Service (threads/runs API).

FieldTypeRequiredDefaultDescription
endpointstring (URL)YesAI Foundry project endpoint
agentIdstringYesAgent/assistant ID
apiKeystringNoAPI key (or uses Azure CLI auth)
apiVersionstringNo"2025-05-15-preview"API version parameter

Azure Anthropic Provider

Path: providers.azureAnthropic

For Anthropic models (Claude) deployed on Azure AI Foundry. Uses the Anthropic Messages API through Azure's /anthropic gateway.

FieldTypeRequiredDefaultDescription
endpointstring (URL)Yeshttps://RESOURCE.openai.azure.com/anthropic
apiKeystringYesAzure API key
apiVersionstringNo"2023-06-01"Anthropic API version header
modelsarrayNo[]Available models

URL Construction

{endpoint}/v1/messages

Uses the x-api-key header for authentication and anthropic-version header for API versioning.

Azure Responses Provider

Path: providers.azureResponses

For models that use the OpenAI Responses API instead of Chat Completions (e.g. gpt-5.2-codex, codex-mini).

FieldTypeRequiredDefaultDescription
endpointstring (URL)Yeshttps://RESOURCE.openai.azure.com
apiKeystringYesAzure API key
modelsarrayNo[]Available models

URL Construction

{endpoint}/openai/v1/responses

Uses the api-key header for authentication. No API version parameter is needed.

Validation

The config file is validated against a Zod schema at load time. Invalid values produce clear error messages:

bash
caretforge doctor
# ✗  Config valid: Invalid configuration: ...

Released under the MIT License.