You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set up the required environment variables for Anthropic authentication:
38
+
39
+
```powershell
40
+
# Required for Anthropic API access
41
+
$env:ANTHROPIC_API_KEY="your-anthropic-api-key"
42
+
$env:ANTHROPIC_DEPLOYMENT_NAME="claude-haiku-4-5" # or your preferred model
43
+
```
44
+
45
+
You can get an API key from the [Anthropic Console](https://console.anthropic.com/).
46
+
47
+
### For Azure Foundry with API Key
48
+
49
+
```powershell
50
+
$env:ANTHROPIC_RESOURCE="your-foundry-resource-name" # Subdomain before .services.ai.azure.com
51
+
$env:ANTHROPIC_API_KEY="your-anthropic-api-key"
52
+
$env:ANTHROPIC_DEPLOYMENT_NAME="claude-haiku-4-5"
53
+
```
54
+
55
+
### For Azure Foundry with Azure CLI
56
+
57
+
```powershell
58
+
$env:ANTHROPIC_RESOURCE="your-foundry-resource-name" # Subdomain before .services.ai.azure.com
59
+
$env:ANTHROPIC_DEPLOYMENT_NAME="claude-haiku-4-5"
60
+
```
61
+
62
+
> [!NOTE]
63
+
> When using Azure Foundry with Azure CLI, make sure you're logged in with `az login` and have access to the Azure Foundry resource. For more information, see the [Azure CLI documentation](/cli/azure/authenticate-azure-cli-interactively).
64
+
65
+
## Creating an Anthropic Agent
66
+
67
+
### Basic Agent Creation (Anthropic Public API)
68
+
69
+
The simplest way to create an Anthropic agent using the public API:
0 commit comments