Amazon Bedrock AgentCore Runtime now supports interactive shells through a new InvokeAgentRuntimeCommandShell API, opening a persistent, PTY-backed terminal directly into a running agent session over WebSocket. This complements the existing InvokeAgentRuntimeCommand API for one-shot execution, giving developers a full terminal experience inside an isolated microVM with colors, tab completion, Ctrl+C, terminal resize, and automatic reconnect on network drop.
This is particularly important for developers hosting coding agents such as Claude Code, OpenAI Codex, Amazon Kiro on AgentCore Runtime. In addition to the asynchronous command execution they already had, they can now authenticate, drop into the microVM hosting their coding agent, and interact with it like a local terminal: interact with the agent, inspect files, run ad-hoc commands, or debug the environment state. The shell carries persistent state across commands within the same session, so environment variables, working directory, and command history all behave as expected.
Each interactive session is identified by a runtime session ID and a shell ID. Passing both back when reconnecting lands you in the exact same shell. Brief network drops reconnect automatically, and longer disconnects can be resumed manually using the same IDs. A single agent runtime supports up to 10 concurrent shells, allowing developers to open multiple terminals against the same or multiple microVMs and watch agents work different branches in parallel.
To get started using the AgentCore CLI: `agentcore exec –it –runtime <runtime-arn>`. To learn more, see Interactive Shells (Terminals) and Shell execution in AgentCore Runtime for a comparison of both shell modes.
Categories: general:products/amazon-bedrock
Source: Amazon Web Services
Latest Posts
- Amazon Bedrock AgentCore Runtime introduces interactive shells for terminal access into agent sessions
- Amazon OpenSearch UI is now available in GovCloud regions

- Microsoft Viva Glint: Custom confidentiality statements [MC1318856]
![Microsoft Viva Glint: Custom confidentiality statements [MC1318856] 2 ai generated 8028073 1920](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- (Updated) Microsoft 365 Copilot: Add web links as references in Copilot Notebooks [MC1193414]
![(Updated) Microsoft 365 Copilot: Add web links as references in Copilot Notebooks [MC1193414] 3 pexels rafael santos 216811467 12090444](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)

![Microsoft Viva Glint: Custom confidentiality statements [MC1318856] 2 ai generated 8028073 1920](https://mwpro.co.uk/wp-content/uploads/2025/06/ai-generated-8028073_1920-150x150.webp)
![(Updated) Microsoft 365 Copilot: Add web links as references in Copilot Notebooks [MC1193414] 3 pexels rafael santos 216811467 12090444](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-rafael-santos-216811467-12090444-150x150.webp)