Back to feed
Dev.to
Dev.to
7/17/2026
How to run Codex with GPT-5.6 on Amazon Bedrock

How to run Codex with GPT-5.6 on Amazon Bedrock

Short summary

AWS released OpenAI's GPT-5.6 on Amazon Bedrock, and this tutorial shows how to configure the Codex CLI to use it via the Bedrock API. It covers both standard AWS credential chain authentication and Bedrock API Key bearer tokens for CI or container environments. The post includes practical commands, permission setup with AmazonBedrockLimitedAccess, and cost considerations around Codex's ~9,500-token system prompt overhead.

  • Configure Codex CLI to use GPT-5.6 through Amazon Bedrock API
  • Supports both AWS credential chain and Bedrock API Key bearer token auth
  • Codex sends ~9,500 tokens of system prompt overhead per request—factor into cost estimates

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more