> ## Content Index
> Fetch the complete content index at: https://www.stirup.si/llms.txt
> Use this file to discover other available public pages before exploring further.

# Configuring ChatGPT Desktop App with AWS GovCloud and Amazon Bedrock
- URL: https://www.stirup.si/configuring-chatgpt-desktop-app-with-aws-govcloud-and-amazon-bedrock-7f66bb1e/
- Published: 2026-10-30T17:35:48.000Z
- Updated: 2026-10-30T17:35:48.000Z
- Description: To set up the ChatGPT desktop app with AWS GovCloud (US), ensure the app supports Amazon Bedrock, install and authenticate the AWS CLI, and configure environment variables for the Bedrock model provider.
- Author: Satish Das
- Tags: Cloud, News, Stirup Research

## Configuration Requirements and Prerequisites

Before setting up the ChatGPT desktop app with AWS GovCloud (US), ensure your version of the ChatGPT desktop app supports Amazon Bedrock in AWS GovCloud (US). You must have installed the AWS CLI on your Mac and authenticated to access the Amazon Bedrock service through the CLI. To verify your authentication status, run the following command in your terminal: `aws sts get-caller-identity`. You should see output similar to the following: `{"UserId": "AROAWWNJHDG5GDPWF5MCK:xxxx","Account": "xxxx","Arn": "arn:aws:sts::460453255610:assumed-role/Admin/qinjie-Isengard"}`. Run the following command to confirm your active AWS profile: `aws configure list`. You should see output similar to the following. Additionally, download the Codex desktop app from [https://developers.openai.com/codex/app](https://developers.openai.com/codex/app?ref=stirup.si). Install the Codex CLI using the command: `curl -fsSL https://chatgpt.com/codex/install.sh | sh`. Verify the installation with `codex --version`.

## Setting Up the Model Provider and Environment Variables

To configure the ChatGPT desktop app with Amazon Bedrock in AWS GovCloud (US), start by installing the Codex CLI and desktop app. Download the desktop app from [https://developers.openai.com/codex/app](https://developers.openai.com/codex/app?ref=stirup.si) and install the CLI using the command `curl -fsSL https://chatgpt.com/codex/install.sh | sh`. Verify the installation with `codex --version`.

Next, configure the Bedrock model provider by creating the file `~/.codex/config.toml` and adding the following lines: `model = "openai.gpt-5.5"`, `model_reasoning_effort = "medium"`, and `model_provider = "amazon-bedrock"`. Under the `[model_providers.amazon-bedrock.aws]` section, set `region = "us-east-2"`. If using GPT-5.4, update the model ID accordingly.

Additionally, create the file `~/.codex/.env` and add environment variables such as `AWS_REGION="us-east-2"`, `AWS_PROFILE="qinjie-Admin"`, `OPENAI_BASE_URL="https://bedrock-mantle.us-east-2.api.aws/openai/v1"`, and `BEDROCK_OPENAI_MODEL_ID="openai.gpt-5.5"`. Replace `AWS_PROFILE` with your own profile name from the Prerequisites step. The `AWS_PROFILE` and `AWS_REGION` variables are essential for specifying credentials and region, while the Bedrock endpoint is resolved automatically by the provider.

## Verification of Configuration and Troubleshooting

After configuring the ChatGPT desktop app to use Amazon Bedrock in AWS GovCloud (US), verification is essential to ensure the setup functions as intended. To confirm the configuration, launch the Codex CLI and run the `/status` command to verify that the current model provider is Amazon Bedrock. Additionally, launching the Codex desktop app should bypass the sign-in prompt, as the environment variables are already set to use the Bedrock-hosted GPT model. If the app does not respond as expected, users can send a test prompt to confirm that the model is being used correctly. On Ubuntu 24.04, AppArmor restrictions may interfere with the setup, causing sandboxed commands to fail. To resolve this, users can check the AppArmor restriction status with `sysctl kernel.apparmor_restrict_unprivileged_userns` and adjust the setting by adding `kernel.apparmor_restrict_unprivileged_userns=0` to `/etc/sysctl.d/60-apparmor-namespaces.conf`, followed by `sudo sysctl --system` to apply the change.

## AWS Account Setup and Model Access Requests

To configure the ChatGPT desktop app with Amazon Bedrock in AWS GovCloud (US), you must first establish an AWS account with console access ([cybertriage.com](https://www.cybertriage.com/ai/dfir-ai-primer-using-ai-in-aws-bedrock-for-better-data-privacy/?ref=stirup.si)). Once logged in, navigate to the Bedrock service within the AWS console. Some models, such as “Claude Sonnet 4.6,” require explicit access requests before they can be used. To initiate this process, select “Model catalog” from the left-hand menu, locate the desired model, and click the “Request Access” button ([cybertriage.com](https://www.cybertriage.com/ai/dfir-ai-primer-using-ai-in-aws-bedrock-for-better-data-privacy/?ref=stirup.si)). This step is essential for models that are not automatically available to all users. The access request process ensures that only authorized users can utilize specific models, aligning with AWS’s governance and compliance standards ([cybertriage.com](https://www.cybertriage.com/ai/dfir-ai-primer-using-ai-in-aws-bedrock-for-better-data-privacy/?ref=stirup.si)).

## Benefits of Using Amazon Bedrock with OpenAI Tools

The integration of OpenAI tools with Amazon Bedrock in AWS GovCloud (US) offers several benefits for developers. By configuring the ChatGPT desktop app to use Amazon Bedrock, users can access GPT-5.5 (or GPT-5.4) through existing Codex tools without requiring a separate OpenAI subscription. This setup enables per-token billing through the user's AWS account, as noted in [builder.aws.com](https://builder.aws.com/content/3EfOOhz1RkEhUh9s34nVKEBd3Mo/use-openai-codex-with-gpt-models-in-amazon-bedrock?ref=stirup.si), eliminating the need for additional financial commitments. Additionally, prompts are processed within the chosen AWS Region, ensuring data residency and compliance with regulatory requirements. This approach also removes the necessity for a ChatGPT sign-in, streamlining the workflow for developers who already have access to Amazon Bedrock. As highlighted in [builder.aws.com](https://builder.aws.com/content/3EfOOhz1RkEhUh9s34nVKEBd3Mo/use-openai-codex-with-gpt-models-in-amazon-bedrock?ref=stirup.si), this configuration simplifies management by avoiding the need to maintain a separate OpenAI account, making it an attractive option for those seeking to leverage OpenAI's coding agent within a secure and controlled AWS environment.

## Sources and reporting notes

- [AWS Machine Learning](https://aws.amazon.com/blogs/machine-learning/configure-the-chatgpt-desktop-app-with-amazon-bedrock-in-aws-govcloud-us/?ref=stirup.si)
- [learn.chatgpt.com](https://learn.chatgpt.com/docs/enterprise/govcloud-configuration?ref=stirup.si)
- [builder.aws.com](https://builder.aws.com/content/3EfOOhz1RkEhUh9s34nVKEBd3Mo/use-openai-codex-with-gpt-models-in-amazon-bedrock?ref=stirup.si)
- [cybertriage.com](https://www.cybertriage.com/ai/dfir-ai-primer-using-ai-in-aws-bedrock-for-better-data-privacy/?ref=stirup.si)

Based on published source material. No independent hands-on testing is claimed.