Skip to content
STIRUP

TECHNOLOGY INTELLIGENCE

Understand what's next.

Integration of Claude Code with Amazon Bedrock AgentCore

Integration of Claude Code with Amazon Bedrock AgentCore enables users to extend their local Claude Code sessions to remote environments, leveraging Amazon Bedrock as the sole model provider for consistency and reliability.

Share
AI-generated conceptual illustration accompanying: Integration of Claude Code with Amazon Bedrock AgentCore
AI-generated editorial illustration of the article topic; not a photograph, product screenshot or measured result.

Integration of Claude Code with Amazon Bedrock AgentCore

Integration of Claude Code with Amazon Bedrock AgentCore enables users to extend their local Claude Code sessions to remote environments. This setup leverages Amazon Bedrock as the sole model provider, ensuring consistency and reliability. Amazon Bedrock AgentCore is a platform designed to build, connect, and optimize agents at scale, supporting any framework or model. By deploying Claude Code on AgentCore, users can manage remote tasks securely and efficiently. The integration maintains the same Amazon Bedrock infrastructure, now adapted for remote operations. This approach allows developers to harness the power of Claude Code in distributed systems without compromising on performance or security. The setup is particularly useful for teams requiring scalable and secure agent deployment across multiple locations.

Security Controls and Model Calls

Security Controls and Model Calls in the integration of Claude Code with Amazon Bedrock AgentCore ensure consistent protection across environments. According to the Guidance for Claude Code with Amazon Bedrock, Claude Code uses temporary AWS Identity and Access Management (IAM) credentials for calls to Amazon Bedrock, and users can authenticate via identity providers like Microsoft Entra ID or Okta (AWS Machine Learning). Every task executed through AgentCore runs as a runtime session tied to the user's account, ensuring that all model calls are directed to Amazon Bedrock (AWS Machine Learning). As a result, these calls inherit the security characteristics previously outlined. Model calls from remote tasks maintain the same security features as when Claude Code is used on a local laptop (AWS Machine Learning). This approach ensures that regardless of the execution environment, security remains aligned with the established standards of Amazon Bedrock.

Deployment and Configuration of the Solution

To deploy the solution, set the AWS profile and Region in the deployment shell using the commands export AWS_PROFILE= and export AWS_REGION=us-west-2. Clone the repository, set it up, and run the read-only preflight check with git clone https://github.com/aws-samples/sample-remote-coding-agent, followed by cd sample-remote-coding-agent, make setup, and make preflight. Preflight confirms the deployment account and Region and verifies the availability of AgentCore and Claude models in that environment, as noted in the source.

For Option B, install the plugin via the Plugin Marketplace with /plugin marketplace add aws-samples/sample-remote-coding-agent and /plugin install sample-rca@sample-remote-coding-agent. Restart Claude Code and leave the plugin’s configuration fields empty to allow it to locate your deployment automatically, as described in the source.

EU Data Residency and Security Guardrails

Amazon Bedrock AgentCore now supports extending Claude Code to remote sessions while enforcing EU Data Residency and Security Guardrails. According to Matina Lysikatou, a Senior AWS Consultant, a defense-in-depth layer has been created to restrict Bedrock operations to EU-state member countries. This is achieved through an AWS Organizations Service Control Policy (SCP) named BedrockEUDataResidencyCompliance, which denies all bedrock:* calls unless made to an approved EU region. Additionally, the policy blocks specific model families, such as Claude Fable 5 and Mythos-class, due to their data retention and sharing requirements, which conflict with EU residency rules. This approach ensures that even if the org-wide SCP is not fully implemented, the Bedrock API key inherits the same restrictions, providing a secure and compliant environment for remote sessions.

MCP Server Integration and Agent Deployment

The MCP server integration with Amazon Bedrock AgentCore enables seamless deployment of AI agents into production environments. With built-in support for runtime integration, gateway connectivity, and agent lifecycle management, the MCP server simplifies the transition from local development to deployment on Amazon Bedrock AgentCore services. To prepare for deployment, developers can install the required packages using the AgentCore CLI and Python SDK via the commands: npm install -g @aws/agentcore and pip install bedrock-agentcore. The MCP server must then be added to the MCP client’s configuration file. Once the agent is transformed for AgentCore Runtime compatibility, it can be deployed using the AgentCore CLI through the MCP client, ensuring secure and scalable execution in remote sessions.

Sources and reporting notes

Based on published source material. No independent hands-on testing is claimed.

Read more