Mastra has introduced AWS Bedrock AgentCore Runtime sandbox support, enabling agents to execute shell commands within AWS Bedrock environments.
Mastra has released support for AWS Bedrock AgentCore Runtime through a new workspace sandbox provider, AgentCoreRuntimeSandbox. This provider enables developers to run shell commands in an AWS Bedrock AgentCore Runtime session using the InvokeAgentRuntimeCommand API. While it simplifies command execution for agents deployed to Bedrock, it only supports one-shot command execution and currently lacks support for background processes, stdin, and filesystem mounts.
This update is a major milestone for developers deploying TypeScript-based AI agents to enterprise AWS environments, bridging the gap between Mastra's workspace orchestration and Bedrock's secure runtime. However, the lack of support for interactive stdin, background processes, or filesystem mounts means it is best suited for simple, stateless tasks rather than complex coding or agent environments.
* Simplifies cloud deployments by letting Mastra agents execute commands in their native Bedrock sessions.
* Restricts functionality compared to local sandboxes, only supporting one-shot execution.
* Requires the @mastra/agentcore package and AWS credentials configuration.
DISCOVERED
2h ago
2026-06-10
PUBLISHED
2h ago
2026-06-10
RELEVANCE
AUTHOR
mastra