# Extend Claude Code to remote sessions on Amazon Bedrock AgentCore with security controls

DevFeed: [Extend Claude Code to remote sessions on Amazon Bedrock AgentCore with security controls](<https://devfeed.tech/articles/extend-claude-code-to-remote-sessions-on-amazon-bedrock-agentcore-with-security-controls-121740.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/machine-learning/extend-claude-code-to-remote-sessions-on-amazon-bedrock-agentcore-with-security-controls/>)

Author: Andrew (Qingjie) Ren

Published: 2026-11-06T16:45:58Z

Content type: tutorial

Language: en

Sources: [Artificial Intelligence](<https://devfeed.tech/sources/artificial-intelligence.md>)

Topics: [Amazon Bedrock AgentCore](<https://devfeed.tech/topics/amazon-bedrock-agentcore.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [AI Sandbox](<https://devfeed.tech/topics/ai-sandbox.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>), [remote-development](<https://devfeed.tech/topics/remote-development.md>), [Amazon VPC](<https://devfeed.tech/topics/amazon-vpc.md>), [ai code review](<https://devfeed.tech/topics/ai-code-review.md>), [Claude](<https://devfeed.tech/topics/claude.md>), [virtual machines](<https://devfeed.tech/topics/virtual-machines.md>), [AI Context Management](<https://devfeed.tech/topics/ai-context-management.md>), [Amazon Cognito](<https://devfeed.tech/topics/amazon-cognito.md>)

Tags: [account](<https://devfeed.tech/tags/account.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agentcore](<https://devfeed.tech/tags/agentcore.md>), [amazon-bedrock](<https://devfeed.tech/tags/amazon-bedrock.md>), [amazon-bedrock-agentcore](<https://devfeed.tech/tags/amazon-bedrock-agentcore.md>), [aws](<https://devfeed.tech/tags/aws.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [coding](<https://devfeed.tech/tags/coding.md>), [controls](<https://devfeed.tech/tags/controls.md>), [expert-400](<https://devfeed.tech/tags/expert-400.md>), [github](<https://devfeed.tech/tags/github.md>), [merge](<https://devfeed.tech/tags/merge.md>), [pull-request](<https://devfeed.tech/tags/pull-request.md>), [remote](<https://devfeed.tech/tags/remote.md>), [review](<https://devfeed.tech/tags/review.md>), [run](<https://devfeed.tech/tags/run.md>), [security](<https://devfeed.tech/tags/security.md>), [security-controls](<https://devfeed.tech/tags/security-controls.md>), [sessions](<https://devfeed.tech/tags/sessions.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>), [the-result](<https://devfeed.tech/tags/the-result.md>)

## AI overview

The sample delegates scoped coding tasks to isolated Amazon Bedrock AgentCore sessions in your AWS account, then opens a GitHub pull request for human review. Each session uses Amazon Bedrock as its only model provider through a private endpoint and its IAM execution role; it gets short-lived GitHub access through AgentCore Identity, runs repository setup and test commands, and can make up to three attempts. A pull request is draft unless verification passes, and the agent never merges. Controls include prompt screening with Guardrails, private VPC endpoints, least-privilege permissions, and a fresh microVM per task. The guardrail screens submitted prompts, not repository files or command output; outbound HTTPS to GitHub and package registries uses a NAT gateway, while the DNS firewall denylist does not block all other HTTPS traffic. The sample is intended for scoped work on trusted repositories, not untrusted code or open-ended tasks. Deployment incurs idle costs, and its default $200 monthly Bedrock budget sends alerts but does not cap spending.

## Source excerpt

Run Claude Code as a remote agent on Amazon Bedrock AgentCore. Each coding task runs in its own isolated session in your AWS account, every model call goes through Amazon Bedrock, and the result comes back as a GitHub pull request you review and merge.