Strands.AgentCore
0.1.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Strands.AgentCore --version 0.1.0
NuGet\Install-Package Strands.AgentCore -Version 0.1.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="Strands.AgentCore" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Strands.AgentCore" Version="0.1.0" />
<PackageReference Include="Strands.AgentCore" />
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 Strands.AgentCore --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Strands.AgentCore, 0.1.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 Strands.AgentCore@0.1.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=Strands.AgentCore&version=0.1.0
#tool nuget:?package=Strands.AgentCore&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Strands.AgentCore
Deploy any Strands.NET agent to Amazon Bedrock AgentCore Runtime with one line. Optionally use AgentCore managed services — Memory, Browser, and Code Interpreter — as tools your agent can invoke.
dotnet add package Strands.AgentCore
Your agent code is unchanged
using Strands.AgentCore.Hosting;
using Strands.AgentCore.Extensions;
using Strands.Extensions.DI;
var builder = WebApplication.CreateBuilder(args);
// ── Agent configuration — identical whether running locally or on AgentCore Runtime ──
builder.Services
.AddBedrockModel("us-east-1")
.AddAgentCoreBrowser() // optional managed browser
.AddAgentCoreCodeInterpreter() // optional managed code execution
.AddAgentCoreSessionManager( // optional managed session storage
Environment.GetEnvironmentVariable("AGENTCORE_MEMORY_ID") ?? "")
.AddStrandsAgent("You are a helpful assistant.");
// ── AgentCore hosting — one line makes this deployable to AgentCore Runtime ──
var app = builder.Build();
app.MapAgentCoreEndpoints(); // POST /invocations + GET /health
app.UseAgentCorePort(8080); // AgentCore Runtime expects port 8080
app.Run();
Python equivalent: BedrockAgentCoreApp() + @app.entrypoint + app.run()
Test locally before deploying
dotnet run
# Non-streaming
curl -X POST http://localhost:8080/invocations \
-H "Content-Type: application/json" \
-d '{"prompt": "What is 42 multiplied by 1764?"}'
# Streaming
curl -X POST http://localhost:8080/invocations \
-H "Content-Type: application/json" \
-H "Accept: text/event-stream" \
-d '{"prompt": "Explain quantum computing in 3 sentences"}'
# Health check (required by AgentCore Runtime)
curl http://localhost:8080/health
What this package provides
| Component | What it does |
|---|---|
MapAgentCoreEndpoints() |
Registers POST /invocations + GET /health on your WebApplication |
UseAgentCorePort(8080) |
Binds to port 8080 — required by AgentCore Runtime |
AgentCoreSessionManager |
Persists conversation history to AgentCore Memory |
AgentCoreMemoryTool |
Agent-initiated explicit memory operations |
AgentCoreBrowserTool |
Managed browser sandbox for JS-rendered pages |
AgentCoreCodeInterpreterTool |
Managed code execution sandbox |
Additive and optional
This package adds zero changes to Strands.Core, Strands.Models.Bedrock, or any other package. An agent built with Strands.Core compiles and runs identically with or without Strands.AgentCore installed.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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.
-
net10.0
- AWSSDK.Core (>= 3.7.500.96)
- Strands.Core (>= 0.1.0)
- Strands.Tools (>= 0.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 0.1.4 | 59 | 5/9/2026 | |
| 0.1.2 | 47 | 5/7/2026 | |
| 0.1.1 | 45 | 5/7/2026 | |
| 0.1.0 | 48 | 5/7/2026 | |
| 0.1.0-preview.2 | 62 | 4/28/2026 | |
| 0.1.0-preview.1 | 58 | 4/28/2026 |