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
<PackageReference Include="Soenneker.Cursor.CloudAgents.HttpClients" Version="11.0.203" />
<PackageVersion Include="Soenneker.Cursor.CloudAgents.HttpClients" Version="11.0.203" />
<PackageReference Include="Soenneker.Cursor.CloudAgents.HttpClients" />
paket add Soenneker.Cursor.CloudAgents.HttpClients --version 11.0.203
#r "nuget: Soenneker.Cursor.CloudAgents.HttpClients, 11.0.203"
#:package Soenneker.Cursor.CloudAgents.HttpClients@11.0.203
#addin nuget:?package=Soenneker.Cursor.CloudAgents.HttpClients&version=11.0.203
#tool nuget:?package=Soenneker.Cursor.CloudAgents.HttpClients&version=11.0.203
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.Configuration (>= 11.0.921)
- Soenneker.Utils.HttpClientCache (>= 11.0.2188)
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 |
Updated Multiple NuGet packages