bright-eve-38596
12/23/2025, 3:12 PM[12/23/25 23:08:09] ERROR litellm.APIConnectionError: 'content' retry_mixin.py:124
Traceback (most recent call last):
also tried export LLM_MODEL=bedrock/apac.anthropic.claude-sonnet-4-20250514-v1:0
[12/23/25 23:10:27] ERROR litellm.APIConnectionError: No module named 'boto3' retry_mixin.py:124
Traceback (most recent call last):bright-eve-38596
12/25/2025, 4:23 AMuv pip install boto3
export AWS_BEARER_TOKEN_BEDROCK=your_bedrock_api_keywooden-umbrella-84098
12/26/2025, 2:52 PMchilly-france-44439
12/26/2025, 3:56 PMboto3 as an include dependency if it is not too largewooden-umbrella-84098
12/26/2025, 5:05 PMbright-eve-38596
12/28/2025, 4:17 AMbright-eve-38596
12/28/2025, 4:25 AM# Install Openhands with boto3
uv tool install openhands --with boto3
# Then use LLM (Advanced), set the model, base url of bedrock and the bedrock api key.
/settings > LLM (Advanced)
model: bedrock/apac.anthropic.claude-sonnet-4-20250514-v1:0
custom url: <https://bedrock-runtime>.<region>.amazonaws.com
api key: bedrock api keybright-eve-38596
12/28/2025, 4:33 AMbright-eve-38596
12/28/2025, 4:39 AMboto3 is considered very large. Just a documentation on how to possibly set their own lib will do.chilly-france-44439
12/28/2025, 6:35 PMnutritious-balloon-65098
12/28/2025, 6:35 PMchilly-france-44439
12/28/2025, 6:35 PMI guess, openhands cli only support settings from json and not fetching from env var?and cc @quick-window-91705 for bedrock š
nutritious-balloon-65098
12/28/2025, 6:37 PMsdk/faq.mdx, following the existing pattern on the page.
Changes Made
Checklist:
⢠ā
Added new FAQ section "How do I use AWS Bedrock with the SDK?"
⢠ā
Followed existing FAQ pattern (bold answer + Accordion with details)
⢠ā
Included boto3 installation instructions (pip, uv, CLI tool)
⢠ā
Documented both authentication options (API key and AWS credentials)
⢠ā
Added model configuration examples with bedrock/ prefix
⢠ā
Included cross-region inference profile examples (US and APAC)
⢠ā
Added CLI configuration instructions
⢠ā
Linked to LiteLLM Bedrock documentation for additional details
Pull Request
Created draft PR: https://github.com/OpenHands/docs/pull/216
The documentation addresses the community feedback from the Slack conversation, explaining:
1. The need to install boto3 separately
2. How to set AWS_BEARER_TOKEN_BEDROCK for API key authentication
3. The correct model naming format with bedrock/ prefix
4. Cross-region inference profile usage
Would you like me to make any changes to the content or mark the PR as ready for review?
<sub>View full conversation</sub>chilly-france-44439
12/28/2025, 6:44 PMnutritious-balloon-65098
12/28/2025, 6:44 PMnutritious-balloon-65098
12/28/2025, 6:45 PMsdk/faq.mdx, following the existing pattern.
Checklist
⢠ā
Added AWS Bedrock FAQ section following the existing pattern (H2 heading, bold answer, Accordion with details)
⢠ā
Included boto3 installation instructions (pip, uv, and CLI tool)
⢠ā
Documented both authentication options (API key via AWS_BEARER_TOKEN_BEDROCK and AWS credentials)
⢠ā
Showed model configuration with bedrock/ prefix
⢠ā
Included cross-region inference profile examples (US and APAC)
⢠ā
Removed CLI configuration section as requested
⢠ā
Added link to LiteLLM Bedrock documentation for additional details
Changes
The final diff adds 72 lines to sdk/faq.mdx with a new FAQ section covering:
1. boto3 installation - Required dependency for Bedrock
2. Authentication - Two options (API key or AWS credentials)
3. Model configuration - Using bedrock/ prefix with examples
Pull Request
The changes have been pushed and a draft PR is open: https://github.com/OpenHands/docs/pull/216
Would you like me to mark the PR as ready for review or make any other changes?
<sub>View full conversation</sub>millions-manchester-36410
02/23/2026, 5:16 PM