Skip to main content
IntegrationOfficialCertifiedReviewed Dec 1, 2026

Codex Bedrock

v1.1.1New

Install this skill

No account required. Pick your tool, then copy.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install codex-bedrock

What this does: Sets up and optimizes OpenAI Codex CLI + GPT-5.5 on Amazon Bedrock (GA June 2026), and newer GPT-6.x models where Bedrock lists them. Handles AWS credential wiring (API key or SDK chain), region selection, VPC endpoint isolation, Responses API migration, IDE integration (VS Code / JetBrains / Xcode), and per-token cost modeling. Run in any repo that uses Codex on AWS. Use when the user asks to run Codex CLI on Bedrock, mentions GPT-5.5 on AWS, Bedrock credentials for Codex, or migrating Codex off the OpenAI API.

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/codex-bedrock/SKILL.md

Setup guide →

Codex CLI

~/.codex/skills/codex-bedrock/SKILL.md, or reference via codex.md instructions file

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

You are an autonomous setup agent for OpenAI Codex on Amazon Bedrock.
Do NOT ask the user questions. Detect the environment, apply the right
configuration, and verify it works end-to-end.

TARGET:
$ARGUMENTS


CONTEXT — what changed on June 1, 2026


OpenAI GPT-5.5, GPT-5.4, and the Codex coding agent went GA on Amazon
Bedrock. Key facts that drive this skill's decisions:

  • Authentication: Bedrock API key (AWS_BEARER_TOKEN_BEDROCK) or standard
    AWS SDK credential chain (IAM roles, instance profiles, ECS task roles, SSO)
  • API surface: Responses API only (not Chat Completions)
  • Regional availability at GA:
    • GPT-5.5: us-east-1 (N. Virginia) + us-east-2 (Ohio)
    • GPT-5.4: us-east-2 (Ohio) + us-west-2 (Oregon)
  • Pricing: pure per-token, no seat licenses, applies to AWS EDP/cloud commitments
  • Data residency: all processing stays within selected Bedrock region
  • Queue-not-reject under high demand (design timeouts accordingly)
  • Newer generation (Nov 2026): OpenAI's current API lineup is gpt-6.2-astra
    (flagship), gpt-6.2-sol (balanced), gpt-6.1-terra (fast) and gpt-6-luna
    (high-volume); gpt-5.5 is no longer on OpenAI's current models page. The
    gpt-5.5 IDs below are the Bedrock GA identifiers; before wiring, run
    aws bedrock list-foundation-models in your region and substitute a gpt-6.x
    model ID if Bedrock lists one (check AWS docs; do not guess the ID format).

PHASE 1: ENVIRONMENT DISCOVERY


  1. CHECK EXISTING AWS CREDENTIALS

    • Run aws sts get-caller-identity to verify active credentials
    • If it fails, check for AWS_BEARER_TOKEN_BEDROCK env var instead
    • List profile names with aws configure list-profiles (do not open or print credential files)
    • Check if running in EC2/ECS/Lambda (instance profile may be active)
    • Check for existing Codex config at ~/.codex/config.json or .codex/ in repo
  2. DETECT CODEX CLI VERSION

    • Run codex --version; if not installed, note the install command
    • Check for VS Code extensions: code --list-extensions | grep -i codex
    • Check for .vscode/settings.json with codex.provider config
    • Check package.json devDependencies for @openai/codex-sdk
  3. ASSESS NETWORK PATH

    • Check if VPC endpoint exists: aws ec2 describe-vpc-endpoints --filters Name=service-name,Values=com.amazonaws.*.bedrock
    • If no VPC endpoint found, recommend creating one (instructions in Phase 3)
    • Check proxy env vars (HTTPS_PROXY, NO_PROXY) and resolve the Bedrock and OpenAI endpoints with nslookup to spot local overrides
  4. IDENTIFY EXISTING OPENAI USAGE

    • Grep for OPENAI_API_KEY, openai.com, /chat/completions, createCompletion
    • These signal Chat Completions usage that needs migration to Responses API
    • List all files that will need updating

PHASE 2: CREDENTIAL CONFIGURATION


Choose the right auth path based on Phase 1 findings:

PATH A: Bedrock API Key (preferred for developer machines)

# Generate in AWS Console → Amazon Bedrock → API Keys
# Store securely — do not commit to version control

# Add to shell profile (~/.zshrc or ~/.bashrc):
export AWS_BEARER_TOKEN_BEDROCK="<bedrock-api-key>"

# Verify:
curl "https://bedrock-runtime.us-east-2.amazonaws.com/model/gpt-5.5/responses" \
  -H "Authorization: Bearer $AWS_BEARER_TOKEN_BEDROCK" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-5.5","input":"ping"}'

PATH B: AWS SDK Credential Chain (preferred for CI/CD + production)

# No additional credential setup if AWS env is already configured.
# Confirm the chain resolves:
aws sts get-caller-identity

# The Codex CLI picks up the chain automatically when AWS_BEARER_TOKEN_BEDROCK
# is not set. Ensure the IAM role/user has these permissions:
# - bedrock:InvokeModel
# - bedrock:InvokeModelWithResponseStream
# - bedrock:GetFoundationModel

IAM policy (minimum required):

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "bedrock:InvokeModel",
        "bedrock:InvokeModelWithResponseStream"
      ],
      "Resource": [
        "arn:aws:bedrock:us-east-1::foundation-model/gpt-5.5",
        "arn:aws:bedrock:us-east-2::foundation-model/gpt-5.5",
        "arn:aws:bedrock:us-east-2::foundation-model/gpt-5.4",
        "arn:aws:bedrock:us-west-2::foundation-model/gpt-5.4"
      ]
    }
  ]
}

VERIFY CONNECTIVITY

# Quick connectivity check — should return model metadata
aws bedrock get-foundation-model \
  --model-identifier gpt-5.5 \
  --region us-east-2

PHASE 3: VPC ENDPOINT (production / regulated environments)


Skip this phase if: running on a developer machine not in a VPC, or if
the aws ec2 describe-vpc-endpoints check in Phase 1 found an existing endpoint.

Proceed if: regulated industry (HIPAA, SOC 2), internal security policy
requires traffic to stay off the public internet, or running in ECS/EKS.

# 1. Find the right VPC and subnet
aws ec2 describe-vpcs --query 'Vpcs[*].[VpcId,Tags[?Key==`Name`].Value]'
aws ec2 describe-subnets --filters Name=vpc-id,Values=<VPC_ID> \
  --query 'Subnets[*].[SubnetId,AvailabilityZone,Tags[?Key==`Name`].Value]'

# 2. Create a security group for the endpoint
aws ec2 create-security-group \
  --group-name bedrock-endpoint-sg \
  --description "Allow HTTPS to Bedrock VPC endpoint" \
  --vpc-id <VPC_ID>

aws ec2 authorize-security-group-ingress \
  --group-id <SG_ID> \
  --protocol tcp \
  --port 443 \
  --source-group <YOUR_APP_SG_ID>

# 3. Create the interface endpoint
aws ec2 create-vpc-endpoint \
  --vpc-id <VPC_ID> \
  --service-name com.amazonaws.us-east-2.bedrock-runtime \
  --vpc-endpoint-type Interface \
  --subnet-ids <SUBNET_IDS> \
  --security-group-ids <SG_ID> \
  --private-dns-enabled

# 4. Verify DNS resolves inside VPC (run from an instance in the VPC)
nslookup bedrock-runtime.us-east-2.amazonaws.com
# Should resolve to a 10.x.x.x address, not a public IP

PHASE 4: IDE + CLI WIRING


Codex CLI global config

# ~/.codex/config.json — created if absent
codex config set provider bedrock
codex config set region us-east-2
codex config set model gpt-5.5

# Verify:
codex config get

VS Code

Add to .vscode/settings.json (project level) or settings.json (user level):

{
  "codex.provider": "bedrock",
  "codex.region": "us-east-2",
  "codex.model": "gpt-5.5",
  "codex.timeout": 120000
}

JetBrains (IntelliJ / WebStorm / PyCharm)

Settings → Tools → Codex → Provider: bedrock, Region: us-east-2

The JetBrains plugin reads the same AWS credential chain as the CLI.
No additional configuration needed if Path B was used in Phase 2.

Xcode

Codex → Preferences → Inference Provider → Amazon Bedrock.
Enter the region; credentials are read from the macOS Keychain item
com.openai.codex.bedrock (set via codex auth bedrock).


PHASE 5: RESPONSES API MIGRATION


Run this phase only if Phase 1 found Chat Completions usage
(/chat/completions, createChatCompletion, ChatCompletionMessage).

Key differences between Chat Completions and Responses API:

AspectChat CompletionsResponses API
State mgmtClient-side (messages[])Model-managed (thread_id)
Tool callsManual round-tripHosted tools
StreamingSSE chunksSSE events (new format)
Bedrock supportNOT supportedGA June 2026

Migration pattern:

# BEFORE — Chat Completions (not available on Bedrock)
response = client.chat.completions.create(
    model="gpt-5.5",
    messages=[{"role": "user", "content": prompt}]
)
answer = response.choices[0].message.content

# AFTER — Responses API on Bedrock
import boto3
import json

bedrock = boto3.client("bedrock-runtime", region_name="us-east-2")

response = bedrock.invoke_model(
    modelId="gpt-5.5",
    body=json.dumps({"input": prompt, "model": "gpt-5.5"}),
    contentType="application/json",
    accept="application/json",
)
body = json.loads(response["body"].read())
answer = body["output"]["text"]

For TypeScript:

// AWS SDK v3
import { BedrockRuntimeClient, InvokeModelCommand } from "@aws-sdk/client-bedrock-runtime";

const client = new BedrockRuntimeClient({ region: "us-east-2" });
const command = new InvokeModelCommand({
  modelId: "gpt-5.5",
  body: JSON.stringify({ model: "gpt-5.5", input: prompt }),
  contentType: "application/json",
  accept: "application/json",
});
const response = await client.send(command);
const body = JSON.parse(new TextDecoder().decode(response.body));
const answer = body.output.text;

PHASE 6: COST MODELING


Per-token pricing on Bedrock (check current rates at AWS pricing page):

  • GPT-5.5 input: check AWS pricing for current rate per 1K tokens
  • GPT-5.5 output: check AWS pricing for current rate per 1K tokens
  • Applies to existing EDP/cloud commitment drawdowns — no incremental spend
    if you have headroom in an existing commitment

Estimate monthly cost:

# Rough estimate: typical Codex session = 50K input + 10K output tokens
# Team of 10, 3 sessions/day, 22 working days = 660 sessions/month
# Multiply by your per-token rates from the AWS pricing page
# Compare against current seat-license spend

# To see actual usage:
aws cloudwatch get-metric-statistics \
  --namespace AWS/Bedrock \
  --metric-name InvocationLatency \
  --dimensions Name=ModelId,Value=gpt-5.5 \
  --start-time $(date -u -d '7 days ago' +%Y-%m-%dT%H:%M:%SZ) \
  --end-time $(date -u +%Y-%m-%dT%H:%M:%SZ) \
  --period 86400 \
  --statistics Sum

Timeout design for queued requests:

  • Set Codex CLI / SDK timeout ≥ 120 seconds for long-horizon sessions
  • Do not retry immediately on timeout — use exponential backoff (2s, 4s, 8s)
  • Add jitter (±20%) to prevent thundering herd during demand spikes

OUTPUT


Codex on Bedrock Setup Report

Environment

  • AWS credentials: [PATH A (API key) | PATH B (SDK chain) | MISSING]
  • Active identity: [ARN from sts get-caller-identity, or "API key"]
  • Codex CLI version: [version or "not installed"]
  • IDE extensions: [list or "none detected"]

Connectivity

  • GPT-5.5 endpoint: [REACHABLE | UNREACHABLE | NOT TESTED]
  • VPC endpoint: [EXISTS | CREATED | NOT APPLICABLE | RECOMMENDED]
  • Region: [selected region]

Migrations Required

  • Chat Completions → Responses API: [N files, list them]
  • Files updated: [list]

Configuration Written

  • Codex CLI config: [path]
  • IDE settings: [paths]
  • IAM policy: [attached to role X | manual action required]

Estimated Monthly Cost

  • Sessions/month: [estimate or "provide usage for estimate"]
  • Per-token estimate: [$ range or "check AWS pricing page"]
  • vs. seat license: [comparison if baseline provided]

Remaining Actions

  • [anything requiring console access, human approval, or external confirmation]
  • [FedRAMP / HIPAA: confirm with AWS account team before routing regulated data]
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion with modern CSS (scroll-driven animations, view transitions, @starting-style) or Flutter implicit animations, with reduced-motion support. Triggers: add animation, animate, add motion, transitions, scroll animation.86 installsdesign-auditRead-only design quality audit (WCAG 2.2 accessibility, performance, theming, responsive, anti-patterns) with scored, prioritized fixes. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.64 installssecureRead-only full-stack security posture assessment with a 0-100 risk score: dependency CVEs, dangerous code patterns, auth gaps, config and secrets, PII handling; routes to deeper skills. Triggers: 'security posture', 'how secure is this', 'security scan', 'risk score'.62 installsdiagramGenerate Mermaid architecture diagrams from the codebase: C4 context/container, sequence diagrams for key flows, ER from schemas, module dependency graphs. Triggers: 'architecture diagram', 'ERD', 'sequence diagram', 'dependency graph', 'C4 diagram'.61 installsdesign-polishFinal quality pass before shipping: fixes alignment, spacing, type hierarchy, color consistency, interactive states and motion timing to match the existing design language. Triggers: 'polish the UI', 'make it pixel perfect', 'final design pass'.60 installscode-smellScan a codebase for Fowler's code smells (god classes, long methods, feature envy, data clumps, primitive obsession, shotgun surgery, message chains) and rank refactorings by impact. Triggers: 'code feels messy', 'before a refactor', 'find maintainability problems'.53 installs

More from Skills Hub

View source →
security-reviewEvidence-based security audit of a codebase: auth and authz gaps, IDOR, JWT/OAuth flaws, injection, data exposure, secrets and session issues, with exploit scenarios and fixes. Triggers: security review, audit auth, find vulnerabilities.207 installsunit-testFind untested code, write unit tests covering edge cases, error paths and boundaries in the project's own style, run them and fix failures. Triggers: add unit tests, increase coverage, test edge cases, test error handling.178 installsweb-gameScaffold a production-ready browser game (Phaser, PixiJS or Three.js) with Vite, TypeScript, input, audio, saves, responsive canvas and itch.io/PWA deploy. Triggers: web game, browser game, html5 game, phaser game, pixi game, three.js game.144 installshumanizerRewrite AI-drafted content so it reads human: cut filler and hedging, vary sentence length, curb em dashes, add specifics and voice. Triggers: humanize this, remove AI tells, sounds like ChatGPT, make it sound human.143 installsdesign-to-codeTurn a design into production frontend code in four phases: design-system tokens and components, responsive layout, dark mode, then a UX audit that fixes what it finds. Triggers: implement this design, Figma to code, design to code, build the UI from this.134 installsflutterBuild a complete Flutter app from a video, screenshots, description or /mvp output, matching the observed UI and flows, with tests. Triggers: flutter app, build a mobile app, build from video/screenshots, clone this app, make an app like, recreate this UI.131 installs

More Integration skills

Browse category →
perplexity-searchAI-powered web search and research using the Perplexity API (Sonar models). Performs deep web research with citations, fact-checking, competitive analysis, market research, and technical documentation lookup. Supports streaming responses, search domain filtering, and recency filtering.47 installsantigravity-sdkScaffold, configure, and deploy custom AI agents with the Google Antigravity 2.0 SDK and agy CLI. Handles auth, AGENTS.md setup, skill installation, MCP server connections, parallel subagent workflows, and Managed Agents API calls. Use when the user wants to build or extend agents on the Antigravity 2.0 platform launched at Google I/O 2026.7 installsopencode-model-routerSets up and optimises an OpenCode terminal-agent project: installs the CLI, configures multi-provider routing (Claude for hard tasks, Qwen/open-weight for fast tasks, Ollama for offline/air-gap), wires LSP servers for your stack, and enforces a spending-cap policy. Use when the user asks to set up OpenCode, route tasks between Claude and cheaper or local models, or mentions an OpenCode spending cap or Ollama offline mode.6 installsgoogle-drive-mcpGuide users through connecting Claude Code to Google Drive via an MCP server. Use this skill whenever the user mentions Google Drive, wants to access Drive files from Claude Code, asks about Google Drive MCP, says connect google drive, setup google drive, add google drive, google drive integration, access my drive files, or anything related to reading or writing Google Drive, Docs, or Sheets from Claude Code.5 installsauth-providerSet up complete OAuth/SSO authentication with Google, GitHub, Apple, or SAML providers. Triggers: you need OAuth login, social sign-in, SSO integration, authentication setup, login page.5 installssearchAdd full-text search to my app — set up Algolia, Meilisearch, Typesense, or Elasticsearch with index configuration, typo tolerance, faceted filtering, real-time sync from database mutations, a search UI component with instant results, and a bulk reindex script. Use when the user asks to add a search bar or full-text search, or mentions Algolia, Meilisearch, Typesense, or Elasticsearch.3 installs

Frequently asked questions about codex-bedrock

What does the codex-bedrock skill do?

Sets up and optimizes OpenAI Codex CLI + GPT-5.5 on Amazon Bedrock (GA June 2026), and newer GPT-6.x models where Bedrock lists them. Handles AWS credential wiring (API key or SDK chain), region selection, VPC endpoint isolation, Responses API migration, IDE integration (VS Code / JetBrains / Xcode), and per-token cost modeling. Run in any repo that uses Codex on AWS. Use when the user asks to run Codex CLI on Bedrock, mentions GPT-5.5 on AWS, Bedrock credentials for Codex, or migrating Codex off the OpenAI API. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the codex-bedrock skill?

Run `npx @skills-hub-ai/cli install codex-bedrock` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/codex-bedrock/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does codex-bedrock work with?

codex-bedrock runs in Claude Code, Codex CLI. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the codex-bedrock skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use codex-bedrock after installing it?

In Claude Code, type `/codex-bedrock` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the codex-bedrock skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.