Available on the Enterprise plan. OpenAI model routing must be enabled for your organization. Contact sales to learn more.
AWS Bedrock (OpenAI API) is supported only on AWS EC2 Runners.
Prerequisites
- Your organization has OpenAI model routing enabled.
- You have an AWS EC2 runner configured in Ona.
- Your AWS account has access to the selected OpenAI models in Bedrock.
- You have a Bedrock API key. See Generate an Amazon Bedrock API key.
- For GPT-6 Sol and Luna, the environment has an updated Codex Agent with Bedrock routing for these models.
Understand endpoints and model profiles
The endpoint hostname identifies the AWS region that receives the request:global. prefix is part of the model identifier. It does not replace the region in the hostname. AWS routes global inference-profile requests across supported commercial AWS regions.
An explicit model mapping can select us.openai.gpt-6-sol or us.openai.gpt-6-luna for US inference instead. Runtime mappings must use the exact global. or us. identifier for the selected model; custom suffixes are not supported.
GPT-6 Sol and Luna support Standard speed and Low through Max reasoning on Bedrock. Fast speed and Ultra reasoning are unavailable.
Add the integration with the UI
- Go to the Runners settings page.
- Select the AWS EC2 runner where you want to configure Bedrock.
- Scroll to LLM Providers.
- Click Configure.
- Select AWS Bedrock (OpenAI API).
- Enter the AWS region for the Bedrock Runtime endpoint, such as
us-east-1. - Paste your Bedrock API key into API Key.
- Click Create Integration.
app.ona.com.
Add the integration with the CLI
Verify the integration
- Create a new environment with the configured AWS EC2 runner.
- Start Codex Agent and select a supported model, such as GPT-6 Sol or GPT-6 Luna.
- Confirm that the agent can answer a simple code question.
- Check your AWS Bedrock usage to confirm that requests use the selected OpenAI model and inference profile.
FAQ
Why does a global model profile use a regional endpoint?
Why does a global model profile use a regional endpoint?
The regional hostname selects the Bedrock Runtime API endpoint that receives the request. The
global. model prefix tells AWS to use global cross-region inference for that model.Can I use IAM credentials instead of a Bedrock API key?
Can I use IAM credentials instead of a Bedrock API key?
No. This Ona integration uses Bedrock API-key bearer authentication. The deprecated Anthropic integration uses runner IAM credentials with the native Bedrock API and is configured separately.
Troubleshooting
AWS Bedrock (OpenAI API) is not shown
AWS Bedrock (OpenAI API) is not shown
This option is available only on AWS EC2 runners when OpenAI model routing is enabled for your organization. It is not shown on GCP runners.
Authentication fails
Authentication fails
Confirm that the key is an active Bedrock API key and that its permissions allow access to the selected OpenAI model. Do not paste AWS access-key credentials into the API key field.
Bedrock rejects model requests
Bedrock rejects model requests
Confirm that the configured AWS region supports the selected OpenAI inference profile and that the Bedrock API key has permission to use it. For GPT-6 Sol and Luna, confirm that the environment’s installed Codex Agent includes Bedrock routing for these models. Check the AWS Bedrock service status if requests continue to fail.