azure-ai-openai-dotnet

azure-ai-openai-dotnet is a skill for Claude Code from sickn33/agentic-awesome-skills. It costs 43 tokens per session (3,156 once invoked), scanned A, original, MIT.

A .NET client library for calling Azure OpenAI and compatible OpenAI services from C# applications. It supports chat, text embeddings, image generation, audio transcription, and assistants through separate clients.

In plain words
What is it for?
Use it to add AI chat, create embeddings for search, generate images, transcribe audio, or work with assistants in C# applications.
Why use it?
It removes the need to build low-level service requests and authentication handling for these Azure-hosted AI features. It also provides a common way to configure Azure deployments and credentials in a .NET project.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agentic-awesome-skills plugin — 197 skills, 1 plugin shipped together

Good fit Use it to add AI chat, create embeddings for search, generate images, transcribe audio, or work with assistants in C# applications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sickn33/agentic-awesome-skills/azure-ai-openai-dotnet
About the project

AAS Core is a local control plane for coding agents that lets them search a large catalogue of skills, choose a stack, validate it, and create a reproducible plan. It is used to assemble and review agent workflows through its CLI, local MCP server, catalogue, plugins, and Workbench. The catalogue add-ons provide the skills, plugins, bundles, and workflows that AAS Core helps agents select and validate.

sickn33/agentic-awesome-skills · 50,561 stars · on GitHub · aaskills.tech

Install

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.

Any agent
npx skills add sickn33/agentic-awesome-skills --skill azure-ai-openai-dotnet
Clone the repo
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills

Made for: Claude Code.

Or install agentic-awesome-skills, the plugin that ships this one along with the rest of its 197 skills, 1 plugin.

Wrote 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.

agentmods badge for azure-ai-openai-dotnet

README.md
[![agentmods](https://agentmods.dev/badge/skills/sickn33/agentic-awesome-skills/azure-ai-openai-dotnet/github.svg)](https://agentmods.dev/skills/sickn33/agentic-awesome-skills/azure-ai-openai-dotnet)
Your own site
<a href="https://agentmods.dev/skills/sickn33/agentic-awesome-skills/azure-ai-openai-dotnet"><img src="https://agentmods.dev/badge/skills/sickn33/agentic-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.

agentmods 80×15 button for azure-ai-openai-dotnet

Your own site · 80×15
<a href="https://agentmods.dev/skills/sickn33/agentic-awesome-skills/azure-ai-openai-dotnet"><img src="https://agentmods.dev/badge/skills/sickn33/agentic-awesome-skills/azure-ai-openai-dotnet.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,156 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.03156
Opus 5.5 $0.00017 $0.01262
Sonnet 5.5 $0.00009 $0.00631
Haiku 4.5 $0.00004 $0.00316

Measured 18d ago against content hash 374f53890e45, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 18d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/aasb-aas-devops-cloud/skills/azure-ai-openai-dotnet/SKILL.md · 468 lines

How it starts

The opening of the file, as written. The whole thing — 468 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

Historical example baseline: 2.1.0; verify and pin compatible Azure.AI.OpenAI/OpenAI versions. Newer v1 API examples below may require newer packages.

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=<deployment-name>    # Azure deployment, not necessarily the model ID

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")
    });

Read the full file on GitHub · 468 lines

Changes

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.

  1. 18d ago First seen · 468 lines · 43 tokens per session scan A 374f53890e45

Subscribe to this mod's changes

azure-ai-openai-dotnet is a skill published in the GitHub repository sickn33/agentic-awesome-skills (50,561 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 3,156 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.

Related

azure-ai-openai-dotnet compared with skills from other repositories

azure-ai-openai-dotnet next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
azure-ai-openai-dotnetsickn33/agentic-awesome-skillsSkill51ktodayMITA43Claude Code
few-shot-architectAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA28Claude Code, Codex
llm-prompt-masterAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA30Claude Code, Codex
responsible-aiAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA27Claude Code, Codex
prompt-regression-gatealivirgo/Major-AI-SkillsSkill6yesterdayMITA53Claude Code
compressed-system-promptsalivirgo/Major-AI-SkillsSkill6yesterdayMITA23Claude Code
microsoft-extensions-aihiadamhere/skillsSkill22mo agoMITA125Claude Code