Configuring ChatGPT Desktop App with AWS GovCloud and Amazon Bedrock
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.
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. 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 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). 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). 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).
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, 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, 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
Based on published source material. No independent hands-on testing is claimed.