hardkoded/vercel-ai-sdk-dotnet/vercel-ai-dotnet
- community
Checking that the SKILL.md file is still in the repository.
Use the community .NET port of the Vercel AI SDK. Covers GenerateTextAsync, StreamTextAsync, tools, structured output, providers, and the ASP.NET Core UI message stream.
Install
npx vskill@latest install hardkoded/vercel-ai-sdk-dotnet/vercel-ai-dotnetSKILL.md
Vercel AI SDK for .NET
Unofficial port of vercel/ai. Apache-2.0. Not an official Vercel product. Parity target is Language Model specification V4.
Map JavaScript names to C#
generateText→GenerateTextAsyncstreamText→StreamTextAsync(returnsStreamTextResult)AbortSignal→CancellationTokentool()→Tool.Function(name, description, jsonSchema, execute)stopWhen: isStepCount(n)→StopWhen.IsStepCount(n)"openai/gpt-4.1-mini"→GenerateTextOptions.ModelId(Gateway) or a provider’sLanguageModel
Generate text
result.Text is the last step. result.Output is the parsed JSON object when Output is set. The default stop condition is one model step; tools from that step still execute.
Stream
StreamTextResult.TextStream yields text deltas. Stream yields every part. In ASP.NET Core, result.ToUIMessageStreamResult() writes text/event-stream for a JavaScript useChat client. Pass keepAliveMs to write : stream-open immediately and : keep-alive comments while the next part is still pending. Do not add a React or Razor chat component for that protocol.
Providers
Each package exposes CreateXxx() / AddXxx() and reads the same environment variable as the JavaScript provider. Gateway uses AI_GATEWAY_API_KEY and https://ai-gateway.vercel.sh/v4/ai. OpenAI-compatible providers share Vercel.AI.OpenAICompatible.
Register the client with services.AddAiSdk(). Add services.AddAiSdkOpenTelemetry() to record spans on the Vercel.AI activity source.
Tests
Mock HttpMessageHandler. Use TestLanguageModel from Vercel.AI.Testing when the test does not care about HTTP. Skip live tests unless the provider key is set.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/vercel-ai-dotnet/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hardkoded/vercel-ai-sdk-dotnet/vercel-ai-dotnet)