[PR #830] feat: Add AWS Bedrock support #858

Open
opened 2026-02-16 08:16:00 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/open-swe/pull/830
Author: @HoussamOtarid
Created: 9/8/2025
Status: 🔄 Open

Base: mainHead: add-aws-bedrock-support


📝 Commits (2)

  • dff5bb4 feat: add AWS Bedrock support to open-swe
  • 1ea6588 feat: add AWS Bedrock support to web app

📊 Changes

9 files changed (+1266 additions, -61 deletions)

View changed files

📝 apps/open-swe/.env.example (+3 -0)
📝 apps/open-swe/package.json (+1 -0)
📝 apps/open-swe/src/graphs/programmer/nodes/generate-message/index.ts (+2 -0)
📝 apps/open-swe/src/graphs/reviewer/nodes/generate-review-actions/index.ts (+2 -0)
📝 apps/open-swe/src/utils/llms/model-manager.ts (+48 -5)
📝 apps/web/src/features/settings-page/api-keys.tsx (+167 -55)
📝 apps/web/src/lib/api-keys.ts (+2 -1)
📝 packages/shared/src/open-swe/models.ts (+20 -0)
📝 yarn.lock (+1021 -0)

📄 Description

Fixes #703

This PR adds AWS Bedrock as a new LLM provider to OpenSWE.
image

Changes

  • AWS Bedrock Integration

    • Added @langchain/aws dependency for Bedrock support
    • Added Bedrock to the list of supported providers
    • Implemented AWS credential handling (Access Key ID, Secret Access Key, Region)
    • Added Bedrock-specific model configurations for all LLM tasks
  • Model Support

    • Claude Sonnet 4 (us.anthropic.claude-sonnet-4-20250514-v1:0)
    • Claude Opus 4.1 (us.anthropic.claude-opus-4-1-20250805-v1:0)
    • Claude Opus 4 (us.anthropic.claude-opus-4-20250514-v1:0)
    • Claude 3.7 Sonnet (us.anthropic.claude-3-7-sonnet-20250219-v1:0)
    • Claude 3.5 Haiku (us.anthropic.claude-3-5-haiku-20241022-v1:0)
  • UI Updates

    • Added AWS Bedrock configuration section in API Keys settings
    • Support for configuring AWS credentials (Access Key ID, Secret Access Key, Region)
    • Updated API key validation to check for required Bedrock credentials
  • Configuration

    • Updated .env.example with AWS credential placeholders
    • Added Bedrock provider to model selection options
    • Ensured Bedrock uses Anthropic-compatible tool and message formats

Notes

  • Bedrock models use the same tool and message formatting as Anthropic models as I only added support Anthropic models
  • API Key settings page is a bit tricky to deal with as all supported providers have a single API key field, I tried to do minimal changes for supporting AWS Bedrock

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/open-swe/pull/830 **Author:** [@HoussamOtarid](https://github.com/HoussamOtarid) **Created:** 9/8/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `add-aws-bedrock-support` --- ### 📝 Commits (2) - [`dff5bb4`](https://github.com/langchain-ai/open-swe/commit/dff5bb4779576f4fc5e9617761171646748ad66c) feat: add AWS Bedrock support to open-swe - [`1ea6588`](https://github.com/langchain-ai/open-swe/commit/1ea6588ced9abd23a8b478aba309fe5ad1864d20) feat: add AWS Bedrock support to web app ### 📊 Changes **9 files changed** (+1266 additions, -61 deletions) <details> <summary>View changed files</summary> 📝 `apps/open-swe/.env.example` (+3 -0) 📝 `apps/open-swe/package.json` (+1 -0) 📝 `apps/open-swe/src/graphs/programmer/nodes/generate-message/index.ts` (+2 -0) 📝 `apps/open-swe/src/graphs/reviewer/nodes/generate-review-actions/index.ts` (+2 -0) 📝 `apps/open-swe/src/utils/llms/model-manager.ts` (+48 -5) 📝 `apps/web/src/features/settings-page/api-keys.tsx` (+167 -55) 📝 `apps/web/src/lib/api-keys.ts` (+2 -1) 📝 `packages/shared/src/open-swe/models.ts` (+20 -0) 📝 `yarn.lock` (+1021 -0) </details> ### 📄 Description Fixes #703 This PR adds AWS Bedrock as a new LLM provider to OpenSWE. <img width="1098" height="820" alt="image" src="https://github.com/user-attachments/assets/e1e9af36-c3cd-4d0a-81d2-61622ab1b460" /> ### Changes - **AWS Bedrock Integration** - Added `@langchain/aws` dependency for Bedrock support - Added Bedrock to the list of supported providers - Implemented AWS credential handling (Access Key ID, Secret Access Key, Region) - Added Bedrock-specific model configurations for all LLM tasks - **Model Support** - Claude Sonnet 4 (us.anthropic.claude-sonnet-4-20250514-v1:0) - Claude Opus 4.1 (us.anthropic.claude-opus-4-1-20250805-v1:0) - Claude Opus 4 (us.anthropic.claude-opus-4-20250514-v1:0) - Claude 3.7 Sonnet (us.anthropic.claude-3-7-sonnet-20250219-v1:0) - Claude 3.5 Haiku (us.anthropic.claude-3-5-haiku-20241022-v1:0) - **UI Updates** - Added AWS Bedrock configuration section in API Keys settings - Support for configuring AWS credentials (Access Key ID, Secret Access Key, Region) - Updated API key validation to check for required Bedrock credentials - **Configuration** - Updated `.env.example` with AWS credential placeholders - Added Bedrock provider to model selection options - Ensured Bedrock uses Anthropic-compatible tool and message formats ### Notes - Bedrock models use the same tool and message formatting as Anthropic models as I only added support Anthropic models - API Key settings page is a bit tricky to deal with as all supported providers have a single API key field, I tried to do minimal changes for supporting AWS Bedrock --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 08:16:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/open-swe#858