Answer: Codex supports two Bedrock authentication paths, checked in this order: a Bedrock API key, then the AWS SDK credential chain. You can set the Bedrock API key via AWS_BEARER_TOKEN_BEDROCK (with a Region required), or use the AWS SDK credential chain through shared config/credentials files, AWS access keys, Management Console login, SSO/named profile, or federated identity. Status: Confirmed Entry: tool/codex/settings/configure-aws-credentials-bedrock Revision: 1 Digest: sha256:aea872ce71f0e33d (changes whenever the content changes) Timeline: Created: 2026-11-13T03:47:18Z Last changed: 2026-11-13T03:47:18Z Last verified: 2026-11-20T13:34:55Z Next check: 2026-11-21T13:34:55Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Authentication order | 1. Bedrock API key. 2. AWS SDK credential chain. | [1] | 2026-11-20 Bedrock API key env var | AWS_BEARER_TOKEN_BEDROCK | [1] | 2026-11-20 Region env var | AWS_REGION | [1] | 2026-11-20 Shared config command | aws configure | [1] | 2026-11-20 Access key env vars | AWS_ACCESS_KEY_ID | [1] | 2026-11-20 Session token env var | AWS_SESSION_TOKEN | [1] | 2026-11-20 SSO profile | codex-bedrock | [1] | 2026-11-20 Sources: [1] OpenAI. "Use ChatGPT Work and Codex with Amazon Bedrock". https://learn.chatgpt.com/docs/amazon-bedrock.md Role: primary. Accessed: 2026-11-20T13:34:55Z Quote: "They check them in this order: 1. Bedrock API key. 2. AWS SDK credential chain." (Supports: Authentication order) Quote: "export AWS_BEARER_TOKEN_BEDROCK=""" (Supports: Bedrock API key env var) Quote: "export AWS_REGION=us-east-2" (Supports: Region env var) Quote: "aws configure" (Supports: Shared config command) Quote: "export AWS_ACCESS_KEY_ID=""" (Supports: Access key env vars) Quote: "export AWS_SESSION_TOKEN=""" (Supports: Session token env var) Quote: "aws sso login --profile codex-bedrock" (Supports: SSO profile) Snapshot SHA-256: db67908cf432b12990d1eb9039cbf5d0815a6e6d073713ae63027e2d7aadbddb (captured 2026-11-13T03:47:16Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:47:18Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:34:55Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:34:55Z Last attempt: 2026-11-20T13:34:55Z Notes and limitations: Extracted automatically from a single official source (section "Configure AWS credentials"). Related: https://latestn.com/tool/codex/settings/configure-cli-notifications How do I configure CLI notifications in Codex? https://latestn.com/tool/codex/settings/configure-deep-scan-runtime How do I configure the runtime limits for a Codex deep scan? https://latestn.com/tool/codex/settings/configure-default-local-model How do I configure my default local model in Codex? https://latestn.com/tool/codex/settings/config-precedence How does Codex decide which configuration value to use when settings conflict? https://latestn.com/tool/codex/settings/config-profiles How do I define and use profiles in Codex's config.toml? https://latestn.com/tool/codex/settings/config-toml-settings What settings can I configure in Codex config.toml? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:47:18Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/settings/configure-aws-credentials-bedrock/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/codex/settings/configure-aws-credentials-bedrock POST: https://latestn.com/dispute/tool/codex/settings/configure-aws-credentials-bedrock with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/settings/configure-aws-credentials-bedrock?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure AWS credentials for Codex to connect to Amazon Bedrock? Revision 1, last verified 2026-11-20T13:34:55Z. https://latestn.com/tool/codex/settings/configure-aws-credentials-bedrock (accessed 2026-11-21T09:57:01Z). @misc{LatestN_tool_codex_settings_configure_aws_credentials_bedrock_r1, title = {How do I configure AWS credentials for Codex to connect to Amazon Bedrock?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/settings/configure-aws-credentials-bedrock}}, note = {Revision 1; digest sha256:aea872ce71f0e33d; last verified 2026-11-20T13:34:55Z; accessed 2026-11-21T09:57:01Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/codex/settings/configure-aws-credentials-bedrock