Back to news
cloud Priority 4/5 6/8/2026, 11:05:15 AM

Amazon Bedrock Introduces Interactive Shell Support in AgentCore Runtime via WebSockets

Amazon Bedrock Introduces Interactive Shell Support in AgentCore Runtime via WebSockets

Amazon Bedrock has enhanced its AgentCore Runtime with the release of the InvokeAgentRuntimeCommandShell API. This new capability establishes a persistent terminal session over WebSockets, backed by a pseudoterminal in the running agent environment. This allows engineers to interact directly with agent sessions in a manner similar to a standard terminal shell, facilitating deeper live inspection.

Related tools

Recommended tools for this topic

These picks prioritize high-intent tools relevant to this topic. Some links may include partner or affiliate tracking.

#aws#bedrock#ai#agent

Comparison

AspectBefore / AlternativeAfter / This
Execution PatternSingle-use command execution via InvokeAgentRuntimeCommandPersistent, multi-turn interactive session via WebSockets
Terminal BackingStandard stateless execution without a continuous contextFull pseudoterminal (PTY) backing for real-time shell feedback
Use Case SuitabilitySimple, automated task running and script executionComplex debugging, live environment exploration, and interactive session validation

Action Checklist

  1. Verify IAM policies to control access to the new InvokeAgentRuntimeCommandShell API Ensure strict boundaries are set as this allows direct pseudoterminal access to the environment.
  2. Configure network settings and proxy rules to support persistent WebSocket connections WebSockets require different timeout and keep-alive handling compared to standard REST calls.
  3. Update development and testing toolchains to leverage the interactive shell for agent debugging Integrate the new API into developer sandboxes to accelerate testing cycles.

Source: AWS What's New

This page summarizes the original source. Check the source for full details.

Related