Amazon Bedrock Managed Agents, powered by OpenAI (preview)
Amazon Bedrock Managed Agents, powered by OpenAI, helps you build applications that run stateful agents with OpenAI models on Amazon Bedrock. You create a session, provide instructions and an execution environment, and submit messages. The service manages the agent's conversation and model interactions. Tools execute in the compute environment that you provide.
Use managed agents for tasks that require several steps, such as investigating a codebase, processing documents, or generating files. A session retains conversation context across messages. Skills provide reusable instructions, and Model Context Protocol (MCP) servers make additional tools available to the agent.
Note
Preview This feature is in public preview. Preview functionality and APIs can change. Review the preview limitations before building an application.
Topics
How it works
The principal components are:
-
Session — A stateful conversation with an agent. A session specifies a model, instructions, tools, an IAM role, and an execution environment.
-
Turn — The work performed in response to a submitted message. A turn can include reasoning, tool calls, and generated output.
-
Execution environment — Customer-provided compute where commands and local tools run. Use your own host or Amazon Bedrock AgentCore Runtime.
-
Exec server — The
codex exec-serverprocess that connects the execution environment to BMA. It makes an outbound connection to the service. -
Items and events — Items contain durable conversation output. The event stream reports progress as work occurs.
-
Session role — An IAM role that BMA assumes for authorized operations on your behalf, including model inference and, when configured, AgentCore Runtime activation.
BMA session and execution environment
The service-managed conversation and the execution environment's files have separate lifecycles. Deleting a BMA session does not delete files that you store in your own S3 buckets or on your own host.
Choose an execution environment
|
Option |
What you provide |
When to use it |
|---|---|---|
|
Self-hosted compute |
A host, workspace, network access, and a running exec server |
You want to use an existing development machine, container, or compute environment. |
|
AgentCore Runtime |
An AgentCore Runtime containing the exec server and its adapter |
You want managed runtime sessions and configurable storage in your AWS account. |
The supplied example bundle includes both options. The self-hosted CDK application creates IAM roles; it does not create a host. The AgentCore CDK application creates a Runtime, storage, and networking.
Regional endpoints
Use an endpoint in a supported AWS Region. Sign requests with the endpoint's Region and the signing service bedrock-mantle.
|
AWS Region |
Region code |
Endpoint |
|---|---|---|
|
US East (N. Virginia) |
|
|
|
US West (Oregon) |
|
|
|
US East (Ohio) |
|
|
The preview uses the bedrock-mantle endpoint. BMA session operations use the /openai/v1/agents/sessions path. Model discovery uses /v1/models. Model availability can differ by Region and account.
Next steps
-
Run your first agent with self-hosted compute or AgentCore Runtime.
Charges
You incur charges for model inference and the AWS resources that your application uses. The AgentCore example also creates storage and networking resources, including a NAT gateway. A deployed stack can continue to incur charges when no BMA turn is running. See Amazon Bedrock pricing