AgentCircuits.Providers.Grok 0.7.0

dotnet add package AgentCircuits.Providers.Grok --version 0.7.0
                    
NuGet\Install-Package AgentCircuits.Providers.Grok -Version 0.7.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AgentCircuits.Providers.Grok" Version="0.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AgentCircuits.Providers.Grok" Version="0.7.0" />
                    
Directory.Packages.props
<PackageReference Include="AgentCircuits.Providers.Grok" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AgentCircuits.Providers.Grok --version 0.7.0
                    
#r "nuget: AgentCircuits.Providers.Grok, 0.7.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AgentCircuits.Providers.Grok@0.7.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AgentCircuits.Providers.Grok&version=0.7.0
                    
Install as a Cake Addin
#tool nuget:?package=AgentCircuits.Providers.Grok&version=0.7.0
                    
Install as a Cake Tool

AgentCircuits.Providers.Grok

xAI Grok provider for AgentCircuits agent framework.

NuGet License: GPL v3

Installation

dotnet add package AgentCircuits.Providers.Grok

Usage

using AgentCircuits.Providers.Grok;

// Using the static factory (API key from XAI_API_KEY environment variable)
var model = Grok.LanguageModel("grok-3");
var response = await model.GenerateAsync(new LlmRequest
{
    Messages = [new Message { Role = "user", Content = [new TextContent { Text = "Hello!" }] }]
});

// With custom options
var provider = Grok.Create(new GrokProviderOptions
{
    ApiKey = "your-api-key",
    Region = "eu-west-1"  // Optional regional endpoint
});
var model = provider.CreateLanguageModel("grok-4");

Supported Models

  • grok-4, grok-4-fast
  • grok-3, grok-3-mini
  • All models with grok- prefix

Features

  • Streaming support
  • Tool calling
  • Multimodal content (images)
  • Regional endpoints
  • Reasoning models support

Configuration

Option Description Default
ApiKey xAI API key XAI_API_KEY env var
BaseUrl Custom API endpoint https://api.x.ai/v1
Region Regional endpoint (e.g., eu-west-1) None

See the main AgentCircuits repository for full documentation.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on AgentCircuits.Providers.Grok:

Package Downloads
AgentCircuits.Portal

Web-based management portal for AgentCircuits. Provides dashboard, agent configuration UI, session viewer, and interactive playground.

AgentCircuits.Server

Turnkey AgentCircuits server hosting Portal API, SignalR hubs, and UI endpoints.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.7.0 32 2/12/2026
0.6.1 49 2/12/2026
0.6.0 152 2/8/2026
0.5.8 138 2/7/2026
0.5.6 137 2/5/2026
0.5.5 123 2/5/2026
0.5.3 119 2/5/2026
0.5.2 123 2/5/2026
0.5.1 120 2/5/2026
0.5.0 122 2/3/2026
0.4.8 307 1/31/2026
0.4.7 83 1/30/2026
0.4.6 106 1/29/2026
0.4.5 86 1/29/2026
0.4.4 87 1/29/2026
0.4.3 91 1/27/2026
0.4.2 93 1/26/2026
0.4.0 100 1/24/2026
0.3.6 100 1/22/2026