← Back to all announcements
★★★★★ 05/06/2026

Amazon Bedrock AgentCore Runtime introduces interactive shells for terminal access into agent sessions

Drop into a live coding agent's microVM with a full PTY terminal — debug, inspect, and interact in real time with persistent shell state and reconnect support.

View original announcement →

Visual Summary

graph TD A{{Interactive Shells API}}:::announced B((Developer)):::external C([AgentCore CLI]):::feature D(AgentCore Runtime):::compute E([Isolated microVM]):::feature F([WebSocket Connection]):::feature G(Coding Agents):::compute H([Reconnect & Resume]):::feature I([Concurrent Shells]):::feature B ==>|"agentcore exec --it"| C C ==>|"invokes"| A A -->|"establishes"| F F -->|"streams I/O"| E E -->|"hosts"| G A -->|"supports"| H A -->|"up to 10"| I D -->|"manages"| E A -->|"runs on"| D H -.->|"session_id + shell_id"| F classDef announced fill:#ff9900,stroke:#ec7211,color:#fff,font-weight:bold classDef compute fill:#e3f2fd,stroke:#1565c0,color:#1565c0 classDef storage fill:#e8f5e9,stroke:#2e7d32,color:#2e7d32 classDef feature fill:#fff3e0,stroke:#e65100,color:#e65100 classDef external fill:#f5f5f5,stroke:#616161,color:#616161

What's New

Amazon Bedrock AgentCore Runtime now supports interactive shell sessions via a new InvokeAgentRuntimeCommandShell API, enabling developers to open a persistent, PTY-backed terminal directly inside a running agent's microVM over WebSocket. This complements the existing one-shot InvokeAgentRuntimeCommand API by providing a full terminal experience with persistent state, colors, tab completion, and reconnect support. The feature is especially targeted at developers hosting coding agents such as Claude Code, OpenAI Codex, and Amazon Kiro, who need to inspect, debug, and interact with live agent environments in real time.

How It Works

  • InvokeAgentRuntimeCommandShell establishes a persistent WebSocket connection to an interactive shell process (PTY-backed) running inside the agent's isolated microVM, streaming terminal I/O as binary frames in both directions.
  • Shell sessions maintain full state across commands within the same session — environment variables, working directory, and command history all persist, behaving exactly like a local terminal.
  • Each session is identified by a session_id and a shell_id; providing both on reconnect lands the developer back in the exact same shell, with up to 256 KB of buffered output replayed.
  • Brief network interruptions trigger automatic reconnection; longer disconnects can be resumed manually by supplying the stored session_id and shell_id.
  • A single agent runtime supports up to 10 concurrent shell sessions, enabling parallel terminal windows against the same or different microVMs.
  • The AgentCore CLI exposes this capability via agentcore exec --it --runtime <runtime-arn>, with Ctrl+] to detach without closing the shell and a printed reconnect command for later resumption.
  • The operation requires the bedrock-agentcore:InvokeAgentRuntimeCommandShell IAM permission and a runtime in READY state; agents deployed before June 5, 2026 must be redeployed to gain support.

Why It's Important

  • Coding agents like Claude Code and Amazon Kiro inherently require interactive terminal access to inspect files, run ad-hoc commands, and react to dynamic environment state — capabilities that one-shot execution cannot provide.
  • Persistent shell state eliminates the need to re-establish environment context on every command, dramatically reducing latency and complexity for multi-step debugging workflows.
  • The reconnect mechanism with buffered output replay makes the feature viable for long-running agent sessions over unreliable networks, a critical requirement for production developer tooling.
  • Up to 10 concurrent shells per runtime allows teams to observe multiple agent branches executing in parallel, accelerating debugging and experimentation cycles.
  • By providing a native terminal UX inside an isolated microVM, AWS removes the need for developers to build custom tunneling or SSH infrastructure to introspect agent environments.

How It's Different

  • Unlike the existing InvokeAgentRuntimeCommand (HTTP/2, stateless, one-shot), InvokeAgentRuntimeCommandShell uses WebSocket for a persistent, bidirectional connection that preserves full shell state across inputs.
  • Output is raw binary terminal I/O supporting ANSI colors, cursor control, and full-screen applications, whereas one-shot execution returns structured events (contentStart, contentDelta, contentStop) with an exit code.
  • Interactive shells support reconnection via shellId with output buffering; one-shot commands have no reconnection concept since each call is fully independent.
  • Interactive sessions have a 1-hour maximum duration but can be extended by reconnecting with the same IDs, while one-shot commands have a configurable timeout of 1–3,600 seconds per call.
  • The CLI --it flag mirrors the familiar docker exec -it pattern, lowering the learning curve for developers already accustomed to container-based development workflows.

When to Prefer It

  • Use interactive shells when you need to explore or debug a live agent environment interactively — inspecting files, checking process state, or running exploratory commands whose output informs the next step.
  • Prefer interactive shells when building terminal UI experiences for coding agents (Claude Code, Amazon Kiro, OpenAI Codex) that require a real PTY with colors, tab completion, and cursor control.
  • Choose interactive shells when a sequence of commands must share environment variables, working directory, or shell history — for example, activating a virtual environment and then running tests within it.
  • Use interactive shells when working over potentially unstable network connections where automatic reconnect and output buffering are needed to avoid losing session context.
  • Prefer interactive shells when you want to watch multiple agent branches work in parallel by opening several concurrent terminal windows against the same runtime.
  • Stick with one-shot InvokeAgentRuntimeCommand for automated CI/CD pipelines, deterministic validation gates, or any scenario where a single known command runs independently and a structured exit code is required.

Availability

  • Generally available as of June 5, 2026, with no preview or beta qualifier indicated in the announcement.
  • Agents deployed before June 5, 2026 must be redeployed to enable interactive shell support; agents created on or after this date support the feature automatically.
  • Region availability is not explicitly stated in the announcement; availability is expected to follow the existing AgentCore Runtime regional footprint.
  • Pricing details are not specified in the announcement; costs are expected to align with existing AgentCore Runtime session pricing, but developers should consult the AWS pricing page for confirmation.
  • A hard limit of 10 concurrent active shell sessions per agent runtime applies; new connection attempts are rejected when at capacity.
  • The bedrock-agentcore:InvokeAgentRuntimeCommandShell IAM permission must be explicitly granted; it is not inherited from existing AgentCore Runtime permissions.

Tags

Servicesbedrock-agentcore
Typenew-feature
Conceptsagentic-aicoding-assistant
Use Casesdeveloper-toolsdevops
Providersanthropicopenaiamazon
GeographyGlobal

Related Resources

AI Radar AWS

AWS AI/ML news — curated, researched, explained

An automated intelligence platform that curates, researches, and analyzes AWS AI/ML/GenAI announcements daily. Every report is backed by real research — the system reads linked blog posts and documentation to provide accurate, in-depth analysis.

How Each Report Is Generated

  1. Collection — Daily monitoring of the AWS "What's New" RSS feed
  2. Filtering — AI-powered relevance detection for AI/ML/GenAI topics
  3. Taxonomy Tagging — LLM-based classification across 6 dimensions
  4. Importance Scoring — Point-based system with tag bonuses (1-5 stars)
  5. Research Phase — Follows links to blog posts and documentation
  6. Report Generation — Claude Sonnet produces structured 6-section analysis
  7. Visual Summary — Claude Opus generates Mermaid diagrams for key items
  8. Publishing — Static website rebuilt and deployed via CloudFront

Features

  • Faceted filtering by service, type, concept, and more
  • Multi-dimensional taxonomy with 80+ tags across 6 dimensions
  • Geographic availability badges (Global, APJ, EMEA, AMER) with filtering
  • Timeline visualization of announcement volume
  • PDF export for offline reading
  • Mermaid visual summaries for key announcements
  • Daily automated updates — no manual curation
What makes this different: Each report involves a dedicated research phase where the system reads linked blog posts and AWS documentation pages. This produces analysis that goes beyond the original announcement text.

Technology

Built with Python, AWS Lambda, Amazon Bedrock (Claude Sonnet 4.6, Opus 4.6, Haiku 4.5), S3, CloudFront, WAF, EventBridge, and CDK.

Open Source

This project is open source. Fork it, customize it for your needs, and deploy your own instance.
📦 github.com/bbonik/ai-radar-aws

How Importance Scoring Works

Each announcement receives a point score based on multiple factors. The total score maps to a 1-5 star rating:

1★ < 2 pts 2★ ≥ 2 pts 3★ ≥ 3.5 pts 4★ ≥ 5 pts 5★ ≥ 6.5 pts

Point Breakdown

FactorPointsWhen
Core AI service (Bedrock, AgentCore, SageMaker AI)+4Service named in title
Key AI service (SageMaker, Kiro, QuickSight)+2Service named in title
Other AI-related service+1Default
Blog post link+3Link to aws.amazon.com/blogs/
GitHub samples link+2Link to github.com/aws*
Documentation link+1Link to docs.aws.amazon.com/
New model+1.5Tagged as "new-model"
New service+1Tagged as "new-service"
New feature+0.5Tagged as "new-feature"
Anthropic / OpenAI provider+2Provider explicitly mentioned
Instance / notebook announcement-2Hardware/capacity, not feature
Performance / pricing / security-0.5Incremental updates
Region expansion to APJ+1Expands to Asia Pacific
Region expansion (non-APJ only)-1.5Only expands to other regions

Geographic Relevance Badges

Each announcement card shows a small badge indicating whether the feature is available in your region:

🌐 Global Available in all regions
🌏 APJ Asia Pacific
🌍 EMEA Europe / Middle East / Africa
🌎 AMER Americas (US, Canada, South America)
No badge Geography unknown
How geography is detected: The system detects ALL geographies mentioned in each announcement. If the text mentions specific regions (Tokyo, Frankfurt, Oregon, etc.), the corresponding geography badges are shown. If it says "all regions" or is a new feature with no region specified, it gets the Global badge. Geography is also filterable — click a geo chip to see only announcements available in that region.