From 776265f168f723def182d25b8be905bf8a13a732 Mon Sep 17 00:00:00 2001 From: moritalous Date: Thu, 15 Jan 2026 02:23:28 +0000 Subject: [PATCH 1/2] fix(deps): add CRT support to boto3 and botocore for aws login Enable CRT (Common Runtime) support in boto3 and botocore to support the new `aws login` command for authentication. This provides browser-based credential generation with short-lived temporary credentials, improving security by reducing the need for long-lived programmatic access keys. References: - https://aws.amazon.com/blogs/security/simplified-developer-access-to-aws-with-aws-login/ - https://aws.amazon.com/about-aws/whats-new/2025/11/console-credentials-aws-cli-sdk-authentication/ --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 62e0e04b3..56a2b02b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,8 +27,8 @@ classifiers = [ "Topic :: Software Development :: Libraries :: Python Modules", ] dependencies = [ - "boto3>=1.26.0,<2.0.0", - "botocore>=1.29.0,<2.0.0", + "boto3[crt]>=1.26.0,<2.0.0", + "botocore[crt]>=1.29.0,<2.0.0", "docstring_parser>=0.15,<1.0", "jsonschema>=4.0.0,<5.0.0", "mcp>=1.11.0,<2.0.0", From 49ba29d8abf359c7cbe3a5bbbfaabf24e31989eb Mon Sep 17 00:00:00 2001 From: moritalous Date: Thu, 15 Jan 2026 07:09:02 +0000 Subject: [PATCH 2/2] refactor(deps): make CRT optional for lighter base installations Move boto3 and botocore CRT variants to optional [crt] dependency group. Allows users to opt-in to enhanced performance with: pip install strands-agent[crt] --- pyproject.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 56a2b02b5..44f607fe6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,8 +27,8 @@ classifiers = [ "Topic :: Software Development :: Libraries :: Python Modules", ] dependencies = [ - "boto3[crt]>=1.26.0,<2.0.0", - "botocore[crt]>=1.29.0,<2.0.0", + "boto3>=1.26.0,<2.0.0", + "botocore>=1.29.0,<2.0.0", "docstring_parser>=0.15,<1.0", "jsonschema>=4.0.0,<5.0.0", "mcp>=1.11.0,<2.0.0", @@ -43,6 +43,7 @@ dependencies = [ [project.optional-dependencies] anthropic = ["anthropic>=0.21.0,<1.0.0"] +crt = ["boto3[crt]>=1.26.0,<2.0.0", "botocore[crt]>=1.29.0,<2.0.0"] gemini = ["google-genai>=1.32.0,<2.0.0"] litellm = ["litellm>=1.75.9,<2.0.0", "openai>=1.68.0,<1.110.0"] llamaapi = ["llama-api-client>=0.1.0,<1.0.0"]