Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add benjaminasterA/antigravity-awesome-skills --skill azure-ai-openai-dotnetgit clone --depth 1 https://github.com/benjaminasterA/antigravity-awesome-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/benjaminastera/antigravity-awesome-skills/azure-ai-openai-dotnet)<a href="https://agentmods.dev/skills/benjaminastera/antigravity-awesome-skills/azure-ai-openai-dotnet"><img src="https://agentmods.dev/badge/skills/benjaminastera/antigravity-awesome-skills/azure-ai-openai-dotnet/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/benjaminastera/antigravity-awesome-skills/azure-ai-openai-dotnet"><img src="https://agentmods.dev/badge/skills/benjaminastera/antigravity-awesome-skills/azure-ai-openai-dotnet.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02973 |
| Opus 5.5 | $0.00000 | $0.01189 |
| Sonnet 5.5 | $0.00000 | $0.00595 |
| Haiku 4.5 | $0.00000 | $0.00297 |
Grade A, and why
azure-ai-openai-dotnet scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
89% identical to azure-ai-openai-dotnet — 31 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 461 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Azure.AI.OpenAI (.NET)
Client library for Azure OpenAI Service providing access to OpenAI models including GPT-4, GPT-4o, embeddings, DALL-E, and Whisper.
Installation
dotnet add package Azure.AI.OpenAI
# For OpenAI (non-Azure) compatibility
dotnet add package OpenAI
Current Version: 2.1.0 (stable)
Environment Variables
AZURE_OPENAI_ENDPOINT=https://<resource-name>.openai.azure.com
AZURE_OPENAI_API_KEY=<api-key> # For key-based auth
AZURE_OPENAI_DEPLOYMENT_NAME=gpt-4o-mini # Your deployment name
Client Hierarchy
AzureOpenAIClient (top-level)
├── GetChatClient(deploymentName) → ChatClient
├── GetEmbeddingClient(deploymentName) → EmbeddingClient
├── GetImageClient(deploymentName) → ImageClient
├── GetAudioClient(deploymentName) → AudioClient
└── GetAssistantClient() → AssistantClient
Authentication
API Key Authentication
using Azure;
using Azure.AI.OpenAI;
AzureOpenAIClient client = new(
new Uri(Environment.GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT")!),
new AzureKeyCredential(Environment.GetEnvironmentVariable("AZURE_OPENAI_API_KEY")!));
Microsoft Entra ID (Recommended for Production)
using Azure.Identity;
using Azure.AI.OpenAI;
AzureOpenAIClient client = new(
new Uri(Environment.GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT")!),
new DefaultAzureCredential());
Using OpenAI SDK Directly with Azure
using Azure.Identity;
using OpenAI;
using OpenAI.Chat;
using System.ClientModel.Primitives;
#pragma warning disable OPENAI001
BearerTokenPolicy tokenPolicy = new(
new DefaultAzureCredential(),
"https://cognitiveservices.azure.com/.default");
ChatClient client = new(
model: "gpt-4o-mini",
authenticationPolicy: tokenPolicy,
options: new OpenAIClientOptions()
{
Endpoint = new Uri("https://YOUR-RESOURCE.openai.azure.com/openai/v1")
});
Chat Completions
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 461 lines · 0 tokens per session scan A 62c4f3b24cf5
azure-ai-openai-dotnet is a skill published in the GitHub repository benjaminasterA/antigravity-awesome-skills (527 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,973 tokens. A static security scan graded it A with 0 findings. It is 89% identical to azure-ai-openai-dotnet, differing in 31 lines, and is treated as a copy.
azure-ai-openai-dotnet compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| azure-ai-openai-dotnetbenjaminasterA/antigravity-awesome-skills | Skill | 527 | yesterday | MIT | A | 0 | Claude Code, Codex |
| azure-ai-openai-dotnetsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 43 | Claude Code |
| azure-ai-openai-dotnetmicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 92 | Claude Code |
| technology-selectiondotnet/skills | Skill | 6.4k | today | MIT | A | 193 | Claude Code |
| semantic-kernelmanagedcode/dotnet-skills | Skill | 530 | today | MIT | A | 116 | Claude Code, Codex |
| tree-sitter-language-pack-chunking-for-llmsxberg-io/tree-sitter-language-pack | Skill | 490 | today | MIT | A | 52 | Claude Code |
| lightcadznlgis/opengis-skills | Skill | 88 | 2d ago | MIT | A | 123 | Claude Code, Codex |