Soenneker.Cursor.CloudAgents.HttpClients 11.0.203

Prefix Reserved
dotnet add package Soenneker.Cursor.CloudAgents.HttpClients --version 11.0.203
                    
NuGet\Install-Package Soenneker.Cursor.CloudAgents.HttpClients -Version 11.0.203
                    
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="Soenneker.Cursor.CloudAgents.HttpClients" Version="11.0.203" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Cursor.CloudAgents.HttpClients" Version="11.0.203" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Cursor.CloudAgents.HttpClients" />
                    
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 Soenneker.Cursor.CloudAgents.HttpClients --version 11.0.203
                    
#r "nuget: Soenneker.Cursor.CloudAgents.HttpClients, 11.0.203"
                    
#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 Soenneker.Cursor.CloudAgents.HttpClients@11.0.203
                    
#: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=Soenneker.Cursor.CloudAgents.HttpClients&version=11.0.203
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Cursor.CloudAgents.HttpClients&version=11.0.203
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Cursor.CloudAgents.HttpClients

Provides a cached HttpClient configured for Cursor's Cloud Agents API with bearer authentication.

Installation

dotnet add package Soenneker.Cursor.CloudAgents.HttpClients

Configuration

{
  "Cursor": {
    "ApiKey": "your-cursor-api-key"
  }
}

The default base address is https://api.cursor.com/, and requests send Authorization: Bearer <ApiKey>. Override these with CloudAgents:ClientBaseUrl, CloudAgents:AuthHeaderName, and CloudAgents:AuthHeaderValueTemplate; the value template uses {token} as the API-key placeholder.

Registration and usage

using Soenneker.Cursor.CloudAgents.HttpClients.Abstract;
using Soenneker.Cursor.CloudAgents.HttpClients.Registrars;

services.AddCursorCloudAgentsOpenApiHttpClientAsSingleton();

public sealed class CursorAccountReader(ICursorCloudAgentsOpenApiHttpClient clients)
{
    public async Task<HttpResponseMessage> Get(CancellationToken cancellationToken)
    {
        HttpClient client = await clients.Get(cancellationToken);
        return await client.GetAsync("v1/me", cancellationToken);
    }
}

Get returns the same cached client for the provider's lifetime. The provider owns it, so callers should dispose response messages but not the returned HttpClient. Prefer the singleton registration for normal application use; the scoped registration creates a separately owned cache entry for each scope.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Cursor.CloudAgents.HttpClients:

Package Downloads
Soenneker.Cursor.CloudAgents.OpenApiClientUtil

Provides a cached Cursor Cloud Agents client backed by the configured Cursor HttpClient.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.203 66 12/3/2026
11.0.202 60 12/3/2026
11.0.201 62 12/3/2026
11.0.200 64 12/3/2026
11.0.199 63 12/3/2026
11.0.198 63 12/2/2026
11.0.197 59 12/2/2026
11.0.196 60 12/2/2026
11.0.194 96 12/2/2026
11.0.193 90 12/2/2026
11.0.192 87 12/2/2026
11.0.191 101 12/1/2026
11.0.190 98 12/1/2026
11.0.189 80 12/1/2026
11.0.188 106 12/1/2026
11.0.187 109 12/1/2026
11.0.186 103 11/30/2026
11.0.185 127 11/30/2026
11.0.184 111 11/30/2026
11.0.183 98 11/29/2026
Loading failed

Updated Multiple NuGet packages